Circuit Compositions: Exploring Modular Structures in Transformer-Based Language Models
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
- 2017Attention Is All You Needcited by 59,932
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2022Locating and Editing Factual Associations in GPTcited by 2,609
- 2020GLU Variants Improve Transformercited by 1,724
- 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,130
- 2022Toy Models of Superpositioncited by 928
- 2023Progress measures for grokking via mechanistic interpretabilitycited by 822
- 2020AdapterFusion: Non-Destructive Task Composition for Transfer Learningcited by 780
- 2023Towards Automated Circuit Discovery for Mechanistic Interpretabilitycited by 700
- 2017Learning Sparse Neural Networks through L0 Regularizationcited by 571
- 2023Dissecting Recall of Factual Associations in Auto-Regressive Language Modelscited by 512
- 2019The State of Sparsity in Deep Neural Networkscited by 471
22 more
- 2023Towards Best Practices of Activation Patching in Language Models: Metrics and Methodscited by 328
- 2013Direct and Indirect Effectscited by 276
- 2019Compositionality decomposed: how do neural networks generalise?cited by 264
- 2020AdapterDrop: On the Efficiency of Adapters in Transformerscited by 223
- 2023How does GPT-2 compute greater-than?: Interpreting mathematical abilities in a pre-trained language modelcited by 199
- 2023Attribution Patching Outperforms Automated Circuit Discoverycited by 196
- 2021Thinking Like Transformerscited by 182
- 2021Composable Sparse Fine-Tuning for Cross-Lingual Transfercited by 144
- 2024Have Faith in Faithfulness: Going Beyond Circuit Overlap When Finding Model Mechanismscited by 144
- 2024Fine-Tuning Enhances Existing Mechanisms: A Case Study on Entity Trackingcited by 140
- 2023Circuit Component Reuse Across Tasks in Transformer Language Modelscited by 105
- 2019Winning the Lottery with Continuous Sparsificationcited by 99
- 2023Tracr: Compiled Transformers as a Laboratory for Interpretabilitycited by 99
- 2020Are Neural Nets Modular? Inspecting Functional Modularity Through Differentiable Weight Maskscited by 97
- 2024A Primer on the Inner Workings of Transformer-based Language Modelscited by 83
- 2016Training Sparse Neural Networkscited by 73
- 2021Low-Complexity Probing via Finding Subnetworkscited by 63
- 2024Finding Transformer Circuits with Edge Pruningcited by 58
- 2023Break It Down: Evidence for Structural Compositionality in Neural Networkscited by 44
- 2023Identifying and Adapting Transformer-Components Responsible for Gender Bias in an English Language Modelcited by 22
- 2018Interpreting Layered Neural Networks via Hierarchical Modular Representationcited by 11
- 2022What Changed? Investigating Debiasing Methods using Causal Mediation Analysiscited by 7
Built on by
Citing papers per year: 2025: 2; 2026: 7.
9 papers.
- 2025Same Task, Different Circuits: Disentangling Modality-Specific Mechanisms in VLMscited by 35
- 2025Discovering Transformer Circuits via a Hybrid Attribution and Pruning Frameworkcited by 4
- 2026Differentiable Faithfulness Alignment for Cross-Model Circuit Transfercited by 3
- 2026What Happens Inside Agent Memory? Circuit Analysis from Emergence to Diagnosiscited by 2
- 2026How Much Do Circuits Tell Us? Measuring the Consistency and Specificity of Language Model Circuitscited by 2
- 2026Not Just RLHF: Why Alignment Alone Won't Fix Multi-Agent Sycophancycited by 2
- 2026Circuit Claims Depend on What Is Extracted and How It Is Comparedcited by 2
- 2026Seeing Through Circuits: Faithful Mechanistic Interpretability for Vision Transformerscited by 1
- 2026CORTEX: Learning to Share and Specialize in Dense Language Modelscited by 0
- 2026CORTEX: Learning to Share and Specialize in Dense Language Models28 Sep 2026
- 2026Circuit Claims Depend on What Is Extracted and How It Is Compared21 Jul 2026
- 2026Not Just RLHF: Why Alignment Alone Won't Fix Multi-Agent Sycophancy13 May 2026
- 2026How Much Do Circuits Tell Us? Measuring the Consistency and Specificity of Language Model Circuits8 May 2026
- 2026What Happens Inside Agent Memory? Circuit Analysis from Emergence to Diagnosis5 May 2026
- 2026Differentiable Faithfulness Alignment for Cross-Model Circuit Transfer27 Apr 2026
- 2026Seeing Through Circuits: Faithful Mechanistic Interpretability for Vision Transformers15 Apr 2026
- 2025Discovering Transformer Circuits via a Hybrid Attribution and Pruning Framework28 Sep 2025
- 2025Same Task, Different Circuits: Disentangling Modality-Specific Mechanisms in VLMs10 Jun 2025