Trajectory-Refined Distillation
cs.AI
Submitted: 2026-06-07
Updated: 2026-10-12
Comments: under review
Code: https://github.com/louieworth/trd
License: http://creativecommons.org/licenses/by/4.0/
The gist: 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.
Terminology
Abstract
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. 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 exploration by exposing the student to alternative valid derivations under teacher guidance, even when the original rollouts 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 information as the teacher. TRD improves average math accuracy while remaining competitive on code. Under OPSD, it solves 9/23 AMOBench questions left unsolved by the Qwen3-8B base model, nearly doubling the strongest dense-KL baseline. Code is available at https://github.com/louieworth/trd.
Sources
- AMO-Bench: Large Language Models Still Struggle in High School Math Competitions
- Large Language Monkeys: Scaling Inference Compute with Repeated Sampling
- Revisiting On-Policy Distillation: Empirical Failure Modes and Simple Fixes
- Distilling the Knowledge in a Neural Network
- Reinforcement Learning via Self-Distillation
- LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code
- Stable On-Policy Distillation through Adaptive Target Reformulation
- Entropy-Aware On-Policy Distillation of Language Models
- Why Does Self-Distillation (Sometimes) Degrade the Reasoning Capability of LLMs?
- Unifying Group-Relative and Self-Distillation Policy Optimization via Sample Routing
- TACO: Topics in Algorithmic COde generation dataset
- Rethinking On-Policy Distillation of Large Language Models: Phenomenology, Mechanism, and Recipe
- Prefix Teach, Suffix Fade: Local Teachability Collapse in Strong-to-Weak On-Policy Distillation
- Demystifying OPD: Length Inflation and Stabilization Strategies for Large Language Models
- Privileged Information Distillation for Language Models
- Self-Distillation Enables Continual Learning
- HybridFlow: A Flexible and Efficient RLHF Framework
- Experiential Reinforcement Learning
- A Survey of On-Policy Distillation for Large Language Models
- GATES: Self-Distillation under Privileged Context with Consensus Gating
Related papers
- MAVEN-T: Reinforced Heterogeneous Distillation for Real-Time Multi-Agent Trajectory Prediction
- Model Discovery Agent: LLM-assisted Bayesian experiment design for data-efficient discovery of mechanistic world models
- Agents' Last Exam
- The Clinician's Veto: Navigating Trust, Liability, and Uncertainty in Autonomous AI Prescribing
- MindHelper: Closed-Loop Embodied Mental-State Reasoning for Precision Intervention
- Incumbent Advantage: Brand Bias and Cognitive Manipulation Dynamics in LLM Recommendation Systems