Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Levy, Amit Arnold, Geva, Mor
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:https://arxiv.org/abs/2410.11781
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866915133963370496
author Levy, Amit Arnold
Geva, Mor
author_facet Levy, Amit Arnold
Geva, Mor
contents Large language models (LLMs) frequently make errors when handling even simple numerical problems, such as comparing two small numbers. A natural hypothesis is that these errors stem from how LLMs represent numbers, and specifically, whether their representations of numbers capture their numeric values. We tackle this question from the observation that LLM errors on numerical tasks are often distributed across the digits of the answer rather than normally around its numeric value. Through a series of probing experiments and causal interventions, we show that LLMs internally represent numbers with individual circular representations per-digit in base 10. This digit-wise representation, as opposed to a value representation, sheds light on the error patterns of models on tasks involving numerical reasoning and could serve as a basis for future studies on analyzing numerical mechanisms in LLMs.
format Preprint
id arxiv_https___arxiv_org_abs_2410_11781
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Language Models Encode Numbers Using Digit Representations in Base 10
Levy, Amit Arnold
Geva, Mor
Machine Learning
Large language models (LLMs) frequently make errors when handling even simple numerical problems, such as comparing two small numbers. A natural hypothesis is that these errors stem from how LLMs represent numbers, and specifically, whether their representations of numbers capture their numeric values. We tackle this question from the observation that LLM errors on numerical tasks are often distributed across the digits of the answer rather than normally around its numeric value. Through a series of probing experiments and causal interventions, we show that LLMs internally represent numbers with individual circular representations per-digit in base 10. This digit-wise representation, as opposed to a value representation, sheds light on the error patterns of models on tasks involving numerical reasoning and could serve as a basis for future studies on analyzing numerical mechanisms in LLMs.
title Language Models Encode Numbers Using Digit Representations in Base 10
topic Machine Learning
url https://arxiv.org/abs/2410.11781