Explorations of Self-Repair in Language Models

Cody Rushing, Neel Nanda
2/23/2024
cs.LGcs.AIcs.CL

No official code found. Best implementation: starship006/backup_research (9 stars, last commit 2025-05-31).

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.

View on arXivView PDF

Code Implementations(1)

Interpretability Research into the Self-Repair phenomena in Transformer Models; Accepted to ICML 2024; Accepted to SeT LLM @ ICLR 2024 Workshop | Oral

92Shell, PythonAug 8, 20231 years ago

Similar Papers

Cite this paper

@article{rushing2024explorations,
  title  = {Explorations of Self-Repair in Language Models},
  author = {Cody Rushing and Neel Nanda},
  year   = {2024},
  eprint = {2402.15390},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.15390v2},
  journal = {ICML 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.15390.svg)](https://codeofpaper.com/paper/2402.15390)

Discussion