arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.13194cs.CL
收藏

数值推理的几何特征:语言模型在线性子空间中比较数值属性

The Geometry of Numerical Reasoning: Language Models Compare Numeric Properties in Linear Subspaces

Mohamed bin Zayed University of Artificial Intelligence (MBZUAI)(穆罕默德·本·扎耶德人工智能大学);Tohoku University(东北大学);RIKEN(理化学研究所)

Ahmed Oumar El-Shangiti, Tatsuya Hiraoka, Hilal AlQuabeh, Benjamin Heinzerling, Kentaro Inui

AI总结:

本文探究大型语言模型(LLMs)在数值比较推理中是否利用嵌入空间低维子空间的数值属性编码,通过偏最小二乘回归识别子空间并干预验证因果关系,实验证明其跨模型和属性的有效性。

摘要:

本文研究了大型语言模型(LLMs)在回答涉及数值比较的问题时(如“克里斯蒂亚诺出生于梅西之前吗?”),是否利用嵌入空间低维子空间中编码的数值属性。我们首先通过偏最小二乘回归识别出这些子空间,它们可有效编码比较提示中实体相关的数值属性。此外,我们通过干预这些子空间来操纵隐藏状态,从而改变LLM的比较结果,以此证明因果关系。在三种不同LLM上的实验表明,我们的结果适用于不同数值属性,说明LLMs利用线性编码的信息进行数值推理。

英文摘要:

This paper investigates whether large language models (LLMs) utilize numerical attributes encoded in a low-dimensional subspace of the embedding space when answering questions involving numeric comparisons, e.g., Was Cristiano born before Messi? We first identified, using partial least squares regression, these subspaces, which effectively encode the numerical attributes associated with the entities in comparison prompts. Further, we demonstrate causality, by intervening in these subspaces to manipulate hidden states, thereby altering the LLM's comparison outcomes. Experiments conducted on three different LLMs showed that our results hold across different numerical attributes, indicating that LLMs utilize the linearly encoded information for numerical reasoning.

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

↑