跟随实体:面向智能体搜索的语料库地图

·

研究论文 · 2026/09/30

在大型文档集合上回答问题或完成任务时,往往需要连接分散在多个文档中的证据,例如一个文档记录项目审批,另一个文档记录需求,第三个文档记录最新状态。最近的LLM智能体通过迭代搜索整个语料库而非仅阅读固定的一组排名靠前的文档来处理这一问题。然而,当语料库仅以扁平的文件集合形式暴露时,相关文档不会表明其与其他文档的关系,因此智能体必须为每个查询重新发现这些关系,常常错过互补证据,同时消耗大量额外token。为此,我们引入了CorpusMap,一种围绕语料库中反复出现的实体组织语料库的导航层,这些实体可从文档本身识别,并能将单个文档与跨来源的许多其他文档链接起来。具体而言,CorpusMap将每个反复出现的实体表示为一个实体页面,该页面聚合关于该实体的信息,并链接到所有引用它的文档,形成实体与文档之间的图,智能体可以遍历该图以收集原本不连贯的证据。此外,由于CorpusMap是通过离线解析跨文档的同一实体提及来构建的,其链接在查询之间共享,而非在推理时反复重新发现。使用7种不同模型和3个基准数据集,我们表明CorpusMap在证据发现和答案质量上均优于原始语料库的智能体搜索,同时平均使用更少的token,并且进一步优于4种替代导航层,表明实体可作为导航大型文档集合的有效锚点。

该研究针对LLM智能体在大型文档集合中搜索时效率低、易遗漏跨文档证据的问题,提出了一种基于实体的导航层,显著提升了搜索效率和答案质量,同时减少了token消耗,为智能体搜索提供了新思路。

Answering questions and completing tasks over large document collections often requires connecting evidence spread across multiple documents, such as a project's approval recorded in one, its requirements in another, and its latest status in a third. Recent LLM agents approach this by iteratively searching the full corpus rather than reading only a fixed set of top-ranked documents. However, when the corpus is exposed only as a flat collection of files, a relevant document gives no indication of how it relates to others, so the agent must rediscover these relationships for every query, often missing complementary evidence while simultaneously consuming substantial additional tokens. To address this, we introduce CorpusMap, a navigation layer that organizes the corpus around its recurring entities, which are identifiable from the documents themselves and can link a single document to many others across sources. Specifically, CorpusMap represents each recurring entity as an Entity Page that aggregates information about it and links to every document that refers to it, forming a graph between entities and documents that the agent can traverse to gather otherwise disconnected evidence. Moreover, since CorpusMap is constructed offline by resolving mentions of the same entity across documents, its links are shared across queries rather than rediscovered repeatedly at inference time. Using 7 different models with 3 benchmark datasets, we show that CorpusMap improves both evidence discovery and answer quality over raw-corpus agentic search while using fewer tokens on average, and further outperforms 4 alternative navigation layers, suggesting that entities serve as effective anchors for navigating large document collections.

阅读原文

参与讨论