图书管理员智能体:训练大型语言模型以策划可预测未来查询的长上下文工作空间
Librarian Agents: Training LLMs to Curate Long-Context Workspaces that Anticipate Future Queries
AI总结:
该研究提出Librarian Agents框架,将工作空间构建建模为马尔可夫决策过程并通过强化学习优化,在BrowseComp-Plus和BRIGHT数据集上均显著优于基线方法,实现长上下文智能体的前瞻式工作空间策划。
摘要:
对长文档上下文进行推理仍是大型语言模型(LLM)面临的挑战。标准检索方法本质上是反应式的,会在推理时给需要复杂跨文档推理的智能体造成瓶颈;而知识图谱等预计算结构往往效果不佳,因为它们依赖僵化的启发式规则。那么,我们能否让智能体执行可预测的定向策划:在推理前主动重组非结构化语料库,以高效服务多样化的未来查询?我们基于现代智能体框架(如Claude Code)的一个关键不对称性开展研究:LLM智能体擅长导航现有文件系统解决即时任务,但很少接受构建可重复使用工作空间的训练。为实现这一能力,我们提出Librarian Agents(图书管理员智能体)框架,其中构建智能体将原始文档转换为包含合成文件和参考链接的分层文件系统,形成适配下游回答智能体的工作空间。我们将工作空间构建建模为马尔可夫决策过程,通过强化学习优化构建策略,以直接最大化下游回答准确率。实验表明,Librarian Agents在BrowseComp-Plus数据集上比最强的检索和预计算基线高出33个百分点,可在重复查询中摊销前期构建成本,并在BRIGHT数据集上对未见过的领域实现零样本泛化,平均准确率提升31个百分点。
英文摘要:
Reasoning over long document contexts remains a challenge for large language models (LLMs). Standard retrieval methods are inherently reactive, bottlenecking agents with complex, cross-document reasoning at inference time, while precomputed structures like knowledge graphs often fall short because they rely on rigid heuristics. Instead, can we allow agents to perform anticipatory directed curation: learning to proactively reorganize unstructured corpora prior to inference to efficiently serve diverse future queries. We build on a key asymmetry in modern agentic harnesses (e.g., Claude Code): while LLM agents are adept at navigating existing filesystems to solve an immediate task, they are rarely trained to construct reusable workspaces for future use. To instantiate this capability, we introduce Librarian Agents, a framework in which a builder agent transforms raw documents into a hierarchical filesystem of synthetic files and reference links, which forms a workspace tailored for a downstream answering agent. We formulate workspace construction as a Markov decision process and optimize the builder policy via reinforcement learning to directly maximize downstream answering accuracy. Empirically, Librarian Agents outperforms the strongest retrieval and precomputation baselines by 33 percentage points on BrowseComp-Plus, amortizes upfront construction costs across repeated queries, and generalizes zero-shot to unseen domains on BRIGHT with a 31-point average accuracy improvement.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。