Number Representations in LLMs: A Computational Parallel to Human Perception

H. V. AlquBoj, Hilal AlQuabeh, Velibor Bojkovic, Tatsuya Hiraoka, Ahmed Oumar El-Shangiti +2 more
2/22/2025
cs.CL

No official code found. Best implementation: halquabeh/llm_natural_log (2 stars, last commit 2026-04-22).

Abstract

Humans are believed to perceive numbers on a logarithmic mental number line, where smaller values are represented with greater resolution than larger ones. This cognitive bias, supported by neuroscience and behavioral studies, suggests that numerical magnitudes are processed in a sublinear fashion rather than on a uniform linear scale. Inspired by this hypothesis, we investigate whether large language models (LLMs) exhibit a similar logarithmic-like structure in their internal numerical representations. By analyzing how numerical values are encoded across different layers of LLMs, we apply dimensionality reduction techniques such as PCA and PLS followed by geometric regression to uncover latent structures in the learned embeddings. Our findings reveal that the model's numerical representations exhibit sublinear spacing, with distances between values aligning with a logarithmic scale. This suggests that LLMs, much like humans, may encode numbers in a compressed, non-uniform manner.

View on arXivView PDF

Code Implementations(1)

Mental line of large language models

20Shell, PythonNov 8, 20246 months ago

Similar Papers

Cite this paper

@article{alquboj2025number,
  title  = {Number Representations in LLMs: A Computational Parallel to Human Perception},
  author = {H. V. AlquBoj and Hilal AlQuabeh and Velibor Bojkovic and Tatsuya Hiraoka and Ahmed Oumar El-Shangiti and Munachiso Nwadike and Kentaro Inui},
  year   = {2025},
  eprint = {2502.16147},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.16147v1}
}

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/2502.16147.svg)](https://codeofpaper.com/paper/2502.16147)

Discussion