面向同策略蒸馏的无偏Top-k估计 Unbiased Top-$k$ Estimation for On-Policy Distillation 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-09-28
⬇️ 5 次下载
👁️ 预览文献
💡 AI 中文简介
同策略蒸馏(OPD)通过学生模型自己生成的文本,让弱学生模仿强教师的推理能力,但计算梯度时面临两难:只用采样的一个词太便宜但信息少,用全部词表信息全但太贵。近期方法只取概率最高的前k个词(Top-k),既省算力又有较丰富的分布信息,但丢弃了其余词的概率质量,导致估计有偏差、精度下降。本文提出TT-OPD,在Top-k基础上额外利用学生采样出的那个词,把被丢弃的概率质量在期望上补回来,从而得到无偏梯度估计。实验表明TT-OPD显著优于其他同策略蒸馏变体。
领域自然语言处理 / 大语言模型训练与知识蒸馏
适合谁读需要一定专业背景(了解LLM训练、KL散度与策略梯度)
核心贡献1. 提出TT-OPD,首次在Top-k同策略蒸馏中实现反向KL散度梯度的无偏估计,同时保留Top-k的低计算成本与丰富分布监督优势。2. 核心思路是联合使用选中的Top-k词与学生采样词,在期望上恢复被丢弃的概率质量,从而消除偏差。
关键数据实验表明TT-OPD显著优于其他测试的OPD变体;具体性能指标原文未给出数值。
推荐理由如果你在做大模型蒸馏,又嫌全词表太贵、Top-k有偏,这篇用采样词补概率质量的无偏方案值得一读。
关键词["同策略蒸馏", "大语言模型后训练", "Top-k估计", "无偏梯度估计", "反向KL散度", "知识蒸馏"]

原文摘要

查看英文原文摘要

On-policy distillation (OPD) is becoming an important component of large language model (LLM) post-training for transferring the reasoning capability of a strong teacher LLM to a weaker student LLM. OPD trains the student by minimizing the reverse KL divergence between the teacher and the student via rollouts generated by the student's policy. However, estimating the gradient of the reverse KL divergence in OPD remains a challenge. Using only the sampled token from the student-generated rollout is computationally cheap but provides limited distributional supervision, which will degrade accuracy. In addition, using the full vocabulary provides complete distributional supervision but is computationally expensive. Therefore, recent works propose Top-$k$ OPD (TK-OPD) that use selected top-$k$ tokens, which provides richer distributional supervision than sampled-token estimation at substantially lower computational cost than full-vocabulary estimation. Unfortunately, using only the selected top-$k$ tokens induces bias, leading to accuracy degradation, as the probability mass outside the selected top-$k$ tokens is discarded. To address the bias of TK-OPD, we propose Tail-Corrected Top-$k$ On-Policy Distillation (TT-OPD). It preserves the advantages of TK-OPD, including rich distributional supervision and low computational cost, while providing an unbiased estimator of the gradient of the reverse KL divergence. The key insight of TT-OPD is to use not only the selected top-$k$ tokens, but also the sampled token from the student-generated rollout, thereby recovering the discarded probability mass in expectation, avoiding the bias. Experimental results demonstrate that TT-OPD significantly outperforms other tested OPD variants.