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.
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:
- Reasoning: Competition-level mathematics (AIME, AMC, MATH-500) using a Python sandbox for code-based verification.
- Search: Open-domain QA requiring multi-step tool use and information retrieval (NQ, TriviaQA, HotpotQA).
- 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.
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