Open Interpretability Models Contributors Research Posts About

The Hydra Effect: Emergent Self-repair in Language Model Computations

Source

Citation. Thomas McGrath, Matthew Rahtz, Janos Kramár, Vladimir Mikulik and Shane Legg, of Google DeepMind. "The Hydra Effect: Emergent Self-repair in Language Model Computations". arXiv:2307.15771, version 1 of 28 July 2023, the only version. Preprint, no venue given. The paper links no code and states no funding.

Mismatch. None in the citation. Section 2.5.2 calls its own evidence on erasure "largely anecdotal", while the abstract states the erasure function without that caveat.

Status. Used. The causal harness freezes the outputs of later MLPs when it patches a unit, to block self-repair (openinterpretability/harness/patcher.py, the hydra_mitigated field of core/causal.py, and docs/PROTOCOL.md). papers/default-on-poles cites the paper for compensation by later layers.

Read. On 2026-11-20 a web-fetch subagent read the abstract page and the HTML of version 1 for this page's author, a model (Claude Opus 5.5). It read the whole text in the source's own words, in two fetches: Sections 1 to 6, Appendix A, the references and every figure caption. The figures themselves are images, so no value on this page is read off a plot.

Summary

Claim. When one attention layer of a language model is ablated, a later attention layer takes over part of its function. The authors call this the Hydra effect. Late MLP layers also push down the most likely token, and they push less when an attention layer upstream is ablated. Both happen in a model trained without dropout.

Method.

Findings, as the source reports them.

Setting Result
Which layers compensate (abstract, Section 1) Attention: "another later layer appears to take over its function"
Late MLPs (abstract, Section 2.5.2) They "downregulate the maximum-likelihood token", less so when the promoting attention layer is ablated
Layer 23 of 32 (Section 4.2) The compensatory response explains 92% of the variance in downstream changes. There, most of the response is in the erasure MLPs
Slope of the response (Section 4.2) Below 1 at every layer past 13, so compensation never restores the output in full
Middle layers (Section 6) Compensation and reduced erasure together restore about 70% of the drop in the token's logit
Early layers (Section 4.2) Large total effects, almost no direct effect
Dropout (abstract, Section 6) The model was trained with no dropout, which the authors say rules out dropout as the cause

Where the claims go beyond the evidence

Use in this repo