When you switch off part of a language model, such as one attention head, the model often barely changes its answer. Other parts step in to cover for it. This "self-repair" makes standard interpretability tests, which remove one component at a time and watch the output, conclude that important components do not matter. Geneticists have faced the same problem for decades. Knocking out one gene often has no visible effect, either because a duplicate copy was already sharing the work or because a related gene is switched on to replace it. Their fix was to watch what changes after a knockout and then knock out the responders as well. We propose to do the same for transformers. Remove a component, record which other components change their contribution in response, use that response to choose the next set of components to remove, and fit a small model that predicts how the network will perform under any combination of removals.
The opportunity lies in a sampling trap that this fixes. Interpretability pipelines usually examine the units that are most active or most attributed at baseline. The backup components that do the repairing are, by definition, quiet until something breaks. An observer who samples only the active units will therefore systematically miss the reserve and conclude that a circuit is more localized and more fragile than it really is. Measuring the response to a knockout is a cheap way to bring that silent reserve into view.
Core Claim
Transformer redundancy comes in two kinds, the same two that genetics distinguishes. In passive redundancy, two copies both work at baseline and the output saturates, as with the soybean LEAFY paralogs, where a single knockout barely matters (LEAFY1 and 2 are required for floral organ development in soybean). In active compensation, a quiet partner increases its output when the primary component is lost, as when knocking out KDM5B switches on KDM5A and KDM5C (The Lysine Demethylase KDM5B Regulates Islet Function and Glucose Homeostasis). The Backup Name Mover heads found in GPT-2 Small (Interpretability in the Wild) and the anti-erasure neurons found across Pythia, GPT-2 and LLaMA (Explorations of Self-Repair in Language Models) are active compensators.
Our claim has two parts. First, the two kinds leave different, measurable signatures. Passive redundancy produces sub-additive damage under multiple removals while the surviving components do not change. Active compensation produces a change in the surviving components that depends on which component was removed. Second, modelling active compensation explicitly lets a modest, adaptively chosen set of multi-component removals predict the network's behaviour under removals it has never seen. That prediction should hold even when the observer can only see or intervene on a sparse subset of components.
Concretely, we extend the Performance Prediction Algorithm (PPA) of Who Does What?. PPA fits one contribution score per element and a monotone curve mapping the summed contributions of surviving elements to performance. Our extended model is
$$\hat P(S) = f\Big(\sum_{i \notin S} \big(c_i + \sum_{j \in S} g_{ji}\big) + r(S)\Big),$$
with the following symbols. $S$ is the set of removed components. $c_i$ is component $i$'s baseline contribution. $g_{ji} \ge 0$ is how much component $i$ increases its contribution when component $j$ is removed. $r(S)$ is a low-dimensional "reserve" term that absorbs compensation by components the observer cannot see. $f$ is the monotone curve from PPA.
Two of these terms correspond to existing measurements or models. The $g_{ji}$ terms can be measured directly: the change in each surviving component's direct effect on the logits after removing $j$ takes a single forward pass to record. This is the transformer analogue of reading out gene expression after a knockout. The $r(S)$ term borrows the logic of the Poisson Linear Dynamical System (PLDS) in Empirical models of spiking in neural populations. That work showed that, under sparse recording, shared hidden drive should be modelled as a low-dimensional latent rather than as many spurious direct couplings between observed units.
Research Program
Each of the three directions plays a different role. Self-repair research motivates the work and supplies the phenomenon to explain. The Hydra Effect showed that downstream layers restore about 70% of the lost correct-token probability in Chinchilla-7B. It did not, however, give an algorithm for assigning credit when several components compensate at once.
Genetic compensation supplies the method. PPA showed that multi-lesion fitting recovers the true contributions of redundant units: it reached 0.9978 correlation on 230 held-out lesion configurations in a 10-neuron network. PPA has never been run on attention heads or the residual stream, and it has no notion of a compensator that increases its output. It also samples lesion configurations without exploiting the response to earlier knockouts.
Sparse sampling supplies the failure mode we test against. Activity-biased selection is the norm in both neuroscience and interpretability (Interpreting Neurons in Deep Vision Networks with Language Models). System Identification of Neural Systems showed that sparse coverage hides architecture differences that full coverage reveals.
The system we build runs in three stages. In the first stage, we remove each candidate component in turn and record a response vector: the change in every other observed component's direct effect. We use resample or optimal ablation rather than zeroing. Optimal ablation for interpretability found that about 89% of zero-ablation "importance" on the Indirect Object Identification (IOI) task is out-of-distribution shock, and we do not want shock mistaken for compensation. We also record the response with LayerNorm frozen and unfrozen. This separates the global rescaling, which accounts for roughly 30% of direct-effect repair according to Rushing et al., from compensation by specific components.
In the second stage, we choose multi-component removals adaptively. Each next removal targets a primary component together with its strongest responders. The analogy is a geneticist co-knocking out the upregulated paralogs. Lesion sets grow up to size eight under a fixed budget of forward passes.
In the third stage, we fit $c$, $g$, $r$ and $f$ by alternating minimization, following PPA's isotonic-regression scheme for $f$. We then report a contribution map that labels each component as primary, passive duplicate, or active compensator.
The partial-observation regime is part of the design from the start. We run every stage with the observer restricted to a subset of components: the top-k by baseline activation, the top-k by attribution, or a random subset. We then ask how much each choice of observed set distorts the inferred circuit, and whether the reserve term recovers what is lost.
Baselines
The naive reference point is single-component ablation, scored by drop in logit difference and using the same resample ablation. This is the procedure the overdetermination critique in Missed Causes and Ambiguous Effects says has poor recall. Our method beats it if it ranks the known backup and negative name mover heads as important where single ablation scores them near zero.
ACDC (Towards Automated Circuit Discovery) is the standard automated pipeline. It recovered the IOI circuit in 8 minutes on one A100 GPU, but by its authors' own admission it drops one branch of every "OR gate". We run it with the released settings and a threshold sweep on the same prompts. To compare on prediction, we turn its output into a predictor: a removal set is predicted harmless if and only if it misses the discovered circuit.
The strongest existing competitor is Uniform Gradient Sampling with Optimal Ablation, because it is the most faithful component-importance method in the file. It reports circuits 52% smaller than ACDC at matched performance on IOI. No reported result was found on Lacuna for the accuracy of any method at predicting held-out multi-head lesion outcomes in a transformer. We will therefore establish that number ourselves, giving optimal ablation the same forward- and backward-pass budget as our method.
Two gradient and subgraph methods round out the external comparisons. GIM (GIM: Improved Interpretability for Large Language Models) is run with its temperature and LayerNorm-freezing settings. Its scores feed a linear predictor of joint-removal damage. OASR (All Circuits Lead to Rome) is used to enumerate alternative subgraphs, which serve as a set-cover predictor: a removal is harmful if it breaks every discovered subgraph.
Three ablations isolate our ingredients. The first is plain PPA with random lesion sets, which tests the value of the compensation terms and adaptive design together. The second is our model with $g = 0$ but adaptive design, which tests whether compensation matters beyond passive saturation. The third replaces response-guided selection with activity-guided selection, which tests the sampling claim.
Fairness rules apply to all comparisons. Every method sees the same prompts and the same ablation type. Tuning is equalized at a fixed number of hyperparameter configurations. We measure total compute in forward-pass equivalents.
Beating the field means two things. On held-out removal sets of size four to eight, our method must achieve higher correlation and lower squared error in logit difference than both optimal ablation and plain PPA at equal budget. It must also recover the known backup heads that the activity-sampled baselines miss.
Why not just…?
Why not just ablate every pair of heads exhaustively? For GPT-2 Small's 144 heads, that is about ten thousand forward-pass sets, which is affordable. This alternative is a real threat if redundancy is mostly pairwise. We include exhaustive pairwise ablation as a baseline on GPT-2 Small. If it predicts held-out removals of size four to eight as well as our model does, we will say so and narrow the claim to scale. The case for our method rests on two points. Pairwise search grows quadratically and cannot be run on the MLP neurons of LLaMA-7B, where anti-erasure lives. And the Hydra results show multi-layer compensation that pairwise tables cannot represent. Higher-order removals in the held-out set will decide between the two.
Why not just use optimal ablation and skip compensation? Optimal ablation removes the shock of unnatural replacement values, and we adopt it for exactly that reason. It still scores components one at a time, however. When two heads duplicate each other, an optimal constant for one head simply leaves the other in charge, so the redundant pair still looks unimportant. The test of this alternative is whether optimal-ablation scores predict multi-removal damage. Our second decisive check below measures exactly that.
Why not just fit PPA as published? That is the ablation with $g = 0$ and random design. If it matches our method, then active compensation adds nothing beyond saturation, and that would be a genuine negative finding about the Hydra effect. Random designs over hundreds of components rarely hit a primary head together with its backup, so we expect plain PPA to need far more lesions to reach the same accuracy. The budget-versus-accuracy curve will settle this.
Why not just use GIM's single backward pass? GIM is cheap. Its authors report it is less effective under the extreme gradient variance seen in Qwen-2.5 1.5B, and it gives no explicit compensation structure. We compare its predicted joint-removal damage against our model on the same held-out sets.
Proposed Experiments
We first need a testbed where the answer is known. We build one from Tracr (Tracr: Compiled Transformers as a Laboratory for Interpretability) by compiling the token-counting and Dyck programs and then editing the weights by hand to plant two kinds of redundancy. Passive redundancy is a duplicated head that writes the same feature. Active compensation is a backup head that reads a residual-stream flag written by the primary head and attends only when the flag is absent, much like anti-erasure. The first decisive check is whether the fitted $g$ recovers the planted compensator links. A second question is whether ACDC, which reaches AUC 1.0 on unmodified Tracr models, drops the duplicate branch, as its OR-gate admission predicts.
The second check runs on GPT-2 Small with IOI and Greater-Than. Here the ground truth is partial but documented: name mover, backup name mover and negative heads. We compare held-out prediction of logit difference for removal sets of size two to eight across all baselines at matched budget. We also check whether our labels separate backup heads (active) from duplicate name movers (passive).
The third check concerns sparse sampling, on Pythia-160M to 1B and LLaMA-7B, using The Pile and CounterFact. Neurons are restricted to top-k by baseline activation, and we measure what fraction of the self-repairing neurons identified with full observation are missed. We then test whether response-guided selection recovers them, and whether the reserve term $r(S)$ restores prediction accuracy relative to full observation.
The falsification conditions are stated in advance. If activity-biased observation misses no more backup components than random observation, the sampling claim fails. If $g$ adds nothing over the $g = 0$ ablation on GPT-2 Small, the active-versus-passive distinction is not useful for transformers.
References
- LEAFY1 and 2 are required for floral organ development in soybean
- The Lysine Demethylase KDM5B Regulates Islet Function and Glucose Homeostasis
- Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 Small
- Explorations of Self-Repair in Language Models
- Who Does What? A Novel Algorithm to Determine Function Localization
- Empirical models of spiking in neural populations
- The Hydra Effect: Emergent Self-repair in Language Model Computations
- Interpreting Neurons in Deep Vision Networks with Language Models
- System Identification of Neural Systems: If We Got It Right, Would We Know?
- Optimal ablation for interpretability
- Missed Causes and Ambiguous Effects: Counterfactuals Pose Challenges for Interpreting Neural Networks
- Towards Automated Circuit Discovery for Mechanistic Interpretability
- GIM: Improved Interpretability for Large Language Models
- All Circuits Lead to Rome: Rethinking Functional Anisotropy in Circuit and Sheaf Discovery for LLMs
- Tracr: Compiled Transformers as a Laboratory for Interpretability