arXiv(opens in a new tab)cs.LGSep 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2609.02998

Verify Before You Distill: Prompt-Level Teacher Gating for On-Policy Distillation

Zhiwei Zhang, Zechen Sun, Fei Zhao, Kang Peng, Bin Liang, Huayu Deng, Yao Hu, Kam-Fai Wong, Mu Chuan

AllSpark Team

On-policy distillation (OPD) accelerates post-training by providing dense token-level supervision from a frozen teacher on the student's own rollouts. Vanilla OPD applies this supervision uniformly across prompts, without checking whether the teacher is reliable for each prompt. Because reverse KL is mode-seeking, a confidently wrong teacher can induce a strong yet misleading update. Distributional proxies, such as entropy or teacher-student likelihood agreement, measure uncertainty or agreement but do not directly verify outcome correctness. We introduce Teacher-Gated On-Policy Distillation (TGOPD), built on the principle that teacher reliability should be verified at the prompt level before dense supervision is admitted. TGOPD estimates reliability from a small set of verifier-scored teacher probes and routes each prompt exclusively to dense OPD when the reliability check passes or to verifier-grounded GRPO otherwise. Across 4B and 35B students in mathematics, code, and instruction following, TGOPD outperforms Vanilla OPD in all six single-domain settings and achieves higher seven-benchmark averages at both scales under multi-domain training. By using otherwise-idle teacher capacity for reliability estimation, TGOPD also reduces teacher-side compute waste in asynchronous OPD, increasing teacher-node GPU utilization from 9.8% to 78.9% in the measured 4B single-domain run.

Date: August 28, 2026 Status: Public Technical Report

AllSpark

1 Introduction

On-policy distillation (OPD) is a compute-efficient approach to post-training language models [1, 5, 23]. Reinforcement learning with verifiable rewards (RLVR) assigns a single scalar reward to an entire trajectory. In contrast, OPD samples rollouts from the student and uses a stronger teacher to provide a reverse-KL learning signal at every token, transforming sparse outcome supervision into dense per-token guidance. This dense feedback can enable the student to reach teacher-level accuracy roughly an order of magnitude faster than RLVR [23].

Despite this training efficiency, asynchronous OPD leaves much of the teacher's compute idle. In a typical asynchronous deployment, the student generates rollouts on dedicated inference nodes, while a stronger, domain-specialized frozen teacher scores completed rollouts on a separate node. A scoring pass requires only a forward evaluation over tokens that have already been generated. It is therefore much cheaper than autoregressive decoding and cannot begin until a batch of student rollouts is ready, leaving the teacher's accelerators idle between scoring batches. Figure 1 quantifies this inefficiency in a 4B run: the teacher node averages 9.8% GPU utilization and remains below 5% utilization for 59% of the measured hour, while the rollout and training nodes remain busy. This observation motivates using the otherwise-idle teacher capacity to improve the training signal itself.

The idle capacity can be used to address a more fundamental weakness of Vanilla OPD: teacher supervision is admitted without a prompt-level reliability check. Reverse KL is mode-seeking and concentrates the student on the teacher's high-

Figure

Figure 1: Teacher-side GPU underutilization in asynchronous OPD. (a) Under Vanilla OPD, teacher-node utilization remains below 5% for 59% of the measured hour; TGOPD uses this otherwise-idle capacity for reliability probes. (b) Mean teacher-node utilization increases from 9.8% to 78.9%.

Figure

Figure

(c) OPD imitation-target quality

Figure 2: Teacher confidence does not consistently indicate prompt-level reliability. This diagnostic uses ten offline teacher responses for each of 2,400 prompts per domain; qT(10)q_T^{(10)} is their verifier pass rate and is distinct from the KT=3K_T = 3 online estimator used for training. (a,b) Teacher self-confidence under higher (qT(10)≥0.7)(q_T^{(10)} \geq 0.7) and lower (qT(10)<0.7)(q_T^{(10)} < 0.7) reliability. Confidence separates the groups at AUROC 0.51 on code and 0.73 on math. (c) In the low-reliability regime (qT(10)<0.5)(q_T^{(10)} < 0.5), the teacher's highest-confidence sampled response is incorrect 84% of the time on code and 61% on math.

probability behavior [5, 23]. This property makes OPD efficient when the teacher is reliable, but it can also amplify confident errors. Reliability varies by prompt: a globally informative teacher signal may not be locally exploitable [9], and a stronger teacher can induce negative transfer into a smaller student [10]. Domain routing alone does not resolve this issue because existing multi-teacher frameworks use the selected teacher's dense reward without verifying its reliability on the particular prompt [14].

Reliability-aware OPD has developed along two complementary directions. The first uses distributional evidence. EOPD introduces forward KL at high-entropy teacher tokens [6]. TrOPD defines token-level trust regions from teacher–student decoding agreement [24]. REOPOLD clips and samples token rewards using likelihood ratios and student entropy [7]. These signals capture uncertainty, compatibility, or optimization risk, but they do not directly test whether a teacher answer is correct. Outcome evidence has also been used to regulate more local decisions. RG-OPD retains trajectory-level distillation when verifier feedback agrees with the teacher–student likelihood gap [2]. RLSD uses environmental correctness to determine update direction while self-distillation modulates its magnitude [26]. At the token level, SPOT evaluates teacher-proposed branches through verifier-scored student continuations [16]. Together, these methods show how outcome feedback can control individual trajectories or token branches. TGOPD instead uses repeated teacher outcomes to make a prompt-level admission decision before dense supervision is applied.

Figure 2 motivates this prompt-level decision. For the diagnostic, we draw ten offline teacher responses per prompt and define qT(10)(x)q_T^{(10)}(x) as their verifier pass rate. The larger sample count gives a finer-grained analysis than the three fresh online probes used during training; both quantities measure the same verifier-defined teacher reliability. On code, self-confidence barely separates higher- and lower-reliability prompts (AUROC 0.51), compared with 0.73 on math. Within the low-reliability regime, the teacher's highest-confidence sampled response is still incorrect 84% of the time on code and 61% on math. Because reverse KL emphasizes high-probability teacher behavior, this is precisely the type of error that Vanilla OPD can propagate.

Teacher-Gated On-Policy Distillation (TGOPD) uses the teacher’s idle capacity to estimate prompt-level reliability before selecting a supervision signal. As shown in Figure 3, the teacher generates KTK_T probe rollouts for the same prompt; a verifier scores them; and their pass rate qT(x)=KT−1∑krkq_T(x) = K_T^{-1} \sum_k r_k provides the online reliability estimate. If qT(x)≥τq_T(x) \geq \tau, TGOPD uses dense OPD alone. Otherwise, it rejects the teacher signal and uses verifier-grounded GRPO alone, provided that the student rollout group contains reward variation. The two branches are routed rather than blended. Because the probes run primarily while the teacher would otherwise be idle, teacher-node GPU utilization rises from 9.8% to 78.9% and cluster utilization from 51.5% to 69.5%, with modest measured end-to-end overhead.

Across 4B and 35B students in mathematics, code, and instruction following, TGOPD outperforms Vanilla OPD in all six domain-scale settings. The largest gains occur on code, where confidence is least informative about teacher reliability. These results support the design choice: verify the teacher at the prompt level, retain its dense signal when the reliability check passes, and withdraw that signal when the check fails.

References (28)