Do Large Language Models Truly Grasp Addition? A Rule-Focused Diagnostic Using Two-Integer Arithmetic
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) achieve impressive results on advanced mathematics benchmarks but sometimes fail on basic arithmetic tasks, raising the question of whether they have truly grasped fundamental arithmetic rules or are merely relying on pattern matching. To unravel this issue, we systematically probe LLMs' understanding of two-integer addition (0 to 264) by testing three crucial properties: commutativity (A+B=B+A), representation invariance via symbolic remapping (e.g., 7 mapsto Y), and consistent accuracy scaling with operand length. Our evaluation of 12 leading LLMs reveals a stark disconnect: while models achieve high numeric accuracy (73.8-99.8%), they systematically fail these diagnostics. Specifically, accuracy plummets to ≤ 7.5% with symbolic inputs, commutativity is violated in up to 20% of cases, and accuracy scaling is non-monotonic. Interventions further expose this pattern-matching reliance: explicitly providing rules degrades performance by 29.49%, while prompting for explanations before answering merely maintains baseline accuracy. These findings demonstrate that current LLMs address elementary addition via pattern matching, not robust rule induction, motivating new diagnostic benchmarks and innovations in model architecture and training to cultivate genuine mathematical reasoning. Our dataset and generating code are available at https://github.com/kuri-leo/llm-arithmetic-diagnostic.
Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Builds on 19 of its 35 references that are in the map. First posted on arXiv 7 Apr 2025.
Builds on
19 of 35 references.
References · 19
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
- 2020Measuring Massive Multitask Language Understandingcited by 7,768
- 2023Let's Verify Step by Stepcited by 3,598
- 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,107
- 2022Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasetscited by 599
- 2024GSM-Symbolic: Understanding the Limitations of Mathematical Reasoning in Large Language Modelscited by 533
- 2024Generative Verifiers: Reward Modeling as Next-Token Predictioncited by 465
- 2023The Reversal Curse: LLMs trained on "A is B" fail to learn "B is A"cited by 399
- 2019Analysing Mathematical Reasoning Abilities of Neural Modelscited by 331
- 2023Revisiting Out-of-distribution Robustness in NLP: Benchmark, Analysis, and LLMs Evaluationscited by 96
- 2024Arithmetic Without Algorithms: Language Models Solve Math With a Bag of Heuristicscited by 94
7 more
- 2025Vision-Language Models Do Not Understand Negationcited by 69
- 2023MR-GSM8K: A Meta-Reasoning Benchmark for Large Language Model Evaluationcited by 57
- 2024LLMs for Generating and Evaluating Counterfactuals: A Comprehensive Studycited by 30
- 2024Language Models are Symbolic Learners in Arithmeticcited by 11
- 2024Dissecting Multiplication in Transformers: Insights into LLMscited by 7
- 2024Unraveling Arithmetic in Large Language Models: The Role of Algebraic Structurescited by 4
- 2024Controlling Out-of-Domain Gaps in LLMs for Genre Classification and Generated Text Detectioncited by 3
Built on by
Citing papers per year: 2025: 5; 2026: 3.
8 papers.
- 2025Energy-Based Transformers are Scalable Learners and Thinkerscited by 30
- 2025From Reasoning to Learning: A Survey on Hypothesis Discovery and Rule Learning with Large Language Modelscited by 5
- 2025Do LLMs Overthink Basic Math Reasoning? Benchmarking the Accuracy-Efficiency Tradeoff in Language Modelscited by 5
- 2025Formula-R1: Incentivizing LLM Reasoning over Complex Tables with Numerical Computation via Formula-Driven Reinforcement Learningcited by 3
- 2025Learning to Disentangle Latent Reasoning Rules with Language VAEs: A Systematic Studycited by 2
- 2026AI-rithmeticcited by 1
- 2026Arithmetic OOD Failure Unfolds in Stages in Minimal GPTscited by 0
- 2026When Tokenization is Secretly Output Supervisioncited by 0
- 2026When Tokenization is Secretly Output Supervision1 Sep 2026
- 2026Arithmetic OOD Failure Unfolds in Stages in Minimal GPTs27 Mar 2026
- 2026AI-rithmetic11 Feb 2026
- 2025Do LLMs Overthink Basic Math Reasoning? Benchmarking the Accuracy-Efficiency Tradeoff in Language Models5 Jul 2025
- 2025Energy-Based Transformers are Scalable Learners and Thinkers2 Jul 2025
- 2025Learning to Disentangle Latent Reasoning Rules with Language VAEs: A Systematic Study24 Jun 2025
- 2025Formula-R1: Incentivizing LLM Reasoning over Complex Tables with Numerical Computation via Formula-Driven Reinforcement Learning29 May 2025
- 2025From Reasoning to Learning: A Survey on Hypothesis Discovery and Rule Learning with Large Language Models28 May 2025
Similar, not cited
Close in wording, no citation either way
- 2022Limitations of Language Models in Arithmetic and Symbolic Induction
- 2024How Numerical Precision Affects Arithmetical Reasoning Capabilities of LLMs
- 2025Language Models Use Trigonometry to Do Addition
- 2024Language Models Do Hard Arithmetic Tasks Easily and Hardly Do Easy Arithmetic Tasks
- 2024Can Large Language Models put 2 and 2 together? Probing for Entailed Arithmetical Relationships
- 2025Mathematical Reasoning in Large Language Models: Assessing Logical and Arithmetic Errors across Wide Numerical Ranges
- 2026The Missing Primitive: Diagnosing and Repairing Mathematical Reasoning in Large Language Models
- 2025A Fragile Number Sense: Probing the Elemental Limits of Numerical Reasoning in LLMs