What is a Number, That a Large Language Model May Know It?

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Marjieh, Raja, Veselovsky, Veniamin, Griffiths, Thomas L., Sucholutsky, Ilia
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866929695972392960
author Marjieh, Raja
Veselovsky, Veniamin
Griffiths, Thomas L.
Sucholutsky, Ilia
author_facet Marjieh, Raja
Veselovsky, Veniamin
Griffiths, Thomas L.
Sucholutsky, Ilia
contents Numbers are a basic part of how humans represent and describe the world around them. As a consequence, learning effective representations of numbers is critical for the success of large language models as they become more integrated into everyday decisions. However, these models face a challenge: depending on context, the same sequence of digit tokens, e.g., 911, can be treated as a number or as a string. What kind of representations arise from this duality, and what are its downstream implications? Using a similarity-based prompting technique from cognitive science, we show that LLMs learn representational spaces that blend string-like and numerical representations. In particular, we show that elicited similarity judgments from these models over integer pairs can be captured by a combination of Levenshtein edit distance and numerical Log-Linear distance, suggesting an entangled representation. In a series of experiments we show how this entanglement is reflected in the latent embeddings, how it can be reduced but not entirely eliminated by context, and how it can propagate into a realistic decision scenario. These results shed light on a representational tension in transformer models that must learn what a number is from text input.
format Preprint
id arxiv_https___arxiv_org_abs_2502_01540
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle What is a Number, That a Large Language Model May Know It?
Marjieh, Raja
Veselovsky, Veniamin
Griffiths, Thomas L.
Sucholutsky, Ilia
Computation and Language
Artificial Intelligence
Numbers are a basic part of how humans represent and describe the world around them. As a consequence, learning effective representations of numbers is critical for the success of large language models as they become more integrated into everyday decisions. However, these models face a challenge: depending on context, the same sequence of digit tokens, e.g., 911, can be treated as a number or as a string. What kind of representations arise from this duality, and what are its downstream implications? Using a similarity-based prompting technique from cognitive science, we show that LLMs learn representational spaces that blend string-like and numerical representations. In particular, we show that elicited similarity judgments from these models over integer pairs can be captured by a combination of Levenshtein edit distance and numerical Log-Linear distance, suggesting an entangled representation. In a series of experiments we show how this entanglement is reflected in the latent embeddings, how it can be reduced but not entirely eliminated by context, and how it can propagate into a realistic decision scenario. These results shed light on a representational tension in transformer models that must learn what a number is from text input.
title What is a Number, That a Large Language Model May Know It?
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2502.01540