# Collect for Coverage, Replay with Evidence: Adaptive and Efficient On-Policy Distillation for Long-Horizon Agents

AI.info

> Training an agent through long interactions with tools can be slow: each update may require the agent to complete another full environment rollout, and some rollouts take much longer than others.

**arXiv**: 2611.34756 · Preprint · not peer-reviewed

**Published**: 2026-11-25

**Authors**: Haowen Hou, Gen Li, Ruilin Li, Yicheng Liu, Zhen Huang, Shuai Dong, Congcong Wang, Kaiwen Tuo, Hongrui Wu, Zelin Peng, Kanghui Tian, Ji Zhao, Dianyi Wang, Jiaqi Wang

## In plain words

Training an agent through long interactions with tools can be slow: each update may require the agent to complete another full environment rollout, and some rollouts take much longer than others. Replaying stored histories can reduce that cost, but teacher-generated histories may not reflect situations caused by the student, and simple rules for choosing which turns to replay can miss important decisions.

## AI summary

## Overview

- **Research area:** Natural language processing, on-policy distillation, and training tool-using agents.
- **Technical level:** Intermediate.
- **Scope:** The paper presents CARE-OPD, a way to train long-horizon agents by replaying selected parts of stored interaction histories instead of requiring a fresh environment rollout for every update.

## What This Paper Is About

Training an agent through long interactions with tools can be slow: each update may require the agent to complete another full environment rollout, and some rollouts take much longer than others. Replaying stored histories can reduce that cost, but teacher-generated histories may not reflect situations caused by the student, and simple rules for choosing which turns to replay can miss important decisions. CARE-OPD aims to make replay both more relevant to the student and more focused on decisions supported by evidence from what happened later.

## Key Contributions

1. **A two-part analysis of prefix replay:** The authors frame replay quality as depending on both which histories are collected and which turns within those histories are reused.
2. **Student-seeded history collection:** A frozen student starts some trajectories, after which the teacher continues. This brings student-induced situations into the stored history pool.
3. **Confidence-gated training and evidence-based turn selection:** The method filters low-confidence teacher targets and uses the completed trajectory’s later events and outcome to select turns for replay.
4. **Evaluation of performance and efficiency:** Experiments on Software Engineering and Deep Research tasks compare CARE-OPD with online distillation and earlier prefix replay approaches.

## Main Findings

- **Higher task performance:** With Qwen3.5-9B as the student and Qwen3.5-27B as the teacher, CARE-OPD reaches **59.5 ±0.3%** on SWE-bench Verified and **49.6 ±0.5%** on BrowseComp-Plus. With Qwen3-8B, it reaches **23.0 ±0.5%** on SWE-bench Verified.
- **Improvement over replay baselines:** On SWE-bench Verified, CARE-OPD scores higher than vanilla prefix replay (**53.7 ±1.1%**) and ReOPD (**53.9 ±0.2%**). The paper also reports that CARE-OPD outperforms online OPD in all three evaluated settings.
- **Lower training cost on Software Engineering:** CARE-OPD takes **3.0 ±0.1 hours** and uses **171.2 ±3.3 thousand environment actions**. Compared with asynchronous online OPD using one distilled turn, this is a **45% reduction in end-to-end time** and **44% fewer environment actions**, while task success rises from **57.1 ±0.4%** to **59.5 ±0.3%**.
- **The two collection and reuse choices work together:** On SWE-bench Verified, student-seeded collection with confidence gating scores **57.1 ±1.5%**, compared with **53.7 ±1.1%** for teacher-only histories without gating. The authors report a positive interaction between broader history coverage and confidence filtering.
- **Selecting turns by trajectory evidence matters:** With a matched **40%** turn budget, teacher hindsight selection scores **57.3 ±0.8%**, versus **53.7 ±0.4%** for a random subset. A separate critic reaches **57.6 ±2.0%**; CARE-OPD’s selector reuses the rollout teacher’s trajectory KV cache instead of using that separate critic.
- **The teacher can be less certain near student-to-teacher switches:** The first three turns after the switch have lower mean top-token probability and higher entropy than later turns. The paper reports that the low-confidence rate is **35.1%** in those early turns, compared with **26.2%** across all post-switch turns.

## Methodology in Plain English

CARE-OPD separates data collection from student training.

- **Collect histories:** Some trajectories are generated entirely by the teacher. For others, a frozen student handles an initial segment and the teacher continues from there. Student-generated turns provide context for later replay but are not themselves replay targets.
- **Keep teacher supervision the student can learn from:** During training, the current student generates a response from a stored history. The teacher’s confidence across that response is estimated from its probability assigned to its most likely token at each position. The method rejects the least-confident responses in each minibatch; the reported default rejection fraction is **0.1**.
- **Choose turns using what happened later:** After a trajectory ends, a model-based judge examines the trajectory, execution feedback, and outcome. It selects turns whose importance is supported by later evidence, such as a diagnosis, correction, or verification step. The reported default selection fraction is **0.4**.
- **Train from stored prefixes:** The current student responds to the selected history prefix, and the teacher provides token-level targets. The student’s replayed response is not sent to the environment. This keeps long environment interactions off the training update’s critical path, while allowing a collected history to support repeated updates.

For the Software Engineering experiments, the paper uses OpenHands; for Deep Research, it uses a customized Uni-Agent scaffold with search, open, and find tools. Deep Research training tasks are curated from public sources: **75,372** queries remain after merging and deduplication, and **16,855** remain after answerability and evidence checks.

## Why This Matters

**Impact on research:** The paper treats replay as more than a way to save rollout time. It shows that the choice of stored histories, the reliability of teacher supervision, and the turns selected for learning all shape the result. Its findings suggest that replay can outperform fresh online rollouts when those choices are made adaptively.

**Potential applications:**

- **Software engineering agents:** Learning from repository exploration, debugging, code changes, and verification histories.
- **Deep research assistants:** Training agents that search the web, inspect sources, and revise answers based on evidence.
- **Tool-using customer-support agents:** Reusing histories involving multiple tools, decisions, and follow-up actions.
- **Other long-running workflow agents:** Training systems that need to recover from mistakes and verify outcomes across multi-step processes.

**Industry relevance:** Long environment rollouts can consume time and tool capacity, particularly when their durations vary. CARE-OPD’s separation of collection from training offers a way to reuse interaction data while still training the student on its own responses. The paper demonstrates this trade-off on Software Engineering and Deep Research benchmarks, rather than claiming deployment results for the potential applications above.

## Future Directions

1. **Refresh the replay pool over time:** The collected student roll-ins come from a frozen initial student, while the trained student changes. The authors identify periodic pool refresh as a possible way to reduce this mismatch, at additional environment cost.
2. **Check the real-world validity of replayed responses:** Because replayed responses are not executed, their environmental consequences are unknown. A future system could selectively execute some responses or use execution-aware correctness estimates.
3. **Improve confidence measures:** Teacher confidence reflects how concentrated the teacher’s distribution is, not whether its response is correct. Better ways to assess correctness could make the acceptance gate more reliable.
4. **Test collection and allocation choices across more settings:** The reported experiments focus on Software Engineering and Deep Research. Further work could examine whether the same approach holds for other long-horizon environments and different teacher–student pairings.

## Target Audience

This paper is most useful for researchers and practitioners working on on-policy distillation, language-model agents, tool use, and efficient agent training. It is also relevant to teams building coding agents or research assistants who want to reduce environment interaction costs without relying solely on imitation of teacher-generated trajectories.

## Authors’ abstract

Fully online on-policy distillation (OPD) is costly for long-horizon agents because each update depends on fresh environment rollouts. Prefix replay offers an efficient alternative by sampling current-student responses from stored histories, reducing idle time for long-tail rollouts and allowing each collected trajectory to support multiple updates. However, our analysis of the complete prefix replay pipeline identifies two limitations in long-horizon settings. In trajectory…

[The full abstract on arXiv](https://arxiv.org/abs/2611.34756)

[Read the original paper](https://arxiv.org/abs/2611.34756)

## Related papers

- [Interleaved Latent Visual Reasoning with Selective Perceptual Modeling](https://ai.info/paper/interleaved-latent-visual-reasoning-with-selective-perceptual-modeling-2512.05665) 2025-12-05 · cs.CL · Also by Haowen Hou, Shuai Dong
- [ToolSpace: Scaling Tool-Centric Environment Synthesis for Long-Horizon Agents](https://ai.info/paper/toolspace-scaling-tool-centric-environment-synthesis-for-long-horizon-2611.05036) 2026-11-03 · cs.CL · Key terms of the title in common
- [Opera: A Verbal Critic Framework for Long-horizon Coding Agents](https://ai.info/paper/opera-a-verbal-critic-framework-for-long-horizon-coding-agents-2609.33987) 2026-09-27 · cs.CL · Key terms of the title in common
- [Kimi K2.5: Visual Agentic Intelligence](https://ai.info/paper/kimi-k2-5-visual-agentic-intelligence-2602.02276) 2026-02-02 · cs.CL · Also by Congcong Wang
- [CoT-Proxy: Cross-Format Transfer for Distilling Long-Horizon Policies](https://ai.info/paper/cot-proxy-cross-format-transfer-for-distilling-long-horizon-policies-2611.33148) 2026-11-24 · cs.CL · Key terms of the title in common

---

Canonical: https://ai.info/paper/collect-for-coverage-replay-with-evidence-adaptive-and-efficient-on-2611.34756
