Skip to main navigation Skip to search Skip to main content

Language Models Learn Universal Representations of Numbers and Here’s Why You Should Care

  • Michal Štefánik
  • , Timothee Mickus
  • , Marek Kadlčík
  • , Bertram Højer
  • , Michael Spiegel
  • , Raúl Vázquez
  • , Aman Sinha
  • , Josef Kuchar
  • , Philipp Mondorf
  • , Pontus Stenetorp
  • University of Helsinki
  • Masaryk University
  • Inria, CNRS, Universite de Lorraine
  • Ludwig Maximilian University of Munich
  • University College London

Research output: Conference Article in Proceeding or Book/Report chapterArticle in proceedingsResearchpeer-review

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 demonstrate 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.
Original languageEnglish
Title of host publicationProceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)
EditorsMaria Liakata, Viviane P. Moreira, Jiajun Zhang, David Jurgens
Number of pages19
Volume1
PublisherAssociation for Computational Linguistics
Publication date1 Jul 2026
Pages30663–30681
DOIs
Publication statusPublished - 1 Jul 2026
SeriesProceedings of the Annual Meeting of the Association for Computational Linguistics

Fingerprint

Dive into the research topics of 'Language Models Learn Universal Representations of Numbers and Here’s Why You Should Care'. Together they form a unique fingerprint.

Cite this