arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.08009cs.AIcs.LG
收藏

语言模型并非连续地嵌入数字

Language Models Do Not Embed Numbers Continuously

Alex O. Davies, Roussel Nzoyem, Nirav Ajmeri, Telmo M. Silva Filho

AI总结:

本研究通过线性重建和主成分分析,证明语言模型对数值的嵌入是非连续的且含噪声,高保真重建但主成分解释力低,且精度增加时性能下降,影响高精度数值应用。

摘要:

近期研究广泛探讨了大语言模型如何在特定算术任务中操作整数,并在更基础的层面上,它们如何表示数值。这些先前的工作发现,语言模型的嵌入可以用于重建原始数值,然而,它们并未评估语言模型是否真正将连续值建模为连续的。利用嵌入空间的预期性质,包括线性重建和主成分分析,我们表明语言模型不仅将数值空间表示为非连续的,而且引入了显著的噪声。使用来自三家主要提供商(OpenAI、Google Gemini 和 Voyage AI)的模型,我们表明虽然重建可以以高保真度实现($R^2 \geq 0.95$),但主成分仅解释了嵌入空间内变异的一小部分。这表明嵌入空间中的许多成分与简单的数值输入空间正交。此外,随着小数精度的增加,线性重建和解释方差都会下降,尽管输入空间的序数性质根本未改变。因此,这项工作的发现对使用嵌入模型的许多领域具有影响,特别是在高数值精度、大数量级或混合符号值常见的领域。

英文摘要:

Recent research has extensively studied how large language models manipulate integers in specific arithmetic tasks, and on a more fundamental level, how they represent numeric values. These previous works have found that language model embeddings can be used to reconstruct the original values, however, they do not evaluate whether language models actually model continuous values as continuous. Using expected properties of the embedding space, including linear reconstruction and principal component analysis, we show that language models not only represent numeric spaces as non-continuous but also introduce significant noise. Using models from three major providers (OpenAI, Google Gemini and Voyage AI), we show that while reconstruction is possible with high fidelity ($R^2 \geq 0.95$), principal components only explain a minor share of variation within the embedding space. This indicates that many components within the embedding space are orthogonal to the simple numeric input space. Further, both linear reconstruction and explained variance suffer with increasing decimal precision, despite the ordinal nature of the input space being fundamentally unchanged. The findings of this work therefore have implications for the many areas where embedding models are used, in-particular where high numerical precision, large magnitudes or mixed-sign values are common.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑