Replay, Don't Resample: Off-Policy Consolidation of Long-Horizon RL Experts

Zhenrui Yue, Gongxiaohui Chen, Huimin Zeng, Honglei Zhuang, Jiashuo Sun, Zhen Han, Dong WangarXiv 2026 · arXiv

TL;DR

Researchers have introduced Multi-expert Replay Policy Distillation (MRPD), a method that consolidates domain-specific RL experts into a single generalist model by replaying their original training logs in chronological order. This approach is up to 8x faster than traditional resampling methods and achieves superior performance on complex tasks like reasoning and SQL by treating expert logs as a curriculum rather than a simple data mixture.

What Problem Does This Paper Address?

Training a single Large Language Model (LLM) to be a "jack-of-all-trades" using Reinforcement Learning (RL) is notoriously difficult. Improving performance in one domain (like math) often comes at the expense of another (like coding). The current state-of-the-art solution is to train specialized experts for each domain and then consolidate them into one "student" model via Multi-teacher On-Policy Distillation (MOPD).

However, MOPD is prohibitively expensive. The student model must re-sample millions of trajectories in every environment, and each expert must score every single token the student produces. This process is slow, compute-intensive, and often causes the student to inherit the "drift" (suboptimal behaviors) that experts might acquire late in their training runs.

Methods

The authors propose MRPD, which argues that we don't need to resample data because the experts' own training logs already contain everything needed for consolidation: rollouts, sampling probabilities, and rewards.

Figure 1. MRPD replays instead of resampling. MOPD consoli- dates the experts by resampling and interacting with the environ- ments. MRPD replays the rollouts and rewards from the experts’ own training logs, in the experts’ order, and can be up to 8× faster.

Key technical innovations include:

  • Chronological Replay: The student processes expert trajectories in the exact order they were generated during training. This keeps the student "quasi-on-policy"—it follows the same learning path as the experts, which minimizes the training-inference mismatch and keeps the model within stable optimization ranges.
  • Hybrid Objective: MRPD combines a Policy Gradient (PG) term (recomputed on the logged trajectories) with a Distillation (KL) term.
  • Dense KL Distillation: Instead of just learning from the specific tokens the expert chose, the student minimizes the KL divergence against the expert's full next-token probability distribution. This provides a much richer and more stable learning signal than sparse rewards alone.

Datasets

The researchers evaluated MRPD across three challenging "long-horizon" agentic domains:

  1. Reasoning: Competition-level mathematics (AIME, AMC, MATH-500) using a Python sandbox for code-based verification.
  2. Search: Open-domain QA requiring multi-step tool use and information retrieval (NQ, TriviaQA, HotpotQA).
  3. SQL: Text-to-SQL tasks requiring complex database interactions (Spider, BIRD).

The experiments used Qwen3-4B as the base model, comparing MRPD against standard online RL baselines (PPO, GRPO) and traditional MOPD.

Key Insights and Ideas

  • Logs as a Curriculum: A major "aha moment" was finding that the order of the logs matters more than the amount of data or the rewards themselves. Shuffling the logs led to significant performance drops, suggesting that the experts' training history serves as a natural curriculum.
  • Efficiency through Replay: Because MRPD reuses existing logs, it requires no environment interaction or reward model calls during the consolidation phase. This makes the process roughly 7x cheaper in terms of total compute compared to the original expert training.
  • Avoiding Expert Drift: By replaying the entire training history rather than just distilling from the final "drifted" experts, the student model achieves a more robust and balanced final state.
  • Quasi-On-Policy Stability: Even though the data is technically "off-policy" (generated by previous versions of the experts), replaying it in order ensures the student stays close enough to the logging policy to avoid the typical instabilities of offline RL.

Key Results

  • State-of-the-Art Performance: MRPD achieved an overall average score of 58.6, significantly outperforming online RL baselines (which averaged ~52.5) and surpassing the more expensive MOPD (58.1).
  • Massive Speedup: MRPD is up to 8x faster than MOPD. A full 300-step consolidation run took only 9.2 hours on eight H100 GPUs, whereas MOPD required nearly 30 hours.
  • Superior to Merging: MRPD consistently outperformed training-free model merging techniques like TIES or weight averaging, which often "collapsed" on specific domains like search.
Cost on eight H100s: the wall-clock time of the full training (left) and the longest single step (right). MOPD and the online RL baselines (PPO, GRPO) sample rollouts at every step; MRPD replays the logs with the full 1536 samples per step, and MRPD* is data-matched to the on-policy methods (576 samples per step).

Limitations and Future Work

  • Shared Initialization: The method currently relies on the student and experts starting from the same initial supervised fine-tuning (SFT) checkpoint. The authors haven't yet tested how sensitive the method is to different initializations.
  • Scaling to Larger Models: While the cost advantages are expected to hold, the researchers only tested 4B parameter models. Future work is needed to see if the "quasi-on-policy" benefits scale to 70B+ parameter models or Mixture-of-Experts (MoE) architectures.
  • Data Storage: Replaying logs requires storing large amounts of training data (trajectories and log-probs), which could be a logistical challenge for extremely long training runs.

Summary updated

Abstract

Frontier post-training follows a common recipe: train one expert per domain with reinforcement learning (RL), then consolidate the experts into one model via multi-teacher on-policy distillation (MOPD). Such consolidation is expensive: the student samples in every environment again, an expert scores every sampled token, and the student inherits the drift of the final experts. Yet we argue that the experts' RL runs have already produced what consolidation needs: rollouts with their sampling probabilities and rewards, in the order the experts learned from them. We propose multi-expert replay policy distillation (MRPD), which replays these training logs through the student in the experts' order. At each step, the policy gradient is recomputed on these scored trajectories, and the final experts' distributions are distilled at the logged prefixes. Following the experts' own trajectory reduces the training-inference mismatch and keeps the student within the clip range, so the replay is off-policy in origin but quasi-on-policy throughout consolidation. MRPD samples nothing and calls no environment or reward model: the trainer is the sole process, and consolidating the experts costs only about a seventh of the compute used to train them. On three long-horizon agentic domains (reasoning, search and SQL), MRPD yields the best student model, substantially outperforming online RL baselines, and surpassing MOPD from the same experts at a fraction of MOPD's cost. Our analysis on the same logs shows that the replayed trajectories carry most of the gain, and that both the policy gradient and the distillation term add to it. Most interestingly, the order of the logs matters more than their amount or rewards, suggesting that expert training logs are a curriculum, not a data mixture.
BibTeX
@misc{yue2026replay,
  author = {Zhenrui Yue and Gongxiaohui Chen and Huimin Zeng and Honglei Zhuang and Jiashuo Sun and Zhen Han and Dong Wang},
  title = {{Replay, Don't Resample: Off-Policy Consolidation of Long-Horizon RL Experts}},
  year = {2026},
  eprint = {2611.24059},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.24059},
}
Figure