Pre-trained Language Models Learn Remarkably Accurate Representations of Numbers
Not on the map. Why?
Abstract (arXiv)
Pretrained language models (LMs) are prone to arithmetic errors. Existing work showed limited success in probing numeric values from models' representations, indicating that these errors can be attributed to the inherent unreliability of distributionally learned embeddings in representing exact quantities. However, we observe that previous probing methods are inadequate for the emergent structure of learned number embeddings with sinusoidal patterns. In response, we propose a novel probing technique that decodes numeric values from input embeddings with near-perfect accuracy across a range of open-source LMs. This proves that after the sole pre-training, LMs represent numbers with remarkable precision. Finally, we find that the embeddings' precision, judged by our probe's accuracy, explains a large portion of LM's errors in elementary arithmetic, and show that aligning the embeddings with the pattern our probes discover can mitigate these errors.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 13 of its 23 references that are in the map. First posted on arXiv 10 Jun 2025.
Builds on
13 of 23 references.
References · 13
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,182
- 2017Axiomatic Attribution for Deep Networkscited by 3,384
- 2023Progress measures for grokking via mechanistic interpretabilitycited by 839
- 2019Designing and Interpreting Probes with Control Taskscited by 640
- 2025Language Models Use Trigonometry to Do Additioncited by 70
- 2024Pre-trained Large Language Models Use Fourier Features to Compute Additioncited by 39
- 2024Language Models Encode Numbers Using Digit Representations in Base 10cited by 32
- 2024Language Models Encode the Value of Numbers Linearlycited by 20
- 2025Proving Olympiad Inequalities by Synergizing LLMs and Symbolic Reasoningcited by 17
- 2023Calc-X and Calcformers: Empowering Arithmetical Chain-of-Thought through Interaction with Symbolic Systemscited by 13
- 2024Concept-aware Data Construction Improves In-context Learning of Language Modelscited by 2
1 more
Built on by
Citing papers per year: 2025: 1; 2026: 3.
4 papers.
- 2025Language Models Learn Universal Representations of Numbers and Here's Why You Should Carecited by 2
- 2026DriveCode: Domain Specific Numerical Encoding for LLM-Based Autonomous Drivingcited by 0
- 2026A Close Look At World Model Recovery In Supervised Fine-Tuned LLM Plannerscited by 0
- 2026Temporal Preference Concepts and their Functions in a Large Language Modelcited by 0
- 2026A Close Look At World Model Recovery In Supervised Fine-Tuned LLM Planners2 Jun 2026
- 2026Temporal Preference Concepts and their Functions in a Large Language Model11 May 2026
- 2026DriveCode: Domain Specific Numerical Encoding for LLM-Based Autonomous Driving1 Mar 2026
- 2025Language Models Learn Universal Representations of Numbers and Here's Why You Should Care30 Oct 2025