TRANSMISSION // 2611.31258v1
Teaching AI Agents What to Keep in a Summary
Source published
RECAP trains language-model agents to make summaries that preserve their future behavior. In two benchmarks, it outperformed task-reward-only training, though the evidence is limited to one model and two task domains.

When an AI agent works through a long task, its conversation history can outgrow the space available to the model. Summarizing that history saves room, but a summary may omit details that matter later. RECAP is a training method designed to reward summaries that help an agent continue behaving as it would with the full history.
Why train an agent to summarize?
Language-model agents can search for information or work on software by taking repeated actions and reading the results. Over time, those interactions fill the model’s context window—the material it can consider at once. Context compaction makes room by replacing older interactions with a shorter summary.
The difficulty is that the most useful summary is not necessarily the one that best retells the past. It needs to preserve information that will guide future decisions. Yet if training relies only on whether the agent eventually completes its task, it can be hard to tell which summary helped or hurt: many later actions may intervene before success or failure becomes clear.
The RECAP paper asks whether training can provide a more direct signal. Its central idea is to compare how the agent behaves after compaction with how it would behave when given the original, fuller history.
A behavior-preserving training signal
RECAP uses reinforcement learning to train both the agent’s task-solving policy and its summaries. The researchers measure the difference between the agent’s next-action distributions under the compressed and original contexts. This difference is expressed using a statistical measure called KL divergence. In everyday terms, it indicates how much the agent’s predicted behavior changes when it has only the summary.
That comparison supplies two training signals. First, summaries receive a reward when they lead to behavior closer to what the agent would have done with the full history. Second, the agent learns from a form of self-distillation: its full-context behavior acts as a teacher for its behavior after compaction. The authors combine these signals with the ordinary reward for task success.
The evaluation used Qwen3.5-4B on two long-horizon tasks: BrowseComp-Plus, a deep-research benchmark, and SWE-bench Verified, a software-engineering benchmark. The main comparison used a 32K working-context limit and allowed up to three compactions per task. The task-reward-only baseline also used reinforcement learning and the same compaction setup, but relied on task success rather than RECAP’s additional behavior-preservation signals. Results were averaged over four evaluation runs.
What the study found
On BrowseComp-Plus, RECAP scored 62.8% accuracy, compared with 58.2% for the task-reward-only baseline. On SWE-bench Verified, it scored 51.1%, compared with 46.8%. The authors describe these differences as absolute gains of 4.6 and 4.3 percentage points, respectively.
The researchers also report that RECAP’s trained agents used fewer tool calls and fewer cumulative tokens per task than the baseline. They found higher accuracy on tasks that involved at least one compaction as well. These results suggest that the added training signals may help agents both preserve useful context and continue more efficiently. They do not establish why the agents used fewer interactions; the paper presents a possible explanation rather than demonstrating the cause.
An ablation study tested the two signals separately. Training the post-compaction behavior with self-distillation improved accuracy over the baseline in both environments. The summary-focused signal alone had mixed results: accuracy fell on BrowseComp-Plus and rose slightly on SWE-bench Verified. Combining both signals produced the strongest results among the tested versions. This suggests the parts may complement one another, but it does not show that the combination will be best in other settings.
What remains uncertain
These are benchmark results, not evidence that RECAP will improve every agent or real-world workflow. The experiments focused on one model, two task domains and a limited set of training and compaction conditions. The authors explicitly identify broader testing across model sizes, domains and longer interaction horizons as future work. They also note that real-world tasks may contain varied kinds of information, which could make it harder to decide what a summary should preserve.
There is a further conceptual limitation: matching the agent’s behavior with and without a summary is not the same as proving that the behavior is correct. If the full-context agent would make a poor decision, preserving that decision may not help the task. RECAP also retains the task-success objective, but the study does not settle how behavior preservation and correctness should be balanced in other applications.
The source is an arXiv preprint, so the findings should be treated as provisional rather than as a settled result. The paper’s extracted text provides methods, results and stated limitations, but this account cannot independently verify the experiments or establish how they compare with all related approaches. For now, RECAP offers a promising training strategy whose generality remains an open question.
- AI agents
- context compaction
- reinforcement learning
- language models
- agent memory
- self-distillation
Reviewed cross-references
These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.
SumOne Trains a Small Model to Condense AI Agent Histories
Shared method: Both use group-based policy-gradient reinforcement learning to train summary generation: RECAP combines task reward with a behavior-distortion signal, while SumOne rewards masked-history reconstruction with a length penalty. The shared method is RL-based summarizer training, not a shared objective; RECAP jointly trains the agent, whereas SumOne is a standalone summarizer.
Model review: · openai-codex/gpt-6-luna
Evidence and provenance
Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.
2611.31258v1 — Original paper
Excerpt reference:
static/papers/2611.31258v1.md:500-571
Basis: Paper text
Source SHA-256:8cb59a6909f589b54a099baaa59f7cd82dd69e5757b67844b5c7d2d6b98788cc2611.06445v1 — Original paper
Excerpt reference:
static/papers/2611.06445v1.md:293-391
Basis: Paper text
Source SHA-256:092236c14acee3df0f68f419156f237b6f813648dc990d67a60348bc6e144f4c
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
When AI Agents Summarize, Their Rules Can Disappear
Source published
Shared keywords: agent memory, ai agents, context compaction, language models
SumOne Trains a Small Model to Condense AI Agent Histories
Source published
Shared keywords: agent memory, ai agents, language models
When should an AI agent consult its own skills?
Source published
Shared keywords: agent memory, ai agents, reinforcement learning
A Study Tests Two Ways for AI Assistants to Remember
Source published
Shared keywords: ai agents
An AI Agent’s Past Attempts Become a Checklist for Training
Source published
Shared keywords: ai agents, reinforcement learning, self distillation