Scaling External Knowledge Input Beyond Context Windows of LLMs via Multi-Agent Collaboration
本文提出了一种名为EXTAGENTS的多智能体框架,通过多智能体协作,实现了在推理时对LLM外部知识输入的可扩展性,有效提升了多跳问答和长文本生成任务的表现。
更新于 2025-07-10。作者:Zijun Liu、Zhennan Wan、Peng Li、Ming Yan、Ji Zhang、Fei Huang、Yang Liu。
中文摘要
随着推理和信息检索后训练技术的快速发展,大型语言模型(LLMs)可以整合大量检索到的知识来解决复杂任务。然而,LLMs有限的上下文窗口阻碍了外部知识输入量的扩展,限制了进一步改进,尤其是在需要大量外部知识的任务中。现有的上下文窗口扩展方法不可避免地会导致信息损失。基于LLM的多智能体方法作为一种新的范式出现,以分布式方式处理大量输入,其中我们识别出现有知识同步和推理过程中的两个核心瓶颈。在这项工作中,我们开发了一个多智能体框架,ExtAgents,以克服这些瓶颈,并在不进行更长的上下文训练的情况下,使推理时知识集成具有更好的可扩展性。通过我们的增强型多跳问答测试集inftyBench+以及其他包括长调查生成在内的公共测试集进行基准测试,ExtAgents显著提高了现有非训练方法在相同外部知识输入量下的性能,无论这些输入是否在上下文窗口内或超出窗口。此外,由于高并行性,该方法保持了高效性。进一步研究LLM智能体在增加外部知识输入方面的协调作用,将有助于实际应用。
英文摘要
With the rapid advancement of post-training techniques for reasoning and information seeking, large language models (LLMs) can incorporate a large quantity of retrieved knowledge to solve complex tasks. However, the limited context window of LLMs obstructs scaling the amount of external knowledge input, prohibiting further improvement, especially for tasks requiring significant amount of external knowledge. Existing context window extension methods inevitably cause information loss. LLM-based multi-agent methods emerge as a new paradigm to handle massive input in a distributional manner, where we identify two core bottlenecks in existing knowledge synchronization and reasoning processes. In this work, we develop a multi-agent framework, ExtAgents, to overcome the bottlenecks and enable better scalability in inference-time knowledge integration without longer-context training. Benchmarked with our enhanced multi-hop question answering test, $boldsymbol{inftyBench+}, and other public test sets including long survey generation, ExtAgents significantly enhances the performance over existing non-training methods with the same amount of external knowledge input, regardless of whether it falls within or exceeds the context window$. Moreover, the method maintains high efficiency due to high parallelism. Further study in the coordination of LLM agents on increasing external knowledge input could benefit real-world applications.
解读
一句话总结
本文提出了一种名为EXTAGENTS的多智能体框架,通过多智能体协作,实现了在推理时对LLM外部知识输入的可扩展性,有效提升了多跳问答和长文本生成任务的表现。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:LLM的上下文窗口有限,限制了外部知识输入的扩展,影响了任务性能。
- 现有方案不足:现有的上下文窗口扩展方法(如RAG和上下文压缩)会引入信息损失;基于LLM的多智能体方法在知识同步和推理过程中存在瓶颈。
- 研究目标:开发一种新的多智能体框架,实现推理时知识集成,无需更长的上下文训练,并提升任务性能。
问题2:论文的核心创新点是什么?
- 技术创新:提出EXTAGENTS框架,通过多智能体协作实现知识同步和推理。
- 方法改进:简化智能体角色,实现全局知识同步和知识累积推理。
- 优势:无需重新训练模型,可扩展性高,性能优于现有方法。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在∞Bench+、HotpotQA和AutoSurvey等基准测试上验证EXTAGENTS的性能。
- 性能提升:EXTAGENTS在所有输入长度上均优于基线方法,性能随外部知识输入增加而提升。
- 对比结果:与LLM×MapReduce等基线方法相比,EXTAGENTS在多跳问答和长文本生成任务上表现出显著性能提升。
问题4:这个研究的实际应用价值是什么?
- 应用场景:多跳问答、长文本生成等需要大量外部知识的任务。
- 实施建议:使用EXTAGENTS框架处理大规模外部知识输入,提高任务性能。
- 局限与展望:EXTAGENTS在对抗性模型和更广泛的任务上仍有改进空间,未来研究将关注自适应智能体协调、跨模态推理和理论分析。