Stochastic Teacher Intervention for Agentic On-Policy Distillation
Junnan Liu, Linhao Luo, Zhijun Chen, Qianren Mao, Thuy-Trang Vu, Gholamreza Haffari
Abstract
On-policy distillation (OPD) efficiently transfers capabilities from a stronger teacher to a student language model through dense token-level supervision on student-generated rollouts and has shown promise on complex tasks such as mathematical reasoning. However, in multi-turn agentic tasks, student decisions shape subsequent observations, causing early errors to accumulate across turns. The resulting trajectories can drift away from the teacher's rollout distribution, making the teacher's token-level supervision less reliable or even counterproductive for OPD training. To address this issue, we introduce STI-OPD, a stochastic teacher intervention framework for multi-turn agentic OPD. During multi-turn interaction, STI-OPD uses teacher intervention guided by teacher-student policy discrepancy to replace the student's proposed action with a teacher-generated one to maximize the acquisition of reliable supervision. We further develop a stochastic intervention strategy, addressing the limitations of previous threshold-based or fixed-schedule approaches, that estimates policy discrepancy using KL divergence and maps it to an intervention probability. By sampling whether to intervene from this probability, STI-OPD adaptively balances teacher control with student exploration. To learn from the resulting mixed-policy trajectories, we introduce an Importance-Weighted Reverse KL objective that corrects the token sampling mismatch between teacher-generated responses and the student policy to preserve the original OPD objective. Across tool-integrated reasoning and long-horizon interaction, STI-OPD outperforms the strongest prior OPD baseline on every evaluated benchmark and student size. Ablations further show that both discrepancy-guided intervention and importance weighting contribute to these gains.
Create a lesson
Metadata
- Categories
- cs.CL, cs.AI
- Comments
- Work in progress
Related papers
DIAL-OPD: Learning More from Fewer Tokens in On-Policy Distillation
Shared title terminologycs.CLAnhao Zhao, Haoran Xin, Junlong Tong et al.
ReCal: Calibrating Structured Pruning for On-Policy Distillation Recovery
Shared title terminologycs.CLHoucheng Jiang, Mao Zheng, Mingyang Song et al.
When Do We Need On-Policy Distillation? Distilling on Offline Student Rollouts Is Often Better
Shared title terminologycs.CLSiyan Zhao, Yonggan Fu, Jindong Jiang et al.
Learning to Act with Task Progress: Distilling Small Agents from Compact Teacher Supervision
Shared title terminologycs.CLWenxi Gan
On-Policy Distillation Teaches New Skills but Not New Knowledge
Shared title terminologycs.CLYixuan Tang, Yi Yang
OnlineQAT: On-Policy Distillation for Ultra-Low-Bit Large Language Models
Shared title terminologycs.CLWenjun Wang, Heng Li, Yanggan Gu et al.