Interpreting and Improving Large Language Models in Arithmetic Calculation
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) have demonstrated remarkable potential across numerous applications and have shown an emergent ability to tackle complex reasoning tasks, such as mathematical computations. However, even for the simplest arithmetic calculations, the intrinsic mechanisms behind LLMs remain mysterious, making it challenging to ensure reliability. In this work, we delve into uncovering a specific mechanism by which LLMs execute calculations. Through comprehensive experiments, we find that LLMs frequently involve a small fraction (< 5%) of attention heads, which play a pivotal role in focusing on operands and operators during calculation processes. Subsequently, the information from these operands is processed through multi-layer perceptrons (MLPs), progressively leading to the final solution. These pivotal heads/MLPs, though identified on a specific dataset, exhibit transferability across different datasets and even distinct tasks. This insight prompted us to investigate the potential benefits of selectively fine-tuning these essential heads/MLPs to boost the LLMs' computational performance. We empirically find that such precise tuning can yield notable enhancements on mathematical prowess, without compromising the performance on non-mathematical tasks. Our work serves as a preliminary exploration into the arithmetic calculation abilities inherent in LLMs, laying a solid foundation to reveal more intricate mathematical tasks.
Key facts. Cited by 43 papers in the map (data through 7 Oct 2026). Builds on 45 of its 63 references that are in the map. First posted on arXiv 3 Sep 2024.
Builds on
45 of 63 references.
References · 45
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2020Measuring Massive Multitask Language Understandingcited by 7,768
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
- 2013Intriguing properties of neural networkscited by 5,114
- 2022Flamingo: a Visual Language Model for Few-Shot Learningcited by 4,337
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
- 2023Mistral 7Bcited by 3,065
- 2022Locating and Editing Factual Associations in GPTcited by 2,609
- 2022Emergent Abilities of Large Language Modelscited by 2,483
33 more
- 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,130
- 2022STaR: Bootstrapping Reasoning With Reasoningcited by 895
- 2022Solving math word problems with process- and outcome-based feedbackcited by 871
- 2021Are NLP Models really able to Solve Simple Math Word Problems?cited by 861
- 2023Language Models are Super Mario: Absorbing Abilities from Homologous Models as a Free Lunchcited by 679
- 2022Large Language Models Can Self-Improvecited by 656
- 2019Attention is not not Explanationcited by 629
- 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Spacecited by 522
- 2023Dissecting Recall of Factual Associations in Auto-Regressive Language Modelscited by 512
- 2021Causal Abstractions of Neural Networkscited by 401
- 2019Analysing Mathematical Reasoning Abilities of Neural Modelscited by 331
- 2013Direct and Indirect Effectscited by 276
- 2023Mathematical Capabilities of ChatGPTcited by 263
- 2023MathPrompter: Mathematical Reasoning using Large Language Modelscited by 236
- 2022Making Large Language Models Better Reasoners with Step-Aware Verifiercited by 231
- 2023How does GPT-2 compute greater-than?: Interpreting mathematical abilities in a pre-trained language modelcited by 199
- 2022Hidden Progress in Deep Learning: SGD Learns Parities Near the Computational Limitcited by 184
- 2023Localizing Model Behavior with Path Patchingcited by 182
- 2020Compositional Explanations of Neuronscited by 172
- 2021Post-hoc Interpretability for Neural NLP: A Surveycited by 155
- 2023Does Circuit Analysis Interpretability Scale? Evidence from Multiple Choice Capabilities in Chinchillacited by 145
- 2021Investigating the Limitations of Transformers with Simple Arithmetic Taskscited by 136
- 2022Natural Language Descriptions of Deep Visual Featurescited by 136
- 2021Causal Analysis of Syntactic Agreement Mechanisms in Neural Language Modelscited by 127
- 2023Task-Specific Skill Localization in Fine-tuned Language Modelscited by 104
- 2023Interpretability at Scale: Identifying Causal Mechanisms in Alpacacited by 102
- 2021An Interpretability Illusion for BERTcited by 94
- 2021Representing Numbers in NLP: a Survey and a Visioncited by 83
- 2022Limitations of Language Models in Arithmetic and Symbolic Inductioncited by 71
- 2018Complex Sequential Question Answering: Towards Learning to Converse Over Linked Question Answer Pairs with a Knowledge Graphcited by 67
- 2022Learning to Reason Deductively: Math Word Problem Solving as Complex Relation Extractioncited by 44
- 2022Learning Math Reasoning from Self-Sampled Correct and Partially-Correct Solutionscited by 38
- 2024Do Language Models Exhibit the Same Cognitive Biases in Problem Solving as Human Learners?cited by 19
Built on by
Citing papers per year: 2024: 6; 2025: 22; 2026: 15.
43 papers.
Sort:
By area:
- 2024Arithmetic Without Algorithms: Language Models Solve Math With a Bag of Heuristicscited by 94
- 2025MIB: A Mechanistic Interpretability Benchmarkcited by 49
- 2024Number Cookbook: Number Understanding of Language Models and How to Improve Itcited by 41
- 2026Locate, Steer, and Improve: A Practical Survey of Actionable Mechanistic Interpretability in Large Language Modelscited by 22
- 2025Probing for Arithmetic Errors in Language Modelscited by 17
- 2025Understanding the Skill Gap in Recurrent Language Models: The Role of the Gather-and-Aggregate Mechanismcited by 15
- 2025Implicit Reasoning in Transformers is Reasoning through Shortcutscited by 14
- 2024Language Models are Symbolic Learners in Arithmeticcited by 11
- 2024The Geometry of Numerical Reasoning: Language Models Compare Numeric Properties in Linear Subspacescited by 10
- 2024Math Neurosurgery: Isolating Language Models' Math Reasoning Abilities Using Only Forward Passescited by 10
- 2025The Validation Gap: A Mechanistic Analysis of How Language Models Compute Arithmetic but Fail to Validate Itcited by 10
- 2025Process or Result? Manipulated Ending Tokens Can Mislead Reasoning LLMs to Ignore the Correct Reasoning Stepscited by 9
31 more
- 2025Understanding In-context Learning of Addition via Activation Subspacescited by 8
- 2025Can LLMs Reason Abstractly Over Math Word Problems Without CoT? Disentangling Abstract Formulation From Arithmetic Computationcited by 8
- 2025Benford's Curse: Tracing Digit Bias to Numerical Hallucination in LLMscited by 6
- 2025Modular Arithmetic: Language Models Solve Math Digit by Digitcited by 6
- 2025Efficient numeracy in language models through single-token number embeddingscited by 6
- 2025Bigram Subnetworks: Mapping to Next Tokens in Transformer Language Modelscited by 5
- 2025All for One: LLMs Solve Mental Math at the Last Token With Information Transferred From Other Tokenscited by 5
- 2024Unraveling Arithmetic in Large Language Models: The Role of Algebraic Structurescited by 4
- 2025Fine, I'll Merge It Myself: A Multi-Fidelity Framework for Automated Model Mergingcited by 4
- 2025Leveraging Submodule Linearity Enhances Task Arithmetic Performance in LLMscited by 4
- 2025Exploring the Translation Mechanism of Large Language Modelscited by 3
- 2025Exploring the Hidden Reasoning Process of Large Language Models by Misleading Themcited by 3
- 2025Interpreting the Latent Structure of Operator Precedence in Language Modelscited by 2
- 2025Restoring Pruned Large Language Models via Lost Component Compensationcited by 2
- 2026Shattered Compositionality: Counterintuitive Learning Dynamics of Transformers for Arithmeticcited by 2
- 2026Compressed Sensing for Capability Localization in Large Language Modelscited by 2
- 2026Weight Patching: Toward Source-Level Mechanistic Localization in LLMscited by 2
- 2025Language Models Learn Universal Representations of Numbers and Here's Why You Should Carecited by 1
- 2026A model of errors in transformerscited by 1
- 2026AI-rithmeticcited by 1
- 2026The Struggle Between Continuation and Refusal: A Mechanistic Analysis of the Continuation-Triggered Jailbreak in LLMscited by 1
- 2026How Do LLMs and VLMs Understand Viewpoint Rotation Without Vision? An Interpretability Studycited by 1
- 2026Cloud to Edge: Benchmarking LLM Inference On Hardware-Accelerated Single-Board Computerscited by 1
- 2026Are Arithmetic Heuristic Neurons Form-Invariant? A Mechanistic Analysis of Symbols, Text, and Code in LLMscited by 1
- 2025Optimistic Gradient Learning with Hessian Corrections for High-Dimensional Black-Box Optimizationcited by 0
- 2025Findings of the BlackboxNLP 2025 Shared Task: Localizing Circuits and Causal Variables in Language Modelscited by 0
- 2026LLM-Enabled Multi-Agent Systems: Empirical Evaluation and Insights into Emerging Design Patterns & Paradigmscited by 0
- 2026The Shape of Addition: Geometric Structures of Arithmetic in Large Language Modelscited by 0
- 2026Language Models Compare Quantities Using Number-specific and Unit-specific Heuristicscited by 0
- 2026Spontaneous Context Restoration: How Language Models Recover from Corrupted Inputscited by 0
- 2026RESCUE: Repairing Language Model Errors to Sparse Circuits via Reinforcement Learningcited by 0
- 2026RESCUE: Repairing Language Model Errors to Sparse Circuits via Reinforcement Learning29 Sep 2026
- 2026Spontaneous Context Restoration: How Language Models Recover from Corrupted Inputs28 Sep 2026
- 2026Are Arithmetic Heuristic Neurons Form-Invariant? A Mechanistic Analysis of Symbols, Text, and Code in LLMs18 Jul 2026
- 2026Language Models Compare Quantities Using Number-specific and Unit-specific Heuristics2 Jun 2026
- 2026The Shape of Addition: Geometric Structures of Arithmetic in Large Language Models29 May 2026
- 2026Cloud to Edge: Benchmarking LLM Inference On Hardware-Accelerated Single-Board Computers24 Apr 2026
- 2026How Do LLMs and VLMs Understand Viewpoint Rotation Without Vision? An Interpretability Study16 Apr 2026
- 2026Weight Patching: Toward Source-Level Mechanistic Localization in LLMs15 Apr 2026
- 2026The Struggle Between Continuation and Refusal: A Mechanistic Analysis of the Continuation-Triggered Jailbreak in LLMs9 Mar 2026
- 2026Compressed Sensing for Capability Localization in Large Language Models11 Feb 2026
- 2026AI-rithmetic11 Feb 2026
- 2026Shattered Compositionality: Counterintuitive Learning Dynamics of Transformers for Arithmetic30 Jan 2026
31 more
- 2026A model of errors in transformers20 Jan 2026
- 2026Locate, Steer, and Improve: A Practical Survey of Actionable Mechanistic Interpretability in Large Language Models20 Jan 2026
- 2026LLM-Enabled Multi-Agent Systems: Empirical Evaluation and Insights into Emerging Design Patterns & Paradigms6 Jan 2026
- 2025Findings of the BlackboxNLP 2025 Shared Task: Localizing Circuits and Causal Variables in Language Models23 Nov 2025
- 2025Language Models Learn Universal Representations of Numbers and Here's Why You Should Care30 Oct 2025
- 2025Restoring Pruned Large Language Models via Lost Component Compensation22 Oct 2025
- 2025Interpreting the Latent Structure of Operator Precedence in Language Models14 Oct 2025
- 2025Efficient numeracy in language models through single-token number embeddings8 Oct 2025
- 2025All for One: LLMs Solve Mental Math at the Last Token With Information Transferred From Other Tokens11 Sep 2025
- 2025Modular Arithmetic: Language Models Solve Math Digit by Digit4 Aug 2025
- 2025Probing for Arithmetic Errors in Language Models16 Jul 2025
- 2025Benford's Curse: Tracing Digit Bias to Numerical Hallucination in LLMs2 Jun 2025
- 2025Can LLMs Reason Abstractly Over Math Word Problems Without CoT? Disentangling Abstract Formulation From Arithmetic Computation29 May 2025
- 2025Understanding In-context Learning of Addition via Activation Subspaces8 May 2025
- 2025Understanding the Skill Gap in Recurrent Language Models: The Role of the Gather-and-Aggregate Mechanism22 Apr 2025
- 2025Bigram Subnetworks: Mapping to Next Tokens in Transformer Language Models21 Apr 2025
- 2025MIB: A Mechanistic Interpretability Benchmark17 Apr 2025
- 2025Leveraging Submodule Linearity Enhances Task Arithmetic Performance in LLMs15 Apr 2025
- 2025Process or Result? Manipulated Ending Tokens Can Mislead Reasoning LLMs to Ignore the Correct Reasoning Steps25 Mar 2025
- 2025Exploring the Hidden Reasoning Process of Large Language Models by Misleading Them20 Mar 2025
- 2025Implicit Reasoning in Transformers is Reasoning through Shortcuts10 Mar 2025
- 2025Exploring the Translation Mechanism of Large Language Models17 Feb 2025
- 2025The Validation Gap: A Mechanistic Analysis of How Language Models Compute Arithmetic but Fail to Validate It17 Feb 2025
- 2025Optimistic Gradient Learning with Hessian Corrections for High-Dimensional Black-Box Optimization7 Feb 2025
- 2025Fine, I'll Merge It Myself: A Multi-Fidelity Framework for Automated Model Merging6 Feb 2025
- 2024Unraveling Arithmetic in Large Language Models: The Role of Algebraic Structures25 Nov 2024
- 2024Number Cookbook: Number Understanding of Language Models and How to Improve It6 Nov 2024
- 2024Arithmetic Without Algorithms: Language Models Solve Math With a Bag of Heuristics28 Oct 2024
- 2024Math Neurosurgery: Isolating Language Models' Math Reasoning Abilities Using Only Forward Passes22 Oct 2024
- 2024Language Models are Symbolic Learners in Arithmetic21 Oct 2024
- 2024The Geometry of Numerical Reasoning: Language Models Compare Numeric Properties in Linear Subspaces17 Oct 2024
- 2024Arithmetic Without Algorithms: Language Models Solve Math With a Bag of Heuristicscited by 94
- 2025Implicit Reasoning in Transformers is Reasoning through Shortcutscited by 14
- 2024The Geometry of Numerical Reasoning: Language Models Compare Numeric Properties in Linear Subspacescited by 10
- 2024Math Neurosurgery: Isolating Language Models' Math Reasoning Abilities Using Only Forward Passescited by 10
- 2025Process or Result? Manipulated Ending Tokens Can Mislead Reasoning LLMs to Ignore the Correct Reasoning Stepscited by 9
- 2025Can LLMs Reason Abstractly Over Math Word Problems Without CoT? Disentangling Abstract Formulation From Arithmetic Computationcited by 8
- 2024Unraveling Arithmetic in Large Language Models: The Role of Algebraic Structurescited by 4
- 2025Fine, I'll Merge It Myself: A Multi-Fidelity Framework for Automated Model Mergingcited by 4
- 2025Exploring the Hidden Reasoning Process of Large Language Models by Misleading Themcited by 3
- 2025Interpreting the Latent Structure of Operator Precedence in Language Modelscited by 2
- 2026Compressed Sensing for Capability Localization in Large Language Modelscited by 2
- 2026Compressed Sensing for Capability Localization in Large Language Models11 Feb 2026
- 2025Interpreting the Latent Structure of Operator Precedence in Language Models14 Oct 2025
- 2025Can LLMs Reason Abstractly Over Math Word Problems Without CoT? Disentangling Abstract Formulation From Arithmetic Computation29 May 2025
- 2025Process or Result? Manipulated Ending Tokens Can Mislead Reasoning LLMs to Ignore the Correct Reasoning Steps25 Mar 2025
- 2025Exploring the Hidden Reasoning Process of Large Language Models by Misleading Them20 Mar 2025
- 2025Implicit Reasoning in Transformers is Reasoning through Shortcuts10 Mar 2025
- 2025Fine, I'll Merge It Myself: A Multi-Fidelity Framework for Automated Model Merging6 Feb 2025
- 2024Unraveling Arithmetic in Large Language Models: The Role of Algebraic Structures25 Nov 2024
- 2024Arithmetic Without Algorithms: Language Models Solve Math With a Bag of Heuristics28 Oct 2024
- 2024Math Neurosurgery: Isolating Language Models' Math Reasoning Abilities Using Only Forward Passes22 Oct 2024
- 2024The Geometry of Numerical Reasoning: Language Models Compare Numeric Properties in Linear Subspaces17 Oct 2024
- 2025MIB: A Mechanistic Interpretability Benchmarkcited by 49
- 2024Number Cookbook: Number Understanding of Language Models and How to Improve Itcited by 41
- 2026Locate, Steer, and Improve: A Practical Survey of Actionable Mechanistic Interpretability in Large Language Modelscited by 22
- 2025Probing for Arithmetic Errors in Language Modelscited by 17
- 2025Understanding the Skill Gap in Recurrent Language Models: The Role of the Gather-and-Aggregate Mechanismcited by 15
- 2024Language Models are Symbolic Learners in Arithmeticcited by 11
- 2025The Validation Gap: A Mechanistic Analysis of How Language Models Compute Arithmetic but Fail to Validate Itcited by 10
- 2025Understanding In-context Learning of Addition via Activation Subspacescited by 8
- 2025Benford's Curse: Tracing Digit Bias to Numerical Hallucination in LLMscited by 6
- 2025Modular Arithmetic: Language Models Solve Math Digit by Digitcited by 6
- 2025Efficient numeracy in language models through single-token number embeddingscited by 6
- 2025Bigram Subnetworks: Mapping to Next Tokens in Transformer Language Modelscited by 5
12 most cited of 30 All 30 (JSON)
- 2026RESCUE: Repairing Language Model Errors to Sparse Circuits via Reinforcement Learning29 Sep 2026
- 2026Spontaneous Context Restoration: How Language Models Recover from Corrupted Inputs28 Sep 2026
- 2026Are Arithmetic Heuristic Neurons Form-Invariant? A Mechanistic Analysis of Symbols, Text, and Code in LLMs18 Jul 2026
- 2026Language Models Compare Quantities Using Number-specific and Unit-specific Heuristics2 Jun 2026
- 2026The Shape of Addition: Geometric Structures of Arithmetic in Large Language Models29 May 2026
- 2026Cloud to Edge: Benchmarking LLM Inference On Hardware-Accelerated Single-Board Computers24 Apr 2026
- 2026How Do LLMs and VLMs Understand Viewpoint Rotation Without Vision? An Interpretability Study16 Apr 2026
- 2026Weight Patching: Toward Source-Level Mechanistic Localization in LLMs15 Apr 2026
- 2026AI-rithmetic11 Feb 2026
- 2026Shattered Compositionality: Counterintuitive Learning Dynamics of Transformers for Arithmetic30 Jan 2026
- 2026A model of errors in transformers20 Jan 2026
- 2026Locate, Steer, and Improve: A Practical Survey of Actionable Mechanistic Interpretability in Large Language Models20 Jan 2026
12 newest of 30 All 30 (JSON)