---
title: "Does Localization Inform Editing? Surprising Differences in"
description: "Does Causal Tracing tell us where to edit factual knowledge in a language model? The study tests that link across layers and editing objectives."
canonical: "https://research.elamur.ai/free/en/papers/hase-2023-localization-inform-editing-surprising-differences/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/hase-2023-localization-inform-editing-surprising-differences/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2023](https://md.research.elamur.ai/free/en/papers/2023/) / Does Localization Inform Editing? Surprising Differences in Causality-Based Localization vs. Knowledge Editing in Language Models

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

Paper · 2023 · Peter Hase, Mohit Bansal, Been Kim et al.

**Authors:** [Peter Hase](https://md.research.elamur.ai/free/en/authors/peter-hase/), [Mohit Bansal](https://md.research.elamur.ai/free/en/authors/mohit-bansal/), [Been Kim](https://md.research.elamur.ai/free/en/authors/been-kim/) and [Asma Ghandeharioun](https://md.research.elamur.ai/free/en/authors/asma-ghandeharioun/) · **Year:** 2023 · **Venue:** arXiv:2301.04213 · **Licence:** [CC BY 4.0 (arXiv)](http://creativecommons.org/licenses/by/4.0/)

[**32** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W7133239630) · [arXiv:2301.04213](https://openalex.org/S4363606243) · [licence](http://creativecommons.org/licenses/by/4.0/)

- [PDF](https://arxiv.org/pdf/2301.04213)
- [arXiv 2301.04213](https://arxiv.org/abs/2301.04213)
- [OpenAlex](https://openalex.org/W7133239630)

Citations: OpenAlex, 2026-10-14.

## Summary

A [language model](https://md.research.elamur.ai/free/en/concepts/language-model/) can complete a sentence with a fact it learned during training. If that fact needs to change, where should an editor intervene? One plausible approach is to find the internal activity that helps the system recover its current answer and change the weights nearby. This paper tests that approach using Causal Tracing. The technique interferes with the system’s ability to recognize a subject, then restores selected internal representations to see where the original answer comes back. It identifies where a particular restoration helps factual recall during prediction. The authors ask whether the size of that effect can also guide a lasting change to the system’s weights.

The main experiments use GPT-J and 652 facts from CounterFact that it could already complete. Earlier editing methods, including ROME and MEMIT, had used average tracing results to motivate work in early and middle feed-forward layers. Yet for many individual facts, the largest restoration effect occurred outside layers 4-9, including at layers 1-3 and 16-20. ROME still rewrote facts successfully over a broad range of layers. At its default layer, layer 6, it achieved an average Rewrite Score of 99%, while the correlation between the tracing effect and the rewrite score was slightly negative. Most tested layers showed a relationship close to zero. In the main regression analysis, knowing which layer was edited explained 94.7% of the variation in rewrite scores. Including the tracing effect raised that figure to 94.8%.

The authors then reconsider what an edit asks the system to do. They try making a clean prompt produce the answer elicited by a corrupted subject, suppressing a known answer, reinforcing it, and teaching the system to give the known answer even with a corrupted subject. The last task, Fact Forcing, comes closest to Causal Tracing because both operate on a corrupted subject and seek recovery of the original answer. It produced the clearest positive relationship, especially with constrained fine-tuning. Even there, tracing explained only about 3% more of the variation in editing success after the choice of layer was taken into account. Other checks changed the editing algorithm, the success measure, the way internal activity was perturbed, the benchmark, or the underlying system. The same broad pattern persisted.

A strong tracing effect shows that a restored representation can help recover an answer under the conditions of the trace. A successful weight edit shows that the selected parameters can be made to produce a desired change. The paper finds that these properties can come apart, even for the same fact and the same part of the network. That changes what a successful edit can establish about a localization claim and what a localization result can tell an engineer choosing where to edit. The authors make the experiment code available in the `google/belief-localization` repository.

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

Does Causal Tracing tell us where to edit factual knowledge in a language model? The study tests that link across layers and editing objectives. · about 38 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### From asking for a fact to changing an answer

Factual recall gives researchers an observable way to study what pretraining has taught a system. Present the beginning of a statement about an entity and examine the probability of the expected continuation. The paper cites [Language Models as Knowledge Bases?](https://md.research.elamur.ai/free/en/papers/petroni-2019-language-models-as-knowledge-bases/) for this way of eliciting factual associations. The completion makes the behavior easy to identify. It leaves open how the system arrived at the answer, which internal activity carried relevant information, and where a change could redirect the final prediction.

The authors distinguish two research problems. Localization belongs to [interpretability](https://md.research.elamur.ai/free/en/topics/interpretability/) and asks which internal components account for a behavior under an intervention. Knowledge editing asks how to change the behavior by modifying the system. A practical editor might need to correct an error or update an answer when the world changes. For the change to be useful, a revised answer should generally carry over to equivalent wording, and other facts should remain available where they still apply. The choice of where to edit can therefore affect several outcomes, even when the intended correction itself is simple.

The paper situates its localization question among studies at different scales. Researchers have examined entire layers or matrices, directions in the space of activations, individual neurons, and groups of neurons. A layer is a stage of computation. A neuron is a smaller unit within that computation, and a direction describes a pattern that can involve many activation values together. These choices define what an intervention can isolate. A measurement made at the level of a layer cannot, on its own, identify how individual units or directions contribute within it. The paper chooses the layer as its main unit because that is also the choice its editors must make.

Within a [Transformer](https://md.research.elamur.ai/free/en/concepts/transformer/), the authors focus on the feed-forward blocks, also called multilayer perceptrons or MLPs. Earlier work had given them a reason to look there. [Transformer Feed-Forward Layers Are Key-Value Memories](https://md.research.elamur.ai/free/en/papers/geva-2021-transformer-feed-forward-layers-are/) offered a memory interpretation for these blocks. In the interpretation relevant here, certain incoming patterns act like keys, and the weights map them to output patterns that can contribute to a prediction. [Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Space](https://md.research.elamur.ai/free/en/papers/geva-2022-transformer-feed-forward-layers-build/) is another source the authors cite for the role of feed-forward computation in forming predictions. Under this view, changing a mapping can supply a new association when a subject is encountered.

#### Why the earlier editing evidence left a question open

ROME and MEMIT connect that memory interpretation to an editing procedure. Earlier Causal Tracing experiments had found large restoration effects, on average, in early MLP layers. This observation helped motivate the choice of layers where the editors would write new associations. ROME makes a concentrated change to a matrix in a chosen layer. MEMIT can distribute a change across layers. Both turn a choice about the architecture into a decision about which parameters to modify.

There are two ways to read the resulting evidence. The location used by the editor can be a good choice across a collection of facts. A stronger claim is that a tracing result for a particular fact identifies an especially good choice for editing that fact. The two claims concern different comparisons. Average performance pools changes across examples. A fact-specific recommendation requires knowing whether the pattern across layers for an individual fact, or variation in tracing strength among facts at the same layer, helps explain editing outcomes. The earlier work had compared average editing behavior across layers with average tracing behavior. That comparison left the fact-specific question open.

The paper places this issue in a broader practice of validating a localization claim with a behavioral intervention. In the example of knowledge neurons, earlier researchers adjusted the identified activations and checked whether expression of the fact increased or decreased. The intervention establishes that the selected units offer some control over the behavior under the chosen conditions. To evaluate the selection rule, an experiment also needs interventions at competing locations. If comparable changes are easy to produce elsewhere, success at the recommended location gives limited evidence about its special role. The degree of change matters as well. A localization method that assigns stronger effects to certain cases makes a more informative prediction if those cases also yield stronger edits.

There is a further difference between the objects being manipulated. During prediction, a representation is a temporary set of values produced for one input. Weights are the parameters that generate or transform these values across inputs. A trace substitutes a representation while the generating parameters stay fixed. An editor alters the parameters, so their effects can propagate each time the system runs. Placing both interventions at a layer with the same number does not make them the same operation. Their relationship requires empirical evidence.

That difference matters even if MLPs genuinely support factual recall. A representation might be highly informative because earlier operations assembled the relevant information there. A different layer might offer a convenient place to write a signal that downstream computation can use. The paper frames the question around a relationship that would have operational value. Given a particular fact and a choice of editing layers, does measuring the original fact’s recovery tell us more than the layer choice already does? The experiments are designed around that comparison.

### The method, step by step

#### Describe the fact and the neighboring prompts

CounterFact presents facts as associations joining an entity, a relation, and the entity or value that completes the relation. The paper illustrates this with Paris, the relation of being located in a place, and France. A prompt names Paris and expresses the relation, leaving the location to be supplied. Another prompt can ask for the same location in different language. The association gives the experiment a target that can be tracked across different inputs, while the prompts provide the actual text the system processes.

```
(s, r, o)
```

Here, `s` is the subject entity, `r` is the relation, and `o` is the object that fills the relation. The parentheses enclose the ordered fact. In probability expressions the paper also uses `s` and `r` for the text that presents the subject and relation, so their meaning depends on whether the expression describes the fact or its prompt.

The correct object is written `oₜᵣᵤₑ`. CounterFact supplies a different object, `oբ` in the formulas below, which is the designated false replacement for that example. The purpose of choosing a false object is to make the requested change observable. The evaluation can check whether the system starts favoring a specified association that differs from the original. The paper calls this task Error Injection.

Two additional inputs help determine the reach of an edit. A paraphrase uses `r*` for a different expression of the relation, with exactly the same subject wording. A neighboring subject, `s*`, is similar to the original entity and stands in the same relation to the same correct object. Marseille is the example neighbor for Paris. An edit intended to change the answer for Paris should carry over to an equivalent question about Paris. The neighbor test asks whether the edit also changes the probability of the replacement when the question is about Marseille. The two tests distinguish transfer to a new formulation from spillover to another entity.

A corrupted version of the subject, written `s̃`, is a different kind of input. It is produced by adding Gaussian noise to the subject’s token embeddings. A token is a unit of text processed by the system, and an embedding is the numerical vector through which that token enters the network. Corrupting the subject therefore acts on the numeric input representing the name. The relation wording stays in place. The paper follows the earlier tracing setup and uses a noise standard deviation of `σ = 0.094`, where `σ` describes the scale of the Gaussian perturbation.

How the authors compare factual tracing with weight editing The steps in order.

#### Corrupt the input and restore selected activity

Causal Tracing starts with a forward pass, the sequence of computations from prompt to output probabilities. During the clean run, the researchers record the internal values that will be available for restoration. If the prompt has `T` tokens and the network has `L` layers, there are `T × L` positions in a grid indexed by token and layer. Each position is a candidate for a restoration trial. The study focuses on outputs from MLP blocks, given the earlier evidence connecting those blocks to factual association.

A second run with corrupted subject embeddings gives a baseline probability for the correct answer. Then the experiment repeats the corrupted run with an intervention. At a specified token position and layer, it replaces the current representation with the corresponding clean value recorded earlier. The rest of the forward pass proceeds from the resulting state. The restoration is localized, so other signals from the corrupted input can still influence the answer. The score measures how much one restoration helps in that remaining context.

```
Tracing Effect = p_θ(oₜᵣᵤₑ | s̃, r, v₍ₜ,ℓ₎) − p_θ(oₜᵣᵤₑ | s̃, r)
```

Here, `p_θ` is a probability under the original weights `θ`, and the vertical bar separates the predicted object from the conditions used to compute the probability. `oₜᵣᵤₑ` is the correct object, `s̃` is the subject with corrupted embeddings, and `r` is the relation in the prompt. `v₍ₜ,ℓ₎` denotes the clean representation at token position `t` and layer `ℓ`. Its presence after the vertical bar signals an internal restoration during the corrupted run. The minus sign subtracts the probability obtained with the same corrupted input and without that restoration. The result is an absolute change in the probability assigned to the correct object.

The paper illustrates the intervention with a prompt whose correct object has probability `.923` in the clean run and `.001` after the subject is corrupted. In that setting, a recovery following restoration has a clear interpretation. The network has lost most of its tendency to produce that answer under the chosen perturbation, and the restored activity gives it some of that tendency back. The intervention tests a causal effect on the answer probability because the experiment changes the activity and observes what follows. The description of the effect remains tied to the corruption and restoration procedure.

In practice, a restoration frequently covers several adjacent layers at the same token position. The number of layers in this set is called the tracing window size. For a window of 3, the estimate indexed by `ℓ` comes from restoring outputs at `ℓ−1`, `ℓ`, and `ℓ+1`, where `ℓ` is the center layer. The paper generally uses a window of 5. The illustrative example uses a window of 10. With a window, the score associated with a layer is an effect of a joint intervention around that layer, which is important when interpreting a peak or comparing a tracing result with a single-layer edit.

For comparisons across facts, the authors divide the recovery by the probability lost when the subject was corrupted. The resulting quantity measures the fraction of that loss reversed by the restoration.

```
Fractional tracing effect = [p_θ(oₜᵣᵤₑ | s̃, r, v₍ₜ,ℓ₎) − p_θ(oₜᵣᵤₑ | s̃, r)] / [p_θ(oₜᵣᵤₑ | s, r) − p_θ(oₜᵣᵤₑ | s̃, r)]
```

The probability function `p_θ` again uses the original weights. The correct object is `oₜᵣᵤₑ`, the clean subject is `s`, its corrupted version is `s̃`, and `r` is the relation wording. `v₍ₜ,ℓ₎` identifies the clean output at token `t` and layer `ℓ`, or the corresponding restoration for a window centered there. The square brackets group the changes before division. The numerator is the gain from restoration. The denominator is the loss from corruption relative to the clean run. A value of `0` means the restoration produced no gain, and `1` means it brought the probability back to the clean value.

To obtain a single score for each candidate layer, the authors keep the largest effect across all token positions in that layer. This reduces a grid to a curve giving one tracing score per layer for each fact. It also lets the main comparison use a common procedure for editors with different designs. A separate check uses the tracing score at the final subject token, the position ROME specifically targets when optimizing an internal response. The two summaries ask whether layer selection is better informed by the strongest recovery anywhere in the prompt or by recovery at the position most directly relevant to ROME.

#### Apply a weight edit with a defined objective

ROME needs a prompt, a desired output, and a chosen MLP layer. The matrix it changes is the down-projection matrix, which maps the MLP’s internal activity back to its output representation. ROME applies a rank-one update. In practical terms, the update is a restricted change to the matrix, designed to associate a triggering representation with a changed output. The method uses covariance statistics from subject representations obtained from a larger corpus. These statistics describe how representation values vary together and enter the computation of the update for an individual fact.

The new association is optimized at the last token of the subject. Its downstream effect is scored using the desired answer probability. The default GPT-J edit is at layer 6, a choice motivated by average tracing results in the earlier work. For this study, the same method is used at other candidate layers so that success at the default can be placed in context. Each choice is an alternative intervention for the fact. The comparison concerns what happens when that location is edited, rather than what would happen after a sequence of edits accumulating through the layer list.

The authors also use MEMIT and constrained [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/). MEMIT was designed for editing many facts. In the paper’s single-fact comparison, its relevant difference from ROME is that it distributes a change over several layers. The fine-tuning approach uses Adam to adjust parameters in a specified layer or window of layers. An infinity-norm constraint limits the largest absolute parameter change in the update. The paper calls the single-layer setting FT-1 and the setting covering 5 adjacent layers FT-5. With a 5-layer edit, the layers changed can coincide with the set of layers restored in the default trace. The interventions still operate on different quantities, one on weights and one on outputs of computations.

#### Vary what the edit is supposed to achieve

The standard task starts from a clean subject and tries to assign a higher probability to the designated false object. A trace, by comparison, starts from a corrupted subject and measures recovery of the true object. The authors construct alternatives so that several parts of this mismatch can be examined. They vary the source of the target, whether the target probability should rise or fall, and whether the subject embeddings are clean.

```
Error Injection objective: maximize p_θ(oբ | s, r)
```

In these objective expressions, `θ` denotes the weights being optimized, starting from the original system, and `p_θ` is their current answer probability. The vertical bar introduces the conditioning input. In Error Injection, `oբ` denotes the false replacement from CounterFact, while `s` and `r` specify the clean subject and relation. Maximizing the expression means seeking a weight change that raises the replacement’s probability.

```
Tracing Reversal objective: maximize p_θ(õ | s, r)
```

Here, `p_θ` still gives the probability under the weights `θ` being edited. `õ` denotes the output obtained when the original system is given the prompt with corrupted subject embeddings. The conditioning arguments `s` and `r` in the objective are the clean subject and relation. This task uses the output of the corrupted run as the target for an edit evaluated on the intact prompt. It transfers the consequence of the perturbation to a setting in which the input itself is clean.

```
Fact Erasure objective: minimize p_θ(oₜᵣᵤₑ | s, r)
```

The probability `p_θ` is evaluated under the candidate weights `θ`, `oₜᵣᵤₑ` is the original correct object, and `s` and `r` again present the clean input. Minimization aims to lower the probability of the known answer. The task defines the desired reduction without choosing a particular replacement object. This is a way to ask whether locating a fact helps suppress its expression when the edit does not also have to install another association.

```
Fact Amplification objective: maximize p_θ(oₜᵣᵤₑ | s, r)
```

Here `θ` denotes the parameters being adjusted, `p_θ` is their current probability assignment, and `oₜᵣᵤₑ` is the correct object for the clean input `s, r`. This objective raises the probability of the known answer. A completion can qualify as correct under the paper’s screening procedure while leaving probability available for such an increase. Amplification and erasure have the same subject, relation, and target. Their objectives move that target’s probability in opposite directions.

```
Fact Forcing objective: maximize p_θ(oₜᵣᵤₑ | s̃, r)
```

In this expression `p_θ` gives the probability under the weights `θ` being optimized, `oₜᵣᵤₑ` is the correct object, `s̃` is the corrupted subject, and `r` gives the relation. The objective and the tracing intervention now share the corrupted input and the aim of recovering the correct answer. Fact Forcing pursues that aim through weight updates. The authors introduce it mainly to test the connection with tracing, since requiring a system to answer from these intentionally degraded inputs has little practical importance in their setup.

#### Measure the edit on the original prompt and nearby inputs

The main outcome is Rewrite Score, which measures how much the edit raised the desired target probability, relative to the room available for improvement. In the standard task, this is a probability of the supplied false target. The same absolute change would carry different meanings for targets starting near or far from certainty. Dividing by the available increase makes that distinction explicit.

```
Rewrite Score = [p_θ*(oբ | s, r) − p_θ(oբ | s, r)] / [1 − p_θ(oբ | s, r)]
```

`θ*` denotes the edited weights and `θ` the original weights, so `p_θ*` and `p_θ` give the after- and before-edit probabilities. `oբ` is the designated false object, `s` is the original subject, and `r` is the relation wording. The vertical bar separates the target from the prompt that conditions the probability. The numerator subtracts the old probability from the new one. The denominator subtracts the old probability from certainty, represented by `1`. No change gives a score of `0`. Reaching certainty gives `1` when the original probability leaves room to improve.

The Paraphrase Score uses the same measurement on prompts that preserve the subject and reformulate the relation. CounterFact paraphrases can also place unrelated text before the reformulated question. The answer is meant to follow the relation expressed about the subject, even with the extra wording. Computing a score outside the editing prompt helps show whether the update applies to the association in more than one linguistic form.

```
Paraphrase Score per prompt = [p_θ*(oբ | s, r*) − p_θ(oբ | s, r*)] / [1 − p_θ(oբ | s, r*)]
```

`p_θ*` uses the edited weights `θ*`, and `p_θ` uses the original weights `θ`. `oբ` is the replacement object, `s` is the unchanged subject wording, and `r*` denotes a paraphrase of the relation. The bar marks the conditioning prompt. The numerator is the gain on that prompt, and the denominator is the increase still possible from its own original probability to `1`. The authors average this quantity over the available paraphrases for the example.

The Neighborhood Score uses the similar entity with the same relation and original correct object. It tracks how much the probability of the false replacement changes on that neighboring example. In this case, movement in either direction counts as a change. The scale uses the largest absolute change possible from the original probability, whether toward certainty or towards zero.

```
Neighborhood Score = 1 − |p_θ*(oբ | s*, r) − p_θ(oբ | s*, r)| / [.5 + |p_θ(oբ | s*, r) − .5|]
```

The probabilities `p_θ*` and `p_θ` use the edited and original weights `θ*` and `θ`. The predicted object `oբ` is still the supplied replacement, `s*` is the neighboring subject, and `r` is the shared relation. The conditioning bar introduces that neighboring prompt. The paired vertical bars in the numerator and denominator indicate absolute value. The constant `.5` is the midpoint of the probability scale. Adding it to the original probability’s distance from that midpoint gives the largest possible absolute movement. Subtracting the resulting fraction from `1` makes a completely unchanged target probability score `1` and a maximum movement score `0`.

These formulas give the standard Error Injection versions of the metrics. For the variants, the paper describes adapting rewrite and paraphrase evaluation to the target of the edit, while retaining the same neighborhood check. The authors also average the rewrite, paraphrase, and neighborhood scores to obtain an Overall Score. The three components preserve different information. A direct rewrite can be strong while transfer to a paraphrase is weaker, or it can coexist with movement on a neighboring fact. The direct score is the main outcome because it most closely corresponds to the change ROME is designed to produce.

#### Compare the trace with the outcome of the edit

For every evaluated fact and candidate editing location, the authors match a tracing effect with an edit score. They first examine correlations within a layer. This keeps the location fixed and asks whether larger restoration effects distinguish the facts that are especially easy to edit there. A positive result would give the tracer a fact-specific use at that location. A widespread positive pattern would be stronger evidence of alignment than an average across all facts and layers.

They also fit linear regressions. The tracing-only specification uses the size of the restoration effect. The layer-only specification treats each edit layer as a category. That treatment allows each tested layer its own baseline without imposing a uniform trend with depth. The combined specification interacts the tracing effect with the layer, allowing its relationship with the score to vary across locations. The comparison between the layer-only and combined fits measures how much tracing contributes once typical differences between layers have been accounted for.

The paper reports `R²`, the share of observed outcome variation explained by the regression. That statistic concerns the distribution of editing scores. It differs from the average score of an editor, which describes how successful its updates were under a given setting. A layer can have excellent average rewrite performance while variation in tracing effects within that layer explains very little. The authors use both kinds of measurement so that a successful editing technique can be evaluated separately from the rationale for choosing its location.

### Experiments and results

#### Which facts and layers were tested

GPT-J, an autoregressive system with 6 billion parameters, is the basis of the primary CounterFact experiments. To give tracing a known answer to recover, the authors screen candidate facts using the original system. They start with about 10% of CounterFact. A completion passes the screen when the correct object appears among the first 36 tokens generated with greedy decoding, which chooses the highest-probability next token at each step. The completion accuracy under this criterion is 32.6%, and the resulting sample for the main analysis contains 652 examples. These figures describe the unedited system’s screening behavior and the size of the selected sample.

Fact Erasure adds an eligibility condition. The correct object must start with probability at least `.02` on the clean prompt, so there is appreciable probability to remove. This leaves 489 examples for that condition. The additional selection matters because erasure begins from a different distribution of target probabilities than the other editing tasks. Direct comparisons across objectives should be read with that change in sample in mind.

The main ROME experiment includes the default edit at layer 6 and candidate locations spread from the beginning of GPT-J to its final layer. The study first compares scores within each layer and then considers the observations together in the regression. Its main baselines are statistical. Tracing alone tests how far factual recovery can explain editing success. Layer alone gives the reference point for judging the added value of tracing. The authors then repeat the comparison with other editors to test how much the result depends on ROME’s particular update.

The editors are tuned for strong rewrite performance while retaining attention to paraphrase and neighborhood scores. The tuning uses the first 100 CounterFact points, with layer 6 for GPT-J and layer 18 for GPT2-XL. The authors tune each objective separately and aim for rewrite scores no higher than 99% during tuning. For ROME and MEMIT, the tuned quantity is the weight of a regularization term based on KL divergence, which compares probability distributions. For the fine-tuning methods, it is the bound on the size of parameter changes. The selected settings therefore reflect a tradeoff among the evaluation goals. The experiment applies those settings to ask how good the edits are at different locations.

Fact Forcing required more optimization steps in the reported GPT-J settings. The fine-tuning runs went from 25 to 50 steps. The gradient-based part of ROME that searches for a target output representation went from 20 to 25 steps. The paper attributes these adjustments to slower convergence. They are part of what distinguishes the implemented Fact Forcing condition from otherwise similar edits, alongside its corrupted subject input.

#### What the main ROME comparison found

The distribution of tracing peaks varies across facts. Earlier editing work had found usable GPT-J MLP locations in layers 4-9. In the CounterFact visualization, many examples have their strongest measured recovery outside that range, including at layers 1-3 and 16-20. This observation motivates the example-level analysis. A broad range of apparent peak locations makes it possible to ask whether the differences are reflected in the results of applying the same editing method at different depths.

ROME reaches an average Rewrite Score of 99% at GPT-J layer 6 for standard CounterFact Error Injection. The score is above 96% at the other tested locations apart from layer 28. Those values concern the normalized change in probability and should be read as rewrite scores. The 32.6% figure, in contrast, comes from the original completion screen. High rewrite scores show that the update can push the designated answer towards the desired probability at many locations, even though the traces favor different parts of the network for different facts.

At layer 6, the linear correlation between fractional tracing effect and rewrite score is `ρ = -0.13`, with `p < 1e-3`. Here `ρ` identifies the reported correlation and `p` the significance value for that association. The direction is opposite to what one would predict if stronger recovery identified facts that were easier to rewrite at that layer. Across most tested locations, the association is close to zero. The result at layer 6 therefore gives little reason to use the trace as a guide in either direction across the network.

ROME Error Injection on GPT-J CounterFact, explained variance in Rewrite Score Adding tracing effects to the edit-layer regression barely improves its fit.

**The numbers**

| System or setting | R², % of rewrite-score variance explained |
| --- | --- |
| Edit layer only | 94.7 |
| Edit layer and tracing effect with interaction (this paper) | 94.8 |

For this sample and editing condition, the authors report that layer alone explains 94.7% of the variance, and that the fit with tracing included explains 94.8%. They report the additional contribution as 0.1% of the variance. In practical terms, most of the observed differences can already be captured by knowing which location was edited. Measuring how much clean activity at that location restores a particular fact adds little. The paper also reports smaller regression errors when layer is the predictor than when the tracing effect is the predictor, for both rewrite and overall outcomes.

#### What changes when the objective and the editor change

The broader GPT-J comparison crosses the editing objectives with ROME, MEMIT, FT-1, and FT-5. In the CounterFact rewrite-score regressions, edit layer alone explains 58.5% of the variance on average across the reported conditions. The most that tracing adds to the explained variance in any of those conditions is 3.2%. The average and maximum summarize different parts of the comparison. Together they show how the baseline based on layer usually performs, and how large the supplementary contribution from tracing gets in its strongest case.

That strongest relationship appears in Fact Forcing with constrained fine-tuning. The paper describes tracing as explaining an additional 3% of the variance in this setting and contrasts it with 1.5% in the other experiments. The improvement in fit for Fact Forcing is statistically significant at `p < 1e-4` in the reported F-test. The test compares the regression containing the tracing and layer terms with the nested regression based on layer alone. It addresses whether the extra terms explain detectable variation. The reported size of the increment addresses how much those terms explain.

The positive relationship is especially clear to see when the authors plot Fact Forcing scores for the 5-layer fine-tuning window. For many settings of the window’s center, a stronger tracing response tends to accompany a better rewrite. The scores still vary widely for similar tracing effects. The pattern is therefore compatible with a small incremental role for tracing alongside strong differences associated with where the weight update is applied.

The authors check a second benchmark using [Zero-Shot Relation Extraction via Reading Comprehension](https://md.research.elamur.ai/free/en/papers/levy-2017-zero-shot-relation-extraction-reading/), the source of ZSRE. It gives natural-language questions in place of CounterFact’s prompts intended for sentence completion. GPT-J answers without demonstration examples in the prompt, and ROME supplies the edits. Both Rewrite Score and Overall Score reproduce the broad CounterFact result. The layer-based regressions also have lower errors than regressions that use tracing effects. This comparison extends the result to a different way of eliciting a factual answer within the study’s English relation benchmarks.

The authors also examine GPT2-XL, which has 48 layers, with experiments restricted to Error Injection and Fact Forcing. They use a tracing window of 10 in this comparison. As with GPT-J, the clearest additional contribution appears for Fact Forcing with constrained fine-tuning. On GPT2-XL the authors place it at about 2% of explained rewrite-score variance. Across the tested settings, the edit layer continues to account for much more of the outcome variation.

### What the ablations show

#### Whether the tracing and editing windows need to match

One explanation for poor alignment is that the trace restores a group of layers while ROME edits at just one location. If the recoverable signal is spread within the window, the tracer’s value at its center could depend substantially on activity outside the edited layer. The paper addresses this by comparing methods that make a single-layer change with methods that can edit the same 5 layers included in the default restoration window. The fine-tuning comparison changes the width of the weight update within the same general optimization approach. The ROME and MEMIT comparison asks the corresponding question for methods that write associations into MLP weights.

These comparisons yield little improvement in alignment when the windows match. Having the same collection of layer indices on both sides does not give tracing appreciably more power to explain the editing scores. The result helps narrow the explanation. The mismatch in the number of layers is insufficient to account for the weak relationship. Even across matching windows, a trace measures what happens when clean outputs are supplied to a corrupted forward pass, while an edit changes how the selected weights transform their inputs.

A related possibility is that the facts in the full sample are too broadly represented for localization to make a sharp recommendation. The authors construct a subset with concentrated tracing curves. They allow no more than three layers besides the peak layer to reach at least 50% of the peak magnitude. With the default tracing window of 5 on GPT-J, 74 of 652 examples meet this criterion. The paper describes this as about 10% of the data. The filtering criterion selects cases where relatively few locations score near the strongest recorded restoration.

For ROME Error Injection on this subset, tracing contributes an additional 0.2% of explained rewrite-score variance after accounting for location. Across editors and objectives, the largest increment remains 3.2%, for Fact Forcing with constrained fine-tuning. Restricting the comparison to clearer peaks therefore gives much the same answer. A concentrated curve describes where recovery occurs under this tracer. It evidently does little, in these tests, to single out a location where changing the weights becomes especially effective.

#### Which part of Fact Forcing makes the difference

The variants test whether tracing becomes more informative as the edit begins to resemble the restoration trial. Replacing CounterFact’s false target with the answer produced by corrupted embeddings, as in Tracing Reversal, leaves the edit operating on clean input. Fact Amplification also uses clean input, but it seeks more of the true answer. The authors see similar results for these objectives and standard Error Injection. Within those comparisons, changing the origin or truth status of the target does little to strengthen the relationship with tracing.

Fact Erasure and Fact Amplification both operate on the clean subject and the original correct object. One aims to drive its probability down and the other drives it up. The limited contribution of tracing in both settings suggests that the direction of optimization is an inadequate explanation for the improvement seen in Fact Forcing. Even explicitly trying to weaken a known association offers little evidence that a location with stronger traced recovery is a better place to edit it.

Fact Amplification and Fact Forcing supply the most direct conceptual comparison. They both try to increase the probability of the original answer. Fact Forcing applies that goal to the corrupted input, the same condition under which tracing measures restoration. The authors interpret the stronger relationship there as evidence that input corruption is the important change among the factors they tested. The optimizer settings and, for some comparisons, the example eligibility also vary across the experiments. The positive association is evidence about the implemented task, and the exact contribution of every implementation choice is less directly isolated.

#### Whether the result depends on how recovery is measured

A larger Causal Tracing window tends to produce stronger measured effects because it restores more activity together. It can also shift the apparent peak of a tracing curve. Near the beginning or end of the network, a window extends beyond the available layers and is clipped. In the paper’s example with a window of 10, the restoration indexed by layer 1 covers layers 1-5, while the restoration indexed by layer 5 covers layers 1-10. A peak can move inward when an interior window has more opportunities to restore useful representations. The appendix observes that peaks move towards the outer layers as the window shrinks.

This sensitivity puts the layer histogram in context. A tracing peak refers to the strongest restoration among the interventions the authors constructed. Its location can reflect which outputs were included together, especially near the boundaries. When the authors repeat the regression with a window of 10 in place of 5, the rewrite-score result is nearly identical. Window size changes the measurements without giving them much more explanatory value for edits.

The authors also replace the maximum over token positions with the effect at the last subject token. This is a sharper test of the location ROME uses to optimize the new representation. With that alternative on GPT-J, they find no positive correlations at the tested layers. The weak relationship in the main analysis consequently cannot be explained simply by the maximum selecting information at a position irrelevant to ROME’s design.

Another check returns to the unscaled measures used in the earlier editing work. Its rewrite magnitude compares the probabilities of the new and old answers after the edit.

```
Rewrite magnitude = p_θ*(oբ | s, r) − p_θ*(oₜᵣᵤₑ | s, r)
```

Both terms use the edited weights `θ*`. The objects `oբ` and `oₜᵣᵤₑ` are the designated replacement and the original correct answer. The vertical bar introduces the same subject `s` and relation `r` for both terms. Subtraction gives the replacement’s probability advantage over the old object after editing. The accompanying localization measure is the absolute rather than fractional tracing effect at the final token of the subject. For ROME Error Injection on CounterFact at GPT-J layer 6, the correlation with this pair of measures is `ρ = -.006`. Changing both how restoration is scaled and what counts as a stronger rewrite leaves the association near zero.

The study also changes the intervention itself. Representation zeroing starts with the clean input. The researchers zero out the MLP outputs at the subject-token positions within a five-layer window, then resume the forward pass. The localization effect is the fraction of the original correct-answer probability lost after this intervention. Where Causal Tracing asks what is recovered by inserting clean activity into a corrupted run, zeroing asks what is lost when activity is removed from a clean run. On GPT-J and CounterFact, the zeroing results have correlations near zero with both the ROME Rewrite Score and the Overall Score across layers. The weakness of the relationship extends to this removal-based measure under the paper’s protocol.

#### Whether a different definition of a good edit helps

The main comparison emphasizes Rewrite Score because the editors aim to change the specified answer. A trace might still relate to whether the edit transfers to a paraphrase or avoids affecting a neighboring entity. The authors therefore use those outcomes directly, and they repeat the analysis with the mean of the rewrite, paraphrase, and neighborhood scores. The largest gain from adding tracing is around `0.03` in `R²` for paraphrase performance and `0.02` for the neighborhood outcome. For Overall Score, the largest gain is `0.02`, for Fact Forcing with constrained fine-tuning. The link remains weak even when the dependent variable captures effects beyond the original prompt.

The essence analysis broadens the outcome in a different way. The neighbor test looks at similar subjects. Essence drift concerns what else the system says about the edited subject itself. The paper illustrates the problem with a location edit that also changes the kind of entity the system takes an island to be. The authors lack CounterFact examples that independently test other core properties for each subject, so they build an automatic proxy from text generated before editing. They prompt the system with the subject followed by “is a” and draw five continuations per subject using multinomial top-k sampling with `k=5`. In this sampling scheme, `k` is the number of leading candidates retained for the random next-token choice.

The researchers compare perplexity on those same continuations before and after editing. Perplexity measures how surprising the text is to the system according to the probabilities it assigns. The essence score is `1` if perplexity stays the same, and the authors cap slight improvements at that value. An increase of 5 or more gives a score of `0`. This scale asks how much less compatible the old descriptive text becomes with the edited system.

Later editing layers generally perform better on this proxy, a trend that differs from the pattern for the other scores. Including essence in the average used to summarize Error Injection flattens the profile across depth and shifts it slightly toward middle layers. The result qualifies the meaning of a favorable layer choice. A layer can do well at rewriting the answer yet impose a larger cost on descriptions of the subject. Changing the measure of success changes how those tradeoffs appear, even though the usual tracing score contributes little to the tested predictions of editing success.

### Limitations

#### Limits the authors identify

The paper studies a basic form of factual knowledge. CounterFact and ZSRE provide short English inputs about specific subject–object relations. A result about which layer is convenient for altering these completions may change when the behavior involves other kinds of knowledge. The paraphrase tests broaden the wording, and ZSRE changes the prompt form, while both benchmarks remain centered on an answer to a relation about an entity. This makes the localization and editing measurements easy to align. It also restricts the kinds of behavior to which the evidence applies.

The authors work with GPT-J and GPT2-XL, two autoregressive Transformers with enough factual recall to support the experiments. They caution about generalizing beyond GPT-J’s scale, since larger systems can display changes in behavior under prompting. GPT2-XL provides a check in another system with a different number of layers, using a narrower set of editing objectives. Replication of the broad pattern in these experiments gives some breadth within the tested architectures and scales. The study leaves open how that pattern would look in systems of other sizes or with different ways of organizing computation.

The authors also limit their claim to the interventions they studied. Their localization procedures restore or zero representations at the layer level. Their editors modify MLP weights over one layer or a window. A claim about these methods cannot settle what a neuron-level localization technique, a method that isolates directions, or a different editor would reveal. Even within the same network, an analysis designed to find a useful control point could ask a more directly related question than restoration of a previously expressed answer.

Fact Forcing is also a deliberately specialized test. Its target is familiar and its subject signal is corrupted in the same manner used to construct the localization measurement. Its value for the paper is that it reduces a design difference between the tracing and editing tasks. Its small positive result concerns control of predictions under that specific perturbation. Realistic degradation of an input, new prompt forms, and lasting corrections in ordinary usage would require their own evaluation.

#### Limits visible in the design and measurements

A tracing intervention combines conditions from two runs. The restored activity was produced by a clean input, while the surrounding activity comes from a corrupted input. Recovery establishes a causal consequence of that substitution. It cannot alone identify a unique parameter location for the fact. Clean activity at a point in the computation may carry information gathered from prior layers or combine several signals useful to the final answer. A tracing window also supplies several outputs together. Reading the resulting peak as a precise address of a fact in the weights goes beyond what this experiment measures.

The sample selection emphasizes facts GPT-J can already express under the authors’ greedy completion criterion. The selected facts are appropriate for testing restoration, since there is a correct response available from the original system. They form a narrower population than all CounterFact examples. Teaching associations the system rarely or never expresses is a separate problem, as is erasing facts with very little initial probability on the tested prompt. The erasure result specifically describes examples meeting the additional probability threshold.

Several score properties matter for interpretation. The authors intend the normalizations to make examples comparable and describe the endpoints through familiar cases of no effect and full success. A rewrite formula based on probability gain can give a negative value when the probability moves in the unfavorable direction. Likewise, the fractional tracing formula depends on there being a clean-to-corrupted probability difference to normalize by. If a restoration exceeded the clean probability, its fraction would exceed `1`. These possibilities follow from the expressions themselves. The normalized quantities are measurements of probability change relative to particular baselines, so they should be interpreted with those baselines in view.

ROME’s high average rewrite scores across many layers leave relatively little headroom for improvement at those locations. That matters when interpreting weak correlations in a condition where most edits already work well. The paper partly addresses the concern by changing objectives, edit methods, editing metrics, data, and systems. The conclusion is stronger as a recurring result across those comparisons than it would be from the layer 6 correlation alone. The variance explained in the regressions describes the observed outcomes. The experiments do not directly measure the benefit of a tracing-based selector deployed on new facts against a selector chosen and assessed on separate data.

The neighborhood and essence measures capture particular consequences. The neighborhood check tracks the designated replacement’s probability for a similar subject. It says little about changes that leave that specific probability intact. The essence check uses descriptions generated by the original system, so it measures continuity with those descriptions. A perplexity increase says that the edited system assigns them less probability, but it does not identify which property changed or verify whether the old description was factually sound. These measures help characterize spillover within the study and leave broader behavior outside its evaluation.

MEMIT’s inclusion likewise has a specific scope. The experiment uses its distributed update for an individual fact. Its design for editing a collection of facts motivates its name and role, but the single-fact comparison does not establish how tracing relates to interference among many edits. The evidence concerns where a given factual rewrite works under the tested algorithms. Long sequences of edits or simultaneous updates involving overlapping associations pose additional questions.

Finally, the authors propose an explanation for why edits can succeed where traced recovery is small. Information builds up through the forward pass, and a change earlier or later in that computation may override the signal that would otherwise determine the answer. Effective rewrites across a broad range of layers are consistent with this account. The experiments leave the exact route of such an override unresolved. The authors also point out that arbitrary layer swaps can damage performance, which is a reason to take the position of incoming information seriously. A successful edit at several possible locations supplies evidence of flexibility for this behavior under the tested updates. It leaves open how each location accomplishes the change.

### What came after

#### Inspecting the computation behind factual recall

[Dissecting Recall of Factual Associations in Auto-Regressive Language Models](https://md.research.elamur.ai/free/en/papers/geva-2023-dissecting-recall-factual-associations-auto/) takes factual recall as the behavior to explain. Its subject connects to the localization side of this paper’s distinction. When an association emerges during prediction, a study of recall can ask how the computation builds the answer and which stages contribute. The editing experiments here show why a successful change of the output answers a different question about that computation. A site where an intervention redirects the answer and a site where the original prediction developed can both matter, for different experimental reasons.

[Towards Best Practices of Activation Patching in Language Models: Metrics and Methods](https://md.research.elamur.ai/free/en/papers/zhang-2023-towards-best-practices-activation-patching/) focuses on how to measure and carry out activation patching, the family of interventions that includes restoring clean values during a corrupted run. This paper’s window and metric checks illustrate the connection. The magnitude and peak of a restoration effect can depend on what is restored together, how effects are scaled, and which token positions are used. Methodological work on patching concerns those decisions even when its purpose is understanding the unedited computation.

[Patchscopes](https://md.research.elamur.ai/free/en/papers/ghandeharioun-2024-patchscopes-unifying-framework-inspecting-hidden/) develops a framework for inspecting hidden representations. It shares the interest in what internal activity can reveal, while the question tested here is particularly narrow. The authors use an altered subject and a known answer to ask how much a restoration recovers one prediction. A framework for inspection makes the ability to probe a hidden representation the object of study. That focus is compatible with the finding that a representation can be informative to inspect even when nearby weights offer no unusual advantage for rewriting the fact.

[AtP*](https://md.research.elamur.ai/free/en/papers/kramar-2024-atp-efficient-scalable-method-localizing/) addresses the efficiency and scale of localizing behavior to components. The component search itself is a substantial part of the experimental problem in this paper. The tracing procedure considers a grid of positions and examines windows of layers. A method aimed at efficient localization addresses how to obtain the resulting component-level evidence. Its connection to editing still depends on the outcome being measured and the type of intervention the editor can apply.

[Multi-component Causal Tracing in Large Language Models](https://md.research.elamur.ai/free/en/papers/yan-2026-multi-component-causal-tracing-large/) extends the tracing topic to multiple components. The tracing windows in the original study already show why the unit of intervention matters. Restoring several adjacent MLP outputs can change both the recovery magnitude and the apparent location of its peak. A study organized around multiple components pursues a wider version of the localization question. The original editing results provide a reason to distinguish evidence from joint recovery from evidence that the same components make effective targets for parameter changes.

#### Extending the study of edits and their consequences

[Locating and Editing Factual Associations in Mamba](https://md.research.elamur.ai/free/en/papers/sharma-2024-locating-editing-factual-associations-mamba/) takes the paired questions of locating and editing associations into Mamba. The connection is especially direct because the original paper works with GPT-J and GPT2-XL and marks architecture as a limit on the reach of its evidence. Carrying both questions into another system keeps the comparison available there. The result from the Transformers studied here cannot by itself determine how localization and editing will align in that setting.

[EasyEdit](https://md.research.elamur.ai/free/en/papers/wang-2024-easyedit-easy-use-knowledge-editing/) approaches knowledge editing through a framework for applying it. The original paper offers an example of why the editor, the selected weights, and the score deserve separate attention in such comparisons. A method can be highly effective at changing the requested answer while its success depends little on a trace for that individual fact. The connection is to the evaluation of editors and their configuration, including whether a rule for selecting a location improves on a baseline that uses the layer alone.

[Model Editing Harms General Abilities of Large Language Models: Regularization to the Rescue](https://md.research.elamur.ai/free/en/papers/gu-2024-model-editing-harms-general-abilities/) studies consequences for general abilities and addresses them through regularization. That focus extends the concern behind the original paper’s neighborhood and essence measurements. A change can satisfy the immediate request and still alter behavior elsewhere. The original tests capture local effects on individual facts and descriptions. The later work’s subject broadens the evaluation to general abilities, where an editor’s effect requires measures beyond the answer it was asked to change.

[MLaKE](https://md.research.elamur.ai/free/en/papers/wei-2025-mlake-multilingual-knowledge-editing-benchmark/) extends benchmark coverage to multilingual knowledge editing. The original study uses English prompts, including English paraphrases that keep the subject wording fixed. Multilingual evaluation broadens the way a factual edit can be asked to generalize across inputs. It also gives the question of where to intervene a wider evaluation context. A location that supports an effective rewrite on one prompt is only the starting point for judging how far the edited association carries.

Together these lines of work develop different parts of the original question. Research on patching and causal tracing can refine the evidence about where information contributes during prediction. Work on editing can broaden the range of systems, objectives, and side effects against which an intervention is judged. The lasting methodological point is to compare the specific claims those experiments support. If localization is intended to guide a weight edit, its contribution can be tested by comparing edits at competing locations and measuring what the trace adds to an informed choice of layer.

## Cite

Cite as Peter Hase, Mohit Bansal, Been Kim and Asma Ghandeharioun. 2023. Does Localization Inform Editing? Surprising Differences in Causality-Based Localization vs. Knowledge Editing in Language Models. arXiv:2301.04213.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.48550/arxiv.2301.04213](https://doi.org/10.48550/arxiv.2301.04213) · [arXiv 2301.04213](https://arxiv.org/abs/2301.04213)

```bibtex
@misc{hase2023does,
  title = {{Does Localization Inform Editing? Surprising Differences in Causality-Based Localization vs. Knowledge Editing in Language Models}},
  author = {Peter Hase, Mohit Bansal, Been Kim and Asma Ghandeharioun},
  year = {2023},
  doi = {10.48550/arxiv.2301.04213},
  eprint = {2301.04213},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2301.04213}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
