TL;DR
Researchers from Tsinghua University and Ant Group have developed a two-phase distillation strategy to build multi-task agentic LLMs that match the performance of specialized single-task experts. By combining off-policy distillation (to provide a strong initialization) with on-policy refinement (to overcome the "averaging" behavior of standard imitation learning), they successfully consolidated diverse capabilities—from flight booking to solving Sudoku—into a single unified model.
What Problem Does This Paper Address?
Building a "jack-of-all-trades" agentic LLM is surprisingly difficult. While we can train Reinforcement Learning (RL) experts to master specific tasks (like using a specific set of APIs or playing a game), combining these experts into one model often leads to a "master of none" scenario.
The authors identify two main hurdles:
- Multi-task RL is hard: Training one model on many tasks from scratch is computationally expensive and prone to instability due to conflicting gradients and task dominance.
- Standard Distillation Fails: Simply performing Supervised Fine-Tuning (SFT) on expert data—known as off-policy distillation—suffers from a "mode-covering" problem. Because it optimizes forward KL divergence, the student model tries to average across all the different behavioral modes of the various experts. If the tasks are diverse enough, this "averaging" exceeds the student's capacity, leading to degraded performance compared to the original experts.
Methods
The paper proposes a Two-Phase Distillation recipe:
- Phase 1: Off-Policy Distillation: The student model is trained via SFT on a large collection of rollouts generated by task-specific RL experts. This phase optimizes the forward KL divergence, which is stable and ensures the student learns the basic "language" and requirements of all tasks.
- Phase 2: On-Policy Refinement: The student then undergoes a refinement phase using on-policy distillation (optimizing reverse KL divergence). In this phase, the student generates its own trajectories, and the reward is based on how closely its token probabilities match the relevant expert teacher.
The magic lies in the "mode-seeking" nature of reverse KL. While Phase 1 gives the model a broad but "blurry" understanding of all tasks, Phase 2 encourages the model to commit to specific, high-performing behavioral modes, effectively sharpening its performance.
Datasets
The authors evaluated their method on four diverse agentic tasks across two domains:
- $\tau^2$-bench: Two conversational agent tasks—Airline (booking/canceling flights) and Telecom (technical support and billing). These require complex tool-use and multi-turn interaction.
- GEM: Two text-based logic games—Sudoku and Mastermind (v0-hard variants). These require reasoning, planning, and memory.
Experiments were conducted using Qwen3-8B and Qwen3-30B models as the student base.
Key Insights and Ideas
- The Capacity Mismatch: Off-policy distillation fails in multi-task settings not just because of "exposure bias," but because aggregating data from multiple experts introduces too many behavioral modes. A student model of the same size as the teachers simply cannot "cover" all those modes simultaneously without losing precision.
- Forward vs. Reverse KL: The paper provides a toy example (Section 5.1) illustrating that forward KL (off-policy) favors a "uniform" policy that might solve nothing, while reverse KL (on-policy) favors a "copy" policy that solves both tasks.
- Initialization is Everything: On-policy distillation is powerful but fragile. If the student starts too weak, it never generates "reasonable" trajectories to learn from. The off-policy phase is the essential "warm-up" that makes the on-policy refinement possible.
- Data Diversity Matters: In the off-policy phase, the authors found that having more unique samples per prompt is more important than simply having a larger dataset of repeated trajectories.
Key Results
The two-phase approach ("Off.
- On.") consistently recovered or exceeded the performance of single-task RL experts, whereas off-policy or on-policy distillation alone often lagged behind.
- Telecom Task (Qwen3-8B): Off-policy distillation alone dropped performance by ~2.9% (pass^4) compared to the RL expert. The two-phase approach recovered this, actually exceeding the expert by 1.6%.
- Sudoku (Qwen3-30B): The unified model achieved a 99.3% pass@1, matching the specialized RL expert (98.7%) and far surpassing the Pre-RL baseline (5.1%).
- Robustness: The two-phase approach remained robust across different data mixture ratios (e.g., 400:800 vs 800:800 samples per task), while off-policy distillation alone was highly sensitive to these imbalances.

Limitations and Future Work
- Teacher Dependency: The method requires first training high-quality RL experts for every individual task, which can be a significant upfront cost.
- Computational Overhead: Running two distinct distillation phases is more expensive than a single SFT pass.
- Scaling Laws: While the authors showed the problem persists at the 30B scale, it remains to be seen if massive models (e.g., 400B+) might have enough capacity to overcome the "mode-covering" issue with off-policy distillation alone.
- Future Direction: The authors suggest exploring more efficient ways to generate teacher rollouts or integrating this two-phase approach into a continuous learning framework.
Summary updated