Towards Interpretable Sequence Continuation: Analyzing Shared Circuits in Large Language Models
On the map: Mechanistic interpretability → Circuits and mechanistic analysis
Abstract (arXiv)
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. Overall, documenting shared computational structures enables better model behavior predictions, identification of errors, and safer editing procedures. This mechanistic understanding of transformers is a critical step towards building more robust, aligned, and interpretable language models.
Key facts. Cited by 15 papers in the map (data through 14 Oct 2026). Placed in Circuits and mechanistic analysis, one of 13 directions in Mechanistic interpretability. Builds on 21 of its 43 references that are in the map. First posted on arXiv 7 Nov 2023.
Builds on
21 of 43 references.
Closest ancestors · 4
Same direction, newest first
- 2023Circuit Component Reuse Across Tasks in Transformer Language Models12 Oct
- 2023Towards Automated Circuit Discovery for Mechanistic Interpretability28 Apr
- 2023Progress measures for grokking via mechanistic interpretability12 Jan
- 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 small1 Nov
Other references · 17
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2022Locating and Editing Factual Associations in GPTcited by 2,691
- 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,592
- 2016Concrete Problems in AI Safetycited by 1,642
- 2019Explainable Artificial Intelligence (XAI): Concepts, Taxonomies, Opportunities and Challenges toward Responsible AIcited by 1,552
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
- 2019A Comprehensive Survey on Transfer Learningcited by 1,160
- 2022In-context Learning and Induction Headscited by 964
- 2023Steering Language Models With Activation Engineeringcited by 922
- 2023Localizing Model Behavior with Path Patchingcited by 195
- 2020Compositional Explanations of Neuronscited by 172
5 more
- 2023Detecting Edit Failures In Large Language Models: An Improved Specificity Benchmarkcited by 62
- 2022X-Risk Analysis for AI Researchcited by 60
- 2023The Larger They Are, the Harder They Fail: Language Models do not Recognize Identifier Swaps in Pythoncited by 29
- 2023Neuron to Graph: Interpreting Language Model Neurons at Scalecited by 27
- 2023System III: Learning with Domain Knowledge for Safety Constraintscited by 2
Built on by
Citing papers per year: 2024: 2; 2025: 5; 2026: 8.
15 papers.
Sort:
By area:
- 2024Optimal ablation for interpretabilitycited by 25
- 2025Unboxing the Black Box: Mechanistic Interpretability for Algorithmic Understanding of Neural Networkscited by 6
- 2024Trustworthy and Responsible AI for Human-Centric Autonomous Decision-Making Systemscited by 3
- 2026Differentiable Faithfulness Alignment for Cross-Model Circuit Transfercited by 3
- 2025Explainability of Large Language Models: Opportunities and Challenges toward Generating Trustworthy Explanationscited by 2
- 2026Weight Patching: Toward Source-Level Mechanistic Localization in LLMscited by 2
- 2026How Much Do Circuits Tell Us? Measuring the Consistency and Specificity of Language Model Circuitscited by 2
- 2026Judge Circuits Explain Format-Induced Inconsistency in LLM-as-a-Judgecited by 1
- 2025Distilled Circuits: A Mechanistic Study of Internal Restructuring in Knowledge Distillationcited by 0
- 2025An Exploratory Framework for Future SETI Applications: Detecting Generative Reactivity via Language Modelscited by 0
- 2025Query Circuits: Explaining How Language Models Answer User Promptscited by 0
- 2026Explaining the Explainer: Understanding the Inner Workings of Transformer-based Symbolic Regression Modelscited by 0
3 more
- 2026Inside-Out: Measuring Generalization in Vision Transformers Through Inner Workingscited by 0
- 2026Mind's Eye: A Benchmark of Visual Abstraction, Transformation and Composition for Multimodal LLMscited by 0
- 2026Mechanistic Interpretability of Structure-Aware Numerical Reasoning in LLaMA 3.1 8Bcited by 0
- 2026Mechanistic Interpretability of Structure-Aware Numerical Reasoning in LLaMA 3.1 8B19 Aug 2026
- 2026Judge Circuits Explain Format-Induced Inconsistency in LLM-as-a-Judge15 May 2026
- 2026How Much Do Circuits Tell Us? Measuring the Consistency and Specificity of Language Model Circuits8 May 2026
- 2026Differentiable Faithfulness Alignment for Cross-Model Circuit Transfer27 Apr 2026
- 2026Mind's Eye: A Benchmark of Visual Abstraction, Transformation and Composition for Multimodal LLMs17 Apr 2026
- 2026Weight Patching: Toward Source-Level Mechanistic Localization in LLMs15 Apr 2026
- 2026Inside-Out: Measuring Generalization in Vision Transformers Through Inner Workings9 Apr 2026
- 2026Explaining the Explainer: Understanding the Inner Workings of Transformer-based Symbolic Regression Models3 Feb 2026
- 2025Unboxing the Black Box: Mechanistic Interpretability for Algorithmic Understanding of Neural Networks24 Nov 2025
- 2025Explainability of Large Language Models: Opportunities and Challenges toward Generating Trustworthy Explanations20 Oct 2025
- 2025Query Circuits: Explaining How Language Models Answer User Prompts29 Sep 2025
- 2025An Exploratory Framework for Future SETI Applications: Detecting Generative Reactivity via Language Models3 Jun 2025
- 2025Unboxing the Black Box: Mechanistic Interpretability for Algorithmic Understanding of Neural Networkscited by 6
- 2026Differentiable Faithfulness Alignment for Cross-Model Circuit Transfercited by 3
- 2025Explainability of Large Language Models: Opportunities and Challenges toward Generating Trustworthy Explanationscited by 2
- 2026Weight Patching: Toward Source-Level Mechanistic Localization in LLMscited by 2
- 2026How Much Do Circuits Tell Us? Measuring the Consistency and Specificity of Language Model Circuitscited by 2
- 2025Query Circuits: Explaining How Language Models Answer User Promptscited by 0
- 2026Explaining the Explainer: Understanding the Inner Workings of Transformer-based Symbolic Regression Modelscited by 0
- 2026How Much Do Circuits Tell Us? Measuring the Consistency and Specificity of Language Model Circuits8 May 2026
- 2026Differentiable Faithfulness Alignment for Cross-Model Circuit Transfer27 Apr 2026
- 2026Weight Patching: Toward Source-Level Mechanistic Localization in LLMs15 Apr 2026
- 2026Explaining the Explainer: Understanding the Inner Workings of Transformer-based Symbolic Regression Models3 Feb 2026
- 2025Unboxing the Black Box: Mechanistic Interpretability for Algorithmic Understanding of Neural Networks24 Nov 2025
- 2025Explainability of Large Language Models: Opportunities and Challenges toward Generating Trustworthy Explanations20 Oct 2025
- 2025Query Circuits: Explaining How Language Models Answer User Prompts29 Sep 2025
- 2024Optimal ablation for interpretabilitycited by 25
- 2024Trustworthy and Responsible AI for Human-Centric Autonomous Decision-Making Systemscited by 3
- 2026Judge Circuits Explain Format-Induced Inconsistency in LLM-as-a-Judgecited by 1
- 2025An Exploratory Framework for Future SETI Applications: Detecting Generative Reactivity via Language Modelscited by 0
- 2026Inside-Out: Measuring Generalization in Vision Transformers Through Inner Workingscited by 0
- 2026Judge Circuits Explain Format-Induced Inconsistency in LLM-as-a-Judge15 May 2026
- 2026Inside-Out: Measuring Generalization in Vision Transformers Through Inner Workings9 Apr 2026
- 2025An Exploratory Framework for Future SETI Applications: Detecting Generative Reactivity via Language Models3 Jun 2025
- 2024Optimal ablation for interpretability16 Sep 2024
- 2024Trustworthy and Responsible AI for Human-Centric Autonomous Decision-Making Systems28 Aug 2024
Similar, not cited
Close in wording, no citation either way
- 2024Circuit Compositions: Exploring Modular Structures in Transformer-Based Language Models
- 2026Can Language Model Agents be Helpful Circuit Explainers in Mechanistic Interpretability?
- 2025Anatomy of an Idiom: Tracing Non-Compositionality in Language Models
- 2025From Indirect Object Identification to Syllogisms: Exploring Binary Mechanisms in Transformer Circuits
- 2025Beyond Components: Singular Vector-Based Interpretability of Transformer Circuits
- 2025Mechanistic Unveiling of Transformer Circuits: Self-Influence as a Key to Model Reasoning
- 2024Autoregressive + Chain of Thought = Recurrent: Recurrence's Role in Language Models' Computability and a Revisit of Recurrent Transformer
- 2024Efficient Automated Circuit Discovery in Transformers using Contextual Decomposition