Lune

NeurIPS2024顶会

Finding Transformer Circuits With Edge Pruning

Adithya Bhaskar, Alexander Wettig, Dan Friedman, Danqi Chen

摘要

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.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 30 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Sparse Autoencoders Find Highly Interpretable Features in Language Models 引用了 Towards Automated Circuit Discovery for Mechanistic Interpretability
  • Sparse Autoencoders Find Highly Interpretable Features in Language Models 引用了 Investigating Gender Bias in Language Models Using Causal Mediation Analysis
  • Optimal ablation for interpretability 引用了 Towards Automated Circuit Discovery for Mechanistic Interpretability
  • Optimal ablation for interpretability 引用了 Investigating Gender Bias in Language Models Using Causal Mediation Analysis
  • Mechanistic Interpretability as Statistical Estimation: A Variance Analysis 引用了 Towards Automated Circuit Discovery for Mechanistic Interpretability
  • Mechanistic Interpretability as Statistical Estimation: A Variance Analysis 引用了 Sheaf Discovery with Joint Computation Graph Pruning and Flexible Granularity
  • Sheaf Discovery with Joint Computation Graph Pruning and Flexible Granularity 引用了 Sparse Autoencoders Find Highly Interpretable Features in Language Models
  • Sheaf Discovery with Joint Computation Graph Pruning and Flexible Granularity 引用了 Towards Automated Circuit Discovery for Mechanistic Interpretability
  • Sheaf Discovery with Joint Computation Graph Pruning and Flexible Granularity 引用了 Investigating Gender Bias in Language Models Using Causal Mediation Analysis
  • Rethinking Circuit Completeness in Language Models: AND, OR, and ADDER Gates 引用了 Towards Automated Circuit Discovery for Mechanistic Interpretability
  • Rethinking Circuit Completeness in Language Models: AND, OR, and ADDER Gates 引用了 Investigating Gender Bias in Language Models Using Causal Mediation Analysis
  • Rethinking Circuit Completeness in Language Models: AND, OR, and ADDER Gates 引用了 Knowledge Circuits in Pretrained Transformers
  • Knowledge Circuits in Pretrained Transformers 引用了 Sparse Autoencoders Find Highly Interpretable Features in Language Models
  • Knowledge Circuits in Pretrained Transformers 引用了 Towards Automated Circuit Discovery for Mechanistic Interpretability
  • Knowledge Circuits in Pretrained Transformers 引用了 Investigating Gender Bias in Language Models Using Causal Mediation Analysis
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper30

  1. Knowledge Circuits in Pretrained TransformersYunzhi Yao, Ningyu Zhang, Zekun Xi, Mengru Wang 等NeurIPS 2024 · 71 次引用
  2. Optimal ablation for interpretabilityMaximilian Li, Lucas JansonNeurIPS 2024 · 32 次引用
  3. Mechanistic Interpretability as Statistical Estimation: A Variance AnalysisMaxime Méloux, François Portet, Maxime PeyrardICML 2026 · 13 次引用
  4. Sheaf Discovery with Joint Computation Graph Pruning and Flexible GranularityLei Yu, Jingcheng Niu, Zining Zhu, Xi Chen 等EMNLP 2025 · 11 次引用
  5. Rethinking Circuit Completeness in Language Models: AND, OR, and ADDER GatesHang Chen, Jiaying Zhu, Xinyu Yang, Wenya WangNeurIPS 2025 · 11 次引用

它引用的 Paper21

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
  2. Sparse Autoencoders Find Highly Interpretable Features in Language ModelsRobert Huben, Hoagy Cunningham, Logan Riggs Smith, Aidan Ewart 等ICLR 2024 · 1,072 次引用
  3. Towards Automated Circuit Discovery for Mechanistic InterpretabilityArthur Conmy, Augustine N. Mavor-Parker, Aengus Lynch, Stefan Heimersheim 等NeurIPS 2023 · 861 次引用
  4. Investigating Gender Bias in Language Models Using Causal Mediation AnalysisJesse Vig, Sebastian Gehrmann, Yonatan Belinkov, Sharon Qian 等NeurIPS 2020 · 851 次引用
  5. Sheared LLaMA: Accelerating Language Model Pre-training via Structured PruningMengzhou Xia, Tianyu Gao, Zhiyuan Zeng, Danqi ChenICLR 2024 · 453 次引用

相关 Paper

  1. Weight-sparse transformers have interpretable circuitsLeo Gao, Achyuta Rajaram, Jacob Coxon, Soham Govande 等ICML 2026
  2. Sparse Feature Circuits: Discovering and Editing Interpretable Causal Graphs in Language ModelsSamuel Marks, Can Rager, Eric J. Michaud, Yonatan Belinkov 等ICLR 2025
  3. Efficient Automated Circuit Discovery in Transformers using Contextual DecompositionAliyah R. Hsu, Georgia Zhou, Yeshwanth Cherapanamjeri, Yaxuan Huang 等ICLR 2025
  4. EfficientLLM: Unified Pruning-Aware Pretraining for Auto-Designed Compact Language ModelsXingrun Xing, Zheng Liu, Shitao Xiao, Boyan Gao 等ACL 2026
  5. Scaling Sparse Feature Circuits For Studying In-Context LearningDmitrii Kharlapenko, Stepan Shabalin, Arthur Conmy, Neel NandaICML 2025
黄昏的海面,两侧是细线勾勒的悬崖