Teaching Arithmetic to Small Transformers
Not on the map. Why?
Cited by 31 in LLM reasoning, but placed by its own abstract, which didn’t fit.
Abstract (arXiv)
Large language models like GPT-4 exhibit emergent capabilities across general-purpose tasks, such as basic arithmetic, when trained on extensive text data, even though these tasks are not explicitly encoded by the unsupervised, next-token prediction objective. This study investigates how small transformers, trained from random initialization, can efficiently learn arithmetic operations such as addition, multiplication, and elementary functions like square root, using the next-token prediction objective. We first demonstrate that conventional training data is not the most effective for arithmetic learning, and simple formatting changes can significantly improve accuracy. This leads to sharp phase transitions as a function of training data scale, which, in some cases, can be explained through connections to low-rank matrix completion. Building on prior work, we then train on chain-of-thought style data that includes intermediate step results. Even in the complete absence of pretraining, this approach significantly and simultaneously improves accuracy, sample complexity, and convergence speed. We also study the interplay between arithmetic and text data during training and examine the effects of few-shot prompting, pretraining, and model scale. Additionally, we discuss length generalization challenges. Our work highlights the importance of high-quality, instructive data that considers the particular characteristics of the next-word prediction objective for rapidly eliciting arithmetic capabilities.
Key facts. Cited by 121 papers in the map (data through 7 Oct 2026). Builds on 54 of its 68 references that are in the map. First posted on arXiv 7 Jul 2023.
Builds on
54 of 68 references.
References · 54
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
- 2023Let's Verify Step by Stepcited by 3,598
- 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
- 2014Sequence to Sequence Learning with Neural Networkscited by 2,974
- 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,579
38 more
- 2022Emergent Abilities of Large Language Modelscited by 2,483
- 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,970
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
- 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,397
- 2022LaMDA: Language Models for Dialog Applicationscited by 1,218
- 2018Self-Attention with Relative Position Representationscited by 1,112
- 2023Teaching Large Language Models to Self-Debugcited by 963
- 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 871
- 2022Solving math word problems with process- and outcome-based feedbackcited by 871
- 2022Large Language Models Can Self-Improvecited by 656
- 2017Program Induction by Rationale Generation : Learning to Solve and Explain Algebraic Word Problemscited by 642
- 2023DataComp: In search of the next generation of multimodal datasetscited by 635
- 2022Efficiently Scaling Transformer Inferencecited by 529
- 2022Language Models are Multilingual Chain-of-Thought Reasonerscited by 518
- 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 404
- 2019Explain Yourself! Leveraging Language Models for Commonsense Reasoningcited by 367
- 2016Solving General Arithmetic Word Problemscited by 353
- 2022Emergent Analogical Reasoning in Large Language Modelscited by 239
- 2023Looped Transformers as Programmable Computerscited by 224
- 2022Exploring Length Generalization in Large Language Modelscited by 204
- 2023How does GPT-2 compute greater-than?: Interpreting mathematical abilities in a pre-trained language modelcited by 199
- 2019Do NLP Models Know Numbers? Probing Numeracy in Embeddingscited by 157
- 2022Impact of Pretraining Term Frequencies on Few-Shot Reasoningcited by 142
- 2021Investigating the Limitations of Transformers with Simple Arithmetic Taskscited by 136
- 2023How well do Large Language Models perform in Arithmetic tasks?cited by 130
- 2022Teaching Algorithmic Reasoning via In-context Learningcited by 111
- 2014Learning to Executecited by 105
- 2021Statistically Meaningful Approximation: a Case Study on Approximating Turing Machines with Transformerscited by 101
- 2022Compositional Semantic Parsing with Large Language Modelscited by 95
- 2023Exposing Attention Glitches with Flip-Flop Language Modelingcited by 74
- 2021Making Transformers Solve Compositional Taskscited by 72
- 2022Limitations of Language Models in Arithmetic and Symbolic Inductioncited by 71
- 2021Linear algebra with transformerscited by 62
- 2022Transcending Scaling Laws with 0.1% Extra Computecited by 55
- 2017Making Neural Programming Architectures Generalize via Recursioncited by 35
- 2021A Data-Centric Approach for Training Deep Neural Networks with Less Datacited by 28
- 2022What is my math transformer doing? -- Three results on interpretability and generalizationcited by 19
- 2021Exploring Generalization Ability of Pretrained Language Models on Arithmetic and Logical Reasoningcited by 17
50 most cited of 54 All 54 (JSON)
Built on by
Citing papers per year: 2023: 13; 2024: 51; 2025: 31; 2026: 26.
121 papers.
Sort:
By area:
- 2024CRUXEval: A Benchmark for Code Reasoning, Understanding and Executioncited by 294
- 2025Reasoning with Latent Thoughts: On the Power of Looped Transformerscited by 223
- 2024The pitfalls of next-token predictioncited by 156
- 2023Looped Transformers are Better at Learning Learning Algorithmscited by 135
- 2024Beyond Autoregression: Discrete Diffusion for Complex Reasoning and Planningcited by 135
- 2024Tokenization counts: the impact of tokenization on arithmetic in frontier LLMscited by 112
- 2023Amortizing intractable inference in large language modelscited by 94
- 2024Transformers Can Achieve Length Generalization But Not Robustlycited by 82
- 2024Transformers Can Do Arithmetic with the Right Embeddingscited by 77
- 2023Unleashing the potential of prompt engineering for large language modelscited by 72
- 2024Premise Order Matters in Reasoning with Large Language Modelscited by 71
- 2023Auto-Regressive Next-Token Predictors are Universal Learnerscited by 65
38 more
- 2024Understanding Transformer Reasoning Capabilities via Graph Algorithmscited by 64
- 2024Can Language Models Learn to Skip Steps?cited by 59
- 2023Positional Description Matters for Transformers Arithmeticcited by 56
- 2024Number Cookbook: Number Understanding of Language Models and How to Improve Itcited by 41
- 2024Pre-trained Large Language Models Use Fourier Features to Compute Additioncited by 38
- 2024IsoBench: Benchmarking Multimodal Foundation Models on Isomorphic Representationscited by 37
- 2024How Far Can Transformers Reason? The Globality Barrier and Inductive Scratchpadcited by 35
- 2024Causal Language Modeling Can Elicit Search and Reasoning Capabilities on Logic Puzzlescited by 35
- 2023Learning the greatest common divisor: explaining transformer predictionscited by 33
- 2024NumeroLogic: Number Encoding for Enhanced LLMs' Numerical Reasoningcited by 31
- 2025Self-Improving Transformers Overcome Easy-to-Hard and Length Generalization Challengescited by 30
- 2024Simulation of Graph Algorithms with Looped Transformerscited by 29
- 2024Out-of-distribution generalization via composition: a lens through induction heads in Transformerscited by 28
- 2025Roll the dice & look before you leap: Going beyond the creative limits of next-token predictioncited by 28
- 2024Universal Length Generalization with Turing Programscited by 25
- 2024A Philosophical Introduction to Language Models -- Part I: Continuity With Classic Debatescited by 22
- 2024Position Coupling: Improving Length Generalization of Arithmetic Transformers Using Task Structurecited by 22
- 2024Can We Rely on LLM Agents to Draft Long-Horizon Plans? Let's Take TravelPlanner as an Examplecited by 22
- 2025FoNE: Precise Single-Token Number Embeddings via Fourier Featurescited by 21
- 2024Mixture of Parrots: Experts improve memorization more than reasoningcited by 20
- 2024Looped ReLU MLPs May Be All You Need as Practical Programmable Computerscited by 19
- 2024ALPINE: Unveiling the Planning Capability of Autoregressive Learning in Language Modelscited by 18
- 2024From Artificial Needles to Real Haystacks: Improving Retrieval Capabilities in LLMs by Finetuning on Synthetic Datacited by 18
- 2024Transforming the Bootstrap: Using Transformers to Compute Scattering Amplitudes in Planar N = 4 Super Yang-Mills Theorycited by 17
- 2023Uncovering hidden geometry in Transformers via disentangling position and contextcited by 15
- 2024Towards Empirical Interpretation of Internal Circuits and Properties in Grokked Transformers on Modular Polynomialscited by 14
- 2025Extrapolation by Association: Length Generalization Transfer in Transformerscited by 13
- 2023Arithmetic with Language Models: from Memorization to Computationcited by 12
- 2024Transformers meet Neural Algorithmic Reasonerscited by 12
- 2024UniZero: Generalized and Efficient Planning with Scalable Latent World Modelscited by 12
- 2024The Belief State Transformercited by 12
- 2024Regress, Don't Guess -- A Regression-like Loss on Number Tokens for Language Modelscited by 12
- 2024A Theory for Length Generalization in Learning to Reasoncited by 11
- 2024Language Models are Symbolic Learners in Arithmeticcited by 11
- 2023Sweeping Heterogeneity with Smart MoPs: Mixture of Prompts for LLM Task Adaptationcited by 10
- 2024Language Models Trained to do Arithmetic Predict Human Risky and Intertemporal Choicecited by 10
- 2024Explicitly Encoding Structural Symmetry is Key to Length Generalization in Arithmetic Taskscited by 10
- 2023Chain-of-Thought Reasoning is a Policy Improvement Operatorcited by 8
50 most cited of 121 All 121 (JSON)
- 2026The Geometry of Logic: Stratification Induces Semantic Structure and Robust Reasoning26 Sep 2026
- 2026Limits of Confidence in Diffusion17 Sep 2026
- 2026Behaviour Is an Incomplete Measure of Reasoning Development: Cross-surface pre-arrival accessibility and the limits of developmental inference in a recurrent-depth reasoner17 Aug 2026
- 2026Can Transformers Really Do It All? On the Compatibility of Inductive Biases Across Tasks20 Jul 2026
- 2026Hierarchical Domain Generalization17 Jul 2026
- 2026Radial Suppression Accelerates Algorithmic Generalization: A Geometric Analysis of Delayed Generalization30 Jun 2026
- 2026Arithmetic Pedagogy for Language Models3 Jun 2026
- 2026The Confidence Shortcut: A Reasoning Failure Mode of Masked Diffusion Models27 May 2026
- 2026LinAlg-Bench: A Forensic Benchmark Revealing Structural Failure Modes in LLM Mathematical Reasoning15 May 2026
- 2026Slower Generalization, Faster Memorization: A Sweet Spot in Algorithmic Learning14 May 2026
- 2026Globally Optimal Training of Spiking Neural Networks via Parameter Reconstruction8 May 2026
- 2026Learning Large-Scale Modular Addition with an Auxiliary Modulus8 May 2026
38 more
- 2026Recurrent Reasoning on Symbolic Puzzles with Sequence Models19 Apr 2026
- 2026The Long Delay to Arithmetic Generalization: When Learned Representations Outrun Behavior30 Mar 2026
- 2026Arithmetic OOD Failure Unfolds in Stages in Minimal GPTs27 Mar 2026
- 2026Transformers in the Dark: Navigating Unknown Search Spaces via Bandit Feedback25 Mar 2026
- 2026All elementary functions from a single binary operator23 Mar 2026
- 2026nabla-Reasoner: LLM Reasoning via Test-Time Gradient Descent in Latent Space5 Mar 2026
- 2026DriveCode: Domain Specific Numerical Encoding for LLM-Based Autonomous Driving1 Mar 2026
- 2026AI-rithmetic11 Feb 2026
- 2026Structural Disentanglement in Bilinear MLPs via Architectural Inductive Bias5 Feb 2026
- 2026Shattered Compositionality: Counterintuitive Learning Dynamics of Transformers for Arithmetic30 Jan 2026
- 2026Even GPT-5.2 Can't Count to Five: The Case for Zero-Error Horizons in Trustworthy LLMs22 Jan 2026
- 2026Breaking the Data Barrier in Learning Symbolic Computation: A Case Study on Variable Ordering Suggestion for Cylindrical Algebraic Decomposition20 Jan 2026
- 2026From Implicit to Explicit: Token-Efficient Logical Supervision for Mathematical Reasoning in LLMs7 Jan 2026
- 2026The Two-Stage Decision-Sampling Hypothesis: Understanding the Emergence of Self-Reflection in RL-Trained LLMs4 Jan 2026
- 2025Exact Learning of Arithmetic with Differentiable Agents27 Nov 2025
- 2025Quantitative Bounds for Length Generalization in Transformers30 Oct 2025
- 2025Facts in Stats: Impacts of Pretraining Diversity on Language Model Generalization17 Oct 2025
- 2025To Infinity and Beyond: Tool-Use Unlocks Length Generalization in State Space Models16 Oct 2025
- 2025Efficient numeracy in language models through single-token number embeddings8 Oct 2025
- 2025Why Can't Transformers Learn Multiplication? Reverse-Engineering Reveals Long-Range Dependency Pitfalls30 Sep 2025
- 2025Teaching Transformers to Solve Combinatorial Problems through Efficient Trial & Error26 Sep 2025
- 2025Reverse Browser: Vector-Image-to-Code Generator5 Sep 2025
- 2025The Imitation Game: Turing Machine Imitator is Length Generalizable Reasoner17 Jul 2025
- 2025Beyond Statistical Learning: Exact Learning Is Essential for General Intelligence30 Jun 2025
- 2025Scaling Self-Supervised Representation Learning for Symbolic Piano Performance30 Jun 2025
- 2025What Happens During the Loss Plateau? Understanding Abrupt Learning in Transformers16 Jun 2025
- 2025Long-Short Alignment for Effective Long-Context Modeling in LLMs13 Jun 2025
- 2025Extrapolation by Association: Length Generalization Transfer in Transformers10 Jun 2025
- 2025StochasTok: Improving Fine-Grained Subword Understanding in LLMs2 Jun 2025
- 2025Decomposing Complex Visual Comprehension into Atomic Visual Skills for Vision Language Models26 May 2025
- 2025Small Models, Smarter Learning: The Power of Joint Task Training23 May 2025
- 2025Quiet Feature Learning in Algorithmic Tasks6 May 2025
- 2025Roll the dice & look before you leap: Going beyond the creative limits of next-token prediction21 Apr 2025
- 2025Don't Take Things Out of Context: Attention Intervention for Enhancing Chain-of-Thought Reasoning in Large Language Models14 Mar 2025
- 2025Machine Learning meets Algebraic Combinatorics: A Suite of Datasets Capturing Research-level Conjecturing Ability in Pure Mathematics9 Mar 2025
- 2025Weaker LLMs' Opinions Also Matter: Mixture of Opinions Enhances LLM's Mathematical Reasoning26 Feb 2025
- 2025Reasoning with Latent Thoughts: On the Power of Looped Transformers24 Feb 2025
- 2025The Role of Sparsity for Length Generalization in Transformers24 Feb 2025
50 newest of 121 All 121 (JSON)
- 2025Reasoning with Latent Thoughts: On the Power of Looped Transformerscited by 223
- 2024Beyond Autoregression: Discrete Diffusion for Complex Reasoning and Planningcited by 135
- 2024Premise Order Matters in Reasoning with Large Language Modelscited by 71
- 2023Auto-Regressive Next-Token Predictors are Universal Learnerscited by 65
- 2024Understanding Transformer Reasoning Capabilities via Graph Algorithmscited by 64
- 2024Can Language Models Learn to Skip Steps?cited by 59
- 2024Pre-trained Large Language Models Use Fourier Features to Compute Additioncited by 38
- 2024Causal Language Modeling Can Elicit Search and Reasoning Capabilities on Logic Puzzlescited by 35
- 2024NumeroLogic: Number Encoding for Enhanced LLMs' Numerical Reasoningcited by 31
- 2024From Artificial Needles to Real Haystacks: Improving Retrieval Capabilities in LLMs by Finetuning on Synthetic Datacited by 18
- 2024Transformers meet Neural Algorithmic Reasonerscited by 12
- 2024Explicitly Encoding Structural Symmetry is Key to Length Generalization in Arithmetic Taskscited by 10
12 most cited of 31 All 31 (JSON)
- 2026The Geometry of Logic: Stratification Induces Semantic Structure and Robust Reasoning26 Sep 2026
- 2026Arithmetic Pedagogy for Language Models3 Jun 2026
- 2026The Confidence Shortcut: A Reasoning Failure Mode of Masked Diffusion Models27 May 2026
- 2026LinAlg-Bench: A Forensic Benchmark Revealing Structural Failure Modes in LLM Mathematical Reasoning15 May 2026
- 2026Recurrent Reasoning on Symbolic Puzzles with Sequence Models19 Apr 2026
- 2026nabla-Reasoner: LLM Reasoning via Test-Time Gradient Descent in Latent Space5 Mar 2026
- 2026Breaking the Data Barrier in Learning Symbolic Computation: A Case Study on Variable Ordering Suggestion for Cylindrical Algebraic Decomposition20 Jan 2026
- 2026From Implicit to Explicit: Token-Efficient Logical Supervision for Mathematical Reasoning in LLMs7 Jan 2026
- 2025The Imitation Game: Turing Machine Imitator is Length Generalizable Reasoner17 Jul 2025
- 2025Beyond Statistical Learning: Exact Learning Is Essential for General Intelligence30 Jun 2025
- 2025Decomposing Complex Visual Comprehension into Atomic Visual Skills for Vision Language Models26 May 2025
- 2025Don't Take Things Out of Context: Attention Intervention for Enhancing Chain-of-Thought Reasoning in Large Language Models14 Mar 2025
12 newest of 31 All 31 (JSON)
- 2026Limits of Confidence in Diffusioncited by 2
- 2026Limits of Confidence in Diffusion17 Sep 2026
- 2024CRUXEval: A Benchmark for Code Reasoning, Understanding and Executioncited by 294
- 2024The pitfalls of next-token predictioncited by 156
- 2023Looped Transformers are Better at Learning Learning Algorithmscited by 135
- 2024Tokenization counts: the impact of tokenization on arithmetic in frontier LLMscited by 112
- 2023Amortizing intractable inference in large language modelscited by 94
- 2024Transformers Can Achieve Length Generalization But Not Robustlycited by 82
- 2024Transformers Can Do Arithmetic with the Right Embeddingscited by 77
- 2023Unleashing the potential of prompt engineering for large language modelscited by 72
- 2023Positional Description Matters for Transformers Arithmeticcited by 56
- 2024Number Cookbook: Number Understanding of Language Models and How to Improve Itcited by 41
- 2024IsoBench: Benchmarking Multimodal Foundation Models on Isomorphic Representationscited by 37
- 2024How Far Can Transformers Reason? The Globality Barrier and Inductive Scratchpadcited by 35
12 most cited of 80 All 80 (JSON)
- 2026Behaviour Is an Incomplete Measure of Reasoning Development: Cross-surface pre-arrival accessibility and the limits of developmental inference in a recurrent-depth reasoner17 Aug 2026
- 2026Can Transformers Really Do It All? On the Compatibility of Inductive Biases Across Tasks20 Jul 2026
- 2026Hierarchical Domain Generalization17 Jul 2026
- 2026Radial Suppression Accelerates Algorithmic Generalization: A Geometric Analysis of Delayed Generalization30 Jun 2026
- 2026Slower Generalization, Faster Memorization: A Sweet Spot in Algorithmic Learning14 May 2026
- 2026Globally Optimal Training of Spiking Neural Networks via Parameter Reconstruction8 May 2026
- 2026Learning Large-Scale Modular Addition with an Auxiliary Modulus8 May 2026
- 2026The Long Delay to Arithmetic Generalization: When Learned Representations Outrun Behavior30 Mar 2026
- 2026Arithmetic OOD Failure Unfolds in Stages in Minimal GPTs27 Mar 2026
- 2026Transformers in the Dark: Navigating Unknown Search Spaces via Bandit Feedback25 Mar 2026
- 2026All elementary functions from a single binary operator23 Mar 2026
- 2026AI-rithmetic11 Feb 2026
12 newest of 80 All 80 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2026Algorithmic Scratchpads and Curriculum Staging for Arithmetic Reasoning in Tiny Transformers
- 2024Language Models Do Hard Arithmetic Tasks Easily and Hardly Do Easy Arithmetic Tasks
- 2024Unraveling Arithmetic in Large Language Models: The Role of Algebraic Structures
- 2022Transformers discover an elementary calculation system exploiting local attention and grid-like problem representation
- 2025Integrating Arithmetic Learning Improves Mathematical Reasoning in Smaller Models
- 2024PARAMANU-GANITA: Can Small Math Language Models Rival with Large Language Models on Mathematical Reasoning?
- 2026Separators Make Carry Propagation Learnable:The Geometry of Latent Carry in a Multiplication Transformer
- 2022Overcoming Barriers to Skill Injection in Language Modeling: Case Study in Arithmetic