mlsanityData to 7 Oct 2026

Circuit Compositions: Exploring Modular Structures in Transformer-Based Language Models

arXiv 2410.01434 ↗First posted 2 Oct 2024cs.LG cs.CLcited by 9

Not on the map. Why?

Abstract (arXiv)

A fundamental question in interpretability research is to what extent neural networks, particularly language models, implement reusable functions through subnetworks that can be composed to perform more complex tasks. Recent advances in mechanistic interpretability have made progress in identifying textitcircuits, which represent the minimal computational subgraphs responsible for a model's behavior on specific tasks. However, most studies focus on identifying circuits for individual tasks without investigating how functionally similar circuits textitrelate to each other. To address this gap, we study the modularity of neural networks by analyzing circuits for highly compositional subtasks within a transformer-based language model. Specifically, given a probabilistic context-free grammar, we identify and compare circuits responsible for ten modular string-edit operations. Our results indicate that functionally similar circuits exhibit both notable node overlap and cross-task faithfulness. Moreover, we demonstrate that the circuits identified can be reused and combined through set operations to represent more complex functional model capabilities.

Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Builds on 34 of its 50 references that are in the map. First posted on arXiv 2 Oct 2024.

Builds on

34 of 50 references.

References · 34

  1. 2017Attention Is All You Needcited by 59,932
  2. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  3. 2022Locating and Editing Factual Associations in GPTcited by 2,609
  4. 2020GLU Variants Improve Transformercited by 1,724
  5. 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,130
  6. 2022Toy Models of Superpositioncited by 928
  7. 2023Progress measures for grokking via mechanistic interpretabilitycited by 822
  8. 2020AdapterFusion: Non-Destructive Task Composition for Transfer Learningcited by 780
  9. 2023Towards Automated Circuit Discovery for Mechanistic Interpretabilitycited by 700
  10. 2017Learning Sparse Neural Networks through L0 Regularizationcited by 571
  11. 2023Dissecting Recall of Factual Associations in Auto-Regressive Language Modelscited by 512
  12. 2019The State of Sparsity in Deep Neural Networkscited by 471
22 more
  1. 2023Towards Best Practices of Activation Patching in Language Models: Metrics and Methodscited by 328
  2. 2013Direct and Indirect Effectscited by 276
  3. 2019Compositionality decomposed: how do neural networks generalise?cited by 264
  4. 2020AdapterDrop: On the Efficiency of Adapters in Transformerscited by 223
  5. 2023How does GPT-2 compute greater-than?: Interpreting mathematical abilities in a pre-trained language modelcited by 199
  6. 2023Attribution Patching Outperforms Automated Circuit Discoverycited by 196
  7. 2021Thinking Like Transformerscited by 182
  8. 2021Composable Sparse Fine-Tuning for Cross-Lingual Transfercited by 144
  9. 2024Have Faith in Faithfulness: Going Beyond Circuit Overlap When Finding Model Mechanismscited by 144
  10. 2024Fine-Tuning Enhances Existing Mechanisms: A Case Study on Entity Trackingcited by 140
  11. 2023Circuit Component Reuse Across Tasks in Transformer Language Modelscited by 105
  12. 2019Winning the Lottery with Continuous Sparsificationcited by 99
  13. 2023Tracr: Compiled Transformers as a Laboratory for Interpretabilitycited by 99
  14. 2020Are Neural Nets Modular? Inspecting Functional Modularity Through Differentiable Weight Maskscited by 97
  15. 2024A Primer on the Inner Workings of Transformer-based Language Modelscited by 83
  16. 2016Training Sparse Neural Networkscited by 73
  17. 2021Low-Complexity Probing via Finding Subnetworkscited by 63
  18. 2024Finding Transformer Circuits with Edge Pruningcited by 58
  19. 2023Break It Down: Evidence for Structural Compositionality in Neural Networkscited by 44
  20. 2023Identifying and Adapting Transformer-Components Responsible for Gender Bias in an English Language Modelcited by 22
  21. 2018Interpreting Layered Neural Networks via Hierarchical Modular Representationcited by 11
  22. 2022What Changed? Investigating Debiasing Methods using Causal Mediation Analysiscited by 7

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 2; 2026: 7.

9 papers.