mlsanityData to 13 Oct 2026

Tokenization counts: the impact of tokenization on arithmetic in frontier LLMs

arXiv 2402.14903 ↗First posted 22 Feb 2024cs.CL cs.LGcited by 113

Not on the map. Why?

Abstract (arXiv)

Tokenization, the division of input text into input tokens, is an often overlooked aspect of the large language model (LLM) pipeline and could be the source of useful or harmful inductive biases. Historically, LLMs have relied on byte pair encoding, without care to specific input domains. With the increased use of LLMs for reasoning, various number-specific tokenization schemes have been adopted, with popular models like LLaMa and PaLM opting for single-digit tokenization while GPT-3.5 and GPT-4 have separate tokens for each 1-, 2-, and 3-digit numbers. In this work, we study the effect this choice has on numerical reasoning through the use of arithmetic tasks. We consider left-to-right and right-to-left tokenization for GPT-3.5 and -4, finding that right-to-left tokenization (enforced by comma separating numbers at inference time) leads to largely improved performance. Furthermore, we find that model errors when using standard left-to-right tokenization follow stereotyped error patterns, suggesting that model computations are systematic rather than approximate. We show that the model is able to convert between tokenizations easily, thus allowing chain-of-thought-inspired approaches to recover performance on left-to-right tokenized inputs. We also find the gap between tokenization directions decreases when models are scaled, possibly indicating that larger models are better able to override this tokenization-dependent inductive bias. In summary, our work performs the first study of how number tokenization choices lead to differences in model performance on arithmetic tasks, accompanied by a thorough analysis of error patterns. We hope this work inspires practitioners to more carefully ablate number tokenization-related choices when working towards general models of numerical reasoning.

Key facts. Cited by 113 papers in the map (data through 13 Oct 2026). Builds on 29 of its 40 references that are in the map. First posted on arXiv 22 Feb 2024.

Builds on

29 of 40 references.

References · 29

  1. 2020Language Models are Few-Shot Learnerscited by 32,320
  2. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,072
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,979
  4. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,376
  5. 2021Training Verifiers to Solve Math Word Problemscited by 9,916
  6. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,270
  7. 2022Large Language Models are Zero-Shot Reasonerscited by 4,348
  8. 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,910
  9. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,379
  10. 2022Solving Quantitative Reasoning Problems with Language Modelscited by 1,369
  11. 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 878
  12. 2023Measuring Faithfulness in Chain-of-Thought Reasoningcited by 689
17 more
  1. 2018Subword Regularization: Improving Neural Network Translation Models with Multiple Subword Candidatescited by 637
  2. 2023Textbooks Are All You Need II: phi-1.5 technical reportcited by 564
  3. 2019Analysing Mathematical Reasoning Abilities of Neural Modelscited by 333
  4. 2023Think before you speak: Training Language Models With Pause Tokenscited by 256
  5. 2022Exploring Length Generalization in Large Language Modelscited by 205
  6. 2023What Algorithms can Transformers Learn? A Study in Length Generalizationcited by 198
  7. 2020Byte Pair Encoding is Suboptimal for Language Model Pretrainingcited by 191
  8. 2023Embers of Autoregression: Understanding Large Language Models Through the Problem They are Trained to Solvecited by 175
  9. 2023MEGABYTE: Predicting Million-byte Sequences with Multiscale Transformerscited by 166
  10. 2021Investigating the Limitations of Transformers with Simple Arithmetic Taskscited by 138
  11. 2023Rephrase and Respond: Let Large Language Models Ask Better Questions for Themselvescited by 123
  12. 2023Teaching Arithmetic to Small Transformerscited by 122
  13. 2022Teaching Algorithmic Reasoning via In-context Learningcited by 111
  14. 2022Character-Aware Models Improve Visual Text Renderingcited by 90
  15. 2023A Mechanistic Interpretation of Arithmetic Reasoning in Language Models using Causal Mediation Analysiscited by 89
  16. 2023xVal: A Continuous Numerical Tokenization for Scientific Language Modelscited by 26
  17. 2022Tokenization Consistency Matters for Generative Models on Extractive NLP Taskscited by 7

Built on by

Cited by year (2026 to 13 Oct)

Citing papers per year: 2024: 34; 2025: 40; 2026: 39.

113 papers.

Sort:

By area:

  1. 2025Measuring what Matters: Construct Validity in Large Language Model Benchmarkscited by 112
  2. 2025Gold-medalist Performance in Solving Olympiad Geometry with AlphaGeometry2cited by 95
  3. 2025SuperBPE: Space Travel for Language Modelscited by 61
  4. 2024Number Cookbook: Number Understanding of Language Models and How to Improve Itcited by 42
  5. 2024Large Language Models as Markov Chainscited by 34
  6. 2024The broader spectrum of in-context learningcited by 33
  7. 2024Language Models Encode Numbers Using Digit Representations in Base 10cited by 32
  8. 2025Boundless Byte Pair Encoding: Breaking the Pre-tokenization Barriercited by 32
  9. 2024NumeroLogic: Number Encoding for Enhanced LLMs' Numerical Reasoningcited by 31
  10. 2024BPE Gets Picky: Efficient Vocabulary Refinement During Tokenizer Trainingcited by 31
  11. 2025Why Prompt Design Matters and Works: A Complexity Analysis of Prompt Search Space in LLMscited by 30
  12. 2024VarBench: Robust Language Model Benchmarking Through Dynamic Variable Perturbationcited by 29
38 more
  1. 2024MrT5: Dynamic Token Merging for Efficient Byte-level Language Modelscited by 27
  2. 2024Enhancing Foundation Models for Time Series Forecasting via Wavelet-based Tokenizationcited by 26
  3. 2024Advancing Social Intelligence in AI Agents: Technical Challenges and Open Questionscited by 22
  4. 2024Where is the signal in tokenization space?cited by 21
  5. 2024Understanding and Mitigating Tokenization Bias in Language Modelscited by 18
  6. 2024IoT-LLM: a framework for enhancing Large Language Model reasoning from real-world sensor datacited by 18
  7. 2024VersiCode: Towards Version-controllable Code Generationcited by 17
  8. 2025Product of Experts with LLMs: Boosting Performance on ARC Is a Matter of Perspectivecited by 17
  9. 2025Broken Tokens? Your Language Model can Secretly Handle Non-Canonical Tokenizationscited by 17
  10. 2024Perceptions of Linguistic Uncertainty by Language Models and Humanscited by 15
  11. 2025Exposing Numeracy Gaps: A Benchmark to Evaluate Fundamental Numerical Abilities in Large Language Modelscited by 14
  12. 2025The Lookahead Limitation: Why Multi-Operand Addition is Hard for LLMscited by 13
  13. 2025Is Your LLM Overcharging You? Tokenization, Transparency, and Incentivescited by 13
  14. 2024Evaluating Numerical Reasoning in Text-to-Image Modelscited by 12
  15. 2024Regress, Don't Guess -- A Regression-like Loss on Number Tokens for Language Modelscited by 12
  16. 2025BPE Stays on SCRIPT: Structured Encoding for Robust Multilingual Pretokenizationcited by 12
  17. 2024Less can be more for predicting properties with large language modelscited by 11
  18. 2025Adversarial Tokenizationcited by 11
  19. 2024Grounding Partially-Defined Events in Multimodal Datacited by 10
  20. 2024Tokenisation is NP-Completecited by 10
  21. 2026Arcee Trinity Large Technical Reportcited by 10
  22. 2024Amuro and Char: Analyzing the Relationship between Pre-Training and Fine-Tuning of Large Language Modelscited by 9
  23. 2024A Survey on Responsible Generative AI: What to Generate and What Notcited by 8
  24. 2024Evaluating Subword Tokenization: Alien Subword Composition and OOV Generalization Challengecited by 8
  25. 2025FLEXITOKENS: Flexible Tokenization for Evolving Language Modelscited by 8
  26. 2026The Illusion of Stochasticity in LLMscited by 8
  27. 2024Large Language Models as In-context AI Generators for Quality-Diversitycited by 7
  28. 2024Improbable Bigrams Expose Vulnerabilities of Incomplete Tokens in Byte-Level Tokenizerscited by 7
  29. 2025AtmosSci-Bench: Evaluating the Recent Advance of Large Language Model for Atmospheric Sciencecited by 7
  30. 2025Efficient numeracy in language models through single-token number embeddingscited by 7
  31. 2024Adversarial Math Word Problem Generationcited by 6
  32. 2025Date Fragments: A Hidden Bottleneck of Tokenization for Temporal Reasoningcited by 6
  33. 2025Benford's Curse: Tracing Digit Bias to Numerical Hallucination in LLMscited by 6
  34. 2024ReTok: Replacing Tokenizer to Enhance Representation Efficiency in Large Language Modelcited by 5
  35. 2024Supervised Chain of Thoughtcited by 5
  36. 2025BALM-TSF: Balanced Multimodal Alignment for LLM-Based Time Series Forecastingcited by 5
  37. 2026Eliciting Numerical Predictive Distributions of LLMs Without Autoregressioncited by 5
  38. 2024Tokenization for Molecular Foundation Modelscited by 4

50 most cited of 113 All 113 (JSON)

Similar, not cited

Close in wording, no citation either way

  1. 2025Tokenization Constraints in LLMs: A Study of Symbolic and Arithmetic Reasoning Limits
  2. 2025Token-by-Token Regeneration and Domain Biases: A Benchmark of LLMs on Advanced Mathematical Problem-Solving
  3. 2025Do LLMs Overthink Basic Math Reasoning? Benchmarking the Accuracy-Efficiency Tradeoff in Language Models
  4. 2025Mathematical Reasoning in Large Language Models: Assessing Logical and Arithmetic Errors across Wide Numerical Ranges
  5. 2024LLM The Genius Paradox: A Linguistic and Math Expert's Struggle with Simple Word-based Counting Problems
  6. 2024How Numerical Precision Affects Arithmetical Reasoning Capabilities of LLMs
  7. 2024Language Models Do Hard Arithmetic Tasks Easily and Hardly Do Easy Arithmetic Tasks
  8. 2026Numeracy in Large Language Models: Fundamental Limitations and Paths to Improvement