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

编码代理是有效的长上下文处理器

Coding Agents are Effective Long-Context Processors

Duke University(杜克大学)

Weili Cao, Xunjian Yin, Bhuwan Dhingra, Shuyan Zhou

AI总结:

本文研究通过允许编码代理在文件系统中组织文本并使用其原生工具处理长上下文,发现编码代理在长上下文推理、检索增强生成和开放领域问答中表现优异,比现有最佳方法平均提升17.3%。

摘要:

大型语言模型(LLMs)在扩展以访问大规模上下文方面展现了显著进展。然而,这种访问是通过潜在且不可解释的注意力机制实现的,LLMs无法有效处理长上下文,随着上下文长度增加性能显著下降。在本工作中,我们研究是否可以通过允许编码代理在文件系统中组织文本并使用其原生工具,将长上下文处理从潜在注意力机制外部化为显式、可执行的交互。我们评估了现成的前沿编码代理作为处理长上下文任务的通用接口,包括长上下文推理、检索增强生成和使用包含多达三万亿个标记的大规模语料库的开放领域问答。在多个基准测试中,这些代理平均比已发布的最佳方法高出17.3%。我们将其效果归因于两个关键因素:原生工具熟练度,使代理能够利用可执行代码和终端命令,而非被动语义查询;以及文件系统熟悉度,使它们能够将大规模文本语料库导航为目录结构。这些发现表明,将长上下文处理委托给编码代理为语义搜索或上下文窗口扩展提供了有效的替代方案,为LLMs中的长上下文处理开辟了新方向。

英文摘要:

Large Language Models (LLMs) have demonstrated remarkable progress in scaling to access massive contexts. However, the access is via the latent and uninterpretable attention mechanisms, and LLMs fail to effective process long context, exhibiting significant performance degradation as context length increases. In this work, we study whether long-context processing can be externalized from latent attention into explicit, executable interactions, by allowing coding agents to organize text in file systems and manipulate it using its native tools. We evaluate off-the-shelf frontier coding agents as the general interface for tasks that require processing long contexts, including long-context reasoning, retrieval-augmented generation, and open-domain question answering with large-scale corpus contains up to three trillion tokens. Across multiple benchmarks, these agents outperform published state-of-the-art by 17.3% on average. We attribute this efficacy to two key factors: native tool proficiency, which enables agents to leverage executable code and terminal commands rather than passive semantic queries, and file system familiarity, which allows them to navigate massive text corpora as directory structures. These findings suggest that delegating long-context processing to coding agents offers an effective alternative to semantic search or context window scaling, opening new directions for long-context processing in LLMs.

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

↑