mlsanityData to 24 Nov 2026

RECAP: Training Long-horizon LLM Agents with Context Compaction

arXiv 2611.31258 ↗Submitted 19 Oct 2026Announced 25 Nov 2026cs.CL cs.AIcited by 0

On the map: LLM agents and tool use → Reinforcement learning for LLM agents

Abstract (arXiv)

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.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Reinforcement learning for LLM agents, one of 16 directions in LLM agents and tool use. Submitted 19 Oct 2026, announced 25 Nov 2026.

Builds on

No reference list yet.

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025FoldAct: Efficient and Stable Context Folding for Long-Horizon Search Agents
  2. 2026CompactionRL: Reinforcement Learning with Context Compaction for Long-Horizon Agents
  3. 2025Scaling Long-Horizon LLM Agent via Context-Folding
  4. 2026Remember Less, Adapt Longer: Bounded-State In-Context Reinforcement Learning with Recurrent Summary Memory
  5. 2026Skill Reuse as Compression in Agentic RL
  6. 2025Scaling LLM Multi-turn RL with End-to-end Summarization-based Context Management
  7. 2026ReSum: Synergizing LLM Reasoning and Summarization with Reinforcement Learning
  8. 2026ReFlow: Replay-Driven Decoupling for Efficient RL Post-Training