arXiv:2606.31564cs.AI2026-06

让智能体动态调整记忆内容,避免信息丢失

ACE: Pluggable Adaptive Context Elasticizer across Agents

  • 设计可插拔的弹性记忆模块,按需保留原始或压缩信息
  • 在四个智能体框架中均提升性能,超越截断与摘要基线
  • 适合长任务决策场景,尤其对需要回溯记忆的复杂任务

随着智能体任务复杂度上升,轨迹长度快速增长,给具有固定上下文窗口的大语言模型带来了挑战。现有上下文管理方法如截断和摘要存在固有缺陷:一旦信息被丢弃或压缩,即使后续变得关键也无法恢复。为此,我们提出自适应上下文弹性化模块(ACE),一个可插拔组件,在每个决策步骤中弹性调度历史信息。ACE通过无损消息存储层保存每步的原始消息和压缩抽象,并基于当前任务状态,由上下文编排层动态决定每步采用原始、抽象或丢弃的弹性类型。该可逆设计确保大模型始终获得紧凑而信息丰富的上下文。我们将ACE应用于ReAct、DeepAgent、WebThinker和MiroFlow四个不同智能体框架,无需训练或结构修改。实验表明,ACE在所有框架中均持续优于截断与摘要基线,带来稳定性能提升。

原文摘要 · Abstract (English)

The increasing complexity of agentic tasks has led to rapidly growing trajectory lengths, which poses significant challenges for large language model (LLM) based agents with fixed context windows. Existing context management techniques, such as truncation and summarization, suffer from inherent inflexibility and irreversibility: once information is discarded or compressed, it cannot be recovered even when it becomes critically relevant in later decision steps. To address these limitations, we propose the Adaptive Context Elasticizer (ACE), a plug-and-play module that elastically orchestrates historical step information into the agent's context at each decision step. ACE maintains a lossless message maintenance layer that stores both raw messages and compressed abstractions for each historical step, while a context orchestration layer adaptively assigns each step an elastic type as raw, abstract, or drop, at every decision step based on the current task state. This reversible design ensures that the main LLM always receives a compact yet information-rich context. We adapt ACE to four diverse agent frameworks, including ReAct, DeepAgent, WebThinker, and MiroFlow, without training or architectural modifications. Experiments show that ACE consistently outperforms truncation and summarization baselines, and brings consistent performance gains across all four agent frameworks.

智能体上下文管理记忆机制LLM

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。