arXiv:2606.08432 · 中英对照阅读
轨迹精炼蒸馏
Trajectory-Refined Distillation
中文速览
当学生模型沿着错误的推理前缀继续生成时,逐词蒸馏可能把“沿错路接着写”和“回头纠正”两种信号混在一起,导致训练难以真正学会纠错。作者提出轨迹精炼蒸馏(TRD):先让学生生成答案,再由教师引导修正整段答案,并用修正后的轨迹训练学生,而不是只调整单个词的损失。实验显示,TRD在多项数学任务上整体表现更好,在代码任务上也有竞争力;自蒸馏设置下,它还解出了基础模型反复尝试仍未解决的23道题中的9道。这个方法把纠错放在整条推理路径上处理,有望让蒸馏信号更连贯,也让模型在没有额外教师模型时获得更有效的提升。
摘要
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 this link.
术语表
- On-policy Distillation (OPD)
- 在策略蒸馏
- On-policy Self-Distillation (OPSD)
- 在策略自蒸馏
- Large Language Model (LLM)
- 大语言模型
- Trajectory-Refined Distillation (TRD)
- 轨迹精炼蒸馏
- prefix failure
- 前缀失效
- trajectory-level correction
- 轨迹级校正
- on-policy support
- 在策略支持
- teacher supervision
- 教师监督
- per-token supervision
- 逐 token 监督
- bimodal teacher mixture
- 双峰教师混合分布
- fragmented gradients
- 碎片化梯度
- token-level loss truncation
- token 级损失截断
- reweighting
- 重加权
- privileged information
- 特权信息
- Supervised Fine-Tuning (SFT)
- 监督微调
- Reinforcement Learning with Verifiable Rewards (RLVR)
- 可验证奖励强化学习
- dense-KL baseline
- 稠密 KL 基线
- knowledge distillation
- 知识蒸馏
- Kullback–Leibler (KL) loss
- Kullback–Leibler 散度损失
- mode collapse
- 模式坍塌
- trajectory inflation
- 轨迹膨胀
- top-K truncation
- top-K 截断
- student entropy
- 学生熵
- teacher–student divergence
- 教师与学生的分布差异
- AMOBench
- AMOBench 数学基准
- Pass@16
- Pass@16 通过率
- Qwen3
- Qwen3
- DeepSeek-v4
- DeepSeek-v4
- MiMo-v2
- MiMo-v2
- GLM-5
- GLM-5