Does Localization Inform Editing? Surprising Differences in Causality-Based Localization vs. Knowledge Editing in Language Models

Peter Hase, Mohit Bansal, Been Kim, Asma Ghandeharioun

TL;DR

Knowing exactly where a fact is "stored" in a Large Language Model (LLM) doesn't actually tell you the best place to edit it. This paper reveals that causality-based localization (finding the "knowledge neurons") is almost entirely uncorrelated with the success of model editing, suggesting that mechanistic understanding and model control are two very different challenges.

The Localization-Editing Paradox

In the quest to make LLMs more reliable, researchers have tried to "open the hood" to find where specific facts live. A popular method called Causal Tracing (or representation denoising) identifies specific layers—usually mid-model MLP weights—that seem responsible for a model's factual recall.

The logical leap taken by the field was straightforward: If we know where a fact is stored, that’s where we should go to change it. This assumption motivated state-of-the-art editing techniques like ROME (Rank-One Model Editing) and MEMIT. However, the authors of this paper noticed a discrepancy. While these methods work well, they often target the same layers regardless of the specific fact being edited.

Mismatch between causal tracing peaks and edit layers

They set out to answer a fundamental question: Is there actually a relationship between the "strength" of a fact's location and our ability to edit it at that location?

The authors tested the link between Localization and Editing using several approaches on models like GPT-J (6B parameters) and GPT2-XL:

  1. Causal Tracing: Mapping out where 652 specific facts from the CounterFact dataset are "stored".
  2. Model Editing: Applying ROME, MEMIT, and standard Adam-based finetuning to modify these facts.
  3. Novel Editing Variants: To see if the lack of correlation was due to the editing task itself, they introduced four new problem variants: Fact Erasure (making the model forget), Fact Amplification (strengthening a fact), Tracing Reversal (forcing noisy output), and Fact Forcing (editing to output a correct fact despite noisy input).

Key Findings: Layer Choice is King

The results were striking: you can successfully edit a fact in a layer that Causal Tracing claims has zero involvement in storing that fact. Conversely, editing the "peak" causal layer doesn't guarantee a better result than editing a random mid-model layer.

Near-zero correlation between tracing effect and rewrite score
  • Near-Zero Correlation: For ROME, the correlation between the strength of the Causal Tracing effect and the success of the edit was roughly -0.13. In many layers, the correlation was effectively zero.
  • Variance Explained ($R^2$): In their regression analysis for ROME, the choice of layer (e.g., "Layer 6") explained 94.7% of the variance in edit success. Adding the localization data (tracing effect) only increased the explained variance by a measly 0.1%.
  • Fact Forcing Exception: The only scenario where localization showed a meaningful relationship was "Fact Forcing," but even there, the tracing effect only explained an additional 3% of the variance.

The "Override" Hypothesis

If editing doesn't rely on rewriting the exact location of a fact, why do methods like ROME and MEMIT work so well?

The authors suggest the "Override" Hypothesis. LLMs don't just "lookup" a fact in a single layer; they accumulate information across the residual stream. An edit at a specific mid-model layer might not be "rewriting" a localized memory so much as "overriding" the signal coming from elsewhere in the network.

Conclusion: Mechanistic vs. Interventionist

This paper serves as a cautionary tale for the AI interpretability community. Just because we understand the mechanism of how a model produces an output (finding a "neuron for X") doesn't mean we have found the best intervention point to change that behavior. Moving forward, researchers must distinguish between understanding where a model naturally stores information and where it is most susceptible to targeted edits.

Summary updated

BibTeX
@inproceedings{hase2023does,
  author = {Peter Hase and Mohit Bansal and Been Kim and Asma Ghandeharioun},
  title = {{Does Localization Inform Editing? Surprising Differences in Causality-Based Localization vs. Knowledge Editing in Language Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=EldbUlZtbd},
}
Figure