Latent Knowledge Scalpel: Precise and Massive Knowledge Editing for Large Language Models
Xin Liu, Qiyang Song, Shaowen Xu, Kerou Zhou, Wenbo Jiang, Xiaoqi Jia, Weijuan Zhang, Heqing Huang, Yakai Li

TL;DR
The paper introduces Latent Knowledge Scalpel (LKS), a novel method for precise, large-scale editing of factual knowledge in large language models by manipulating internal representations with a hypernetwork.
Contribution
The paper presents a new approach to large-scale knowledge editing in LLMs using a hypernetwork to manipulate internal representations, enabling precise edits without compromising overall model capabilities.
Findings
LKS effectively edits up to 10,000 entities simultaneously.
LKS preserves the general abilities of LLMs after editing.
Empirical validation on Llama-2 and Mistral demonstrates effectiveness.
Abstract
Large Language Models (LLMs) often retain inaccurate or outdated information from pre-training, leading to incorrect predictions or biased outputs during inference. While existing model editing methods can address this challenge, they struggle with editing large amounts of factual information simultaneously and may compromise the general capabilities of the models. In this paper, our empirical study demonstrates that it is feasible to edit the internal representations of LLMs and replace the entities in a manner similar to editing natural language inputs. Based on this insight, we introduce the Latent Knowledge Scalpel (LKS), an LLM editor that manipulates the latent knowledge of specific entities via a lightweight hypernetwork to enable precise and large-scale editing. Experiments conducted on Llama-2 and Mistral show even with the number of simultaneous edits reaching 10,000, LKS…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
