Pass the Baton:  Trajectory-Relayed On-Policy Distillation

1Zhejiang University    2Yuvion Team, Alibaba Group
*Equal contribution    Project leader    Corresponding author

Preprint


Relay-OPD teaser: a relay case, the difference between OPD and Relay-OPD, and overall performance
(a) A Relay-OPD case: at the detected handoff trigger, the teacher prefers the reflection token (But, 74.4%) while the student would continue along the current direction (So, 50.6%); a brief teacher leg corrects the reasoning and the student resumes to the correct answer. (b) Difference between OPD and Relay-OPD. (c) Overall performance.

Motivation

On-policy distillation (OPD) grounds token-level supervision in the student's own trajectory, but it suffers from prefix failure: once the student commits to a wrong reasoning direction early on, all subsequent generation builds on this deviation, producing long misdirected continuations that elicit unreliable supervision and waste training compute. We identify a teacher–student continuation asymmetry on failed prefixes: the teacher tends to re-examine existing reasoning and redirect, while the student keeps pushing along the original direction. This asymmetric behavior is a natural, label-free online signal for locating potential prefix failure — we call the corresponding position the handoff trigger.

Trajectory intervention experiments built on this signal yield two observations. [1] Local correction suffices: even when the teacher only replaces the reflection token at trigger positions (L = 0), teacher tokens amounting to merely 0.35% of all generated tokens raise accuracy from 27.73 to 34.96 (+7.23%). [2] Valuable supervision is front-loaded: skipping early triggers degrades accuracy sharply (41.99 → 33.98 / 29.49 with periodic delays r = 1 / 3 at L = 3), and the teacher–student gap shrinks monotonically as generation position advances. Prefix failure should therefore be addressed by early, local teacher intervention at detected failure points, before the wrong direction becomes entrenched.

Degree and timing of teacher intervention
Degree and timing of teacher intervention. Accuracy and teacher token ratio as the number of teacher-generated paragraphs L varies; delaying valid triggers sharply hurts accuracy.
Teacher-student gap by response position
Teacher–student gap by response position. The gap shrinks monotonically with position: later intervention is progressively less recoverable.

Abstract

On-policy distillation (OPD) grounds token-level supervision in the student's own trajectory, yet suffers from prefix failure: once the student commits to a wrong reasoning direction, all subsequent generation builds on this deviation, producing misdirected continuations that elicit unreliable supervision and waste compute. We identify a teacher–student continuation asymmetry on failed prefixes, where the teacher tends to redirect while the student continues along the original direction, and convert it into a label-free handoff trigger in Relay On-Policy Distillation (Relay-OPD). During training, Relay-OPD constructs relay trajectories by letting the teacher briefly take over at detected trigger points to produce a teacher leg, after which the student resumes and is optimized on the resulting trajectory. A limited relay budget concentrates intervention on critical early positions while limiting departure from the student policy. With a Qwen3-4B teacher and Qwen3-0.6B/1.7B-Non-Thinking students on eight mathematical reasoning benchmarks, Relay-OPD achieves the best or second-best results on every benchmark, outperforming standard OPD by +5.73% and the strongest baseline FastOPD by +1.49% on average for 1.7B, with consistent gains at 0.6B. Training trajectory length is reduced by over 50%.


Methodology


Relay-OPD runs like a relay race. The student generates on-policy as usual; at every position, a handoff criterion checks whether the teacher's top-1 token is a reflection token while no reflection token appears in the student's top-K — the signature of a failed prefix the student would not fix on its own. When the trigger fires, the baton passes to the teacher: a short teacher leg of L paragraphs redirects the reasoning, after which the baton returns to the student. A relay budget of M teacher legs concentrates intervention on critical early positions, and the rollout terminates when the M-th teacher leg ends, keeping relay trajectories short. The student is then optimized on the relayed trajectory with token-level advantages, including on the relay tokens themselves, so it internalizes when and how to reflect.

Overview of Relay-OPD
Overview of Relay-OPD. Unlike standard OPD (top), which trains on student-only trajectories that continue misdirected after prefix failure, Relay-OPD constructs relay trajectories (middle): when the handoff trigger (bottom) detects that the teacher would redirect the reasoning while the student would not, the teacher briefly takes over before the student resumes. The entire rollout runs in a single speculative decoding engine (right).

Key Components

  • Label-free handoff trigger: the teacher–student continuation asymmetry (reflection token in teacher top-1, no reflection token in student top-K) locates prefix failure online, during generation — no verifier or ground-truth label needed.
  • Unified speculative decoding engine: the whole relay runs in one speculative decoding pipeline with the student as draft model and the teacher as target model; rejection sampling makes teacher-leg tokens follow the teacher distribution exactly, and batch verification of student drafts reduces serial teacher decoding steps.
  • Relay budget (M, L): at most M teacher legs of L paragraphs each; the rollout ends when the M-th leg ends, front-loading supervision and cutting trajectory length.
  • Relay-token objective: training on the executed relay tokens (rather than student drafts or teacher FKL) transfers the teacher's reflective behavior into the student policy.

Experimental Results


Main Results

Mean accuracy on eight mathematical reasoning benchmarks with a Qwen3-4B-Instruct-2507 teacher. Bold and underline denote the best and second-best results for each student. Subscripts in the Avg column give the training step of the best checkpoint; Train Len is the average rollout response length up to the best checkpoint.

Method AIME24 AIME25 AIME26 MATH AMC23 Olymp. HMMT Feb26 HMMT Nov25 Avg Train Len
Teacher 60.4246.0452.1994.2093.8370.6231.2541.8861.30
Student: Qwen3-0.6B-Non-Thinking
Student 1.772.400.7344.1024.4516.360.763.8511.80
SFT 4.907.604.0659.4534.9226.741.893.0217.82@1104262
KD 4.177.194.7957.7535.2327.152.942.7117.74@1104262
GRPO 8.2315.2110.0068.6046.5635.427.866.0424.74@1103379
OPD 13.4417.9211.9875.3051.2541.327.395.6228.03@1106900
TRD 4.588.543.9657.6036.3326.933.792.8118.07@203275
FastOPD 15.8320.1013.5475.3053.6744.8111.558.5430.42@1003302
SKD 8.4416.989.7966.6543.6735.768.145.6224.38@205800
Relay-OPD (Ours) 15.9420.9414.0676.8055.5545.0311.178.8531.04@752490
Δ vs OPD +2.50+3.02+2.08+1.50+4.30+3.71+3.78+3.23+3.01−63.9%
Student: Qwen3-1.7B-Non-Thinking
Student 12.609.587.4071.9547.8938.546.344.3824.84
SFT 23.3319.4816.1581.4059.4546.6212.596.5633.20@1104262
KD 23.5421.1515.3181.4560.2348.0712.787.5033.75@1104262
GRPO 24.5822.0815.6280.3560.1648.7414.499.3834.42@1052558
OPD 35.8325.5223.3385.7070.0855.2720.0814.0641.23@554658
TRD 19.2719.6912.7177.7055.4744.1811.934.5830.69@402785
FastOPD 42.2930.4226.3587.9574.3058.1623.5820.7345.47@452709
SKD 33.1230.7328.8587.3572.4254.4120.0811.8842.35@354753
Relay-OPD (Ours) 42.7132.8130.5289.5076.8858.7924.7219.7946.96@352296
Δ vs OPD +6.88+7.29+7.19+3.80+6.80+3.52+4.64+5.73+5.73−50.7%

Analysis

Training dynamics of Relay-OPD
Training dynamics. As training proceeds, fewer rollouts exhaust the relay budget and the teacher token ratio decays to a few percent — the student internalizes the teacher's reflective behavior — while Relay-OPD sustains higher policy entropy than OPD and FastOPD.
Hyperparameter sensitivity of Relay-OPD
Hyperparameter sensitivity. Relay-OPD is robust across relay budgets (M, L) and handoff top-K choices.
Pass@k on HMMT
Pass@k. Gains persist at large k: Relay-OPD expands real capability rather than sharpening a narrow mode.
Inference response length across benchmarks
Inference length. The distilled student also answers with shorter responses at inference time — 14–28% shorter than even FastOPD.

Key Insights


A Label-Free Online Failure Signal

The teacher–student continuation asymmetry on failed prefixes — teacher redirects, student pushes on — is converted into a handoff trigger that locates prefix failure during generation, with no verifier or label.

Early, Local Correction Wins

Replacing as little as 0.35% of tokens at trigger points yields +7.23% accuracy; delaying triggers sharply hurts. Supervision value is front-loaded, so Relay-OPD intervenes early and briefly instead of truncating or rewriting after the fact.

Exact Teacher Legs in One Engine

The whole relay runs in a single speculative decoding pipeline: the student drafts, the teacher batch-verifies, and rejection sampling guarantees teacher-leg tokens follow the teacher distribution exactly.

Better and Cheaper

Best or second-best on all eight benchmarks for both students (+5.73% over OPD, +1.49% over FastOPD at 1.7B), while cutting average training trajectory length by 50.7% (1.7B) and 63.9% (0.6B).


Citation

@misc{xu2026passbatontrajectoryrelayedonpolicy,
  title={Pass the Baton: Trajectory-Relayed On-Policy Distillation},
  author={Haolei Xu and Xiaowen Xu and Haiwen Hong and Zixuan Ni and Hongxing Li and Yiwen Qiu and Weiming Lu and Yongliang Shen},
  year={2026},
  eprint={2607.26057},
  archivePrefix={arXiv},
  primaryClass={cs.CL},
  url={https://arxiv.org/abs/2607.26057},
}


Acknowledgements

We acknowledge the webpage template from Ximing Xing.