Uncovering Intermediate Variables in Transformers using Circuit Probing
Not on the map. Why?
Abstract (arXiv)
Neural network models have achieved high performance on a wide variety of complex tasks, but the algorithms that they implement are notoriously difficult to interpret. It is often necessary to hypothesize intermediate variables involved in a network's computation in order to understand these algorithms. For example, does a language model depend on particular syntactic properties when generating a sentence? Yet, existing analysis tools make it difficult to test hypotheses of this type. We propose a new analysis technique - circuit probing - that automatically uncovers low-level circuits that compute hypothesized intermediate variables. This enables causal analysis through targeted ablation at the level of model parameters. We apply this method to models trained on simple arithmetic tasks, demonstrating its effectiveness at (1) deciphering the algorithms that models have learned, (2) revealing modular structure within a model, and (3) tracking the development of circuits over training. Across these three experiments we demonstrate that circuit probing combines and extends the capabilities of existing methods, providing one unified approach for a variety of analyses. Finally, we demonstrate circuit probing on a real-world use case: uncovering circuits that are responsible for subject-verb agreement and reflexive anaphora in GPT2-Small and Medium.
Key facts. Cited by 12 papers in the map (data through 14 Oct 2026). Builds on 54 of its 69 references that are in the map. First posted on arXiv 7 Nov 2023.
Builds on
54 of 69 references.
References · 54
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2021Decision Transformer: Reinforcement Learning via Sequence Modelingcited by 1,546
- 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,165
- 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,059
- 2022Toy Models of Superpositioncited by 971
- 2021Ethical and social risks of harm from Language Modelscited by 966
- 2022In-context Learning and Induction Headscited by 964
- 2021Probing Classifiers: Promises, Shortcomings, and Advancescited by 876
- 2023Progress measures for grokking via mechanistic interpretabilitycited by 839
38 more
- 2020A Primer in BERTology: What we know about how BERT workscited by 815
- 2023Towards Automated Circuit Discovery for Mechanistic Interpretabilitycited by 724
- 2019Designing and Interpreting Probes with Control Taskscited by 640
- 2022Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasetscited by 629
- 2023Faith and Fate: Limits of Transformers on Compositionalitycited by 503
- 2020Null It Out: Guarding Protected Attributes by Iterative Nullspace Projectioncited by 455
- 2018Gender Bias in Coreference Resolutioncited by 442
- 2019What do you learn from context? Probing for sentence structure in contextualized word representationscited by 438
- 2022Emergent World Representations: Exploring a Sequence Model Trained on a Synthetic Taskcited by 431
- 2021Causal Abstractions of Neural Networkscited by 422
- 2019On Measuring Social Biases in Sentence Encoderscited by 398
- 2016Assessing the Ability of LSTMs to Learn Syntax-Sensitive Dependenciescited by 354
- 2019What BERT is not: Lessons from a new suite of psycholinguistic diagnostics for language modelscited by 320
- 2023Emergent Linear Representations in World Models of Self-Supervised Sequence Modelscited by 319
- 2023LEACE: Perfect linear concept erasure in closed formcited by 267
- 2019Compositionality decomposed: how do neural networks generalise?cited by 265
- 2019Analyzing the Structure of Attention in a Transformer Language Modelcited by 243
- 2018Targeted Syntactic Evaluation of Language Modelscited by 242
- 2020Information-Theoretic Probing with Minimum Description Lengthcited by 232
- 2023Finding Alignments Between Interpretable Causal Variables and Distributed Neural Representationscited by 209
- 2023How does GPT-2 compute greater-than?: Interpreting mathematical abilities in a pre-trained language modelcited by 202
- 2019Assessing BERT's Syntactic Abilitiescited by 192
- 2023A Toy Model of Universality: Reverse Engineering How Networks Learn Group Operationscited by 144
- 2023Task-Specific Skill Localization in Fine-tuned Language Modelscited by 105
- 2023Interpretability at Scale: Identifying Causal Mechanisms in Alpacacited by 103
- 2022Linear Adversarial Concept Erasurecited by 101
- 2019Winning the Lottery with Continuous Sparsificationcited by 100
- 2020Syntactic Structure from Deep Learningcited by 99
- 2020Are Neural Nets Modular? Inspecting Functional Modularity Through Differentiable Weight Maskscited by 98
- 2023Language Models Implement Simple Word2Vec-style Vector Arithmeticcited by 98
- 2019Analyzing and Improving Representations with the Soft Nearest Neighbor Losscited by 95
- 2021Can Subnetwork Structure be the Key to Out-of-Distribution Generalization?cited by 75
- 2021Low-Complexity Probing via Finding Subnetworkscited by 64
- 2023Break It Down: Evidence for Structural Compositionality in Neural Networkscited by 44
- 2020Assessing Phrasal Representation and Composition in Transformerscited by 41
- 2021What if This Modified That? Syntactic Interventions via Counterfactual Embeddingscited by 39
- 2022Is a Modular Architecture Enough?cited by 36
- 2022Gold Doesn't Always Glitter: Spectral Removal of Linear and Nonlinear Guarded Attribute Informationcited by 34
50 most cited of 54 All 54 (JSON)
Built on by
Citing papers per year: 2023: 1; 2024: 5; 2025: 2; 2026: 4.
12 papers.
- 2024A Primer on the Inner Workings of Transformer-based Language Modelscited by 85
- 2024pyvene: A Library for Understanding and Improving PyTorch Models via Interventionscited by 54
- 2024The Quest for the Right Mediator: Surveying Mechanistic Interpretability Through the Lens of Causal Mediation Analysiscited by 24
- 2024Position: An Inner Interpretability Framework for AI Inspired by Lessons from Cognitive Neurosciencecited by 11
- 2025Different types of syntactic agreement recruit the same units within large language modelscited by 8
- 2024Validating Mechanistic Interpretations: An Axiomatic Approachcited by 4
- 2026Modularity is the Bedrock of Natural and Artificial Intelligencecited by 2
- 2026Over-Refusal and Representation Subspaces: A Mechanistic Analysis of Task-Conditioned Refusal in Aligned LLMscited by 2
- 2023Observable Propagation: Uncovering Feature Vectors in Transformerscited by 1
- 2025A Review of Developmental Interpretability in Large Language Modelscited by 1
- 2026Judge Circuits Explain Format-Induced Inconsistency in LLM-as-a-Judgecited by 1
- 2026Building Interpretable Models for Moral Decision-Makingcited by 0
- 2026Judge Circuits Explain Format-Induced Inconsistency in LLM-as-a-Judge15 May 2026
- 2026Over-Refusal and Representation Subspaces: A Mechanistic Analysis of Task-Conditioned Refusal in Aligned LLMs29 Mar 2026
- 2026Modularity is the Bedrock of Natural and Artificial Intelligence21 Feb 2026
- 2026Building Interpretable Models for Moral Decision-Making3 Feb 2026
- 2025Different types of syntactic agreement recruit the same units within large language models3 Dec 2025
- 2025A Review of Developmental Interpretability in Large Language Models19 Aug 2025
- 2024The Quest for the Right Mediator: Surveying Mechanistic Interpretability Through the Lens of Causal Mediation Analysis2 Aug 2024
- 2024Validating Mechanistic Interpretations: An Axiomatic Approach18 Jul 2024
- 2024Position: An Inner Interpretability Framework for AI Inspired by Lessons from Cognitive Neuroscience3 Jun 2024
- 2024A Primer on the Inner Workings of Transformer-based Language Models30 Apr 2024
- 2024pyvene: A Library for Understanding and Improving PyTorch Models via Interventions12 Mar 2024
- 2023Observable Propagation: Uncovering Feature Vectors in Transformers26 Dec 2023