mlsanityData to 14 Oct 2026

Emergence of Minimal Circuits for Indirect Object Identification in Attention-Only Transformers

arXiv 2510.25013 ↗First posted 28 Oct 2025cs.CL cs.AI cs.LGcited by 1

On the map: Mechanistic interpretability → Circuits and mechanistic analysis

Abstract (arXiv)

Mechanistic interpretability aims to reverse-engineer large language models (LLMs) into human-understandable computational circuits. However, the complexity of pretrained models often obscures the minimal mechanisms required for specific reasoning tasks. In this work, we train small, attention-only transformers from scratch on a symbolic version of the Indirect Object Identification (IOI) task, a benchmark for studying coreference-like reasoning in transformers. Surprisingly, a single-layer model with only two attention heads achieves perfect IOI accuracy, despite lacking MLPs and normalization layers. Through residual stream decomposition, spectral analysis, and embedding interventions, we find that the two heads specialize into additive and contrastive subcircuits that jointly implement IOI resolution. Furthermore, we show that a two-layer, one-head model composes information from the previous layer primarily through query-key interactions. These results demonstrate that task-specific training induces highly interpretable, minimal circuits, offering a controlled testbed for probing the computational foundations of transformer reasoning.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Circuits and mechanistic analysis, one of 13 directions in Mechanistic interpretability. Builds on 15 of its 30 references that are in the map. First posted on arXiv 28 Oct 2025.

Builds on

15 of 30 references.

Closest ancestors · 5

Same direction, newest first

  1. 2024Mechanistic Interpretability for AI Safety -- A Review22 Apr
  2. 2023Towards Automated Circuit Discovery for Mechanistic Interpretability28 Apr
  3. 2023A Toy Model of Universality: Reverse Engineering How Networks Learn Group Operations6 Feb
  4. 2023Progress measures for grokking via mechanistic interpretability12 Jan
  5. 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 small1 Nov

Other references · 10

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
  4. 2023GPT-4 Technical Reportcited by 18,396
  5. 2024The Llama 3 Herd of Modelscited by 14,715
  6. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  7. 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
  8. 2017Super-Convergence: Very Fast Training of Neural Networks Using Large Learning Ratescited by 199
  9. 2024A Mechanistic Analysis of a Transformer Trained on a Symbolic Multi-Step Reasoning Taskcited by 49
  10. 2024Towards Empirical Interpretation of Internal Circuits and Properties in Grokked Transformers on Modular Polynomialscited by 14

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2025From Indirect Object Identification to Syllogisms: Exploring Binary Mechanisms in Transformer Circuits
  2. 2023Circuit Component Reuse Across Tasks in Transformer Language Models
  3. 2025Beyond Components: Singular Vector-Based Interpretability of Transformer Circuits
  4. 2026To See the Unseen: on the Generalization Ability of Transformers in Symbolic Reasoning
  5. 2026Finding Interpretable Prompt-Specific Circuits in Language Models
  6. 2025Mechanistic Unveiling of Transformer Circuits: Self-Influence as a Key to Model Reasoning
  7. 2026Fully Interpretable Minimal Transformers: From Geometry to Algorithm
  8. 2024Investigating the Indirect Object Identification circuit in Mamba