Efficiently training AI agents often involves On-Policy Distillation (OPD), where a "student" model learns by interacting with an environment while being supervised by a "teacher" model. However, in modern asynchronous systems, this process hits a bottleneck: the way we batch data for training is surprisingly inefficient.
A new paper, "DivOPD: Spread Wide, Look Close for Asynchronous On-Policy Distillation of Multi-turn Agents," introduces a simple yet powerful batch-selection strategy that significantly speeds up training and improves agent performance by rethinking how we allocate our training budget.
TL;DR
DivOPD optimizes asynchronous agent training by ensuring training batches represent a diverse set of trajectories ("Spread Wide") and prioritize the most informative, high-disagreement turns within those trajectories ("Look Close"). This approach achieves ~1.8x speedups in training time and tokens while consistently reaching higher peak success rates across complex agentic benchmarks.
What Problem Does This Paper Address?
In large-scale asynchronous training, "explorer" nodes generate trajectories (rollouts) while "learner" nodes update the model. Standard practice is to fill learner batches in the order turns arrive.
The authors identify a major flaw in this "arrival-order" batching: multi-turn trajectories have variable lengths. A few very long or early-arriving rollouts can hog the entire training batch. Consequently, many other valid trajectories sit in the queue, grow "stale" (as the model they were generated from becomes outdated), and eventually expire without ever contributing to the gradient. This wastes expensive environment interactions and teacher scoring.
Methods
DivOPD introduces a learner-side batch composer that treats batch construction as an online allocation problem. It operates in three stages:
- Validity Gate: It immediately discards "dead" turns—those without usable teacher feedback or with truncated prompts—freeing up slots for useful data.
- Rollout-First Coverage ("Spread Wide"): Instead of flattening all turns into a single stream, it groups them by rollout ID. In the first pass of batch building, it limits each rollout to a maximum of k turns. This ensures the batch covers as many distinct trajectories as possible.
- Disagreement Focus ("Look Close"): Within the slots allocated to a specific rollout, it doesn't just pick turns at random. It prioritizes turns with the highest cumulative teacher-student disagreement (measured by the difference in log-probabilities). The intuition is that the student learns most from states where its actions differ significantly from the teacher's advice.
Additionally, the authors propose DivOPD+R, which includes an optional "Teacher Recovery" mechanism. If a student makes no progress for several turns, the teacher briefly takes control to guide the agent back to a productive state, preventing the training from stalling on "no-progress" trajectories.
Datasets
The researchers evaluated DivOPD across six teacher-student settings using three popular simulated benchmarks for AI agents:
- ALFWorld: Text-based environment for household tasks.
- ScienceWorld: Complex science experiments requiring multi-step reasoning.
- WebShop: A simulated online shopping environment.
The experiments used student models ranging from 1.5B to 7B parameters (from the Qwen family) and environment-specific teachers.
Key Insights and Ideas
- Batching is an Algorithmic Choice: The paper argues that batch construction in asynchronous RL isn't just "systems plumbing"—it's a core part of the learning algorithm that dictates the data-weighted training objective.
- Diversity Over Density: It is more effective to train on a few turns from many different trajectories than many turns from a few trajectories. This is clearly shown in Figure 2, where DivOPD significantly increases "Effective rollouts per batch."
- The "Aha!" of Disagreement: Prioritizing turns where the student is "most wrong" provides a much stronger learning signal, allowing the model to reach target success rates with far fewer tokens.
Key Results
- Higher Success Rates: DivOPD raised the mean peak success rate from 77.4% to 84.4% across all tested settings.
- Massive Efficiency Gains: The method achieved a geometric-mean speedup of 1.84x in training tokens and 1.87x in learner GPU time compared to vanilla OPD.
- Reduced Waste: In vanilla OPD, roughly 49–59% of valid rollouts never even entered a training batch before expiring. DivOPD slashes this waste, ensuring nearly every generated trajectory contributes to the model's growth.
- Recovery Works: The +R extension further improved the "last-five" mean success rate to 82.4%, proving that brief teacher interventions can help students overcome difficult "stuck" states.
Limitations and Future Work
While DivOPD shows impressive gains, the authors note a few areas for further exploration:
- Scope of Evaluation: The evidence is currently limited to simulated benchmarks and the Qwen model family. Testing on real-world, open-domain tasks is a logical next step.
- End-to-End Costs: The reported speedups focus on the learner side. A full accounting of the system would need to include the costs of the explorer nodes and the teacher's inference time.
- Dynamic Allocation: Future work could involve adapting the rollout cap (k) dynamically based on the current pressure in the experience queue.
DivOPD demonstrates that in the world of asynchronous agent training, how you choose your data is just as important as the data itself. By spreading wide and looking close, we can train smarter, not just harder.
Summary updated