Distillation with Errors: Sparse Unbiased Backpropagation for Knowledge Distillation
Yuyang Zhang, Yuxin Li
Key points
From the paper's conclusion- We prove that the estimator is unbiased and evaluate DWE's gradient estimation accuracy and training efficiency.
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Knowledge Distillation under Teacher Misspecification: An Order-Parameter Analysis of the Gap between Teacher Mimicry and Task PerformancearXiv · 2026
- Look Before You Select: Rethinking Vocabulary Sparsification in On-Policy DistillationarXiv · 2026
- Unbiased Top-$k$ Estimation for On-Policy DistillationarXiv · 2026
- Dr. OPD: Learning What to Follow for Optimal On-Policy Distillation of Large Language ModelsarXiv · 2026
- Adaptive-Policy Distillation: Knowledge Injection under Information AsymmetryarXiv · 2026
- ZOPGA-KD: Zeroth Order PGA Guided Data Free Knowledge DistillationarXiv · 2026