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

距离迷失:上下文邻近性对LLM在图任务中性能的影响

Lost-in-Distance: Impact of Contextual Proximity on LLM Performance in Graph Tasks

Foundation AI Technologies (FAIT)(基础人工智能技术(FAIT));LinkedIn(领英)

Hamed Firooz, Maziar Sanjabi, Wenlong Jiang, Xiaoling Zhai

AI总结:

本文提出“距离迷失”现象,揭示LLM在图任务中因相关信息的上下文距离增大而导致准确率最多下降6倍,并证明该现象独立于图编码方式和模型规模。

摘要:

尽管取得了显著进展,大型语言模型(LLMs)仍存在盲点,这些盲点削弱了它们有效检索和处理相关上下文数据的能力。我们证明,在复杂度超出“大海捞针”场景的图任务中——即解决问题需要跨多个子问题联合进行交叉引用和推理——LLM的性能受到上下文中相关信息邻近性的影响,我们将这一现象称为“距离迷失”(lost-in-distance)。我们考察了两项基础图任务:识别两个节点之间的共同连接,以及评估三个节点之间的相似性,并表明模型在这些任务中的性能显著依赖于公共边的相对位置。我们使用多种将图结构表示为LLM输入的图编码技术,评估了三个公开可用的LLM。我们提出了距离迷失现象的形式化表述,并证明距离迷失与“中间迷失”(lost-in-the-middle)现象独立发生。结果表明,随着节点连接之间距离的增加,模型准确率最多可下降6倍,且这一现象与图编码方式和模型规模无关。

英文摘要:

Despite significant advancements, Large Language Models (LLMs) exhibit blind spots that impair their ability to retrieve and process relevant contextual data effectively. We demonstrate that LLM performance in graph tasks with complexities beyond the "needle-in-a-haystack" scenario-where solving the problem requires cross-referencing and reasoning across multiple subproblems jointly-is influenced by the proximity of relevant information within the context, a phenomenon we term "lost-in-distance". We examine two fundamental graph tasks: identifying common connections between two nodes and assessing similarity among three nodes, and show that the model's performance in these tasks significantly depends on the relative positioning of common edges. We evaluate three publicly available LLMs using various graph encoding techniques that represent graph structures for LLM input. We propose a formulation for the lost-in-distance phenomenon and demonstrate that lost-in-distance and lost-in-the middle phenomenas occur independently. Results indicate that model accuracy can decline by up to 6x as the distance between node connections increases, independent of graph encoding and model size.

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

↑