atlas

Research map / Large language models / Language, safety and interpretability

Explorations of Self-Repair in Language Models

ICML 2024 · Large language models › Language, safety and interpretability · approach: Reasoning mechanisms and failure modes · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Shows that attention-head self-repair (downstream compensation after resample-ablating a head) occurs across the full pretraining distribution in many model families, attributes part of it to LayerNorm scale changes and sparse anti-erasure MLP neurons, and offers the Iterative Inference hypothesis as a speculative explanation.

Problem

Ablation-based interpretability metrics can be misleading because downstream components compensate for ablated components (self-repair); prior evidence was limited to narrow distributions or whole-layer ablations.

Approach

Measures self-repair of individual attention heads across the full pretraining distribution (The Pile) rather than narrow tasks, identifies LayerNorm scaling-factor changes as a non-trivial self-repair mechanism, and localizes MLP anti-erasure to sparse sets of neurons.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Resample-ablate individual attention headsPythia models and other model families and sizes · Full pretraining distribution; The Pileself-repair of attention-head direct effectsHelped
Resample-ablate individual attention headsAttention heads across models · Full pretraining distribution; The Pilecompleteness and consistency of self-repairMixed
Allow the final LayerNorm scaling factor to change during head ablationAblated attention heads · The Pileself-repair of direct effects: around 30%Helped
Use mean ablation instead of resample ablation (ablation)L11H2 in Pythia-160M · The Pile, top 2% of tokens by direct effecttokens with LayerNorm scaling ratio greater than 1: 90.66% -> 98.75%Helped
Use zero ablation instead of resample ablation (ablation)L11H2 in Pythia-160M · The Pile, top 2% of tokens by direct effecttokens with LayerNorm scaling ratio greater than 1: 90.66% -> 100%Helped
Zero-ablate a head rather than resample-ablate it (ablation)Attention heads with positive direct effect · The Pilelogit differenceMixed
Freeze all downstream components, including the LayerNorm normalization factor (ablation)Ablated attention heads · The Pilerecovered logit differenceHurt
Remove an upstream head that induces downstream MLP erasureSparse erasure neurons in the final MLP layer · The Pileself-repair of the head's direct effectHelped
Resample-ablate L10H11Final-layer neurons in Pythia-160M · The Piledirect effect of the top self-repairing neuronHelped
Add the head's output back into the residual stream that feeds into the headL21H1 in GPT2-Medium · The Pilehead direct effectHurt

Surprising findings

Limitations

Experimental setup

Datasets: The Pile

Benchmarks: The Pile

Metrics: logit difference of correct next token direct effect self-repair (delta logit minus delta direct effect) LayerNorm scale ratio fraction of direct effect self-repaired

Baselines: zero ablation mean ablation

Builds on: Indirect Object Identification circuit analysis Hydra Effect Copy Suppression MLP Erasure Iterative Inference hypothesis

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy