Unraveling Arithmetic in Large Language Models: The Role of Algebraic Structures
On the map: LLM reasoning → Mathematical reasoning
Abstract (arXiv)
Large language models (LLMs) have demonstrated remarkable mathematical capabilities, largely driven by chain-of-thought (CoT) prompting, which decomposes complex reasoning into step-by-step solutions. This approach has enabled significant advancements, as evidenced by performance on benchmarks like GSM8K and MATH. However, the mechanisms underlying LLMs' ability to perform arithmetic in a single step of CoT remain poorly understood. Existing studies debate whether LLMs encode numerical values or rely on symbolic reasoning, while others explore attention and multi-layered processing in arithmetic tasks. In this work, we propose that LLMs learn arithmetic by capturing algebraic structures, such as commutativity and identity properties. Since these structures are observable through input-output relationships, they can generalize to unseen data. We empirically demonstrate that LLMs can learn algebraic structures using a custom dataset of arithmetic problems, as well as providing theoretical evidence showing that, under specific configurations of weights and biases, the transformer-based LLMs can generate embeddings that remain invariant to both permutations of input tokens and the presence of identity elements. Our findings indicate that leveraging algebraic structures can enhance the LLMs' arithmetic capabilities, offering insights into improving their arithmetic performance.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Placed in Mathematical reasoning, one of 17 directions in LLM reasoning. Builds on 25 of its 32 references that are in the map. First posted on arXiv 25 Nov 2024.
Builds on
25 of 32 references.
Closest ancestors · 5
Same direction, newest first
- 2024NumeroLogic: Number Encoding for Enhanced LLMs' Numerical Reasoning30 Mar
- 2024Dual Instruction Tuning with Large Language Models for Mathematical Reasoning27 Mar
- 2024MathScale: Scaling Instruction Tuning for Mathematical Reasoning5 Mar
- 2024Exploring Group and Symmetry Principles in Large Language Models9 Feb
- 2023A Mechanistic Interpretation of Arithmetic Reasoning in Language Models using Causal Mediation Analysis24 May
Other references · 20
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,203
- 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 871
- 2023Towards Revealing the Mystery behind Chain of Thought: A Theoretical Perspectivecited by 293
- 2023How does GPT-2 compute greater-than?: Interpreting mathematical abilities in a pre-trained language modelcited by 199
- 2023Why think step by step? Reasoning emerges from the locality of experiencecited by 103
- 2023Goat: Fine-tuned LLaMA Outperforms GPT-4 on Arithmetic Taskscited by 84
- 2023Auto-Regressive Next-Token Predictors are Universal Learnerscited by 65
- 2023Improving Large Language Model Fine-tuning for Solving Math Problemscited by 48
- 2024Interpreting and Improving Large Language Models in Arithmetic Calculationcited by 43
- 2024Language Models Encode Numbers Using Digit Representations in Base 10cited by 32
- 2023Latent Space Symmetry Discoverycited by 29
8 more
- 2024A Theory for Length Generalization in Learning to Reasoncited by 11
- 2024Language Models are Symbolic Learners in Arithmeticcited by 11
- 2024Adapting While Learning: Grounding LLMs for Scientific Problems with Intelligent Tool Usage Adaptationcited by 7
- 2023A Unified Framework for Discovering Discrete Symmetriescited by 6
- 2024RevOrder: A Novel Method for Enhanced Arithmetic in Language Modelscited by 3
- 2024Executing Arithmetic: Fine-Tuning Large Language Models as Turing Machinescited by 3
- 2023Neural Discovery of Permutation Subgroupscited by 2
- 2024Learning Mathematical Rules with Large Language Modelscited by 1
Built on by
Citing papers per year: 2025: 2; 2026: 2.
4 papers.
- 2025Do Large Language Models Truly Grasp Addition? A Rule-Focused Diagnostic Using Two-Integer Arithmeticcited by 8
- 2025Safety Alignment Depth in Large Language Models: A Markov Chain Perspectivecited by 1
- 2026The Shape of Addition: Geometric Structures of Arithmetic in Large Language Modelscited by 0
- 2026Enhancing Transformer Representations of Symbolic ODE Expressionscited by 0
- 2026Enhancing Transformer Representations of Symbolic ODE Expressions21 Sep 2026
- 2026The Shape of Addition: Geometric Structures of Arithmetic in Large Language Models29 May 2026
- 2025Do Large Language Models Truly Grasp Addition? A Rule-Focused Diagnostic Using Two-Integer Arithmetic7 Apr 2025
- 2025Safety Alignment Depth in Large Language Models: A Markov Chain Perspective2 Feb 2025
Similar, not cited
Close in wording, no citation either way
- 2026Disentangling Mathematical Reasoning in LLMs: A Methodological Investigation of Internal Mechanisms
- 2023Frugal LMs Trained to Invoke Symbolic Solvers Achieve Parameter-Efficient Arithmetic Reasoning
- 2025Language Models Use Trigonometry to Do Addition
- 2026The Missing Primitive: Diagnosing and Repairing Mathematical Reasoning in Large Language Models
- 2024How Numerical Precision Affects Arithmetical Reasoning Capabilities of LLMs
- 2025Thinking Machines: Mathematical Reasoning in the Age of LLMs
- 2022Limitations of Language Models in Arithmetic and Symbolic Induction
- 2026Probing Structural Mathematical Reasoning in Language Models with Algebraic Trapdoors