RECAP: Training Long-horizon LLM Agents with Context Compaction
RECAP trains agents to compress their histories while preserving how they act afterward.
The framework rewards summaries that keep subsequent behavior close to what the full interaction history would produce. It pairs that reward with self-distillation for actions taken after compaction. In Qwen3.5-4B experiments, RECAP outperformed task-reward-only reinforcement learning baselines by 4.6 percentage points on BrowseComp-plus and 4.3 points on SWE-bench Verified. Ablations supported jointly supervising summary generation and post-compaction behavior.
HF Daily Papers' note
The framework rewards summaries that keep subsequent behavior close to what the full interaction history would produce. It pairs that reward with self-distillation for actions taken after compaction. In Qwen3.5-4B experiments, RECAP outperformed task-reward-only reinforcement learning baselines by 4.6 percentage points on BrowseComp-plus and 4.3 points on SWE-bench Verified. Ablations supported jointly supervising summary generation and post-compaction behavior.
HF Daily Papers' note
score 5