What is a Number, That a Large Language Model May Know It?
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 14 papers in the map (data through 7 Oct 2026). Builds on 28 of its 52 references that are in the map. First posted on arXiv 3 Feb 2025.
Builds on
28 of 52 references.
References · 28
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
- 2024GPT-4o System Cardcited by 4,467
- 2022Locating and Editing Factual Associations in GPTcited by 2,609
- 2024Mixtral of Expertscited by 1,785
- 2022Language Models (Mostly) Know What They Knowcited by 1,783
- 2023Sparse Autoencoders Find Highly Interpretable Features in Language Modelscited by 1,359
- 2016Understanding intermediate layers using linear classifier probescited by 1,279
- 2021Probing Classifiers: Promises, Shortcomings, and Advancescited by 831
- 2023Progress measures for grokking via mechanistic interpretabilitycited by 822
- 2020A Primer in BERTology: What we know about how BERT workscited by 807
- 2023Just Ask for Calibration: Strategies for Eliciting Calibrated Confidence Scores from Language Models Fine-Tuned with Human Feedbackcited by 788
16 more
- 2024Scaling and evaluating sparse autoencoderscited by 530
- 2019What do you learn from context? Probing for sentence structure in contextualized word representationscited by 436
- 2022Using cognitive psychology to understand GPT-3cited by 389
- 2023Finding Neurons in a Haystack: Case Studies with Sparse Probingcited by 328
- 2023Emergent Linear Representations in World Models of Self-Supervised Sequence Modelscited by 313
- 2023Language Models Represent Space and Timecited by 306
- 2022Emergent Analogical Reasoning in Large Language Modelscited by 239
- 2023How does GPT-2 compute greater-than?: Interpreting mathematical abilities in a pre-trained language modelcited by 199
- 2023Finding Alignments Between Interpretable Causal Variables and Distributed Neural Representationscited by 197
- 2023A Mechanistic Interpretation of Arithmetic Reasoning in Language Models using Causal Mediation Analysiscited by 88
- 2024Measuring Implicit Bias in Explicitly Unbiased Large Language Modelscited by 49
- 2023Large language models predict human sensory judgments across six modalitiescited by 47
- 2023Time is Encoded in the Weights of Finetuned Language Modelscited by 31
- 2024When a language model is optimized for reasoning, does it still show embers of autoregression? An analysis of OpenAI o1cited by 22
- 2024Language Models Encode the Value of Numbers Linearlycited by 19
- 2023The Universal Law of Generalization Holds for Naturalistic Stimulicited by 4
Built on by
Citing papers per year: 2025: 10; 2026: 4.
14 papers.
Sort:
By area:
- 2025The Lookahead Limitation: Why Multi-Operand Addition is Hard for LLMscited by 13
- 2025FLAWS: A Benchmark for Error Identification and Localization in Scientific Paperscited by 12
- 2025Levels of Analysis for Large Language Modelscited by 9
- 2026Failing to Falsify: Evaluating and Mitigating Confirmation Bias in Language Modelscited by 9
- 2025StochasTok: Improving Fine-Grained Subword Understanding in LLMscited by 6
- 2025Modular Arithmetic: Language Models Solve Math Digit by Digitcited by 6
- 2025Hypothesis-Driven Feature Manifold Analysis in LLMs via Supervised Multi-Dimensional Scalingcited by 6
- 2025The Other Mind: How Language Models Exhibit Human Temporal Cognitioncited by 4
- 2025Language Models Do Not Embed Numbers Continuouslycited by 4
- 2025In-Context Algebracited by 4
- 2026Weber's Law in Transformer Magnitude Representations: Efficient Coding, Representational Geometry, and Psychophysical Laws in Language Modelscited by 3
- 2025Code-driven Number Sequence Calculation: Enhancing the inductive Reasoning Abilities of Large Language Modelscited by 2
- 2026Are Arithmetic Heuristic Neurons Form-Invariant? A Mechanistic Analysis of Symbols, Text, and Code in LLMs18 Jul 2026
- 2026DEL: Digit Entropy Loss for Numerical Learning of Large Language Models19 May 2026
- 2026Failing to Falsify: Evaluating and Mitigating Confirmation Bias in Language Models2 Apr 2026
- 2026Weber's Law in Transformer Magnitude Representations: Efficient Coding, Representational Geometry, and Psychophysical Laws in Language Models21 Mar 2026
- 2025In-Context Algebra18 Dec 2025
- 2025FLAWS: A Benchmark for Error Identification and Localization in Scientific Papers26 Nov 2025
- 2025Code-driven Number Sequence Calculation: Enhancing the inductive Reasoning Abilities of Large Language Models16 Oct 2025
- 2025Language Models Do Not Embed Numbers Continuously9 Oct 2025
- 2025Hypothesis-Driven Feature Manifold Analysis in LLMs via Supervised Multi-Dimensional Scaling1 Oct 2025
- 2025Modular Arithmetic: Language Models Solve Math Digit by Digit4 Aug 2025
- 2025The Other Mind: How Language Models Exhibit Human Temporal Cognition21 Jul 2025
- 2025StochasTok: Improving Fine-Grained Subword Understanding in LLMs2 Jun 2025
2 more
- 2025Levels of Analysis for Large Language Models17 Mar 2025
- 2025The Lookahead Limitation: Why Multi-Operand Addition is Hard for LLMs27 Feb 2025
- 2025The Lookahead Limitation: Why Multi-Operand Addition is Hard for LLMscited by 13
- 2025FLAWS: A Benchmark for Error Identification and Localization in Scientific Paperscited by 12
- 2025Levels of Analysis for Large Language Modelscited by 9
- 2025StochasTok: Improving Fine-Grained Subword Understanding in LLMscited by 6
- 2025Modular Arithmetic: Language Models Solve Math Digit by Digitcited by 6
- 2025Hypothesis-Driven Feature Manifold Analysis in LLMs via Supervised Multi-Dimensional Scalingcited by 6
- 2025The Other Mind: How Language Models Exhibit Human Temporal Cognitioncited by 4
- 2025Language Models Do Not Embed Numbers Continuouslycited by 4
- 2025In-Context Algebracited by 4
- 2026Weber's Law in Transformer Magnitude Representations: Efficient Coding, Representational Geometry, and Psychophysical Laws in Language Modelscited by 3
- 2026Are Arithmetic Heuristic Neurons Form-Invariant? A Mechanistic Analysis of Symbols, Text, and Code in LLMscited by 1
- 2026DEL: Digit Entropy Loss for Numerical Learning of Large Language Modelscited by 0
- 2026Are Arithmetic Heuristic Neurons Form-Invariant? A Mechanistic Analysis of Symbols, Text, and Code in LLMs18 Jul 2026
- 2026DEL: Digit Entropy Loss for Numerical Learning of Large Language Models19 May 2026
- 2026Weber's Law in Transformer Magnitude Representations: Efficient Coding, Representational Geometry, and Psychophysical Laws in Language Models21 Mar 2026
- 2025In-Context Algebra18 Dec 2025
- 2025FLAWS: A Benchmark for Error Identification and Localization in Scientific Papers26 Nov 2025
- 2025Language Models Do Not Embed Numbers Continuously9 Oct 2025
- 2025Hypothesis-Driven Feature Manifold Analysis in LLMs via Supervised Multi-Dimensional Scaling1 Oct 2025
- 2025Modular Arithmetic: Language Models Solve Math Digit by Digit4 Aug 2025
- 2025The Other Mind: How Language Models Exhibit Human Temporal Cognition21 Jul 2025
- 2025StochasTok: Improving Fine-Grained Subword Understanding in LLMs2 Jun 2025
- 2025Levels of Analysis for Large Language Models17 Mar 2025
- 2025The Lookahead Limitation: Why Multi-Operand Addition is Hard for LLMs27 Feb 2025