LLMs Know More About Numbers than They Can Say

Fengting Yuchi, Li Du, Jason Eisner
2/8/2026
cs.CL

Official code: VCY019/Numeracy-Probing (10 stars, MIT, last commit 2026-02-26).

Abstract

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 \times 10^2$ 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.

View on arXivView PDF

Code Implementations(1)

MIT

Code and data to reproduce experiments in the paper "LLMs Know More About Numbers than They Can Say" (EACL 2026, Oral)

100Shell, PythonFeb 13, 20267 months agoMIT

Similar Papers

Cite this paper

@article{yuchi2026llms,
  title  = {LLMs Know More About Numbers than They Can Say},
  author = {Fengting Yuchi and Li Du and Jason Eisner},
  year   = {2026},
  eprint = {2602.07812},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.07812v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.07812.svg)](https://codeofpaper.com/paper/2602.07812)

Discussion