LLMs Know More About Numbers than They Can Say
Not on the map. Why?
Abstract (arXiv)
Although state-of-the-art LLMs can solve math problems, we find that they make errors on numerical comparisons with mixed notation: "Which is larger, 5.7 × 102 or 580?" This raises a fundamental question: Do LLMs even know how big these numbers are? We probe the hidden states of several smaller open-source LLMs. A single linear projection of an appropriate hidden layer encodes the log-magnitudes of both kinds of numerals, allowing us to recover the numbers with relative error of about 2.3% (on restricted synthetic text) or 19.06% (on scientific papers). Furthermore, the hidden state after reading a pair of numerals encodes their ranking, with a linear classifier achieving over 90% accuracy. Yet surprisingly, when explicitly asked to rank the same pairs of numerals, these LLMs achieve only 50-70% accuracy, with worse performance for models whose probes are less effective. Finally, we show that incorporating the classifier probe's log-loss as an auxiliary objective during finetuning brings an additional 3.22% improvement in verbalized accuracy over base models, demonstrating that improving models' internal magnitude representations can enhance their numerical reasoning capabilities. Our code is available at https://github.com/VCY019/Numeracy-Probing.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 6 of its 14 references that are in the map. First posted on arXiv 8 Feb 2026.
Builds on
6 of 14 references.
References · 6
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2023BloombergGPT: A Large Language Model for Financecited by 923
- 2022Galactica: A Large Language Model for Sciencecited by 736
- 2019Do NLP Models Know Numbers? Probing Numeracy in Embeddingscited by 157
- 2024Number Cookbook: Number Understanding of Language Models and How to Improve Itcited by 41
- 2024Language Models Encode the Value of Numbers Linearlycited by 19
Built on by
Citing papers per year: 2026: 6.
6 papers.
- 2026RELISH: LLM REgression with a Latent Iterative State Headcited by 1
- 2026Reinforcement Learning over Predictive Distributions for LLM Regressioncited by 1
- 2026LLM Sparsity Prior for Robust Feature Selectioncited by 0
- 2026Language Models Compare Quantities Using Number-specific and Unit-specific Heuristicscited by 0
- 2026Wrong Prediction, Right Answer: Recovering Evidence from Collapsed LLM Sequence Scorescited by 0
- 2026When Models Don't Manipulate Manifolds: The Geometry of a Comparison Taskcited by 0
- 2026When Models Don't Manipulate Manifolds: The Geometry of a Comparison Task29 Sep 2026
- 2026Wrong Prediction, Right Answer: Recovering Evidence from Collapsed LLM Sequence Scores31 Aug 2026
- 2026Language Models Compare Quantities Using Number-specific and Unit-specific Heuristics2 Jun 2026
- 2026LLM Sparsity Prior for Robust Feature Selection21 May 2026
- 2026Reinforcement Learning over Predictive Distributions for LLM Regression20 May 2026
- 2026RELISH: LLM REgression with a Latent Iterative State Head1 Apr 2026
Similar, not cited
Close in wording, no citation either way
- 2026The Effect of Scripts and Formats on LLM Numeracy
- 2024LLM The Genius Paradox: A Linguistic and Math Expert's Struggle with Simple Word-based Counting Problems
- 2025Large Language Models in Numberland: A Quick Test of Their Numerical Reasoning Abilities
- 2026SenseMath: Do LLMs Have Number Sense? Evaluating Shortcut Use, Judgment, and Generation
- 2024Tokenization counts: the impact of tokenization on arithmetic in frontier LLMs
- 2025A Fragile Number Sense: Probing the Elemental Limits of Numerical Reasoning in LLMs
- 2024NumeroLogic: Number Encoding for Enhanced LLMs' Numerical Reasoning
- 2024Language Models Do Hard Arithmetic Tasks Easily and Hardly Do Easy Arithmetic Tasks