论文

Distillation with Errors(DWE):稀疏无偏反向传播加速知识蒸馏

Distillation with Errors: Sparse Unbiased Backpropagation for Knowledge Distillation

精选理由

做模型蒸馏的人值得看看这篇。全词表 KD 的输出头反向传播一直是成本大头,DWE 用稀疏配对梯度把这块加速到 2.2 倍,训练时间砍掉 10-15%,代码开源了,可以直接上手对比。

论文提出 Distillation with Errors(DWE),一种针对知识蒸馏(KD)的稀疏梯度估计方法,解决全词表 KD 需要对输出头做完整反向传播带来的高额计算成本。其核心洞察是 minibatch 训练本身已近似训练梯度,因此每个位置的梯度不必精确计算。DWE 利用 logit 梯度的零和结构构造稀疏配对梯度估计,使估计的期望等于全词表梯度,并通过几何感知配对与分层采样进一步降低估计方差,同时证明了该估计器的无偏性。

正文

在相同采样预算下,与重要性采样相比,DWE 将隐藏状态和输出权重的梯度 MSE 分别降低 63.5% 和 57.9%。在 off-policy KD 中,输出头加速最高达 1.95 倍,训练时间相对全词表 KD 减少 10.4-15.7%;在 on-policy distillation(OPD)中,输出头加速最高达 2.20 倍,且两种设置下下游任务性能保持竞争力。代码已在 GitHub 上开源。

原文 · arXiv cs.LG

Distillation with Errors: Sparse Unbiased Backpropagation for Knowledge Distillation

Knowledge distillation (KD) trains a student to match a teacher's output distribution. However, full-vocabulary KD requires costly output-head backpropagation. To reduce this cost, we introduce Distillation with Errors (DWE). Our key insight is that minibatch training already approximates the training gradient, so per-position backpropagation does not need to be exact. DWE therefore exploits the zero-sum structure of logit gradients to construct sparse paired gradient estimates whose expectation matches the full-vocabulary gradient. It then uses geometry-aware pairing and stratified sampling to further reduce estimation variance. We prove that the estimator is unbiased and evaluate DWE's gradient estimation accuracy and training efficiency. At the same sampling budget, DWE reduces hidden-state and output-weight gradient MSE by 63.5% and 57.9%, respectively, compared with importance sampling. In off-policy KD, it achieves up to a $1.95\times$ output-head speedup and reduces training time by 10.4-15.7% relative to full-vocabulary KD. In on-policy distillation (OPD), it achieves up to a $2.20\times$ output-head speedup. DWE maintains competitive downstream performance in both settings. Our code is available at https://github.com/dwe-lab/DWE.

产业坐标与信源核验

本条情报归属 AITOP「论文」核心追踪栏目。在跨区域产业观察坐标中,该动态直接关联「AI 开发者工具链、Coding Agent 与工程化实践」研究主线,反映出当前技术演进与商业落地的最新风向。涉及核心实体与技术议题包括:知识蒸馏、KD、梯度估计、开源模型,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。

信源核验说明:本文原始线索采编自「arXiv cs.LG」(@Yuyang Zhang, Yuxin Li),经 AITOP 多维评分管线结构化提炼。