mlsanityData to 14 Oct 2026

Scaling Behavior for Large Language Models regarding Numeral Systems: An Example using Pythia

arXiv 2409.17391 ↗First posted 25 Sep 2024cs.CLcited by 8

Not on the map. Why?

Abstract (arXiv)

Though Large Language Models (LLMs) have shown remarkable abilities in mathematics reasoning, they are still struggling with performing numeric operations accurately, such as addition and multiplication. Numbers can be tokenized into tokens in various ways by different LLMs and affect the numeric operations performance. Currently, there are two representatives: 1) Tokenize into 1-digit, and 2) Tokenize into 1~ 3 digit. The difference is roughly equivalent to using different numeral systems (namely base 10 or base 103). In light of this, we study the scaling behavior of different numeral systems in the context of transformer-based large language models. We empirically show that a base 10 system is consistently more data-efficient than a base 102 or 103 system across training data scale, model sizes under from-scratch training settings, while different number systems have very similar fine-tuning performances. We attribute this to higher token frequencies of a base 10 system. Additionally, we reveal extrapolation behavior patterns on addition and multiplication. We identify that base 100 and base 1000 systems struggle on token-level discernment and token-level operations. We also sheds light on the mechanism learnt by the models.

Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Builds on 16 of its 20 references that are in the map. First posted on arXiv 25 Sep 2024.

Builds on

16 of 20 references.

References · 16

  1. 2017Attention Is All You Needcited by 60,361
  2. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  3. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
  4. 2020Scaling Laws for Neural Language Modelscited by 6,586
  5. 2023Qwen Technical Reportcited by 3,344
  6. 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
  7. 2022Scaling Laws for Reward Model Overoptimizationcited by 1,095
  8. 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 886
  9. 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 327
  10. 2021Scaling Laws for Transfercited by 272
  11. 2023What Algorithms can Transformers Learn? A Study in Length Generalizationcited by 199
  12. 2021Investigating the Limitations of Transformers with Simple Arithmetic Taskscited by 139
4 more
  1. 2023How well do Large Language Models perform in Arithmetic tasks?cited by 130
  2. 2023Goat: Fine-tuned LLaMA Outperforms GPT-4 on Arithmetic Taskscited by 84
  3. 2024Transformers Can Do Arithmetic with the Right Embeddingscited by 78
  4. 2021Exploring Generalization Ability of Pretrained Language Models on Arithmetic and Logical Reasoningcited by 17

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 1; 2025: 3; 2026: 4.

8 papers.