Modular Arithmetic: Language Models Solve Math Digit by Digit
Not on the map. Why?
Abstract (arXiv)
While recent work has begun to uncover the internal strategies that Large Language Models (LLMs) employ for simple arithmetic tasks, a unified understanding of their underlying mechanisms is still lacking. We extend recent findings showing that LLMs represent numbers in a digit-wise manner and present evidence for the existence of digit-position-specific circuits that LLMs use to perform simple arithmetic tasks, i.e. modular subgroups of MLP neurons that operate independently on different digit positions (units, tens, hundreds). Notably, such circuits exist independently of model size and of tokenization strategy, i.e. both for models that encode longer numbers digit-by-digit and as one token. Using Feature Importance and Causal Interventions, we identify and validate the digit-position-specific circuits, revealing a compositional and interpretable structure underlying the solving of arithmetic problems in LLMs. Our interventions selectively alter the model's prediction at targeted digit positions, demonstrating the causal role of digit-position circuits in solving arithmetic tasks.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 14 of its 28 references that are in the map. First posted on arXiv 4 Aug 2025.
Builds on
14 of 28 references.
References · 14
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2022Locating and Editing Factual Associations in GPTcited by 2,609
- 2023Progress measures for grokking via mechanistic interpretabilitycited by 822
- 2024Arithmetic Without Algorithms: Language Models Solve Math With a Bag of Heuristicscited by 94
- 2023Successor Heads: Recurring, Interpretable Attention Heads In The Wildcited by 77
- 2025Language Models Use Trigonometry to Do Additioncited by 68
- 2024pyvene: A Library for Understanding and Improving PyTorch Models via Interventionscited by 53
- 2024Interpreting and Improving Large Language Models in Arithmetic Calculationcited by 43
- 2024Pre-trained Large Language Models Use Fourier Features to Compute Additioncited by 38
- 2024Language Models Encode Numbers Using Digit Representations in Base 10cited by 32
- 2024Language Models Encode the Value of Numbers Linearlycited by 19
- 2025What is a Number, That a Large Language Model May Know It?cited by 14
2 more
- 2025The Lookahead Limitation: Why Multi-Operand Addition is Hard for LLMscited by 13
- 2024Language Models are Symbolic Learners in Arithmeticcited by 11
Built on by
Citing papers per year: 2026: 6.
6 papers.
- 2026Language Model Circuits Are Sparse in the Neuron Basiscited by 18
- 2026AI-rithmeticcited by 1
- 2026Are Arithmetic Heuristic Neurons Form-Invariant? A Mechanistic Analysis of Symbols, Text, and Code in LLMscited by 1
- 2026Automated Attention Pattern Discovery at Scale in Large Language Modelscited by 0
- 2026Disentangling Mathematical Reasoning in LLMs: A Methodological Investigation of Internal Mechanismscited by 0
- 2026When Tokenization is Secretly Output Supervisioncited by 0
- 2026When Tokenization is Secretly Output Supervision1 Sep 2026
- 2026Are Arithmetic Heuristic Neurons Form-Invariant? A Mechanistic Analysis of Symbols, Text, and Code in LLMs18 Jul 2026
- 2026Disentangling Mathematical Reasoning in LLMs: A Methodological Investigation of Internal Mechanisms17 Apr 2026
- 2026Automated Attention Pattern Discovery at Scale in Large Language Models4 Apr 2026
- 2026AI-rithmetic11 Feb 2026
- 2026Language Model Circuits Are Sparse in the Neuron Basis30 Jan 2026