Revealing the Deceptiveness of Knowledge Editing: A Mechanistic Analysis of Superficial Editing
Jiakuan Xie, Pengfei Cao, Yubo Chen, Kang Liu, Jun Zhao
TL;DR
Knowledge editing can appear successful under standard metrics but remains prone to superficial editing, where edited models revert to original knowledge under adversarial prompts. The authors formalize superficial editing, introduce attack probes, and demonstrate across multiple models and datasets that conventional evaluations overstate robustness. A mechanistic analysis reveals two key factors: the residual stream in early layers and specific late-layer attention heads whose left singular vectors encode original knowledge, driving superficial editing; logit-lens and SVD analyses substantiate causal roles and extend to superficial unlearning. The work delivers a robust diagnostic framework, highlights core limitations of current editing methods, and suggests directions for more reliable knowledge updates and defenses.
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 relationship with superficial editing. Furthermore, we extend our analysis to the task of superficial unlearning, where we observe consistent patterns in the behavior of specific attention heads and their corresponding left singular vectors, thereby demonstrating the robustness and broader applicability of our methodology and conclusions. Our code is available here.
