Wasserstein Distance Rivals Kullback-Leibler Divergence for Knowledge Distillation

Jiaming Lv, Haoyuan Yang, Peihua Li
2/3/2026

No official code found. Best implementation: JiamingLv/WKD (50 stars, last commit 2024-12-13).

Abstract

Since pioneering work of Hinton et al., knowledge distillation based on Kullback-Leibler Divergence (KL-Div) has been predominant, and recently its variants have achieved compelling performance. However, KL-Div only compares probabilities of the corresponding category between the teacher and student while lacking a mechanism for cross-category comparison. Besides, KL-Div is problematic when applied to intermediate layers, as it cannot handle non-overlapping distributions and is unaware of geometry of the underlying manifold. To address these downsides, we propose a methodology of Wasserstein Distance (WD) based knowledge distillation. Specifically, we propose a logit distillation method called WKD-L based on discrete WD, which performs cross-category comparison of probabilities and thus can explicitly leverage rich interrelations among categories. Moreover, we introduce a feature distillation method called WKD-F, which uses a parametric method for modeling feature distributions and adopts continuous WD for transferring knowledge from intermediate layers. Comprehensive evaluations on image classification and object detection have shown (1) for logit distillation WKD-L outperforms very strong KL-Div variants; (2) for feature distillation WKD-F is superior to the KL-Div counterparts and state-of-the-art competitors. The source code is available at https://peihuali.org/WKD

View on arXivView PDF

Code Implementations(1)

JiamingLv/WKDCommunity63%

The offical implementation of [NeurIPS2024] Wasserstein Distance Rivals Kullback-Leibler Divergence for Knowledge Distillation https://arxiv.org/abs/2412.08139

503Shell, PythonDec 6, 20241 years ago
cifarcococomputer-visioncross-architecture-knowledge-distillationimage-classification+5 more

Similar Papers

Cite this paper

@article{lv2026wasserstein,
  title  = {Wasserstein Distance Rivals Kullback-Leibler Divergence for Knowledge Distillation},
  author = {Jiaming Lv and Haoyuan Yang and Peihua Li},
  year   = {2026},
  eprint = {2412.08139},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2412.08139},
  url    = {https://arxiv.org/abs/2412.08139},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.08139.svg)](https://codeofpaper.com/paper/2412.08139)

Discussion