Reproduce “RECAP: Training Long-horizon LLM Agents with Context Compaction” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Yulun Jiang, Maria Brbic, Michael Moor
RECAP trains language-model agents to compact long interaction histories while preserving the behavior induced by the original history. It combines task-success rewards with a distortion-based summary reward and self-distillation from the same policy conditioned on full history. With a 32K context, Qwen3.5-4B reaches 62.8% on BrowseComp-Plus versus 58.2% for task-only GRPO. Tests cover two task domains.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.