Lune

NeurIPS2023顶会

Towards Automated Circuit Discovery for Mechanistic Interpretability

Arthur Conmy, Augustine N. Mavor-Parker, Aengus Lynch, Stefan Heimersheim, Adrià Garriga-Alonso

摘要

Through considerable effort and intuition, several recent works have reverse-engineered nontrivial behaviors of transformer models. This paper systematizes the mechanistic interpretability process they followed. First, researchers choose a metric and dataset that elicit the desired model behavior. Then, they apply activation patching to find which abstract neural network units are involved in the behavior. By varying the dataset, metric, and units under investigation, researchers can understand the functionality of each component. We automate one of the process' steps: to identify the circuit that implements the specified behavior in the model's computational graph. We propose several algorithms and reproduce previous interpretability results to validate them. For example, the ACDC algorithm rediscovered 5/5 of the component types in a circuit in GPT-2 Small that computes the Greater-Than operation. ACDC selected 68 of the 32,000 edges in GPT-2 Small, all of which were manually found by previous work. Our code is available at https://github.com/ArthurConmy/Automatic-Circuit-Discovery.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • Towards Best Practices of Activation Patching in Language Models: Metrics and Methods 引用了 Sparse Autoencoders Find Highly Interpretable Features in Language Models
  • Towards Best Practices of Activation Patching in Language Models: Metrics and Methods 引用了 Locating and Editing Factual Associations in GPT
  • Towards Best Practices of Activation Patching in Language Models: Metrics and Methods 引用了 Causal Abstractions of Neural Networks
  • Towards Best Practices of Activation Patching in Language Models: Metrics and Methods 引用了 Compositional Explanations of Neurons
  • Transcoders find interpretable LLM feature circuits 引用了 Sparse Autoencoders Find Highly Interpretable Features in Language Models
  • Transcoders find interpretable LLM feature circuits 引用了 Towards Best Practices of Activation Patching in Language Models: Metrics and Methods
  • Transcoders find interpretable LLM feature circuits 引用了 Causal Abstractions of Neural Networks
  • Patchscopes: A Unifying Framework for Inspecting Hidden Representations of Language Models 引用了 Locating and Editing Factual Associations in GPT
  • Patchscopes: A Unifying Framework for Inspecting Hidden Representations of Language Models 引用了 Towards Best Practices of Activation Patching in Language Models: Metrics and Methods
  • Patchscopes: A Unifying Framework for Inspecting Hidden Representations of Language Models 引用了 Causal Abstractions of Neural Networks
  • SparseGPT: Massive Language Models Can be Accurately Pruned in One-Shot 引用了 Movement Pruning: Adaptive Sparsity by Fine-Tuning
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper191

  1. Sparse Autoencoders Find Highly Interpretable Features in Language ModelsRobert Huben, Hoagy Cunningham, Logan Riggs Smith, Aidan Ewart 等ICLR 2024 · 1,072 次引用
  2. Towards Best Practices of Activation Patching in Language Models: Metrics and MethodsFred Zhang, Neel NandaICLR 2024 · 233 次引用
  3. Transcoders find interpretable LLM feature circuitsJacob Dunefsky, Philippe Chlenski, Neel NandaNeurIPS 2024 · 222 次引用
  4. Patchscopes: A Unifying Framework for Inspecting Hidden Representations of Language ModelsAsma Ghandeharioun, Avi Caciularu, Adam Pearce, Lucas Dixon 等ICML 2024 · 197 次引用
  5. What Algorithms can Transformers Learn? A Study in Length GeneralizationHattie Zhou, Arwen Bradley, Etai Littwin, Noam Razin 等ICLR 2024 · 189 次引用

它引用的 Paper16

  1. Locating and Editing Factual Associations in GPTKevin Meng, David Bau, Alex Andonian, Yonatan BelinkovNeurIPS 2022 · 3,415 次引用
  2. SparseGPT: Massive Language Models Can be Accurately Pruned in One-ShotElias Frantar, Dan AlistarhICML 2023 · 1,240 次引用
  3. Movement Pruning: Adaptive Sparsity by Fine-TuningVictor Sanh, Thomas Wolf, Alexander M. RushNeurIPS 2020 · 656 次引用
  4. Causal Abstractions of Neural NetworksAtticus Geiger, Hanson Lu, Thomas Icard, Christopher PottsNeurIPS 2021 · 516 次引用
  5. Compositional Explanations of NeuronsJesse Mu, Jacob AndreasNeurIPS 2020 · 229 次引用

相关 Paper

  1. Efficient Automated Circuit Discovery in Transformers using Contextual DecompositionAliyah R. Hsu, Georgia Zhou, Yeshwanth Cherapanamjeri, Yaxuan Huang 等ICLR 2025
  2. EAP-GP: Mitigating Saturation Effect in Gradient-based Automated Circuit IdentificationLin Zhang, Wenshuo Dong, Zhuoran Zhang, Shu Yang 等NeurIPS 2025 · 26 次引用
  3. Towards Interpretable Sequence Continuation: Analyzing Shared Circuits in Large Language ModelsMichael Lan, Philip Torr, Fazl BarezEMNLP 2024 · 1 次引用
  4. How does GPT-2 compute greater-than?: Interpreting mathematical abilities in a pre-trained language modelMichael Hanna, Ollie Liu, Alexandre VariengienNeurIPS 2023 · 251 次引用
  5. Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 SmallKevin Ro Wang, Alexandre Variengien, Arthur Conmy, Buck Shlegeris 等ICLR 2023 · 50 次引用
黄昏的海面,两侧是细线勾勒的悬崖