Ablating an important layer in a large language model often damages the final prediction far less than that layer’s direct contribution would suggest. Studying a 7-billion-parameter Chinchilla transformer across 1,209 factual recall prompts, Thomas McGrath, Matthew Rahtz, Janos Kramar, Vladimir Mikulik, and Shane Legg at Google DeepMind find that downstream layers actively compensate, collectively restoring roughly 70% of lost token logits at middle layers through two mechanisms: an adaptive attention takeover they call the Hydra effect, and a drop in negative-feedback erasure from late MLPs.

  • 70% logit restoration: Across middle layers on Counterfact, downstream attention and MLP responses restore approximately 70% of the direct logit contribution lost to ablation.
  • 92% variance explained at Layer 23: At Layer 23 of 32, downstream compensatory change explains 92% of the variance in ablation impact relative to the intact network.
  • No dropout required: The 7B Chinchilla-family model was trained without dropout, stochastic depth, or layer dropout, disproving the hypothesis that dropout causes backup behavior.
  • Imperfect recovery preserves signal: Regression slopes between direct and compensatory effects stay below 1.0 past Layer 13, so total ablation effects shrink rather than vanishing completely.
Why total ablation effect understates a layer’s direct role
1. Intact forward pass
Direct logit contribution

Attention layer l pushes up the top factual token’s logit (measured via RMSNorm-fixed unembedding Delta_unembed).

2. Hydra attention effect
Downstream layer takes over

Ablating layer 18 causes a later attention layer (e.g., layer 20) to boost its own logit write, acting like f(x) = u when x != u.

3. Attenuated MLP erasure
Less negative feedback

Late MLPs normally downregulate the leading logit; with l ablated, their negative write shrinks, masking the lost signal.

Source: McGrath et al. (2023), Sections 2.5, 3.3, and Figure 6.

How It Works

McGrath et al. formalize transformer activations as a structural causal model where the prompt is an exogenous variable u and every layer’s attention output a_t^l and MLP output m_t^l are endogenous variables. This lets them compare two distinct causal quantities at the final token position on 1,209 Counterfact prompts (factual completions such as "Honus Wagner professionally plays the sport of" -> "baseball"):

  • Direct effect (Delta_unembed): Apply the model’s final RMSNorm and unembedding matrix W_U directly to layer l’s output, holding the RMSNorm scale factor sigma(z_t^L) constant at its clean forward-pass value so every layer sums linearly to the output logits.
  • Total effect (Delta_ablate): Replace layer l’s output using resample ablation (patching activations from 15 alternative Counterfact prompts per layer, keeping activations on-distribution rather than zeroing them) and measure how much the centred logit of the top token drops.

Because ablating layer l removes both its direct path to the logits and its inputs to downstream layers, one would expect total ablation damage to be at least as large as Delta_unembed. Across almost all layers of the 32-layer Chinchilla 7B model, the opposite occurs: Delta_unembed exceeds Delta_ablate, and the two measures correlate poorly everywhere except the final layers.

Key Findings

Tracking how every downstream layer’s direct effect shifts (Delta_DE) after ablating layer m reveals two distinct compensatory behaviors:

First, attention layers are loosely coupled except for localized Hydra compensation. Knocking out an active attention layer (such as Layer 18) leaves most later attention layers unchanged, but triggers a specific downstream attention layer (such as Layer 20) to sharply increase its direct contribution to the target token. Second, late MLPs act as erasure / memory-management components. In clean runs, late MLPs negatively regulate the maximum-likelihood token whenever earlier attention layers strongly promote it. When those attention layers are ablated, late MLPs suppress the token far less, partially offsetting the loss.

How self-repair shifts with depth in Chinchilla 7B (1,209 prompts)
Network depthDominant responderMeasured behavior
Early layersAttentionLarge total ablation effect, negligible direct effect; downstream attention dominates compensation.
Middle layers (post-13)Attention + MLPsCombined self-repair restores ~70% of lost logits; regression slope stays below 1.0.
Layer 22 to 23 (of 32)Erasure MLPsPeak linear correlation: compensation explains 92% of downstream Delta_DE variance, driven almost entirely by MLPs.
Final layersMinimal downstream depthFew downstream layers remain, so direct and total ablation effects converge.

Source: McGrath et al. (2023), Sections 4.2 and 6, Figures 7 and 8.

Crucially, the balance between mechanisms flips with depth. Early ablations trigger mostly downstream attention changes; by Layer 22 MLPs overtake attention, and at Layer 23 (where linear regression between direct and compensatory effects hits R^2 = 0.92) almost the entire response comes from attenuated MLP erasure. Follow-up head-level work in GPT-2 Small showed that copy suppression heads explain 39% of self-repair in IOI through an analogous mechanism: remove the upstream copier, and the downstream suppressor stops firing.

Caveats and Builder Takeaway

McGrath et al. intervene at the whole-layer level rather than individual attention heads or sparse directions, leaving open whether Hydra layers also regenerate intermediate features or only patch the final logit. Their experiments cover one 7B model and one narrow factual-recall benchmark (Counterfact), rather than general pretraining text, and leave the training origin of self-repair (conjectured as “natural dropout” from noisy gradient updates or feature superposition) untested.

For teams building automated circuit-discovery pipelines like ACDC or attribution patching, the operational lesson is clear: a low total ablation effect does not prove a component is idle. Because compensation is under 100%, ablation signal survives, but faithful attribution requires checking both direct logit writes and downstream shifts in mediating layers, just as ROME factual editing must account for surrounding layers.