Sculptor: Empowering LLMs with Cognitive Agency via Active Context Management
Sculptor通过主动上下文管理工具,增强了大型语言模型(LLMs)的认知能力,显著提高了其在处理长上下文时的性能。
更新于 2025-08-07。作者:Mo Li、L. H. Xu、Qitai Tan、Ting Cao、Yunxin Liu。
中文摘要
大型语言模型(LLMs)在处理长文本内容时,由于主动干扰现象,即早期文本中的无关信息会干扰推理和记忆的调用,导致性能显著下降。尽管大部分研究都集中在通过外部记忆系统来增强LLMs的能力,但我们提出了一种互补的方法:通过赋予LLMs主动上下文管理(ACM)工具,来积极塑造它们的内部工作记忆。我们引入了Sculptor框架,该框架为LLMs提供了三类工具:(1)上下文分割,(2)总结、隐藏和恢复,以及(3)智能搜索。我们的方法使得LLMs能够主动管理它们的注意力和工作记忆,类似于人类如何选择性地关注相关信息,同时过滤掉干扰。在信息稀疏基准测试PI-LLM(主动干扰)和NeedleBench多针推理上的实验评估表明,Sculptor即使在没有特定训练的情况下也能显著提高性能,这是通过利用LLMs固有的工具调用泛化能力实现的。通过启用主动上下文管理,Sculptor不仅减轻了主动干扰,还为在不同长文本任务中进行更可靠的推理提供了认知基础——这表明,明确的上下文控制策略,而不仅仅是更大的标记窗口,对于规模鲁棒性至关重要。
英文摘要
Large Language Models (LLMs) suffer from significant performance degradation when processing long contexts due to proactive interference, where irrelevant information in earlier parts of the context disrupts reasoning and memory recall. While most research focuses on external memory systems to augment LLMs' capabilities, we propose a complementary approach: empowering LLMs with Active Context Management (ACM) tools to actively sculpt their internal working memory. We introduce Sculptor, a framework that equips LLMs with three categories of tools: (1) context fragmentation, (2) summary, hide, and restore, and (3) intelligent search. Our approach enables LLMs to proactively manage their attention and working memory, analogous to how humans selectively focus on relevant information while filtering out distractions. Experimental evaluation on information-sparse benchmarks-PI-LLM (proactive interference) and NeedleBench Multi-Needle Reasoning-demonstrates that Sculptor significantly improves performance even without specific training, leveraging LLMs' inherent tool calling generalization capabilities. By enabling Active Context Management, Sculptor not only mitigates proactive interference but also provides a cognitive foundation for more reliable reasoning across diverse long-context tasks-highlighting that explicit context-control strategies, rather than merely larger token windows, are key to robustness at scale.
解读
一句话总结
Sculptor通过主动上下文管理工具,增强了大型语言模型(LLMs)的认知能力,显著提高了其在处理长上下文时的性能。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:LLMs在处理长上下文时,由于主动干扰(早期上下文中的无关信息干扰推理和记忆召回),导致性能显著下降。
- 现有方案不足:现有的解决方案主要集中于扩展上下文窗口或开发外部记忆系统,但这些方案并未解决LLMs主动管理内部工作记忆的能力不足的问题。
- 研究目标:提出一种名为Sculptor的框架,通过主动上下文管理(ACM)工具,使LLMs能够主动管理其注意力和工作记忆,从而提高处理长上下文的能力。
问题2:论文的核心创新点是什么?
- 技术创新:Sculptor框架,包括上下文碎片化、摘要、隐藏和恢复,以及智能搜索等工具。
- 方法改进:通过ACM工具,LLMs能够主动管理其注意力和工作记忆,类似于人类选择性地关注相关信息并过滤掉干扰。
- 优势:与现有方法相比,Sculptor能够显著提高LLMs在处理长上下文时的性能,即使没有特定的训练。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在PI-LLM(主动干扰)和NeedleBench Multi-Needle Reasoning(信息检索和推理)等基准测试中进行了评估。
- 性能提升:Sculptor显著提高了LLMs在信息稀疏任务上的性能,尤其是在处理主动干扰和多针推理任务时。
- 对比结果:与基线方法相比,Sculptor增强了模型的准确性和鲁棒性。
问题4:这个研究的实际应用价值是什么?
- 应用场景:Sculptor可以应用于需要处理长上下文的复杂任务,如问答系统、机器翻译和文本摘要。
- 实施建议:Sculptor可以集成到现有的LLMs中,以增强其处理长上下文的能力。
- 局限与展望:Sculptor的引入引入了计算开销,但预计未来的基础设施优化将缓解这个问题。未来的工作包括利用强化学习来训练LLMs有效地使用ACM工具,并探索架构变化以实现部分缓存重用。