Introduction
We study multi-teacher on-policy distillation: a student generates its own completions, while three domain-expert teachers and their shared pre-RL reference score the same token sequence. The student must absorb all three specialties from its own prefixes. At every token, the teachers can disagree, a prompt can provide only a noisy domain hint, and a teacher can prefer a continuation that the student should have ended. The design therefore has to answer three linked questions: which prompts form a step, whether any teacher participates while the answer is written, and how the per-token teacher signals become the student's update.
The field already contains several answers to parts of this problem. Standard MOPD provides a multi-teacher on-policy distillation setup [1]; here we route a prompt to its domain teacher. Other work studies learned token routing [2], domain-normalised advantages [3], reliability-aware distillation [4], dynamic domain scheduling [5], interleaved sampling [6], and a continuum between off-policy and on-policy distillation [7]. We keep the simple domain assignment and student-only rollouts, then change the signal itself: centre the sampled log-ratio exactly and treat termination as a separate decision.
Method
Fixed prompts and domain routing
We leave the optional prompt-selection and guided-sampling hooks unspecified. The fixed pipeline therefore supplies its own prompt stream for each optimizer step, and the student writes each completion from start to finish. The teachers and the shared reference score those completions after generation; no teacher replaces a drafted token or steers the student mid-answer. For each prompt, batch.domain_teacher selects the matching domain teacher, which is the standard MOPD assignment. The reference is retained in the feature computation, but the current route uses the selected teacher's feature.
Exact reverse-KL centering
Let be the sampled token at prefix , let be the student distribution, and let be the selected domain teacher. The usual sampled signal is
Because is sampled from the student,
We add that exact state-dependent quantity back to every sampled token:
Thus . The added term does not depend on which token was sampled, so it removes the negative offset while preserving the expected policy-gradient direction. token_features computes from full-vocabulary log-probabilities for every teacher and also computes the corresponding reference feature; route gathers the column indexed by the prompt's domain teacher.
# The rule:
# 1. routing the prompt's domain teacher supervises its rollout (batch.domain_teacher);
# 2. centring every advantage is centred by its exact expectation under the student at that state,
# A_t = log p_d(y_t | h_t) - log pi(y_t | h_t) + KL(pi(. | h_t) || p_d(. | h_t)),
# with the full-vocabulary KL computed in token_features. E_pi[A_t | h_t] = 0, so the expected
# policy gradient is unchanged (the KL term does not depend on the sampled token) while the
# mean-negative offset is removed (standard deviation of A down 1.4-2.2x on our measurements);
# 3. stopping the student's own stop token is never pushed down (one-sided correction of the myopic bias); the
# teacher can still make the student stop earlier, through the negative advantage it gives to a
# continuation token where it would itself have stopped.def token_features(lp):
"""Exact full-vocabulary reverse KL(pi || p_m) at every position: one value per teacher, then the same quantity
for the teachers' shared base (last column; route() reads the teacher columns)."""
s = lp["student"]
ps = s.exp()
out = []
m = 0
while f"teacher_{m}" in lp:
out.append((ps * (s - lp[f"teacher_{m}"])).sum(-1))
m += 1
out.append((ps * (s - lp["reference"])).sum(-1))
return {"kl": torch.stack(out, -1)}Termination correction and optimization
A teacher that prefers a longer answer can assign a very negative value to the student's end token. We do not let that single decision punish stopping: at EOS or PAD positions, we replace by . Non-stop positions keep their centred signal, and the final multiplication by the rollout mask removes padding. A continuation token can still receive a negative advantage, so the teacher can still favour an earlier stop through the surrounding sequence.
The second stage is unchanged: token_loss passes the routed advantage to the fixed PPO clipped surrogate. We set the recipe learning rate to and keep the other interface options at their starter defaults. The implementation has no learned router, prompt scheduler, or generation-time teacher hook, and it keeps all state in the tensors passed to the two functions.
def _stop_mask(batch):
tok = batch.tokenizer
stop = torch.zeros_like(batch.mask)
for e in {tok.eos_token_id, tok.pad_token_id}:
if e is not None:
stop |= batch.token_ids == int(e)
return stop
def route(batch, state):
B, T = batch.student_lp.shape
d = batch.domain_teacher
kl = batch.features["kl"].float()
kl_t = kl[..., :-1].gather(-1, d.view(-1, 1, 1).expand(-1, T, 1)).squeeze(-1)
t_lp = batch.teacher_lp.gather(0, d.view(1, -1, 1).expand(1, -1, T)).squeeze(0)
adv = t_lp - batch.student_lp + kl_t
adv = torch.where(_stop_mask(batch), adv.clamp(min=0.0), adv)
return adv * batch.mask
def token_loss(ctx):
"""The PPO clipped surrogate of the stage-1 advantage."""
return ctx.pg_loss(ctx.advantage)Results
| Method | ① | ② | ③ | ④ | ⑤ | ⑥ | ⑦ |
|---|---|---|---|---|---|---|---|
| Accuracy ↑ | Accuracy ↑ | Accuracy ↑ | Accuracy ↑ | Accuracy ↑ | Accuracy ↑ | Accuracy ↑ | |
| Claude Opus 5.5 | 0.245 | 0.237 | 0.689 | 0.643 | 0.313 | 0.448 | 0.436 |
| Standard MOPD | 0.249 | 0.242 | 0.675 | 0.626 | 0.305 | 0.446 | 0.429 |
| Mean aggregation | 0.204 | 0.201 | 0.630 | 0.617 | 0.246 | 0.426 | 0.408 |
| ExpertAlign | 0.219 | 0.201 | 0.662 | 0.614 | 0.258 | 0.435 | 0.406 |
| Entropy router | 0.215 | 0.205 | 0.635 | 0.604 | 0.232 | 0.430 | 0.399 |
| Novelty router | 0.225 | 0.208 | 0.642 | 0.623 | 0.263 | 0.432 | 0.407 |
| DN-MOPD | 0.259 | 0.250 | 0.688 | 0.639 | 0.307 | 0.441 | 0.425 |
| No teacher signal | 0.092 | 0.092 | 0.448 | 0.578 | 0.146 | 0.431 | 0.405 |
| TrustMOPD | 0.269 | 0.236 | 0.686 | 0.644 | 0.328 | 0.447 | 0.433 |
| Single-teacher OPD, IF teacher | 0.200 | 0.189 | 0.616 | 0.613 | 0.278 | 0.436 | 0.422 |
| D³-MOPD | 0.254 | 0.228 | 0.673 | 0.635 | 0.346 | 0.433 | 0.421 |
| Speculative KD | 0.249 | 0.239 | 0.665 | 0.628 | 0.305 | 0.441 | 0.423 |
| Interpolated policy distillation | 0.240 | 0.241 | 0.675 | 0.644 | 0.318 | 0.446 | 0.424 |
| SEC | 0.226 | 0.229 | 0.662 | 0.620 | 0.318 | 0.448 | 0.435 |
- ① Qwen3-1.7B student / math, code and instruction-following RL teachers / Qwen3-4B reference, no thinking mode, one run · AIME 2024, AIME 2025, HMMT February 2025, HMMT November 2025
- ② Same checkpoint · AIME 2026, HMMT February 2026, BRUMO 2025, CMIMC 2025, BeyondAIME
- ③ Same checkpoint · AMC 2023, OlympiadBench, MATH-500 level 5
- ④ Same checkpoint · HumanEval+, MBPP+
- ⑤ Same checkpoint · LiveCodeBench v4, v5 and v6 problems
- ⑥ Same checkpoint · IFEval, IFBench
- ⑦ Same checkpoint · Multi-IF (English), IFBench multi-turn
Our accuracy on AIME-HMMT25 is 0.245, versus 0.281 for TrustMOPD 1e-5 const. On Comp-2026 it is 0.237, versus 0.253 for TrustMOPD 1e-5 const. On Math-std we reach 0.689, compared with 0.719 for TrustMOPD 1e-5 const, the strongest published baseline there.
On HEval+/MBPP+ our accuracy is 0.643, against 0.645 for TrustMOPD 1e-5 const. On LiveCodeBench it is 0.313, against 0.346 for D3-MOPD [5]. On IFEval it is 0.448, against 0.448 for SEC [8]. On Multi-IF we reach 0.436, below 0.468 for TrustMOPD 1e-5 const. The strongest baseline therefore leads on every setting, and the method is second on Math-std and Multi-IF.
How we got here
We started from the starter's domain-label signal and kept its routing and PPO loss. The trace records a series of focused probes around two failure modes: the sampled signal's offset and the stop decision. A stop-token clamp was tested to prevent a teacher's preference for continued checking from turning into an ever-longer student; the final code retains the one-sided correction. We also considered estimating the centering term rather than computing it from the full vocabulary, but the submitted method uses the exact reverse KL so that the zero-mean identity is explicit.
We considered routing unusually long rollouts to the shared pre-RL reference. The submitted comments reject that route because a length-dependent failure signal can pull the student away from reasoning that is otherwise valid. We also varied the learning rate while watching drift: the tested larger value moved the student faster, so the final recipe uses . Finally, we left prompt scheduling and guided generation out of the editable surface. The final module therefore replaces the raw domain-teacher log-ratio with an exactly centred, termination-corrected advantage while leaving those hooks unspecified.
Limitations
The prompt's domain label is the only routing signal. A mixed-domain or mislabeled prompt still receives one teacher, because there is no learned token router, reliability gate, or prompt scheduler. Likewise, teachers never participate during generation, so the method gives up the potential benefits of interleaved sampling [6].
Exact centering requires full-vocabulary log-probabilities for the student and every teacher at every position. That computation can be expensive as the vocabulary or teacher count grows. The shared reference's KL is computed as the last feature column but is not used by route, so the current method cannot use the reference to gate or repair an unreliable domain teacher.
The stop correction is a heuristic intervention on termination. It changes a centred signal only when the sampled position is EOS or PAD, and it can encourage continuation when the student stops too readily; it does not solve length control in general. The fixed learning rate and the absence of prompt or sampling adaptation may also transfer poorly beyond this run.
References
- Wenhan Ma, Jianyu Wei, Liang Zhao et al. (2026). MOPD: Multi-Teacher On-Policy Distillation for Capability Integration in LLM Post-Training.
- Tianze Xu, Yanzhao Zheng, Zhentao Zhang et al. (2026). MOPD-Router: Rethinking Teacher Routing in Multi-Teacher On-Policy Distillation.
- Xin Li, Hao Jiang, Xin Gao et al. (2026). Beyond Teacher Assignment: Domain-Normalized Multi-Teacher On-Policy Distillation.
- Jie Sun, Mao Zheng, Mingyang Song et al. (2026). Distill What You Trust: Reliability-Aware Multi-Teacher On-Policy Distillation.
- Zechen Sun, Zhiwei Zhang, Fei Zhao et al. (2026). D³-MOPD: Dynamic Domain ScheDuling for Efficient Multi-Teacher Distillation.
- Wenda Xu, Rujun Han, Zifeng Wang et al. (2025). Speculative Knowledge Distillation: Bridging the Teacher-Student Gap Through Interleaved Sampling. ICLR.
- Youxu Shi, Yifan Sun, Dacheng Yin et al. (2026). Interpolated Policy Distillation: A Controllable Continuum Between Off-Policy and On-Policy Distillation.
- Xiaoyin Chen, Jiarui Lu, Minsu Kim et al. (2026). Self-Evolving Curriculum for LLM Reasoning. COLM.