mlsanityData to 14 Oct 2026

Finding Transformer Circuits with Edge Pruning

arXiv 2406.16778 ↗First posted 24 Jun 2024cs.CLcited by 60

Not on the map. Why?

Cited by 34 in Mechanistic interpretability, but placed by its own abstract, which didn’t fit.

Abstract (arXiv)

The path to interpreting a language model often proceeds via analysis of circuits -- sparse computational subgraphs of the model that capture specific aspects of its behavior. Recent work has automated the task of discovering circuits. Yet, these methods have practical limitations, as they rely either on inefficient search algorithms or inaccurate approximations. In this paper, we frame automated circuit discovery as an optimization problem and propose *Edge Pruning* as an effective and scalable solution. Edge Pruning leverages gradient-based pruning techniques, but instead of removing neurons or components, it prunes the edges between components. Our method finds circuits in GPT-2 that use less than half the number of edges compared to circuits found by previous methods while being equally faithful to the full model predictions on standard circuit-finding tasks. Edge Pruning is efficient even with as many as 100K examples, outperforming previous methods in speed and producing substantially better circuits. It also perfectly recovers the ground-truth circuits in two models compiled with Tracr. Thanks to its efficiency, we scale Edge Pruning to CodeLlama-13B, a model over 100x the scale that prior methods operate on. We use this setting for a case study comparing the mechanisms behind instruction prompting and in-context learning. We find two circuits with more than 99.96% sparsity that match the performance of the full model and reveal that the mechanisms in the two settings overlap substantially. Our case study shows that Edge Pruning is a practical and scalable tool for interpretability and sheds light on behaviors that only emerge in large models.

Key facts. Cited by 60 papers in the map (data through 14 Oct 2026). Builds on 32 of its 44 references that are in the map. First posted on arXiv 24 Jun 2024.

Builds on

32 of 44 references.

References · 32

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2023Sparse Autoencoders Find Highly Interpretable Features in Language Modelscited by 1,420
  4. 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,165
  5. 2019Are Sixteen Heads Really Better than One?cited by 816
  6. 2023Towards Automated Circuit Discovery for Mechanistic Interpretabilitycited by 724
  7. 2017Channel Pruning for Accelerating Very Deep Neural Networkscited by 702
  8. 2017Learning Sparse Neural Networks through L0 Regularizationcited by 583
  9. 2023Sheared LLaMA: Accelerating Language Model Pre-training via Structured Pruningcited by 415
  10. 2023Towards Best Practices of Activation Patching in Language Models: Metrics and Methodscited by 359
  11. 2023Finding Alignments Between Interpretable Causal Variables and Distributed Neural Representationscited by 209
  12. 2023Attribution Patching Outperforms Automated Circuit Discoverycited by 209
20 more
  1. 2019Structured Pruning of Large Language Modelscited by 203
  2. 2023How does GPT-2 compute greater-than?: Interpreting mathematical abilities in a pre-trained language modelcited by 202
  3. 2023Localizing Model Behavior with Path Patchingcited by 195
  4. 2021Thinking Like Transformerscited by 184
  5. 2022Structured Pruning Learns Compact and Accurate Modelscited by 170
  6. 2023The Hydra Effect: Emergent Self-repair in Language Model Computationscited by 156
  7. 2023Does Circuit Analysis Interpretability Scale? Evidence from Multiple Choice Capabilities in Chinchillacited by 149
  8. 2024Fine-Tuning Enhances Existing Mechanisms: A Case Study on Entity Trackingcited by 149
  9. 2024Have Faith in Faithfulness: Going Beyond Circuit Overlap When Finding Model Mechanismscited by 149
  10. 2023Mechanistically analyzing the effects of fine-tuning on procedurally defined taskscited by 115
  11. 2024AtP*: An efficient and scalable method for localizing LLM behaviour to componentscited by 111
  12. 2023Tracr: Compiled Transformers as a Laboratory for Interpretabilitycited by 104
  13. 2023Interpretability at Scale: Identifying Causal Mechanisms in Alpacacited by 103
  14. 2023Is This the Subspace You Are Looking for? An Interpretability Illusion for Subspace Activation Patchingcited by 80
  15. 2021Low-Complexity Probing via Finding Subnetworkscited by 64
  16. 2023Learning Transformer Programscited by 41
  17. 2022Pruning-as-Search: Efficient Neural Architecture Search via Channel Pruning and Structural Reparameterizationcited by 32
  18. 2023VISIT: Visualizing and Interpreting the Semantic Information Flow of Transformerscited by 32
  19. 2023Attention Lens: A Tool for Mechanistically Interpreting the Attention Head Information Retrieval Mechanismcited by 22
  20. 2024LM Transparency Tool: Interactive Tool for Analyzing Transformer Language Modelscited by 16

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 8; 2025: 22; 2026: 30.

60 papers.

Sort:

By area:

  1. 2024A Practical Review of Mechanistic Interpretability for Transformer-Based Language Modelscited by 118
  2. 2025Weight-sparse transformers have interpretable circuitscited by 44
  3. 2024Activation Scaling for Steering and Interpreting Language Modelscited by 35
  4. 2024Optimal ablation for interpretabilitycited by 25
  5. 2025Towards Understanding Fine-Tuning Mechanisms of LLMs via Circuit Analysiscited by 20
  6. 2024Geometry of Lightning Self-Attention: Identifiability and Dimensioncited by 16
  7. 2025Mechanistic Interpretability as Statistical Estimation: A Variance Analysiscited by 15
  8. 2024Sheaf Discovery with Joint Computation Graph Pruning and Flexible Granularitycited by 14
  9. 2024Circuit Compositions: Exploring Modular Structures in Transformer-Based Language Modelscited by 11
  10. 2025Are formal and functional linguistic mechanisms dissociated in language models?cited by 11
  11. 2026Formal Mechanistic Interpretability: Automated Circuit Discovery with Provable Guaranteescited by 11
  12. 2025EfficientLLM: Scalable Pruning-Aware Pretraining for Architecture-Agnostic Edge Language Modelscited by 10
38 more
  1. 2025The Validation Gap: A Mechanistic Analysis of How Language Models Compute Arithmetic but Fail to Validate Itcited by 10
  2. 2025Rethinking Circuit Completeness in Language Models: AND, OR, and ADDER Gatescited by 10
  3. 2025Interpretation Meets Safety: A Survey on Interpretation Methods and Tools for Improving LLM Safetycited by 10
  4. 2026All Circuits Lead to Rome: Rethinking Functional Anisotropy in Circuit and Sheaf Discovery for LLMscited by 9
  5. 2026Conditional Co-Ablation: Recovering Self-Repair Backups in Transformer Circuitscited by 9
  6. 2025An explainable transformer circuit for compositional generalizationcited by 8
  7. 2025CLUE: Conflict-guided Localization for LLM Unlearning Frameworkcited by 7
  8. 2025Beyond Components: Singular Vector-Based Interpretability of Transformer Circuitscited by 7
  9. 2025Llama See, Llama Do: A Mechanistic Perspective on Contextual Entrainment and Distraction in LLMscited by 6
  10. 2025Circuit Stability Characterizes Language Model Generalizationcited by 6
  11. 2025Sparse Feature Coactivation Reveals Causal Semantic Modules in Large Language Modelscited by 6
  12. 2025Scaling sparse feature circuit finding for in-context learningcited by 5
  13. 2025Discovering Transformer Circuits via a Hybrid Attribution and Pruning Frameworkcited by 4
  14. 2026Deconstructing Pre-training: Knowledge Attribution Analysis in MoE and Dense Modelscited by 4
  15. 2026SafeSeek: Universal Attribution of Safety Circuits in Language Modelscited by 4
  16. 2024Extracting Interpretable Task-Specific Circuits from Large Language Models for Faster Inferencecited by 3
  17. 2025PAHQ: Accelerating Automated Circuit Discovery through Mixed-Precision Inference Optimizationcited by 3
  18. 2025BlackboxNLP-2025 MIB Shared Task: Exploring Ensemble Strategies for Circuit Localization Methodscited by 2
  19. 2026Circuit Claims Depend on What Is Extracted and How It Is Comparedcited by 2
  20. 2024Skill Path: Unveiling Language Skills from Circuit Graphscited by 1
  21. 2025Tracr-Injection: Distilling Algorithms into Pre-trained Language Modelscited by 1
  22. 2025Findings of the BlackboxNLP 2025 Shared Task: Localizing Circuits and Causal Variables in Language Modelscited by 1
  23. 2026Circuit Fingerprints: How Answer Tokens Encode Their Geometrical Pathcited by 1
  24. 2026Seeing Through Circuits: Faithful Mechanistic Interpretability for Vision Transformerscited by 1
  25. 2026MechRL: Reinforcement Learning Agents Perform Circuit Discovery for Mechanistic Interpretabilitycited by 1
  26. 2026DecodeShare: Tracing the Shared Subspace of LLM Decode-Time Decisionscited by 1
  27. 2026Sparse Weight Decomposition for Efficient Circuit Extractioncited by 1
  28. 2026Matryoshka attribution: Learning to attribute language model outputs to representations and weightscited by 1
  29. 2025Decomposing Prediction Mechanisms for In-Context Recallcited by 0
  30. 2025Multi-Granular Node Pruning for Causal Circuit Discoverycited by 0
  31. 2026Hierarchical Sparse Circuit Extraction from Billion-Parameter Language Models through Scalable Attribution Graph Decompositioncited by 0
  32. 2026Mechanism Shift During Post-training from Autoregressive to Masked Diffusion Language Modelscited by 0
  33. 2026Sparse or Dense? A Mechanistic Estimation of Computation Density in Transformer-based LLMscited by 0
  34. 2026Sparse but not Simpler: A Multi-Level Interpretability Analysis of Vision Transformerscited by 0
  35. 2026Mechanistically Interpreting Compression in Vision-Language Modelscited by 0
  36. 2026Engineering Resource-constrained Software Systems with DNN Components: a Concept-based Pruning Approachcited by 0
  37. 2026Tracing Computation Density in LLMscited by 0
  38. 2026Learning What Matters: Supervising Global Context Pruning with Causal Evidence Setscited by 0

50 most cited of 60 All 60 (JSON)

Similar, not cited

Close in wording, no citation either way

  1. 2024Efficient Automated Circuit Discovery in Transformers using Contextual Decomposition
  2. 2026CircuitProbe: Predicting Reasoning Circuits in Transformers via Stability Zone Detection
  3. 2026Universal Transformers for Circuit Computations: Perfect Length Generalization in Tiny Transformers
  4. 2025EAP-GP: Mitigating Saturation Effect in Gradient-based Automated Circuit Identification
  5. 2023Zero-TPrune: Zero-Shot Token Pruning through Leveraging of the Attention Graph in Pre-Trained Transformers
  6. 2024Automatically Identifying Local and Global Circuits with Linear Computation Graphs
  7. 2025Position-aware Automatic Circuit Discovery
  8. 2025Attribution-Guided Pruning for Insight and Control: Circuit Discovery and Targeted Correction in Small-scale LLMs