Towards Best Practices of Activation Patching in Language Models: Metrics and Methods
Fred Zhang, Neel Nanda
摘要
Mechanistic interpretability seeks to understand the internal mechanisms of machine learning models, where localization -- identifying the important model components -- is a key step. Activation patching, also known as causal tracing or interchange intervention, is a standard technique for this task (Vig et al., 2020), but the literature contains many variants with little consensus on the choice of hyperparameters or methodology. In this work, we systematically examine the impact of methodological details in activation patching, including evaluation metrics and corruption methods. In several settings of localization and circuit discovery in language models, we find that varying these hyperparameters could lead to disparate interpretability results. Backed by empirical observations, we give conceptual arguments for why certain metrics or methods may be preferred. Finally, we provide recommendations for the best practices of activation patching going forwards.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 88 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Finding Transformer Circuits With Edge Pruning 引用了 Sparse Autoencoders Find Highly Interpretable Features in Language Models
- Finding Transformer Circuits With Edge Pruning 引用了 Towards Automated Circuit Discovery for Mechanistic Interpretability
- Finding Transformer Circuits With Edge Pruning 引用了 Investigating Gender Bias in Language Models Using Causal Mediation Analysis
- 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
- Towards Automated Circuit Discovery for Mechanistic Interpretability 引用了 Locating and Editing Factual Associations in GPT
- LLM Circuit Analyses Are Consistent Across Training and Scale 引用了 Sparse Autoencoders Find Highly Interpretable Features in Language Models
- LLM Circuit Analyses Are Consistent Across Training and Scale 引用了 Towards Automated Circuit Discovery for Mechanistic Interpretability
- LLM Circuit Analyses Are Consistent Across Training and Scale 引用了 Locating and Editing Factual Associations in GPT
- Locating and Editing Factual Associations in GPT 引用了 Investigating Gender Bias in Language Models Using Causal Mediation Analysis
- Transcoders find interpretable LLM feature circuits 引用了 Sparse Autoencoders Find Highly Interpretable Features in Language Models
- Transcoders find interpretable LLM feature circuits 引用了 Towards Automated Circuit Discovery for Mechanistic Interpretability
- Transcoders find interpretable LLM feature circuits 引用了 Investigating Gender Bias in Language Models Using Causal Mediation Analysis
- Inference-Time Intervention: Eliciting Truthful Answers from a Language Model 引用了 Locating and Editing Factual Associations in GPT
- Patchscopes: A Unifying Framework for Inspecting Hidden Representations of Language Models 引用了 Towards Automated Circuit Discovery for Mechanistic Interpretability
- Patchscopes: A Unifying Framework for Inspecting Hidden Representations of Language Models 引用了 Locating and Editing Factual Associations in GPT
- Language Models Are Capable of Metacognitive Monitoring and Control of Their Internal Activations 引用了 Towards Automated Circuit Discovery for Mechanistic Interpretability
引用它的顶会 Paper88
- Transcoders find interpretable LLM feature circuitsJacob Dunefsky, Philippe Chlenski, Neel NandaNeurIPS 2024 · 222 次引用
- Patchscopes: A Unifying Framework for Inspecting Hidden Representations of Language ModelsAsma Ghandeharioun, Avi Caciularu, Adam Pearce, Lucas Dixon 等ICML 2024 · 197 次引用
- Finding Transformer Circuits With Edge PruningAdithya Bhaskar, Alexander Wettig, Dan Friedman, Danqi ChenNeurIPS 2024 · 72 次引用
- LLM Circuit Analyses Are Consistent Across Training and ScaleCurt Tigges, Michael Hanna, Qinan Yu, Stella BidermanNeurIPS 2024 · 71 次引用
- Language Models Are Capable of Metacognitive Monitoring and Control of Their Internal ActivationsJi-An Li, Huadong Xiong, Robert C. Wilson, Marcelo G. Mattar 等NeurIPS 2025 · 49 次引用
它引用的 Paper27
- Locating and Editing Factual Associations in GPTKevin Meng, David Bau, Alex Andonian, Yonatan BelinkovNeurIPS 2022 · 3,415 次引用
- Inference-Time Intervention: Eliciting Truthful Answers from a Language ModelKenneth Li, Oam Patel, Fernanda B. Viégas, Hanspeter Pfister 等NeurIPS 2023 · 1,549 次引用
- Sparse Autoencoders Find Highly Interpretable Features in Language ModelsRobert Huben, Hoagy Cunningham, Logan Riggs Smith, Aidan Ewart 等ICLR 2024 · 1,072 次引用
- Towards Automated Circuit Discovery for Mechanistic InterpretabilityArthur Conmy, Augustine N. Mavor-Parker, Aengus Lynch, Stefan Heimersheim 等NeurIPS 2023 · 861 次引用
- Investigating Gender Bias in Language Models Using Causal Mediation AnalysisJesse Vig, Sebastian Gehrmann, Yonatan Belinkov, Sharon Qian 等NeurIPS 2020 · 851 次引用
相关 Paper
- MIB: A Mechanistic Interpretability BenchmarkAaron Mueller, Atticus Geiger, Sarah Wiegreffe, Dana Arad 等ICML 2025
- Is This the Subspace You Are Looking for? An Interpretability Illusion for Subspace Activation PatchingAleksandar Makelov, Georg Lange, Atticus Geiger, Neel NandaICLR 2024 · 48 次引用
- Mechanistic Interpretability as Statistical Estimation: A Variance AnalysisMaxime Méloux, François Portet, Maxime PeyrardICML 2026 · 13 次引用
- EAP-GP: Mitigating Saturation Effect in Gradient-based Automated Circuit IdentificationLin Zhang, Wenshuo Dong, Zhuoran Zhang, Shu Yang 等NeurIPS 2025 · 26 次引用
- Towards Faithful Natural Language Explanations: A Study Using Activation Patching in Large Language ModelsWei Jie Yeo, Ranjan Satapathy, Erik CambriaEMNLP 2025 · 2 次引用
