A Mechanistic Interpretation of Arithmetic Reasoning in Language Models using Causal Mediation Analysis
On the map: LLM reasoning → Mathematical reasoning
Abstract (arXiv)
Mathematical reasoning in large language models (LMs) has garnered significant attention in recent work, but there is a limited understanding of how these models process and store information related to arithmetic tasks within their architecture. In order to improve our understanding of this aspect of language models, we present a mechanistic interpretation of Transformer-based LMs on arithmetic questions using a causal mediation analysis framework. By intervening on the activations of specific model components and measuring the resulting changes in predicted probabilities, we identify the subset of parameters responsible for specific predictions. This provides insights into how information related to arithmetic is processed by LMs. Our experimental results indicate that LMs process the input by transmitting the information relevant to the query from mid-sequence early layers to the final token using the attention mechanism. Then, this information is processed by a set of MLP modules, which generate result-related information that is incorporated into the residual stream. To assess the specificity of the observed activation dynamics, we compare the effects of different model components on arithmetic queries with other tasks, including number retrieval from prompts and factual knowledge questions.
Key facts. Cited by 89 papers in the map (data through 14 Oct 2026). Placed in Mathematical reasoning, one of 17 directions in LLM reasoning. Builds on 36 of its 51 references that are in the map. First posted on arXiv 24 May 2023.
Builds on
36 of 51 references.
Closest ancestors · 3
Same direction, newest first
- 2022A Causal Framework to Quantify the Robustness of Mathematical Reasoning with Language Models21 Oct
- 2022Solving Quantitative Reasoning Problems with Language Models29 Jun
- 2022NumGLUE: A Suite of Fundamental yet Challenging Mathematical Reasoning Tasks12 Apr
Other references · 33
- 2017Attention Is All You Needcited by 60,361
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2016Layer Normalizationcited by 5,669
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,374
- 2022Locating and Editing Factual Associations in GPTcited by 2,691
- 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,592
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
- 2019Language Models as Knowledge Bases?cited by 1,936
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
21 more
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
- 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,165
- 2022In-context Learning and Induction Headscited by 964
- 2018Adafactor: Adaptive Learning Rates with Sublinear Memory Costcited by 905
- 2023Progress measures for grokking via mechanistic interpretabilitycited by 839
- 2022Discovering Latent Knowledge in Language Models Without Supervisioncited by 767
- 2023Eliciting Latent Predictions from Transformers with the Tuned Lenscited by 623
- 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Spacecited by 532
- 2023Dissecting Recall of Factual Associations in Auto-Regressive Language Modelscited by 528
- 2021Causal Abstractions of Neural Networkscited by 422
- 2023Finding Neurons in a Haystack: Case Studies with Sparse Probingcited by 334
- 2013Direct and Indirect Effectscited by 280
- 2015Visualizing and Understanding Recurrent Networkscited by 160
- 2022MRKL Systems: A modular, neuro-symbolic architecture that combines large language models, external knowledge sources and discrete reasoningcited by 156
- 2021Causal Analysis of Syntactic Agreement Mechanisms in Neural Language Modelscited by 131
- 2023Jump to Conclusions: Short-Cutting Transformers With Linear Transformationscited by 90
- 2023Goat: Fine-tuned LLaMA Outperforms GPT-4 on Arithmetic Taskscited by 84
- 2021On the Pitfalls of Analyzing Individual Neurons in Language Modelscited by 62
- 2021Measuring and Improving BERT's Mathematical Abilities by Predicting the Order of Reasoningcited by 23
- 2021Investigating Numeracy Learning Ability of a Text-to-Text Transfer Modelcited by 13
- 2021Masked Measurement Prediction: Learning to Jointly Predict Quantities and Units from Textual Contextcited by 5
Built on by
Citing papers per year: 2023: 2; 2024: 33; 2025: 27; 2026: 27.
89 papers.
Sort:
By area:
- 2024Mechanistic Interpretability for AI Safety -- A Reviewcited by 422
- 2024Gemma Scope: Open Sparse Autoencoders Everywhere All At Once on Gemma 2cited by 394
- 2024Patchscopes: A Unifying Framework for Inspecting Hidden Representations of Language Modelscited by 235
- 2024How to use and interpret activation patchingcited by 214
- 2024Not All Language Model Features Are One-Dimensionally Linearcited by 212
- 2024Have Faith in Faithfulness: Going Beyond Circuit Overlap When Finding Model Mechanismscited by 149
- 2024Towards Interpreting Visual Information Processing in Vision-Language Modelscited by 122
- 2024A Practical Review of Mechanistic Interpretability for Transformer-Based Language Modelscited by 118
- 2024Tokenization counts: the impact of tokenization on arithmetic in frontier LLMscited by 115
- 2024AtP*: An efficient and scalable method for localizing LLM behaviour to componentscited by 111
- 2024Arithmetic Without Algorithms: Language Models Solve Math With a Bag of Heuristicscited by 97
- 2024A Primer on the Inner Workings of Transformer-based Language Modelscited by 85
38 more
- 2025A Survey on Latent Reasoningcited by 81
- 2024On the Role of Attention Heads in Large Language Model Safetycited by 72
- 2024Attention Heads of Large Language Models: A Surveycited by 67
- 2024Confidence Regulation Neurons in Language Modelscited by 57
- 2025MIB: A Mechanistic Interpretability Benchmarkcited by 56
- 2026When Models Manipulate Manifolds: The Geometry of a Counting Taskcited by 46
- 2024Memory3: Language Modeling with Explicit Memorycited by 40
- 2024Answer, Assemble, Ace: Understanding How LMs Answer Multiple Choice Questionscited by 35
- 2025Detection and Mitigation of Hallucination in Large Reasoning Models: A Mechanistic Perspectivecited by 34
- 2026Locate, Steer, and Improve: A Practical Survey of Actionable Mechanistic Interpretability in Large Language Modelscited by 27
- 2026Manifold Steering Reveals the Shared Geometry of Neural Network Representation and Behaviorcited by 26
- 2024Optimal ablation for interpretabilitycited by 25
- 2025Encode, Think, Decode: Scaling test-time reasoning with recursive latent thoughtscited by 24
- 2024Efficient Automated Circuit Discovery in Transformers using Contextual Decompositioncited by 23
- 2025Back Attention: Understanding and Enhancing Multi-Hop Reasoning in Large Language Modelscited by 23
- 2026Spherical Steering: Geometry-Aware Activation Rotation for Language Modelscited by 21
- 2025Towards Understanding Fine-Tuning Mechanisms of LLMs via Circuit Analysiscited by 20
- 2024Transformers Struggle to Learn to Searchcited by 19
- 2024Accelerating Multimodal Large Language Models via Dynamic Visual-Token Exit and the Empirical Findingscited by 15
- 2025What is a Number, That a Large Language Model May Know It?cited by 15
- 2023Arithmetic with Language Models: from Memorization to Computationcited by 12
- 2024Looking Beyond The Top-1: Transformers Determine Top Tokens In Ordercited by 12
- 2024Language Models are Symbolic Learners in Arithmeticcited by 11
- 2024Understanding Multimodal LLMs: the Mechanistic Interpretability of Llava in Visual Question Answeringcited by 11
- 2026Dynamics Within Latent Chain-of-Thought: An Empirical Study of Causal Structurecited by 11
- 2024Understanding Synthetic Context Extension via Retrieval Headscited by 10
- 2025Compositional Generalization from Learned Skills via CoT Training: A Theoretical and Structural Analysis for Reasoningcited by 10
- 2025HyperDAS: Towards Automating Mechanistic Interpretability with Hypernetworkscited by 9
- 2025Understanding In-context Learning of Addition via Activation Subspacescited by 8
- 2025Decomposing Representation Space into Interpretable Subspaces with Unsupervised Learningcited by 8
- 2023Conditions for Length Generalization in Learning Reasoning Skillscited by 7
- 2024InversionView: A General-Purpose Method for Reading Information from Neural Activationscited by 7
- 2024Adaptive Circuit Behavior and Generalization in Mechanistic Interpretabilitycited by 7
- 2025Leveraging the true depth of LLMscited by 7
- 2024Transformer Normalisation Layers and the Independence of Semantic Subspacescited by 6
- 2026Eliciting Numerical Predictive Distributions of LLMs Without Autoregressioncited by 6
- 2025Bigram Subnetworks: Mapping to Next Tokens in Transformer Language Modelscited by 5
- 2025Correcting Gradient-Based Circuit Localization via Interaction-Aware Backpropagationcited by 5
50 most cited of 89 All 89 (JSON)
- 2026Slaying the Hydra: Interaction-Aware Circuit Discovery in Language Models2 Oct 2026
- 2026Technical Manual for Toolkit for Confidence-Corpus Consistency, Corpus Absorption and Rule Learning via Fine-Tuning on a Fabricated Corpus23 Sep 2026
- 2026Tracing mechanisms of sycophantic agreement in language models21 Sep 2026
- 2026Mechanistic Interpretability of Chain-of-Thought Reasoning via Sequential Activation Patching23 Aug 2026
- 2026Numeracy in Large Language Models: Fundamental Limitations and Paths to Improvement13 Aug 2026
- 2026Modular Cognitive Architecture Emerges in Large Language Models27 Jun 2026
- 2026A Comprehensive Anatomy of Human and DeepSeek-R1 LLM Mathematical Reasoning5 Jun 2026
- 2026Characterize Then Distill: Mechanistic Reasoning in Large Output Spaces5 Jun 2026
- 2026Represented Is Not Computed: A Causal Test of Candidate Algorithmic Intermediates in a Transformer21 May 2026
- 2026Entropy-Gradient Inversion: Moving Toward Internal Mechanism of Large Reasoning Models18 May 2026
- 2026Repeated-Token Counting Reveals a Dissociation Between Representations and Outputs10 May 2026
- 2026Data-driven Circuit Discovery for Interpretability of Language Models9 May 2026
38 more
- 2026Navigating by Old Maps: The Pitfalls of Static Mechanistic Localization in LLM Post-Training7 May 2026
- 2026Understanding In-Context Learning for Nonlinear Regression with Transformers: Attention as Featurizer6 May 2026
- 2026Manifold Steering Reveals the Shared Geometry of Neural Network Representation and Behavior6 May 2026
- 2026The Right Answer, the Wrong Direction: Why Transformers Fail at Counting and How to Fix It5 May 2026
- 2026Disentangling Mathematical Reasoning in LLMs: A Methodological Investigation of Internal Mechanisms17 Apr 2026
- 2026Why Do Large Language Models Generate Harmful Content?13 Apr 2026
- 2026Eliciting Numerical Predictive Distributions of LLMs Without Autoregression3 Mar 2026
- 2026Task-Specific Knowledge Distillation via Intermediate Probes18 Feb 2026
- 2026AI-rithmetic11 Feb 2026
- 2026Dynamics Within Latent Chain-of-Thought: An Empirical Study of Causal Structure9 Feb 2026
- 2026Spherical Steering: Geometry-Aware Activation Rotation for Language Models9 Feb 2026
- 2026Shattered Compositionality: Counterintuitive Learning Dynamics of Transformers for Arithmetic30 Jan 2026
- 2026Locate, Steer, and Improve: A Practical Survey of Actionable Mechanistic Interpretability in Large Language Models20 Jan 2026
- 2026When Models Manipulate Manifolds: The Geometry of a Counting Task8 Jan 2026
- 2026Geometry of Reason: Spectral Signatures of Valid Mathematical Reasoning2 Jan 2026
- 2025Understanding Counting Mechanisms in Large Language and Vision-Language Models21 Nov 2025
- 2025Interpreting the Latent Structure of Operator Precedence in Language Models14 Oct 2025
- 2025Deductive Logic in Language Models: Horizontal vs Vertical Reasoning10 Oct 2025
- 2025Encode, Think, Decode: Scaling test-time reasoning with recursive latent thoughts8 Oct 2025
- 2025DFAMS: Dynamic-flow guided Federated Alignment based Multi-prototype Search28 Aug 2025
- 2025Decomposing Representation Space into Interpretable Subspaces with Unsupervised Learning3 Aug 2025
- 2025Function Induction and Task Generalization: An Interpretability Study with Off-by-One Addition14 Jul 2025
- 2025A Survey on Latent Reasoning8 Jul 2025
- 2025Learning Modular Exponentiation with Transformers30 Jun 2025
- 2025Learning Distribution-Wise Control in Representation Space for Language Models7 Jun 2025
- 2025Correcting Gradient-Based Circuit Localization via Interaction-Aware Backpropagation23 May 2025
- 2025Detection and Mitigation of Hallucination in Large Reasoning Models: A Mechanistic Perspective19 May 2025
- 2025K-MSHC: Unmasking Minimally Sufficient Head Circuits in Large Language Models with Experiments on Syntactic Classification Tasks18 May 2025
- 2025Understanding In-context Learning of Addition via Activation Subspaces8 May 2025
- 2025Bigram Subnetworks: Mapping to Next Tokens in Transformer Language Models21 Apr 2025
- 2025MIB: A Mechanistic Interpretability Benchmark17 Apr 2025
- 2025BiasCause: Evaluate Socially Biased Causal Reasoning of Large Language Models8 Apr 2025
- 2025Large Language Models in Numberland: A Quick Test of Their Numerical Reasoning Abilities31 Mar 2025
- 2025Exploring the Hidden Reasoning Process of Large Language Models by Misleading Them20 Mar 2025
- 2025HyperDAS: Towards Automating Mechanistic Interpretability with Hypernetworks13 Mar 2025
- 2025Causality Is Key to Understand and Balance Multiple Goals in Trustworthy ML and Foundation Models28 Feb 2025
- 2025ExpertLens: Activation steering features are highly interpretable20 Feb 2025
- 2025Towards Understanding Fine-Tuning Mechanisms of LLMs via Circuit Analysis17 Feb 2025
50 newest of 89 All 89 (JSON)
- 2024Arithmetic Without Algorithms: Language Models Solve Math With a Bag of Heuristicscited by 97
- 2025A Survey on Latent Reasoningcited by 81
- 2025Detection and Mitigation of Hallucination in Large Reasoning Models: A Mechanistic Perspectivecited by 34
- 2025Encode, Think, Decode: Scaling test-time reasoning with recursive latent thoughtscited by 24
- 2025Back Attention: Understanding and Enhancing Multi-Hop Reasoning in Large Language Modelscited by 23
- 2026Dynamics Within Latent Chain-of-Thought: An Empirical Study of Causal Structurecited by 11
- 2025Compositional Generalization from Learned Skills via CoT Training: A Theoretical and Structural Analysis for Reasoningcited by 10
- 2023Conditions for Length Generalization in Learning Reasoning Skillscited by 7
- 2024Unraveling Arithmetic in Large Language Models: The Role of Algebraic Structurescited by 4
- 2026Geometry of Reason: Spectral Signatures of Valid Mathematical Reasoningcited by 4
- 2025Exploring the Hidden Reasoning Process of Large Language Models by Misleading Themcited by 3
- 2025Large Language Models in Numberland: A Quick Test of Their Numerical Reasoning Abilitiescited by 2
12 most cited of 22 All 22 (JSON)
- 2026Mechanistic Interpretability of Chain-of-Thought Reasoning via Sequential Activation Patching23 Aug 2026
- 2026Numeracy in Large Language Models: Fundamental Limitations and Paths to Improvement13 Aug 2026
- 2026A Comprehensive Anatomy of Human and DeepSeek-R1 LLM Mathematical Reasoning5 Jun 2026
- 2026Characterize Then Distill: Mechanistic Reasoning in Large Output Spaces5 Jun 2026
- 2026Entropy-Gradient Inversion: Moving Toward Internal Mechanism of Large Reasoning Models18 May 2026
- 2026Disentangling Mathematical Reasoning in LLMs: A Methodological Investigation of Internal Mechanisms17 Apr 2026
- 2026Dynamics Within Latent Chain-of-Thought: An Empirical Study of Causal Structure9 Feb 2026
- 2026Geometry of Reason: Spectral Signatures of Valid Mathematical Reasoning2 Jan 2026
- 2025Interpreting the Latent Structure of Operator Precedence in Language Models14 Oct 2025
- 2025Deductive Logic in Language Models: Horizontal vs Vertical Reasoning10 Oct 2025
- 2025Encode, Think, Decode: Scaling test-time reasoning with recursive latent thoughts8 Oct 2025
- 2025A Survey on Latent Reasoning8 Jul 2025
12 newest of 22 All 22 (JSON)
- 2024Mechanistic Interpretability for AI Safety -- A Reviewcited by 422
- 2024Gemma Scope: Open Sparse Autoencoders Everywhere All At Once on Gemma 2cited by 394
- 2024Patchscopes: A Unifying Framework for Inspecting Hidden Representations of Language Modelscited by 235
- 2024A Practical Review of Mechanistic Interpretability for Transformer-Based Language Modelscited by 118
- 2024AtP*: An efficient and scalable method for localizing LLM behaviour to componentscited by 111
- 2025MIB: A Mechanistic Interpretability Benchmarkcited by 56
- 2026Locate, Steer, and Improve: A Practical Survey of Actionable Mechanistic Interpretability in Large Language Modelscited by 27
- 2024Efficient Automated Circuit Discovery in Transformers using Contextual Decompositioncited by 23
- 2025HyperDAS: Towards Automating Mechanistic Interpretability with Hypernetworkscited by 9
- 2025Decomposing Representation Space into Interpretable Subspaces with Unsupervised Learningcited by 8
- 2024Adaptive Circuit Behavior and Generalization in Mechanistic Interpretabilitycited by 7
- 2026Navigating by Old Maps: The Pitfalls of Static Mechanistic Localization in LLM Post-Trainingcited by 4
12 most cited of 17 All 17 (JSON)
- 2026Slaying the Hydra: Interaction-Aware Circuit Discovery in Language Models2 Oct 2026
- 2026Data-driven Circuit Discovery for Interpretability of Language Models9 May 2026
- 2026Navigating by Old Maps: The Pitfalls of Static Mechanistic Localization in LLM Post-Training7 May 2026
- 2026Locate, Steer, and Improve: A Practical Survey of Actionable Mechanistic Interpretability in Large Language Models20 Jan 2026
- 2025Decomposing Representation Space into Interpretable Subspaces with Unsupervised Learning3 Aug 2025
- 2025Learning Modular Exponentiation with Transformers30 Jun 2025
- 2025K-MSHC: Unmasking Minimally Sufficient Head Circuits in Large Language Models with Experiments on Syntactic Classification Tasks18 May 2025
- 2025MIB: A Mechanistic Interpretability Benchmark17 Apr 2025
- 2025HyperDAS: Towards Automating Mechanistic Interpretability with Hypernetworks13 Mar 2025
- 2025ExpertLens: Activation steering features are highly interpretable20 Feb 2025
- 2024Adaptive Circuit Behavior and Generalization in Mechanistic Interpretability25 Nov 2024
- 2024Gemma Scope: Open Sparse Autoencoders Everywhere All At Once on Gemma 29 Aug 2024
12 newest of 17 All 17 (JSON)
- 2024Towards Interpreting Visual Information Processing in Vision-Language Modelscited by 122
- 2024Accelerating Multimodal Large Language Models via Dynamic Visual-Token Exit and the Empirical Findingscited by 15
- 2024Understanding Multimodal LLMs: the Mechanistic Interpretability of Llava in Visual Question Answeringcited by 11
- 2025Understanding Counting Mechanisms in Large Language and Vision-Language Modelscited by 4
- 2025Understanding Counting Mechanisms in Large Language and Vision-Language Models21 Nov 2025
- 2024Accelerating Multimodal Large Language Models via Dynamic Visual-Token Exit and the Empirical Findings29 Nov 2024
- 2024Understanding Multimodal LLMs: the Mechanistic Interpretability of Llava in Visual Question Answering17 Nov 2024
- 2024Towards Interpreting Visual Information Processing in Vision-Language Models9 Oct 2024
- 2024On the Role of Attention Heads in Large Language Model Safetycited by 72
- 2024Unlearning-based Neural Interpretationscited by 1
- 2026Why Do Large Language Models Generate Harmful Content?cited by 0
- 2026Why Do Large Language Models Generate Harmful Content?13 Apr 2026
- 2024On the Role of Attention Heads in Large Language Model Safety17 Oct 2024
- 2024Unlearning-based Neural Interpretations10 Oct 2024
- 2024Memory3: Language Modeling with Explicit Memorycited by 40
- 2024Understanding Synthetic Context Extension via Retrieval Headscited by 10
- 2024Understanding Synthetic Context Extension via Retrieval Heads29 Oct 2024
- 2024Memory3: Language Modeling with Explicit Memory1 Jul 2024
- 2026Task-Specific Knowledge Distillation via Intermediate Probes18 Feb 2026
- 2024How to use and interpret activation patchingcited by 214
- 2024Not All Language Model Features Are One-Dimensionally Linearcited by 212
- 2024Have Faith in Faithfulness: Going Beyond Circuit Overlap When Finding Model Mechanismscited by 149
- 2024Tokenization counts: the impact of tokenization on arithmetic in frontier LLMscited by 115
- 2024A Primer on the Inner Workings of Transformer-based Language Modelscited by 85
- 2024Attention Heads of Large Language Models: A Surveycited by 67
- 2024Confidence Regulation Neurons in Language Modelscited by 57
- 2026When Models Manipulate Manifolds: The Geometry of a Counting Taskcited by 46
- 2024Answer, Assemble, Ace: Understanding How LMs Answer Multiple Choice Questionscited by 35
- 2026Manifold Steering Reveals the Shared Geometry of Neural Network Representation and Behaviorcited by 26
- 2024Optimal ablation for interpretabilitycited by 25
- 2026Spherical Steering: Geometry-Aware Activation Rotation for Language Modelscited by 21
12 most cited of 40 All 40 (JSON)
- 2026Technical Manual for Toolkit for Confidence-Corpus Consistency, Corpus Absorption and Rule Learning via Fine-Tuning on a Fabricated Corpus23 Sep 2026
- 2026Tracing mechanisms of sycophantic agreement in language models21 Sep 2026
- 2026Modular Cognitive Architecture Emerges in Large Language Models27 Jun 2026
- 2026Represented Is Not Computed: A Causal Test of Candidate Algorithmic Intermediates in a Transformer21 May 2026
- 2026Repeated-Token Counting Reveals a Dissociation Between Representations and Outputs10 May 2026
- 2026Understanding In-Context Learning for Nonlinear Regression with Transformers: Attention as Featurizer6 May 2026
- 2026Manifold Steering Reveals the Shared Geometry of Neural Network Representation and Behavior6 May 2026
- 2026The Right Answer, the Wrong Direction: Why Transformers Fail at Counting and How to Fix It5 May 2026
- 2026Eliciting Numerical Predictive Distributions of LLMs Without Autoregression3 Mar 2026
- 2026AI-rithmetic11 Feb 2026
- 2026Spherical Steering: Geometry-Aware Activation Rotation for Language Models9 Feb 2026
- 2026Shattered Compositionality: Counterintuitive Learning Dynamics of Transformers for Arithmetic30 Jan 2026
12 newest of 40 All 40 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2025Mathematical Reasoning in Large Language Models: Assessing Logical and Arithmetic Errors across Wide Numerical Ranges
- 2023Frugal LMs Trained to Invoke Symbolic Solvers Achieve Parameter-Efficient Arithmetic Reasoning
- 2024Can Large Language Models put 2 and 2 together? Probing for Entailed Arithmetical Relationships
- 2022Reflection of Thought: Inversely Eliciting Numerical Reasoning in Language Models via Solving Linear Systems
- 2025Large Language Models and Mathematical Reasoning Failures
- 2024Language Models Encode the Value of Numbers Linearly
- 2025A Survey on Large Language Models for Mathematical Reasoning
- 2026Mechanistic Interpretability of Large-Scale Counting in LLMs through a System-2 Strategy