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

RECAP:通过上下文压缩训练长视野大语言模型智能体

RECAP: Training Long-horizon LLM Agents with Context Compaction

EPFL(洛桑联邦理工学院);ETH Zurich(苏黎世联邦理工学院)

Yulun Jiang, Maria Brbic, Michael Moor

AI总结:

本研究提出RECAP强化学习框架,通过行为失真目标分解出互补学习信号训练大语言模型智能体,在BrowseComp-plus和SWE-bench Verified上较仅任务奖励的RL基线分别提升4.6%、4.3%。

摘要:

上下文压缩使大语言模型智能体能够在有限的上下文预算内处理长视野任务,方法是用压缩摘要替换交互历史。然而,与智能体策略联合学习有效的压缩方法仍具挑战性,因为摘要会影响后续多次交互的任务成功率。我们提出RECAP,这是一种基于“摘要应保留原始交互历史所诱导行为”原则的强化学习(RL)框架。我们用行为失真目标将该原则形式化,该目标衡量智能体在压缩上下文与原始上下文下后续行为的差异。我们证明,失真目标的梯度可分解为两个互补学习信号:用于摘要生成的基于失真的奖励,以及用于后续动作的自蒸馏。在Qwen3.5-4B上的实验表明,RECAP在两种环境中均显著优于仅使用任务奖励的RL基线,在BrowseComp-plus和SWE-bench Verified上分别实现4.6%和4.3%的绝对提升。消融实验进一步凸显了联合监督摘要生成和压缩后行为对RECAP的价值。

英文摘要:

Context compaction enables large language model agents to tackle long-horizon tasks within limited context budgets by replacing interaction histories with compressed summaries. However, learning effective compaction jointly with the agent policy remains challenging, as summaries affect task success over many subsequent interactions. We introduce RECAP, a reinforcement learning (RL) framework based on the principle that a summary should preserve the behavior induced by the original interaction history. We formalize this principle with a behavior distortion objective that measures the divergence between the agent's subsequent behavior under compressed and original contexts. We show that the gradient of the distortion objective decomposes into two complementary learning signals: distortion-based reward for summary generation and self-distillation for subsequent actions. Experiments on Qwen3.5-4B show that RECAP consistently outperforms the task-reward-only RL baselines on both environments, leading to an absolute improvement of 4.6% and 4.3% on BrowseComp-plus and SWE-bench Verified, respectively. Ablations further highlight the value of jointly supervising summary generation and post-compaction behavior for RECAP.

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

↑