# Trajectory-Refined Distillation

- **ID:** 1121
- **Kind:** paper
- **URL:** https://arxiv.org/abs/2606.08432
- **Authors:** Li Jiang, Haoran Xu, Yichuan Ding, Amy Zhang
- **Venue:** arXiv / McGill University; Mila; UT Austin
- **Publisher:** arXiv / McGill University; Mila; UT Austin
- **Published:** 2026
- **Source:** arxiv
- **Language:** en
- **Access:** free (arXiv; GitHub louieworth/trd; Hugging Face papers/2606.08432)
- **Tags:** trd, on-policy-distillation, opsd, prefix-failure, qwen3, distillation, arxiv-2606.08432
- **Topics:** on-policy distillation; LLM post-training; reasoning; trajectory refinement
- **Added:** 2026-09-02
- **Verified:** 2026-09-02
- **Research status:** done
- **Needs deep evaluation:** no
- **Page:** https://papers.projxon.ai/entries/1121

## Summary

arXiv 2606.08432. Identifies prefix failure in on-policy (self-)distillation: wrong student prefixes make per-token teacher KL bimodal/fragmented. Proposes TRD: sample on-policy y_o, then teacher-refine to y_r (OPSD conditions on reference), distill forward KL on y_r. Gains on AIME/AMOBench/code vs Forward/Reverse KL ± clip/top-K with Qwen3-1.7B/4B/8B; code https://github.com/louieworth/trd.

## Attributes

- **Purpose:** Fix prefix failure in OPD/OPSD by refining student rollouts under teacher guidance before distillation, instead of token-level loss hacks alone.
- **Scale:** Math train DeepScaleR ~40k; code TACO ~25k; eval Avg@16/Pass@16 on AIME24/25, HMMT25, BeyondAIME, AMOBench (+ HumanEval+/MBPP+/LiveCodeBench for OPD); students Qwen3-1.7B/4B-Instruct-2507/8B.
- **Domain:** on-policy distillation; LLM post-training; reasoning; trajectory refinement
- **Used for:** OPD/OPSD post-training; competition math/code reasoning distillation
- **Time period:** 2026-06 (arXiv 2606.08432); Discord mid 2026-06-13 (ChapterPal link → abs)
- **Author type:** academia (McGill/Mila; UT Austin)

## From the source (fetched 2026-10-03)

- **Published:** Jun 7, 2026 (arXiv)
- **arXiv categories:** cs.AI (arXiv)
- **Author comment:** under review (arXiv)
- **Citations:** 10 (4 influential) (Semantic Scholar)
- **References:** 34 (Semantic Scholar)

## 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. 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

## Research notes

- Discord linked ChapterPal; primary resolved to arXiv abs/HTML 2606.08432 + GitHub louieworth/trd. Authors Li Jiang, Haoran Xu (equal), Yichuan Ding, Amy Zhang. License blank on abs.

## Cites, within this collection

- [GLM-5: from Vibe Coding to Agentic Engineering](https://papers.projxon.ai/entries/532) (paper 2026, #532)
- [Large Language Monkeys: Scaling Inference Compute with Repeated Sampling](https://papers.projxon.ai/entries/951) (paper 2024, #951)

## Similar entries

- [DAPD: Dual-Anchored Policy Distillation](https://papers.projxon.ai/entries/451) (paper, #451)
- [SFT, RL, and On-Policy Distillation Through a Distributional Lens](https://papers.projxon.ai/entries/1095) (post, #1095)
- [Multi-Turn On-Policy Distillation with Prefix Replay](https://papers.projxon.ai/entries/472) (paper, #472)
- [Beyond Teacher Assignment: Domain-Normalized Multi-Teacher On-Policy Distillation](https://papers.projxon.ai/entries/798) (paper, #798)
- [Fine Until Fine-Tuned: Repeated Solutions Make Reasoning Fragile](https://papers.projxon.ai/entries/788) (paper, #788)
- [Recursive Self-Improvement via On-Policy Distillation for Reasoning](https://papers.projxon.ai/entries/1083) (paper, #1083)
