Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Trajectory-Refined Distillation

About

On-policy distillation (OPD) has become a central post-training tool for large language models (LLMs), providing dense per-token teacher supervision along the student's own rollouts. In this work, we identify a common structural cause underlying OPD, which we call prefix failure. Under prefix failure, dense per-token supervision induces a bimodal teacher mixture and fragmented gradients that token-level loss truncation or reweighting fail to address. This observation motivates us to move beyond token-level loss interventions toward trajectory-level output corrections. We thus propose Trajectory-Refined Distillation (TRD), a trajectory-level correction method that revises the student's rollout under the teacher guidance while within on-policy support. By correcting problematic prefixes before distillation, TRD mitigates prefix failure at its source. Moreover, TRD improves the exploration by exposing the student to alternative valid derivations under teacher guidance, even when the original rolls are already correct. TRD can also be applied to on-policy self-distillation (OPSD), a parameter-sharing variant that uses the student model conditioned on privileged informations as the teacher. Across a wide range of benchmarks and base models at multiple scales, TRD consistently outperforms prior baselines, improving single-attempt accuracy and broadening reasoning coverage. Code is available at https://github.com/louieworth/trd

Li Jiang, Haoran Xu, Yichuan Ding, Amy Zhang• 2026

Related benchmarks

TaskDatasetResultRank
Mathematical ReasoningBeyondAIME
Pass@1668
39
Mathematical ReasoningHMMT25
Avg@16 Accuracy33.2
36
Mathematical ReasoningAIME25
Pass@1686.7
36
Code GenerationMBPP+
Avg@16 Accuracy73.8
33
Mathematical ReasoningAMOBench
Pass@1661.5
24
Code GenerationHumanEval+
Avg@16 Score88.4
24
Mathematical ReasoningAMO-Bench
Average@1610.3
24
MathAIME25
Avg@1669.2
16
MathAIME24
Avg@1676.5
16
Code GenerationLiveCodeBench
Avg@1632.9
12
Showing 10 of 15 rows

Other info

GitHub

Follow for update