arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2506.03424cs.CLcs.IR
收藏

DistRAG:面向大语言模型中基于距离的空间推理

DistRAG: Towards Distance-Based Spatial Reasoning in LLMs

University of Maryland College Park(马里兰大学学院市);University of Sydney(悉尼大学)

Nicole R Schneider, Nandini Ramachandran, Kent O'Sullivan, Hanan Samet

AI总结:

DistRAG通过将城市间测地距离编码为图并检索相关上下文子图,使大语言模型具备原本缺乏的基于距离的空间推理能力,为构建补充语言知识的初步世界模型提供了灵活方案。

摘要:

许多可以使用大语言模型(LLMs)的现实世界任务都需要空间推理,例如兴趣点(POI)推荐和行程规划。然而,LLMs自身缺乏可靠的空间推理能力,尤其是在距离方面。为了解决这一问题,我们开发了一种新颖的方法DistRAG,它使LLM能够检索训练期间未明确学习的相关空间信息。我们的方法将城市和城镇之间的测地距离编码在图中,并检索与问题相关的上下文子图。利用该技术,我们的方法使LLM能够回答其原本无法回答的基于距离的推理问题。鉴于LLM可能被问及的地点种类极其繁多,DistRAG为提供一个初步的“世界模型”以补充LLM所持有的语言知识,迈出了灵活的第一步。

英文摘要:

Many real world tasks where Large Language Models (LLMs) can be used require spatial reasoning, like Point of Interest (POI) recommendation and itinerary planning. However, on their own LLMs lack reliable spatial reasoning capabilities, especially about distances. To address this problem, we develop a novel approach, DistRAG, that enables an LLM to retrieve relevant spatial information not explicitly learned during training. Our method encodes the geodesic distances between cities and towns in a graph and retrieves a context subgraph relevant to the question. Using this technique, our method enables an LLM to answer distance-based reasoning questions that it otherwise cannot answer. Given the vast array of possible places an LLM could be asked about, DistRAG offers a flexible first step towards providing a rudimentary `world model' to complement the linguistic knowledge held in LLMs.

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

↑