Towards Interpretable Sequence Continuation: Analyzing Shared Circuits in Large Language Models
Michael Lan, Philip Torr, Fazl Barez
摘要
While transformer models exhibit strong capabilities on linguistic tasks, their complex architectures make them difficult to interpret.Recent work has aimed to reverse engineer transformer models into human-readable representations called circuits that implement algorithmic functions.We extend this research by analyzing and comparing circuits for similar sequence continuation tasks, which include increasing sequences of Arabic numerals, number words, and months.By applying circuit interpretability analysis, we identify a key sub-circuit in both GPT-2 Small and Llama-2-7B responsible for detecting sequence members and for predicting the next member in a sequence.Our analysis reveals that semantically related sequences rely on shared circuit subgraphs with analogous roles.Additionally, we show that this sub-circuit has effects on various math-related prompts, such as on intervaled circuits, Spanish number word and months continuation, and natural language word problems.This mechanistic understanding of transformers is a critical step towards building more robust, aligned, and interpretable language models. 1 To encourage reuse and further development our code and datasets can be found here:
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 5 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Language Models Represent Space and Time 引用了 Locating and Editing Factual Associations in GPT
- Towards Automated Circuit Discovery for Mechanistic Interpretability 引用了 Locating and Editing Factual Associations in GPT
- 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
- Optimal ablation for interpretability 引用了 Language Models Represent Space and Time
- Optimal ablation for interpretability 引用了 Towards Automated Circuit Discovery for Mechanistic Interpretability
- Optimal ablation for interpretability 引用了 Locating and Editing Factual Associations in GPT
- Optimal ablation for interpretability 引用了 Investigating Gender Bias in Language Models Using Causal Mediation Analysis
- Query Circuits: Explaining How Language Models Answer User Prompts 引用了 Towards Automated Circuit Discovery for Mechanistic Interpretability
- Query Circuits: Explaining How Language Models Answer User Prompts 引用了 Investigating Gender Bias in Language Models Using Causal Mediation Analysis
- Inside-Out: Measuring Generalization in Vision Transformers Through Inner Workings 引用了 Towards Automated Circuit Discovery for Mechanistic Interpretability
- Inside-Out: Measuring Generalization in Vision Transformers Through Inner Workings 引用了 Optimal ablation for interpretability
引用它的顶会 Paper5
- Optimal ablation for interpretabilityMaximilian Li, Lucas JansonNeurIPS 2024 · 32 次引用
- Query Circuits: Explaining How Language Models Answer User PromptsTung-Yu Wu, Fazl BarezICML 2026 · 1 次引用
- Shared Lexical Task Representations Explain Behavioral Variability In LLMsZhuonan Yang, Jacob Xiaochen Li, Francisco Velez, Eric Todd 等ICML 2026
- Mind's Eye: A Benchmark of Visual Abstraction, Transformation and Composition for Multimodal LLMsRohit Sinha, Aditya Sanjiv Kanade, Sai Srinivas Kancheti, Vineeth N. Balasubramanian 等ACL 2026
- Inside-Out: Measuring Generalization in Vision Transformers Through Inner WorkingsYunxiang Peng, Mengmeng Ma, Ziyu Yao, Xi PengCVPR 2026
它引用的 Paper16
- 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 次引用
- Language Models Represent Space and TimeWes Gurnee, Max TegmarkICLR 2024 · 303 次引用
相关 Paper
- Circuit Compositions: Exploring Modular Structures in Transformer-Based Language ModelsPhilipp Mondorf, Sondre Wold, Barbara PlankACL 2025 · 5 次引用
- Transcoders find interpretable LLM feature circuitsJacob Dunefsky, Philippe Chlenski, Neel NandaNeurIPS 2024 · 222 次引用
- How does GPT-2 compute greater-than?: Interpreting mathematical abilities in a pre-trained language modelMichael Hanna, Ollie Liu, Alexandre VariengienNeurIPS 2023 · 251 次引用
- Sparse Feature Circuits: Discovering and Editing Interpretable Causal Graphs in Language ModelsSamuel Marks, Can Rager, Eric J. Michaud, Yonatan Belinkov 等ICLR 2025
- Circuit Component Reuse Across Tasks in Transformer Language ModelsJack Merullo, Carsten Eickhoff, Ellie PavlickICLR 2024 · 108 次引用
