Papers › Wasserstein Distance Rivals Kullback-Leibler Divergence for Knowledge Distillation

Wasserstein Distance Rivals Kullback-Leibler Divergence for Knowledge Distillation

11 Dec 2024arXiv:2412.08139archive 2025-07-28

Jiaming Lv, Haoyuan Yang, Peihua Li

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

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2412.08139")

Code

Syntology Ran 6 of 7 code samples harvested from 1 repository linked to this paper; 1 has no recorded run. Of those that ran: 3 ran · our draft was wrong; 2 ran · fixture could not drive it; 1 ran with no contract checked.

By repository: community (archive-listed): 7 samples from 1 repository, 6 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

JiamingLv/WKD mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

7 samples harvested; 6 ran; 0 honoured the contract we drafted; 1 has no recorded run. Read from Syntology's graph 2026-09-25; that is when this build read the record, not when the samples ran.

3ran · our draft was wrong
2ran · fixture could not drive it
1ran
1unverified

Licence: 7 of the 7 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from JiamingLv/WKD. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

Distiller JiamingLv/WKD/mdistiller/distillers/WKD.py community (archive-listed) ran no licence file found · pointer only · a7d92810cbf3fd01 · report
adaptive_avg_std_pool2d JiamingLv/WKD/mdistiller/distillers/WKD.py community (archive-listed) ran · fixture could not drive it no licence file found · pointer only · 0a86b2e40fe52f88 · report
sinkhorn JiamingLv/WKD/mdistiller/distillers/WKD.py community (archive-listed) ran · our draft was wrong fingerprinted no licence file found · pointer only · e6f1ae7024ada5d7 · report
wkd_feature_loss JiamingLv/WKD/mdistiller/distillers/WKD.py community (archive-listed) ran · fixture could not drive it fingerprinted no licence file found · pointer only · 3be6ccd2a66c49ba · report
wkd_logit_loss JiamingLv/WKD/mdistiller/distillers/WKD.py community (archive-listed) ran · our draft was wrong fingerprinted no licence file found · pointer only · 00973e6ddd35bda9 · report
wkd_logit_loss_with_speration JiamingLv/WKD/mdistiller/distillers/WKD.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · 9c4310cf03bd30be · report
WKD JiamingLv/WKD/mdistiller/distillers/WKD.py community (archive-listed) unverified no licence file found · pointer only · ae8a2a2f13729bbb · report

Tasks

Image ClassificationKnowledge DistillationObject Detectionimage-classificationobject-detection

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Knowledge Distillation

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections