TISD

On-Policy Self-Distillation with Trajectory Intervention

Learning from the path not taken


A teacher can recognize a promising next step without ever showing a student what follows from it. This is a subtle limitation of on-policy self-distillation: the teacher supplies feedback at every token, but that feedback is evaluated along the trajectory the student already chose.

TL;DR. Trajectory-Intervention Self-Distillation (TISD) uses teacher-student disagreement to collect a different continuation. The teacher selects one branch action, the student generates the suffix, and the teacher supervises the resulting trajectory. Across the reported experiments, this improves average performance over SDPO by 1.2 percentage points on coding and by 0.8 points on science under equal training steps (0.3 points under equal training time).

TISD preserves the student prefix, forces a teacher-preferred token at peak divergence, and distills the trajectory after the student regenerates its suffix.
Figure 1. TISD changes the trajectory on which teacher supervision is evaluated. The original prefix is retained; a teacher-selected action initiates a new student-generated suffix.

Dense feedback can still miss an entire branch


In on-policy self-distillation (OPSD), a student-derived teacher receives privileged context, such as a successful response or execution feedback. The student learns from the teacher's token-level predictions along its own sampled response.

Suppose the student chooses action A at a prefix, while the teacher prefers B. The distillation target can increase the student's preference for B at that prefix. Yet every later target in the collected response is still conditioned on the continuation after A. Learning what to do after B requires visiting that branch during collection.

This makes trajectory collection a separate design choice from the supervision objective. TISD asks whether teacher feedback can help determine which contexts the student visits within the same training iteration.

Disagreement suggests where to branch

We first examine where teacher-student disagreement concentrates. On failed LiveCodeBench v6 rollouts, the peak-disagreement token accounts for 9–20% of total response KL divergence across the Qwen3 scales studied (Figure 2). This gives us a focused intervention point, but concentration alone does not establish that changing this token will repair the response.

The controlled interventions in Figure 3 distinguish two effects. Directly replacing the peak token while preserving the suffix repairs only 0.0–1.7% of failures. For Qwen3-8B, forcing the teacher-preferred token and letting the student regenerate the suffix instead yields 9.9% continuation success, compared with 1.7% when the original token is retained and the suffix is also regenerated.

Mean per-token reverse KL in a 20-token window on either side of the peak-disagreement position for Qwen3 1.7B, 4B, and 8B.

(a) KL profile around peak disagreement.

Fraction of total response KL by token rank, showing that the highest-ranked token carries 9 to 20 percent across Qwen3 model scales.

(b) KL concentration by token rank.

Figure 2. Concentration of token-level SDPO loss on failed LiveCodeBench v6 rollouts. The peak token carries 9–20% of total response KL across model scales, while the rank-10 contribution is below 1%.
Execution success after intervention at peak disagreement for Qwen3 1.7B, 4B, and 8B, comparing teacher-token regeneration, own-token regeneration, and direct substitution.
Figure 3. Execution success on failed LiveCodeBench v6 rollouts. Both regeneration conditions resample the student suffix; substitution preserves the original suffix. The benefit of teacher-selected branching is strongest at 8B.

The continuation is central to the effect. At 8B, the matched regeneration control shows that the improvement exceeds what we obtain by simply sampling a new suffix. The teacher-selected action changes where the student continues. This effect is scale-dependent: teacher-token and own-token regeneration both achieve 1.5% at 1.7B, and differ only slightly at 4B (5.0% versus 4.4%).

Let the teacher choose a branch, then let the student continue


TISD performs a single branch-regenerate-distill operation for each failed rollout with the required privileged context. Successful rollouts and failures without that context retain their original trajectories.

Branch. Identify the position with the largest teacher-student divergence before the final token. Preserve the original student prefix and force the teacher's most likely token at that position.

Regenerate. Return generation to the student immediately after the intervention. The student samples the remaining suffix without access to the teacher's privileged context, exposing successor prefixes absent from the original rollout.

Distill. Apply teacher supervision to the full retained trajectory, including the original prefix, the intervened token, and the regenerated suffix. Reuse the privileged context associated with the original rollout, whether or not the regenerated response succeeds.

New contexts create new supervision opportunities

In the Qwen3-8B LiveCodeBench diagnostic, regenerated suffixes have 2.37 times the mean token reverse KL of their paired original suffixes. The intervention reaches contexts where the student and teacher are less aligned. This measures additional disagreement exposed by collection; the training experiments below test whether learning on these trajectories improves performance.

Does collecting a new path improve learning?


Coding with execution feedback

On LiveCodeBench v6, TISD achieves higher Avg@4 than SDPO across all three evaluated models. Averaged across models, TISD reaches 50.4% Avg@4 and 51.4% Pass@4, compared with 49.2% and 50.3% for SDPO. Each method is evaluated at its best Avg@4 checkpoint within 80 training updates.

MethodQwen3-8BQwen3-14BOlmo3-7B-InstructAverage
Base27.528.632.129.4
GRPO40.744.139.341.4
SDPO48.148.950.849.2
TRD39.348.138.041.8
TISD49.251.151.050.4

LiveCodeBench v6: best Avg@4 (%) within 80 training steps, with rich environment feedback (paper Table 1).

The average gain over SDPO is 1.2 percentage points. Its significance for the method is that an improvement remains possible even when the baseline already receives dense supervision and rich execution feedback: changing the collected continuation supplies a useful additional source of training contexts.

Science reasoning

On SciKnowEval L3, TISD uses successful sibling responses as privileged context without rich execution feedback. It achieves the highest average Avg@128 among the reported methods under both the 200-step and 10-hour budgets. Gains vary across disciplines: TISD improves biology and physics under both budgets, while SDPO remains stronger in materials science and in chemistry under the time-matched comparison.

Method200 steps10 hours
Base47.647.6
GRPO71.473.2
GRPO (on-policy)65.265.2
SDPO72.774.2
TISD73.574.5

SciKnowEval L3: average Avg@128 (%) across biology, chemistry, materials science, and physics using Qwen3-8B (paper Table 2).

The training budget changes the size of the gain. TISD improves over SDPO by 0.8 points at equal steps and 0.3 points at equal time. Since selecting a branch and regenerating a suffix require computation, the time-matched comparison is important when assessing the practical benefit.

Training efficiency

Additional Qwen3-8B experiments examine performance across training-data scales. TISD reaches the best baseline performance with 33% fewer updates on LCB-Large and 56% fewer updates on LCB-Small. These comparisons measure training updates rather than wall-clock time.

Avg@4 training curves for TISD, SDPO, GRPO, and TRD on LCB-Large and LCB-Small through 80 updates.
Qwen3-8B learning curves (paper Figure 6). LCB-Large combines LiveCodeBench v1–v6, while LCB-Small contains v6. These are separate experiments from the three-model comparison above.

What makes the intervention useful?


Both the position and the action matter. In the LCB-Small ablation, peak-divergence branching reaches 66.5 Avg@4, compared with 65.2 for a random position and 64.6 for the first student-teacher argmax disagreement. Retaining the student's original token at the peak and resampling its suffix reaches 64.8. Among these evaluated controls, TISD's combination of branch position and teacher-selected action performs best.

More regeneration is not automatically better. Under the same fixed-feedback, 80-update setup, two and three regeneration rounds reach 65.2 and 65.5 Avg@4, respectively, compared with 66.5 for one round. These results support the single-round design in the evaluated setting.

A broader role for the teacher

TISD gives the teacher a role in deciding where learning happens. A teacher-preferred action can expose useful student continuations even when changing that action alone rarely repairs the original response. This suggests evaluating interventions through both their immediate outcomes and the contexts they make available for subsequent supervision.

The benefit depends on the student's ability to continue from the selected action and on the quality of the privileged teacher targets. The scale-dependent diagnostic and the variation across science domains help define the current evidence. Reducing the additional cost of branch selection and regeneration remains an important direction for future work.

Publications


TISD: On-Policy Self-Distillation with Trajectory Intervention
Taeckyung Lee, Rinat Amankos, Jeonghye Kim, Hyungjun Yoon, Woogyeol Jin, Sung-Ju Lee
Preprint, September 2026.
PDF Code