Lune

ICML2024Top-tier venue

Explorations of Self-Repair in Language Models

Cody Rushing, Neel Nanda

Abstract

Prior interpretability research studying narrow distributions has preliminarily identified self-repair, a phenomena where if components in large language models are ablated, later components will change their behavior to compensate. Our work builds off this past literature, demonstrating that self-repair exists on a variety of models families and sizes when ablating individual attention heads on the full training distribution. We further show that on the full training distribution self-repair is imperfect, as the original direct effect of the head is not fully restored, and noisy, since the degree of self-repair varies significantly across different prompts (sometimes overcorrecting beyond the original effect). We highlight two different mechanisms that contribute to self-repair, including changes in the final LayerNorm scaling factor and sparse sets of neurons implementing Anti-Erasure. We additionally discuss the implications of these results for interpretability practitioners and close with a more speculative discussion on the mystery of why self-repair occurs in these models at all, highlighting evidence for the Iterative Inference hypothesis in language models, a framework that predicts self-repair.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

11 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Towards Automated Circuit Discovery for Mechanistic Interpretability cites Locating and Editing Factual Associations in GPT
  • Towards Automated Circuit Discovery for Mechanistic Interpretability cites Progress measures for grokking via mechanistic interpretability
  • LLM Circuit Analyses Are Consistent Across Training and Scale cites Towards Automated Circuit Discovery for Mechanistic Interpretability
  • LLM Circuit Analyses Are Consistent Across Training and Scale cites Locating and Editing Factual Associations in GPT
  • LLM Circuit Analyses Are Consistent Across Training and Scale cites Progress measures for grokking via mechanistic interpretability
  • LLM Circuit Analyses Are Consistent Across Training and Scale cites Pythia: A Suite for Analyzing Large Language Models Across Training and Scaling
  • LLM Circuit Analyses Are Consistent Across Training and Scale cites Successor Heads: Recurring, Interpretable Attention Heads In The Wild
  • Optimal ablation for interpretability cites Towards Automated Circuit Discovery for Mechanistic Interpretability
  • Optimal ablation for interpretability cites Locating and Editing Factual Associations in GPT
  • Successor Heads: Recurring, Interpretable Attention Heads In The Wild cites Towards Automated Circuit Discovery for Mechanistic Interpretability
  • Successor Heads: Recurring, Interpretable Attention Heads In The Wild cites Progress measures for grokking via mechanistic interpretability
  • LLM Layers Immediately Correct Each Other cites Locating and Editing Factual Associations in GPT
  • LLM Layers Immediately Correct Each Other cites Remarkable Robustness of LLMs: Stages of Inference?
  • Structural Inference: Interpreting Small Language Models with Susceptibilities cites LLM Circuit Analyses Are Consistent Across Training and Scale
  • Structural Inference: Interpreting Small Language Models with Susceptibilities cites Progress measures for grokking via mechanistic interpretability
  • Structural Inference: Interpreting Small Language Models with Susceptibilities cites Pythia: A Suite for Analyzing Large Language Models Across Training and Scaling
  • Remarkable Robustness of LLMs: Stages of Inference? cites Locating and Editing Factual Associations in GPT
  • Remarkable Robustness of LLMs: Stages of Inference? cites Successor Heads: Recurring, Interpretable Attention Heads In The Wild
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers11

  1. LLM Circuit Analyses Are Consistent Across Training and ScaleCurt Tigges, Michael Hanna, Qinan Yu, Stella BidermanNeurIPS 2024 · 71 citations
  2. Optimal ablation for interpretabilityMaximilian Li, Lucas JansonNeurIPS 2024 · 32 citations
  3. Structural Inference: Interpreting Small Language Models with SusceptibilitiesGarrett Baker, George Wang, Jesse Hoogland, Vinayak Pathak et al.ICLR 2026 · 11 citations
  4. LLM Layers Immediately Correct Each OtherArjun Patrawala, Jiahai Feng, Erik Jones, Jacob SteinhardtNeurIPS 2025 · 5 citations
  5. Remarkable Robustness of LLMs: Stages of Inference?Vedang Lad, Jin Hwa Lee, Wes Gurnee, Max TegmarkNeurIPS 2025 · 5 citations

Builds on8

  1. Locating and Editing Factual Associations in GPTKevin Meng, David Bau, Alex Andonian, Yonatan BelinkovNeurIPS 2022 · 3,415 citations
  2. Pythia: A Suite for Analyzing Large Language Models Across Training and ScalingStella Biderman, Hailey Schoelkopf, Quentin Gregory Anthony, Herbie Bradley et al.ICML 2023 · 1,822 citations
  3. Towards Automated Circuit Discovery for Mechanistic InterpretabilityArthur Conmy, Augustine N. Mavor-Parker, Aengus Lynch, Stefan Heimersheim et al.NeurIPS 2023 · 861 citations
  4. Successor Heads: Recurring, Interpretable Attention Heads In The WildRhys Gould, Euan Ong, George Ogden, Arthur ConmyICLR 2024 · 75 citations
  5. Progress measures for grokking via mechanistic interpretabilityNeel Nanda, Lawrence Chan, Tom Lieberum, Jess Smith et al.ICLR 2023 · 54 citations

Related papers

  1. Small Transformers Don’t Need LayerNorm at Inference Time: Scaling LayerNorm Removal to GPT-2 XL and Implications for Mechanistic InterpretabilityLuca Baroni, Galvin Khara, Joachim Schaeffer, Marat Subkhankulov et al.ICLR 2026 · 8 citations
  2. Interpreting the Repeated Token Phenomenon in Large Language ModelsItay Yona, Ilia Shumailov, Jamie Hayes, Yossi GandelsmanICML 2025
  3. Mechanisms of Prompt-Induced Hallucination in Vision-Language ModelsWilliam Rudman, Michal Golovanevsky, Dana Arad, Yonatan Belinkov et al.ACL 2026 · 4 citations
  4. Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 SmallKevin Ro Wang, Alexandre Variengien, Arthur Conmy, Buck Shlegeris et al.ICLR 2023 · 50 citations
  5. Cognitive Mirrors: Exploring the Diverse Functional Roles of Attention Heads in LLM ReasoningXueqi Ma, Jun Wang, Yanbei Jiang, Sarah M. Erfani et al.NeurIPS 2025 · 5 citations
Dusk over the sea between two cliffs drawn in fine vertical lines