跳到正文
arXiv cs.AI· Yulun Jiang, Maria Brbic, Michael Moor·· 1 小时前AI 评分45

RECAP:用上下文压缩训练长时程 LLM 智能体

RECAP: Training Long-horizon LLM Agents with Context Compaction

AI 导读

研究者提出 RECAP,一个通过强化学习训练大语言模型智能体进行上下文压缩的框架,核心原则是压缩摘要应保留原始交互历史所诱导的行为。该框架将行为失真目标分解为摘要生成的失真奖励与后续动作的自蒸馏两种信号。在 Qwen3.5-4B 上,RECAP 在 BrowseComp-plus 和 SWE-bench Verified 上分别比仅用任务奖励的 RL 基线绝对提升 4.6% 和 4.3%。

正文 · 原文

View PDF HTML (experimental)

Abstract: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.
Subjects: Computation and Language (cs.CL); Artificial Intelligence (cs.AI)
Cite as: arXiv:2611.31258 [cs.CL]
  (or arXiv:2611.31258v1 [cs.CL] for this version)
  https://doi.org/10.48550/arXiv.2611.31258

arXiv-issued DOI via DataCite

Submission history

From: Yulun Jiang [view email]
[v1] Mon, 19 Oct 2026 09:30:37 UTC (249 KB)

来源:arXiv cs.AI · arxiv.org