How does GPT-2 Predict Acronyms? Extracting and Understanding a Circuit via Mechanistic Interpretability
On the map: Mechanistic interpretability → Circuits and mechanistic analysis
Abstract (arXiv)
Transformer-based language models are treated as black-boxes because of their large number of parameters and complex internal interactions, which is a serious safety concern. Mechanistic Interpretability (MI) intends to reverse-engineer neural network behaviors in terms of human-understandable components. In this work, we focus on understanding how GPT-2 Small performs the task of predicting three-letter acronyms. Previous works in the MI field have focused so far on tasks that predict a single token. To the best of our knowledge, this is the first work that tries to mechanistically understand a behavior involving the prediction of multiple consecutive tokens. We discover that the prediction is performed by a circuit composed of 8 attention heads (~5% of the total heads) which we classified in three groups according to their role. We also demonstrate that these heads concentrate the acronym prediction functionality. In addition, we mechanistically interpret the most relevant heads of the circuit and find out that they use positional information which is propagated via the causal mask mechanism. We expect this work to lay the foundation for understanding more complex behaviors involving multiple-token predictions.
Key facts. Cited by 14 papers in the map (data through 14 Oct 2026). Placed in Circuits and mechanistic analysis, one of 13 directions in Mechanistic interpretability. Builds on 11 of its 27 references that are in the map. First posted on arXiv 7 May 2024.
Builds on
11 of 27 references.
Closest ancestors · 2
Same direction, newest first
- 2023Progress measures for grokking via mechanistic interpretability12 Jan
- 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 small1 Nov
Other references · 9
- 2017Attention Is All You Needcited by 60,361
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2016Layer Normalizationcited by 5,669
- 2022Locating and Editing Factual Associations in GPTcited by 2,691
- 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,651
- 2022Toy Models of Superpositioncited by 971
- 2023Multi-step Jailbreaking Privacy Attacks on ChatGPTcited by 333
- 2023How does GPT-2 compute greater-than?: Interpreting mathematical abilities in a pre-trained language modelcited by 202
- 2023Does Circuit Analysis Interpretability Scale? Evidence from Multiple Choice Capabilities in Chinchillacited by 149
Built on by
Citing papers per year: 2024: 5; 2025: 4; 2026: 5.
14 papers.
Sort:
By area:
- 2024Attention Heads of Large Language Models: A Surveycited by 67
- 2024The Quest for the Right Mediator: Surveying Mechanistic Interpretability Through the Lens of Causal Mediation Analysiscited by 24
- 2024Residual Stream Analysis with Multi-Layer SAEscited by 19
- 2024Inferring Functionality of Attention Heads from their Parameterscited by 17
- 2024Detecting and Understanding Vulnerabilities in Language Models via Mechanistic Interpretabilitycited by 13
- 2025Towards Understanding and Improving Refusal in Compressed Models via Mechanistic Interpretabilitycited by 7
- 2026The Story is Not the Science: Execution-Grounded Evaluation of Mechanistic Interpretability Researchcited by 6
- 2025Neuroplasticity and Corruption in Model Mechanisms: A Case Study Of Indirect Object Identificationcited by 3
- 2026Pitfalls in Evaluating Interpretability Agentscited by 2
- 2025Identifying a Circuit for Verb Conjugation in GPT-2cited by 1
- 2026MechRL: Reinforcement Learning Agents Perform Circuit Discovery for Mechanistic Interpretabilitycited by 1
- 2025Investigating Neurons and Heads in Transformer-based LLMs for Typographical Errorscited by 0
- 2026Are We Recovering Mechanisms? Objective-Level Recovery Gaps in Mechanistic Interpretability1 Oct 2026
- 2026S^3martCirc: Self-supervised Smart Circuit Discovery1 Sep 2026
- 2026MechRL: Reinforcement Learning Agents Perform Circuit Discovery for Mechanistic Interpretability25 May 2026
- 2026Pitfalls in Evaluating Interpretability Agents20 Mar 2026
- 2026The Story is Not the Science: Execution-Grounded Evaluation of Mechanistic Interpretability Research5 Feb 2026
- 2025Identifying a Circuit for Verb Conjugation in GPT-227 Jun 2025
- 2025Towards Understanding and Improving Refusal in Compressed Models via Mechanistic Interpretability5 Apr 2025
- 2025Neuroplasticity and Corruption in Model Mechanisms: A Case Study Of Indirect Object Identification27 Feb 2025
- 2025Investigating Neurons and Heads in Transformer-based LLMs for Typographical Errors27 Feb 2025
- 2024Inferring Functionality of Attention Heads from their Parameters16 Dec 2024
- 2024Residual Stream Analysis with Multi-Layer SAEs6 Sep 2024
- 2024Attention Heads of Large Language Models: A Survey5 Sep 2024
- 2024The Quest for the Right Mediator: Surveying Mechanistic Interpretability Through the Lens of Causal Mediation Analysiscited by 24
- 2024Residual Stream Analysis with Multi-Layer SAEscited by 19
- 2024Detecting and Understanding Vulnerabilities in Language Models via Mechanistic Interpretabilitycited by 13
- 2025Towards Understanding and Improving Refusal in Compressed Models via Mechanistic Interpretabilitycited by 7
- 2026The Story is Not the Science: Execution-Grounded Evaluation of Mechanistic Interpretability Researchcited by 6
- 2026S^3martCirc: Self-supervised Smart Circuit Discoverycited by 0
- 2026Are We Recovering Mechanisms? Objective-Level Recovery Gaps in Mechanistic Interpretabilitycited by 0
- 2026Are We Recovering Mechanisms? Objective-Level Recovery Gaps in Mechanistic Interpretability1 Oct 2026
- 2026S^3martCirc: Self-supervised Smart Circuit Discovery1 Sep 2026
- 2026The Story is Not the Science: Execution-Grounded Evaluation of Mechanistic Interpretability Research5 Feb 2026
- 2025Towards Understanding and Improving Refusal in Compressed Models via Mechanistic Interpretability5 Apr 2025
- 2024Residual Stream Analysis with Multi-Layer SAEs6 Sep 2024
- 2024The Quest for the Right Mediator: Surveying Mechanistic Interpretability Through the Lens of Causal Mediation Analysis2 Aug 2024
- 2024Detecting and Understanding Vulnerabilities in Language Models via Mechanistic Interpretability29 Jul 2024
- 2024Attention Heads of Large Language Models: A Surveycited by 67
- 2024Inferring Functionality of Attention Heads from their Parameterscited by 17
- 2025Neuroplasticity and Corruption in Model Mechanisms: A Case Study Of Indirect Object Identificationcited by 3
- 2025Identifying a Circuit for Verb Conjugation in GPT-2cited by 1
- 2025Investigating Neurons and Heads in Transformer-based LLMs for Typographical Errorscited by 0
- 2025Identifying a Circuit for Verb Conjugation in GPT-227 Jun 2025
- 2025Neuroplasticity and Corruption in Model Mechanisms: A Case Study Of Indirect Object Identification27 Feb 2025
- 2025Investigating Neurons and Heads in Transformer-based LLMs for Typographical Errors27 Feb 2025
- 2024Inferring Functionality of Attention Heads from their Parameters16 Dec 2024
- 2024Attention Heads of Large Language Models: A Survey5 Sep 2024
Similar, not cited
Close in wording, no citation either way
- 2024Adaptive Circuit Behavior and Generalization in Mechanistic Interpretability
- 2025Mechanistic Unveiling of Transformer Circuits: Self-Influence as a Key to Model Reasoning
- 2026Mechanistic Interpretability for Neural Networks: Circuits, Sparse Features and Symbolic Reasoning
- 2025Everything, Everywhere, All at Once: Is Mechanistic Interpretability Identifiable?
- 2026Rethinking Circuit Evaluation: Do Circuits Explain Model Errors?
- 2026Explaining the Explainer: Understanding the Inner Workings of Transformer-based Symbolic Regression Models
- 2025From Indirect Object Identification to Syllogisms: Exploring Binary Mechanisms in Transformer Circuits
- 2026Formal Mechanistic Interpretability: Automated Circuit Discovery with Provable Guarantees