Skip to search boxSkip to navigationSkip 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
    ,
  • ,
  • Michael Spiegel
    ,
  • Raúl Vázquez
  • University of Helsinki
    ,
  • Masaryk University
    ,
  • ,
  • ,
  • Inria, CNRS, Universite de Lorraine
    ,
  • Ludwig Maximilian University of Munich
Research Output:
Conference Article in Proceeding or Book/Report chapter
Article in proceedings
Peer-review

Open access

Publication Information

Output type

Research Output:
Conference Article in Proceeding or Book/Report chapter
Article in proceedings
Peer-review

Original language

English

Pages from-to (Number of pages)

Pages 30663–30681 (19 pages)

Publication milestones

  • Published - 01/07/2026

Publication status

Published - 01/07/2026

Volume

1

Publisher

Association for Computational Linguistics, United States

Book series

  • Book series name: Proceedings of the Annual Meeting of the Association for Computational Linguistics

Host publication title

Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)

Host publication editors

  • Maria Liakata
  • Viviane P. Moreira
  • Jiajun Zhang
  • David Jurgens

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.