Revealing the Deceptiveness of Knowledge Editing: A Mechanistic Analysis of Superficial Editing
Jiakuan Xie, Pengfei Cao, Yubo Chen, Kang Liu, Jun Zhao

TL;DR
This paper investigates the phenomenon of superficial editing in knowledge editing of language models, revealing underlying mechanisms and factors that cause models to retain original knowledge despite editing efforts.
Contribution
It introduces the concept of superficial editing, identifies key factors like residual streams and attention heads contributing to it, and extends analysis to superficial unlearning.
Findings
Superficial editing is a significant challenge for existing algorithms.
Specific attention heads and singular vectors encode original knowledge.
Patterns in attention heads are consistent across editing and unlearning tasks.
Abstract
Knowledge editing, which aims to update the knowledge encoded in language models, can be deceptive. Despite the fact that many existing knowledge editing algorithms achieve near-perfect performance on conventional metrics, the models edited by them are still prone to generating original knowledge. This paper introduces the concept of "superficial editing" to describe this phenomenon. Our comprehensive evaluation reveals that this issue presents a significant challenge to existing algorithms. Through systematic investigation, we identify and validate two key factors contributing to this issue: (1) the residual stream at the last subject position in earlier layers and (2) specific attention modules in later layers. Notably, certain attention heads in later layers, along with specific left singular vectors in their output matrices, encapsulate the original knowledge and exhibit a causal…
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.
Code & Models
Videos
Taxonomy
TopicsTopic Modeling · Advanced Graph Neural Networks · Multimodal Machine Learning Applications
MethodsSoftmax · Attention Is All You Need
