Language Models Learn Universal Representations of Numbers and Here's Why You Should Care
Computation and Language
2026-04-23 v2 Artificial Intelligence
Machine Learning
Neural and Evolutionary Computing
Abstract
Prior work has shown that large language models (LLMs) often converge to accurate input embedding for numbers, based on sinusoidal representations. In this work, we quantify that these representations are in fact strikingly systematic, to the point of being almost perfectly universal: different LLM families develop equivalent sinusoidal structures, and number representations are broadly interchangeable in a large swathe of experimental setups. We show that properly factoring in this characteristic is crucial when it comes to assessing how accurately LLMs encode numeric and other ordinal information, and that mechanistically enhancing this sinusoidality can also lead to reductions of LLMs' arithmetic errors.
Keywords
Cite
@article{arxiv.2510.26285,
title = {Language Models Learn Universal Representations of Numbers and Here's Why You Should Care},
author = {Michal Štefánik and Timothee Mickus and Marek Kadlčík and Bertram Højer and Michal Spiegel and Raúl Vázquez and Aman Sinha and Josef Kuchař and Philipp Mondorf and Pontus Stenetorp},
journal= {arXiv preprint arXiv:2510.26285},
year = {2026}
}