Lune

ACL2025Top-tier venue

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

Philipp Mondorf, Sondre Wold, Barbara Plank

Abstract

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 circuits\textit{circuits}, 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 relate\textit{relate} 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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

11 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • On Relation-Specific Neurons in Large Language Models cites Locating and Editing Factual Associations in GPT
  • On Relation-Specific Neurons in Large Language Models cites Investigating Gender Bias in Language Models Using Causal Mediation Analysis
  • Interpreting and Enhancing Emotional Circuits in Large Vision-Language Models via Cross-Modal Information Flow cites Same Task, Different Circuits: Disentangling Modality-Specific Mechanisms in VLMs
  • Towards Automated Circuit Discovery for Mechanistic Interpretability cites Locating and Editing Factual Associations in GPT
  • Locating and Editing Factual Associations in GPT cites Investigating Gender Bias in Language Models Using Causal Mediation Analysis
  • Same Task, Different Circuits: Disentangling Modality-Specific Mechanisms in VLMs cites Investigating Gender Bias in Language Models Using Causal Mediation Analysis
  • Sheaf Discovery with Joint Computation Graph Pruning and Flexible Granularity cites Towards Automated Circuit Discovery for Mechanistic Interpretability
  • Sheaf Discovery with Joint Computation Graph Pruning and Flexible Granularity cites Locating and Editing Factual Associations in GPT
  • Sheaf Discovery with Joint Computation Graph Pruning and Flexible Granularity cites Investigating Gender Bias in Language Models Using Causal Mediation Analysis
  • Sheaf Discovery with Joint Computation Graph Pruning and Flexible Granularity cites Winning the Lottery with Continuous Sparsification
  • The Validation Gap: A Mechanistic Analysis of How Language Models Compute Arithmetic but Fail to Validate It cites Towards Automated Circuit Discovery for Mechanistic Interpretability
  • The Validation Gap: A Mechanistic Analysis of How Language Models Compute Arithmetic but Fail to Validate It cites Locating and Editing Factual Associations in GPT
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers11

  1. Same Task, Different Circuits: Disentangling Modality-Specific Mechanisms in VLMsYaniv Nikankin, Dana Arad, Yossi Gandelsman, Yonatan BelinkovNeurIPS 2025 · 37 citations
  2. Sheaf Discovery with Joint Computation Graph Pruning and Flexible GranularityLei Yu, Jingcheng Niu, Zining Zhu, Xi Chen et al.EMNLP 2025 · 11 citations
  3. The Validation Gap: A Mechanistic Analysis of How Language Models Compute Arithmetic but Fail to Validate ItLeonardo Bertolazzi, Philipp Mondorf, Barbara Plank, Raffaella BernardiEMNLP 2025 · 8 citations
  4. On Relation-Specific Neurons in Large Language ModelsYihong Liu, Runsheng Chen, Lea Hirlimann, Ahmad Dawar Hakimi et al.EMNLP 2025
  5. Interpreting and Enhancing Emotional Circuits in Large Vision-Language Models via Cross-Modal Information FlowChengsheng Zhang, Chenghao Sun, Zhining Xie, Xinmei TianICML 2026

Builds on16

  1. Locating and Editing Factual Associations in GPTKevin Meng, David Bau, Alex Andonian, Yonatan BelinkovNeurIPS 2022 · 3,415 citations
  2. Towards Automated Circuit Discovery for Mechanistic InterpretabilityArthur Conmy, Augustine N. Mavor-Parker, Aengus Lynch, Stefan Heimersheim et al.NeurIPS 2023 · 861 citations
  3. Investigating Gender Bias in Language Models Using Causal Mediation AnalysisJesse Vig, Sebastian Gehrmann, Yonatan Belinkov, Sharon Qian et al.NeurIPS 2020 · 851 citations
  4. Thinking Like TransformersGail Weiss, Yoav Goldberg, Eran YahavICML 2021 · 183 citations
  5. Winning the Lottery with Continuous SparsificationPedro Savarese, Hugo Silva, Michael MaireNeurIPS 2020 · 162 citations

Related papers

  1. Towards Interpretable Sequence Continuation: Analyzing Shared Circuits in Large Language ModelsMichael Lan, Philip Torr, Fazl BarezEMNLP 2024 · 1 citation
  2. Sparse Feature Circuits: Discovering and Editing Interpretable Causal Graphs in Language ModelsSamuel Marks, Can Rager, Eric J. Michaud, Yonatan Belinkov et al.ICLR 2025
  3. Towards Global-level Mechanistic Interpretability: A Perspective of Modular Circuits of Large Language ModelsYinhan He, Wendy Zheng, Yushun Dong, Yaochen Zhu et al.ICML 2025
  4. Efficient Automated Circuit Discovery in Transformers using Contextual DecompositionAliyah R. Hsu, Georgia Zhou, Yeshwanth Cherapanamjeri, Yaxuan Huang et al.ICLR 2025
  5. Beyond Components: Singular Vector-Based Interpretability of Transformer CircuitsAreeb Ahmad, Abhinav Joshi, Ashutosh ModiNeurIPS 2025 · 9 citations
Dusk over the sea between two cliffs drawn in fine vertical lines