Language Models Encode Numbers Using Digit Representations in Base 10

Amit Arnold Levy, Mor Geva


Abstract
Large language models (LLMs) frequently make errors when handling even simple numerical problems, such as comparing two small numbers. A natural hypothesis is that these errors stem from how LLMs represent numbers, and specifically, whether their representations of numbers capture their numeric values. We tackle this question from the observation that LLM errors on numerical tasks are often distributed across the digits of the answer rather than normally around its numeric value. Through a series of probing experiments and causal interventions, we show that LLMs internally represent numbers with individual circular representations per-digit in base 10.This digit-wise representation, as opposed to a value representation, sheds light on the error patterns of models on tasks involving numerical reasoning and could serve as a basis for future studies on analyzing numerical mechanisms in LLMs.
Anthology ID:
2025.naacl-short.33
Volume:
Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 2: Short Papers)
Month:
April
Year:
2025
Address:
Albuquerque, New Mexico
Editors:
Luis Chiruzzo, Alan Ritter, Lu Wang
Venue:
NAACL
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
385–395
Language:
URL:
https://preview.aclanthology.org/fix-sig-urls/2025.naacl-short.33/
DOI:
Bibkey:
Cite (ACL):
Amit Arnold Levy and Mor Geva. 2025. Language Models Encode Numbers Using Digit Representations in Base 10. In Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 2: Short Papers), pages 385–395, Albuquerque, New Mexico. Association for Computational Linguistics.
Cite (Informal):
Language Models Encode Numbers Using Digit Representations in Base 10 (Levy & Geva, NAACL 2025)
Copy Citation:
PDF:
https://preview.aclanthology.org/fix-sig-urls/2025.naacl-short.33.pdf