Information Flow Routes: Automatically Interpreting Language Models at Scale
Javier Ferrando, Elena Voita
摘要
Information flows by routes inside the network via mechanisms implemented in the model. These routes can be represented as graphs where nodes correspond to token representations and edges to computations. We automatically build these graphs in a top-down manner, for each prediction leaving only the most important nodes and edges. In contrast to the existing workflows relying on activation patching, we do this through attribution: this allows us to efficiently uncover existing circuits with just a single forward pass. Unlike with patching, we do not need a human to carefully design prediction templates, and we can extract information flow routes for any prediction (not just the ones among the allowed templates). As a result, we can analyze model behavior in general, for specific types of predictions, or different domains. We experiment with Llama 2 and show that the role of some attention heads is overall important, e.g. previous token heads and subword merging heads. Next, we find similarities in Llama 2 behavior when handling tokens of the same part of speech. Finally, we show that some model components can be specialized on domains such as coding or multilingual texts. 1
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 41 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- 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
- Finding Transformer Circuits With Edge Pruning 引用了 Language Models are Few-Shot Learners
- Finding Transformer Circuits With Edge Pruning 引用了 How does GPT-2 compute greater-than?: Interpreting mathematical abilities in a pre-trained language model
- Towards Automated Circuit Discovery for Mechanistic Interpretability 引用了 Locating and Editing Factual Associations in GPT
- 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
- LLM Circuit Analyses Are Consistent Across Training and Scale 引用了 How does GPT-2 compute greater-than?: Interpreting mathematical abilities in a pre-trained language model
- The Atlas of In-Context Learning: How Attention Heads Shape In-Context Retrieval Augmentation 引用了 Towards Automated Circuit Discovery for Mechanistic Interpretability
- The Atlas of In-Context Learning: How Attention Heads Shape In-Context Retrieval Augmentation 引用了 Language Models are Few-Shot Learners
- Locating and Editing Factual Associations in GPT 引用了 Investigating Gender Bias in Language Models Using Causal Mediation Analysis
- Locating and Editing Factual Associations in GPT 引用了 Language Models are Few-Shot Learners
- Mechanistic Detection and Mitigation of Hallucination in Large Reasoning Models 引用了 How does GPT-2 compute greater-than?: Interpreting mathematical abilities in a pre-trained language model
- How does GPT-2 compute greater-than?: Interpreting mathematical abilities in a pre-trained language model 引用了 Locating and Editing Factual Associations in GPT
- How does GPT-2 compute greater-than?: Interpreting mathematical abilities in a pre-trained language model 引用了 Investigating Gender Bias in Language Models Using Causal Mediation Analysis
- How does GPT-2 compute greater-than?: Interpreting mathematical abilities in a pre-trained language model 引用了 Language Models are Few-Shot Learners
- Knowledge Circuits in Pretrained Transformers 引用了 Finding Transformer Circuits With Edge Pruning
- Knowledge Circuits in Pretrained Transformers 引用了 Towards Automated Circuit Discovery for Mechanistic Interpretability
- Knowledge Circuits in Pretrained Transformers 引用了 Locating and Editing Factual Associations in GPT
- Knowledge Circuits in Pretrained Transformers 引用了 Investigating Gender Bias in Language Models Using Causal Mediation Analysis
引用它的顶会 Paper41
- 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 次引用
- Knowledge Circuits in Pretrained TransformersYunzhi Yao, Ningyu Zhang, Zekun Xi, Mengru Wang 等NeurIPS 2024 · 71 次引用
- Mechanistic Detection and Mitigation of Hallucination in Large Reasoning ModelsZhongxiang Sun, Qipeng Wang, Haoyu Wang, Xiao Zhang 等ICLR 2026 · 30 次引用
- The Atlas of In-Context Learning: How Attention Heads Shape In-Context Retrieval AugmentationPatrick Kahardipraja, Reduan Achtibat, Thomas Wiegand, Wojciech Samek 等NeurIPS 2025 · 13 次引用
它引用的 Paper14
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
- Locating and Editing Factual Associations in GPTKevin Meng, David Bau, Alex Andonian, Yonatan BelinkovNeurIPS 2022 · 3,415 次引用
- 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 次引用
- How does GPT-2 compute greater-than?: Interpreting mathematical abilities in a pre-trained language modelMichael Hanna, Ollie Liu, Alexandre VariengienNeurIPS 2023 · 251 次引用
相关 Paper
- Inserting Information Bottleneck for Attribution in TransformersZhiying Jiang, Raphael Tang, Ji Xin, Jimmy LinEMNLP Findings 2020 · 9 次引用
- Factual Retrieval in LLMs Is a Redundant, Distributed and Non-Contiguous ProcessHail Hochman, Natalie Shapira, Yoav GoldbergACL 2026
- Interpreting Context Look-ups in Transformers: Investigating Attention-MLP InteractionsClement Neo, Shay B. Cohen, Fazl BarezEMNLP 2024 · 3 次引用
- FlowCut: Rethinking Redundancy via Information Flow for Efficient Vision-Language ModelsJintao Tong, Wenwei Jin, Pengda Qin, Anqi Li 等NeurIPS 2025 · 31 次引用
- Exploring the Translation Mechanism of Large Language ModelsHongbin Zhang, Kehai Chen, Xuefeng Bai, Xiucheng Li 等NeurIPS 2025 · 4 次引用
