mlsanityData to 14 Oct 2026

Uncovering Intermediate Variables in Transformers using Circuit Probing

arXiv 2311.04354 ↗First posted 7 Nov 2023cs.CLcited by 12

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2020Language Models are Few-Shot Learnerscited by 32,419
  4. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  5. 2021Decision Transformer: Reinforcement Learning via Sequence Modelingcited by 1,546
  6. 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,165
  7. 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,059
  8. 2022Toy Models of Superpositioncited by 971
  9. 2021Ethical and social risks of harm from Language Modelscited by 966
  10. 2022In-context Learning and Induction Headscited by 964
  11. 2021Probing Classifiers: Promises, Shortcomings, and Advancescited by 876
  12. 2023Progress measures for grokking via mechanistic interpretabilitycited by 839
38 more
  1. 2020A Primer in BERTology: What we know about how BERT workscited by 815
  2. 2023Towards Automated Circuit Discovery for Mechanistic Interpretabilitycited by 724
  3. 2019Designing and Interpreting Probes with Control Taskscited by 640
  4. 2022Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasetscited by 629
  5. 2023Faith and Fate: Limits of Transformers on Compositionalitycited by 503
  6. 2020Null It Out: Guarding Protected Attributes by Iterative Nullspace Projectioncited by 455
  7. 2018Gender Bias in Coreference Resolutioncited by 442
  8. 2019What do you learn from context? Probing for sentence structure in contextualized word representationscited by 438
  9. 2022Emergent World Representations: Exploring a Sequence Model Trained on a Synthetic Taskcited by 431
  10. 2021Causal Abstractions of Neural Networkscited by 422
  11. 2019On Measuring Social Biases in Sentence Encoderscited by 398
  12. 2016Assessing the Ability of LSTMs to Learn Syntax-Sensitive Dependenciescited by 354
  13. 2019What BERT is not: Lessons from a new suite of psycholinguistic diagnostics for language modelscited by 320
  14. 2023Emergent Linear Representations in World Models of Self-Supervised Sequence Modelscited by 319
  15. 2023LEACE: Perfect linear concept erasure in closed formcited by 267
  16. 2019Compositionality decomposed: how do neural networks generalise?cited by 265
  17. 2019Analyzing the Structure of Attention in a Transformer Language Modelcited by 243
  18. 2018Targeted Syntactic Evaluation of Language Modelscited by 242
  19. 2020Information-Theoretic Probing with Minimum Description Lengthcited by 232
  20. 2023Finding Alignments Between Interpretable Causal Variables and Distributed Neural Representationscited by 209
  21. 2023How does GPT-2 compute greater-than?: Interpreting mathematical abilities in a pre-trained language modelcited by 202
  22. 2019Assessing BERT's Syntactic Abilitiescited by 192
  23. 2023A Toy Model of Universality: Reverse Engineering How Networks Learn Group Operationscited by 144
  24. 2023Task-Specific Skill Localization in Fine-tuned Language Modelscited by 105
  25. 2023Interpretability at Scale: Identifying Causal Mechanisms in Alpacacited by 103
  26. 2022Linear Adversarial Concept Erasurecited by 101
  27. 2019Winning the Lottery with Continuous Sparsificationcited by 100
  28. 2020Syntactic Structure from Deep Learningcited by 99
  29. 2020Are Neural Nets Modular? Inspecting Functional Modularity Through Differentiable Weight Maskscited by 98
  30. 2023Language Models Implement Simple Word2Vec-style Vector Arithmeticcited by 98
  31. 2019Analyzing and Improving Representations with the Soft Nearest Neighbor Losscited by 95
  32. 2021Can Subnetwork Structure be the Key to Out-of-Distribution Generalization?cited by 75
  33. 2021Low-Complexity Probing via Finding Subnetworkscited by 64
  34. 2023Break It Down: Evidence for Structural Compositionality in Neural Networkscited by 44
  35. 2020Assessing Phrasal Representation and Composition in Transformerscited by 41
  36. 2021What if This Modified That? Syntactic Interventions via Counterfactual Embeddingscited by 39
  37. 2022Is a Modular Architecture Enough?cited by 36
  38. 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

Cited by year (2026 to 14 Oct)

Citing papers per year: 2023: 1; 2024: 5; 2025: 2; 2026: 4.

12 papers.