Manuscript Offprint

arXiv:2610.10878

Stochastic Teacher Intervention for Agentic On-Policy Distillation

Junnan Liu, Linhao Luo, Zhijun Chen, Qianren Mao, Thuy-Trang Vu, Gholamreza Haffari

Junnan Liu 1^{1}, Linhao Luo 1^{1}, Zhijun Chen 2^{2}, Qianren Mao 3^{3}, Thuy-Trang Vu 1^{1} & Gholamreza Haffari 1^{1}

1^{1}Department of Data Science and AI, Faculty of Information Technology, Monash University, Australia

2^{2}The Hong Kong Polytechnic University, Hong Kong SAR, China

3^{3}Zhongguancun Laboratory, Beijing, P.R. China

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.

Date: October 9, 2026

Correspondence: Junnan Liu at junnan.liu@monash.edu

1 Introduction

On-policy distillation (OPD) (Agarwal et al., 2024; Gu et al., 2024; Yang et al., 2025; DeepSeek-AI, 2025; Lu & Lab, 2025; Zhao et al., 2026) transfers capabilities from a stronger teacher to a student large language model (LLM) by minimizing token-level KL divergence on student-generated rollouts. By supervising contexts induced by the student's own policy, OPD reduces the train-inference mismatch and provides dense token-level guidance, in contrast to the typically sparse outcome-level rewards of reinforcement learning with verifiable rewards (RLVR), leading to promising results on complex tasks such as mathematical reasoning (Lu & Lab, 2025; Jin et al., 2026). Extending OPD to multi-turn agentic tasks (Yang et al., 2024; Shridhar et al., 2021), however, introduces a trajectory drift challenge: because each action shapes subsequent observations, an incorrect tool call, or even a valid action unlikely under the teacher policy, can lead the student into off-teacher-distribution states rarely encountered in teacher-generated rollouts (Zhong et al., 2026; Wang et al., 2026b), as illustrated in Figure 1. As such deviations accumulate across turns, teacher-student policy discrepancy can increase, making the teacher’s token-level guidance on the resulting histories less reliable or even counterproductive (Li et al., 2026b). Consequently, supervising student-generated tokens alone may be insufficient to control the distribution shift induced by multi-turn interaction.

Existing methods address this instability through two strategies. One masks or reweights the distillation loss using signals derived from KL divergence (Zhong et al., 2026; Zhou et al., 2026a) or model confidence (Zheng et al., 2026). The other controls training-trajectory construction by progressively adjusting rollout depth (Wang et al., 2026b) or mixing teacher-and student-generated turns through a curriculum (Li et al., 2026a). However, loss filtering will lose supervision signals and cannot directly correct the action that determines the next environment transition. Predefined curricula and rollout-depth control can prevent the student's exposure to unreliable supervision, but do not adaptively assess whether its current response requires correction. Recent work has further explored teacher intervention that allows the teacher to take over from the students' generation at specific points (Xu et al., 2026). By replacing the student's proposed action with a teacher-generated one, these methods could limit the accumulation of trajectory drift and provide more reliable supervision on subsequent turns.

However, making teacher intervention effective in multi-turn OPD still requires addressing two key challenges. First, when should the teacher intervene? Predefined intervention schedules fail to account for immediate changes in teacher-student policy discrepancy during multi-turn interactions (Li et al., 2026a). On the other hand, recent adaptive approaches use discrepancy estimates to guide intervention through decision boundaries, hysteretic thresholds, or lookahead validation (Wang et al., 2026a; Xia et al., 2026; Chen et al., 2026). However, these estimates are subject to statistical noise, and threshold-based decisions can amplify estimation errors into abrupt changes in teacher control. A poor intervention strategy may therefore miss opportunities to correct trajectory drift or intervene unnecessarily, increasing teacher dependence and computational cost.

Figure

Figure 1: Illustration of trajectory-level distribution shift and turn-level teacher intervention in on-policy distillation.

Second, how should the student learn from teacher-generated tokens? Teacher intervention introduces tokens sampled from the teacher policy into training, whereas standard OPD defines its reverse-KL objective under student-generated tokens. Existing intervention-based OPD methods handle these teacher-generated tokens using different surrogate objectives (Li et al., 2026a; Xu et al., 2026; Chen et al., 2026). Some adopt forward-KL or SFT-style objectives, which depart from the reverse-KL formulation

of standard OPD and may affect the retention of previously acquired capabilities. Others directly apply a sampled reverse-KL objective to teacher-generated tokens. However, because these tokens are sampled from the teacher rather than the student policy, directly evaluating the standard reverse-KL integrand does not recover its intended expectation under the student policy. Thus, learning from teacher intervention requires correcting this token-sampling mismatch while preserving the conditional reverse-KL objective of OPD.

To address these challenges, we propose STI-OPD, a discrepancy-guided Stochastic Teacher Intervention framework for multi-turn agentic OPD. We first develop a stochastic intervention strategy that samples whether to intervene based on teacher-student policy discrepancy. Specifically, STI-OPD uses KL divergence estimated by k3k_{3} estimator (Schulman, 2020) to measure the divergence between the teacher and student policies at each turn, and maps this estimate into an intervention probability. This probability increases smoothly with the discrepancy, favoring teacher intervention when the policies diverge while preserving student exploration, without a hand-tuned threshold or fixed intervention budget. To learn from the resulting mixed-policy trajectories, we further introduce an importance-weighted reverse KL objective that uses importance sampling (Schulman et al., 2017) to correct the token sampling mismatch between teacher-generated responses and the student policy while preserving the original OPD objective formulation. Intervention thus controls which histories are visited, while importance weighting corrects the token-sampling mismatch introduced by teacher generation.

Extensive experiments are conducted in two multi-turn agentic settings, spanning tool-integrated reasoning (Zhang & Math-AI, 2024; 2025; 2026; Dekoninck et al., 2026; Rein et al., 2023; Jain et al., 2025) and long-horizon agentic interaction (Shridhar et al., 2021; Wang et al., 2022). STI-OPD outperforms all distillation baselines on each benchmark and at both student scales, with its largest margins on long-horizon tasks, where compounding error is most severe. Ablations show that different components of STI-OPD contribute to these gains and further analysis reveals the mechanism, scalability, and efficiency of STI-OPD.

References (43)