Language Models Do Not Embed Numbers Continuously
Not on the map. Why?
Abstract (arXiv)
Recent research has extensively studied how large language models manipulate integers in specific arithmetic tasks, and on a more fundamental level, how they represent numeric values. These previous works have found that language model embeddings can be used to reconstruct the original values, however, they do not evaluate whether language models actually model continuous values as continuous. Using expected properties of the embedding space, including linear reconstruction and principal component analysis, we show that language models not only represent numeric spaces as non-continuous but also introduce significant noise. Using models from three major providers (OpenAI, Google Gemini and Voyage AI), we show that while reconstruction is possible with high fidelity (R2 ≥ 0.95), principal components only explain a minor share of variation within the embedding space. This indicates that many components within the embedding space are orthogonal to the simple numeric input space. Further, both linear reconstruction and explained variance suffer with increasing decimal precision, despite the ordinal nature of the input space being fundamentally unchanged. The findings of this work therefore have implications for the many areas where embedding models are used, in-particular where high numerical precision, large magnitudes or mixed-sign values are common.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 13 of its 21 references that are in the map. First posted on arXiv 9 Oct 2025.
Builds on
13 of 21 references.
References · 13
- 2017Attention Is All You Needcited by 59,932
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
- 2025Language Models Use Trigonometry to Do Additioncited by 68
- 2024MedCalc-Bench: Evaluating Large Language Models for Medical Calculationscited by 64
- 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
- 2023GeoGalactica: A Scientific Large Language Model in Geosciencecited by 32
- 2024Language Models Encode Numbers Using Digit Representations in Base 10cited by 32
- 2024NumeroLogic: Number Encoding for Enhanced LLMs' Numerical Reasoningcited by 31
- 2025What is a Number, That a Large Language Model May Know It?cited by 14
- 2023Arithmetic with Language Models: from Memorization to Computationcited by 12
- 2024Reverse That Number! Decoding Order Matters in Arithmetic Learningcited by 8
Built on by
Citing papers per year: 2025: 1; 2026: 3.
4 papers.
- 2026Can We Predict Before Executing Machine Learning Agents?cited by 10
- 2025PosterCopilot: Toward Layout Reasoning and Controllable Editing for Professional Graphic Designcited by 4
- 2026DriveCode: Domain Specific Numerical Encoding for LLM-Based Autonomous Drivingcited by 0
- 2026Continuity and Ordinality Matter: Constraining Time Series Tokens for Effective Time Series Analysis with Large Language Modelscited by 0
- 2026Continuity and Ordinality Matter: Constraining Time Series Tokens for Effective Time Series Analysis with Large Language Models22 May 2026
- 2026DriveCode: Domain Specific Numerical Encoding for LLM-Based Autonomous Driving1 Mar 2026
- 2026Can We Predict Before Executing Machine Learning Agents?9 Jan 2026
- 2025PosterCopilot: Toward Layout Reasoning and Controllable Editing for Professional Graphic Design3 Dec 2025