TL;DR
RetireOPD improves the training of LLM agents by using a "skilled teacher" to provide dense, token-level guidance that is adaptively phased out. By monitoring training dynamics to detect when teacher guidance begins to conflict with environmental rewards, the student "retires" the teacher, allowing it to surpass the teacher's performance and set new state-of-the-art results on agentic benchmarks.
What Problem Does This Paper Address?
Training Large Language Model (LLM) agents with Reinforcement Learning (RL) is notoriously difficult because rewards are typically "sparse"—a single scalar success/failure signal at the end of a long sequence of actions. To fix this, researchers often use On-Policy Distillation (OPD), where a "teacher" model with access to privileged information (like specific task skills) provides dense, token-by-token supervision to a "student" model.
However, the authors identify two major flaws in current OPD approaches:
- Unreliable Teachers: Simply giving a teacher privileged information doesn't make it a good instructor; if the teacher isn't trained to use that information, its guidance can be noisy or sub-optimal.
- The Guidance Ceiling: Teacher supervision is a double-edged sword. Early on, it helps the student learn basic patterns quickly. Later, however, the teacher’s specific style can become a restrictive "ceiling." As the student improves, the goal of matching the teacher often starts to conflict with the goal of maximizing environment rewards.
Methods
The authors propose RetireOPD (Self-Retiring On-Policy Distillation), a three-stage framework:
- Privileged Teacher Construction: Instead of using a raw model as a teacher, they first train a "skilled teacher" using RL (specifically Group Relative Policy Optimization, or GRPO) while giving it access to privileged task skills. This ensures the teacher is actually competent before it starts supervising.
- Joint GRPO-OPD Optimization: The student is trained without privileged info, learning simultaneously from environment rewards (GRPO) and by trying to match the skilled teacher's token distributions (OPD).
- Adaptive Teacher Retirement: This is the core innovation. Rather than using a fixed schedule to stop distillation, RetireOPD monitors the teacher-student discrepancy. When this discrepancy stops shrinking and the student reaches a high enough success rate relative to the teacher, the student "retires" the teacher and continues training with RL alone.
Datasets
The method was evaluated on two popular interactive agent benchmarks:
- ALFWorld: A text-based embodied environment requiring long-horizon planning and household task completion.
- WebShop: A simulated e-commerce environment where agents must search, navigate, and purchase products based on specific user constraints.
The authors tested these across the Qwen2.5 model family, ranging from 1.5B to 7B parameters.
Key Insights and Ideas
- The "Gap Rebound": The authors discovered that in joint training, the discrepancy between teacher and student first narrows (alignment) and then begins to widen (conflict). This "rebound" is a clear signal that the teacher is now hindering the student's ability to find even better, reward-maximizing strategies.
- Teacher Training is Non-Negotiable: A smaller model (1.5B) trained to use privileged skills can be a better teacher than a larger model (7B) that is merely prompted with them.
- Surpassing the Master: By retiring the teacher at the right moment, the student is no longer bound by the teacher's potential sub-optimalities. In every experimental setting, the student eventually outperformed its own teacher.
Key Results
RetireOPD demonstrated significant gains over standard RL and hybrid baselines:
- ALFWorld: Improved success rates by 14.1% to 18.8% over the GRPO baseline. For the 3B model, it reached a 93.8% success rate compared to 75.0% for pure RL.
- WebShop: Improved accuracy by 11.8% to 19.0%.
- Efficiency: The adaptive retirement mechanism proved more robust than fixed "linear annealing" schedules, which often withdraw guidance too early or too late.
Limitations and Future Work
While RetireOPD is highly effective, it does require an initial phase to train the skilled teacher, which adds to the total training compute. Additionally, the method relies on the availability of "privileged information" (like a skill bank) to create the teacher in the first place.
Future work could explore how to apply this "self-retiring" logic to scenarios where privileged information is harder to define, or to multi-agent settings where several teachers might provide different types of expertise.
Summary updated