arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.01540cs.CLcs.AI
收藏

什么是数字,以至于大语言模型能认识它?

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

Princeton University(普林斯顿大学);New York University(纽约大学)

Raja Marjieh, Veniamin Veselovsky, Thomas L. Griffiths, Ilia Sucholutsky

AI总结:

本文研究大语言模型如何表征数字,发现其数字表征同时混合字符串相似性与数值距离,并进一步揭示这种纠缠表征对下游决策的影响。

摘要:

数字是人类表征和描述周围世界的基本组成部分。因此,随着大语言模型日益融入日常决策,学习有效的数字表征对其成功至关重要。然而,这些模型面临一个挑战:根据上下文的不同,同一串数字标记(例如 911)既可以被视为一个数字,也可以被视为一个字符串。这种二元性会产生什么样的表征,其下游影响又是什么?利用认知科学中一种基于相似性的提示技术,我们表明大语言模型学习到的表征空间混合了类字符串表征和数值表征。具体而言,我们表明从这些模型对整数对所引发的相似性判断可以用 Levenshtein 编辑距离与数值 Log-Linear 距离的组合来刻画,这表明存在一种纠缠表征。通过一系列实验,我们展示了这种纠缠如何反映在潜在嵌入中,如何通过上下文被减弱但无法完全消除,以及如何传播到现实的决策场景中。这些结果揭示了 Transformer 模型中的一种表征张力:它们必须从文本输入中学习什么是数字。

英文摘要:

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.

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

↑