arXiv:2606.08432cs.AI2026-06被引 3

解决大模型训练中因教师指导碎片化导致的推理失败问题

Trajectory-Refined Distillation

论文配图:Trajectory-Refined Distillation
图 1 · 摘自论文原文
  • 通过轨迹级修正替代逐词损失调整,从源头缓解前缀失效问题
  • 在多个基准上提升单次尝试准确率,扩展推理覆盖范围
  • 适用于大模型自蒸馏等场景,尤其适合需要稳定推理的系统

在线策略蒸馏(OPD)已成为大语言模型后训练的核心工具,能为学生模型在自身生成路径上提供密集的逐令牌教师监督。本文发现一种普遍存在的结构缺陷——前缀失效:密集的逐令牌监督会导致教师输出呈现双峰混合,引发梯度碎片化,而现有逐令牌损失截断或重加权方法无法解决该问题。为此,我们提出轨迹精炼蒸馏(TRD),一种在在线策略支持范围内对生成轨迹进行修正的方法,通过在蒸馏前修正有问题的前缀,从根本上缓解前缀失效。此外,TRD在教师引导下使学生暴露于其他有效推导路径,即使原路径已正确,也能增强探索能力。TRD还可用于在线策略自蒸馏(OPSD),即使用包含额外信息的学生模型作为教师。在多种规模的基模型和广泛基准上,TRD持续优于已有基线,显著提升单次尝试准确率并扩大推理覆盖范围。代码已开源。

原文摘要 · Abstract (English)

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

大模型训练蒸馏方法推理优化

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。