2025-08-07 · 进阶 · 机器学习 · 自然语言处理

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:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源