跳到正文
arXiv (AI + Vision + Imaging)· Yuyang Zhang, Yuxin Li·· 3 天前AI 评分20

DWE:面向知识蒸馏的稀疏无偏反向传播方法

Distillation with Errors: Sparse Unbiased Backpropagation for Knowledge Distillation

AI 导读

研究提出 Distillation with Errors(DWE),利用 logit 梯度的零和结构构造稀疏成对梯度估计,其期望与全词表梯度一致,并证明该估计无偏。

正文 · 原文

arXiv:2611.27131v1 Announce Type: new Abstract: 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.

来源:arXiv (AI + Vision + Imaging) · arxiv.org