Papers › Improving Knowledge Distillation via Regularizing Feature Norm and Direction

Improving Knowledge Distillation via Regularizing Feature Norm and Direction

26 May 2023arXiv:2305.17007archive 2025-07-28

Yuzhu Wang, Lechao Cheng, Manni Duan, Yongheng Wang, Zunlei Feng, Shu Kong

Knowledge distillation (KD) exploits a large well-trained model (i.e., teacher) to train a small student model on the same dataset for the same task. Treating teacher features as knowledge, prevailing methods of knowledge distillation train student by aligning its features with the teacher's, e.g., by minimizing the KL-divergence between their logits or L2 distance between their intermediate features. While it is natural to believe that better alignment of student features to the teacher better distills teacher knowledge, simply forcing this alignment does not directly contribute to the student's performance, e.g., classification accuracy. In this work, we propose to align student features with class-mean of teacher features, where class-mean naturally serves as a strong classifier. To this end, we explore baseline techniques such as adopting the cosine distance based loss to encourage the similarity between student features and their corresponding class-means of the teacher. Moreover, we train the student to produce large-norm features, inspired by other lines of work (e.g., model pruning and domain adaptation), which find the large-norm features to be more significant. Finally, we propose a rather simple loss term (dubbed ND loss) to simultaneously (1) encourage student to produce large-\emph{norm} features, and (2) align the \emph{direction} of student features and teacher class-means. Experiments on standard benchmarks demonstrate that our explored techniques help existing KD methods achieve better performance, i.e., higher classification accuracy on ImageNet and CIFAR100 datasets, and higher detection precision on COCO dataset. Importantly, our proposed ND loss helps the most, leading to the state-of-the-art performance on these benchmarks. The source code is available at \url{https://github.com/WangYZ1608/Knowledge-Distillation-via-ND}.

PaperPDFCodeCode Syntology ran

In Syntology 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="2305.17007")

Code

Syntology Ran 3 of 3 code samples harvested from 1 repository linked to this paper; 0 have no recorded run. Of those that ran: 1 ran · honoured contract; 1 ran · our draft was wrong; 1 ran · fixture could not drive it.

By repository: official repository: 3 samples from 1 repository, 3 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

wangyz1608/knowledge-distillation-via-nd officialmentioned in papermentioned 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

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

1ran · honoured contract
1ran · our draft was wrong
1ran · fixture could not drive it

Licence: 3 of the 3 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 wangyz1608/knowledge-distillation-via-nd. “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.

reduce_tensor wangyz1608/knowledge-distillation-via-nd/ImageNet/train_dkd.py official repository ran · fixture could not drive it no licence file found · pointer only · b57663499e3c25d8 · report
train wangyz1608/knowledge-distillation-via-nd/ImageNet/train_dkd.py official repository ran · our draft was wrong no licence file found · pointer only · 15fc62159d2fc40a · report
validate wangyz1608/knowledge-distillation-via-nd/ImageNet/train_dkd.py official repository ran · honoured contract no licence file found · pointer only · 5bf784d9365d24ac · report

Tasks

Domain AdaptationKnowledge Distillation

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Knowledge Distillation CIFAR-100 ReviewKD++(T:resnet-32x4, S:shufflenet-v2) Top-1 Accuracy (%) 77.93 #6 of 27 Archive leaderboard report
Knowledge Distillation CIFAR-100 ReviewKD++(T:resnet-32x4, S:shufflenet-v1) Top-1 Accuracy (%) 77.68 #7 of 27 Archive leaderboard report
Knowledge Distillation CIFAR-100 DKD++(T:resnet-32x4, S:resnet-8x4) Top-1 Accuracy (%) 76.28 #11 of 27 Archive leaderboard report
Knowledge Distillation CIFAR-100 ReviewKD++(T:WRN-40-2, S:WRN-40-1) Top-1 Accuracy (%) 75.66 #13 of 27 Archive leaderboard report
Knowledge Distillation CIFAR-100 KD++(T:resnet56, S:resnet20) Top-1 Accuracy (%) 72.53 #22 of 27 Archive leaderboard report
Knowledge Distillation CIFAR-100 DKD++(T:resnet50, S:mobilenetv2) Top-1 Accuracy (%) 70.82 #26 of 27 Archive leaderboard report
Knowledge Distillation COCO 2017 val ReviewKD++(T: faster rcnn(resnet101), S:faster rcnn(resnet50)) AP@0.5 61.80 #1 of 3 Archive leaderboard report
Knowledge Distillation COCO 2017 val ReviewKD++(T: faster rcnn(resnet101), S:faster rcnn(resnet50)) AP@0.75 44.94 #1 of 3 Archive leaderboard report
Knowledge Distillation COCO 2017 val ReviewKD++(T: faster rcnn(resnet101), S:faster rcnn(resnet50)) mAP 41.03 #1 of 3 Archive leaderboard report
Knowledge Distillation COCO 2017 val ReviewKD++(T: faster rcnn(resnet101), S:faster rcnn(resnet18)) AP@0.5 57.96 #2 of 3 Archive leaderboard report
Knowledge Distillation COCO 2017 val ReviewKD++(T: faster rcnn(resnet101), S:faster rcnn(resnet18)) AP@0.75 40.15 #2 of 3 Archive leaderboard report
Knowledge Distillation COCO 2017 val ReviewKD++(T: faster rcnn(resnet101), S:faster rcnn(resnet18)) mAP 37.43 #2 of 3 Archive leaderboard report
Knowledge Distillation COCO 2017 val ReviewKD++(T: faster rcnn(resnet101), S:faster rcnn(mobilenet-v2)) AP@0.5 55.18 #3 of 3 Archive leaderboard report
Knowledge Distillation COCO 2017 val ReviewKD++(T: faster rcnn(resnet101), S:faster rcnn(mobilenet-v2)) AP@0.75 37.21 #3 of 3 Archive leaderboard report
Knowledge Distillation COCO 2017 val ReviewKD++(T: faster rcnn(resnet101), S:faster rcnn(mobilenet-v2)) mAP 34.51 #3 of 3 Archive leaderboard report
Knowledge Distillation ImageNet KD++(T: regnety-16GF S:ViT-B) CRD training setting ✘ #5 of 52 Archive leaderboard report
Knowledge Distillation ImageNet KD++(T: regnety-16GF S:ViT-B) Top-1 accuracy % 83.60 #5 of 52 Archive leaderboard report
Knowledge Distillation ImageNet KD++(T: regnety-16GF S:ViT-B) model size 87M #5 of 52 Archive leaderboard report
Knowledge Distillation ImageNet KD++(T:resnet-152 S:resnet-101) CRD training setting ✘ #16 of 52 Archive leaderboard report
Knowledge Distillation ImageNet KD++(T:resnet-152 S:resnet-101) Top-1 accuracy % 79.15 #16 of 52 Archive leaderboard report
Knowledge Distillation ImageNet KD++(T:resnet-152 S:resnet-101) model size 44.5M #16 of 52 Archive leaderboard report
Knowledge Distillation ImageNet KD++(T:resnet-152 S:resnet-50) CRD training setting ✘ #19 of 52 Archive leaderboard report
Knowledge Distillation ImageNet KD++(T:resnet-152 S:resnet-50) Top-1 accuracy % 77.48 #19 of 52 Archive leaderboard report
Knowledge Distillation ImageNet KD++(T:resnet152 S:resnet34) CRD training setting ✘ #25 of 52 Archive leaderboard report
Knowledge Distillation ImageNet KD++(T:resnet152 S:resnet34) Top-1 accuracy % 75.53 #25 of 52 Archive leaderboard report
Knowledge Distillation ImageNet ReviewKD++(T:resnet50, S:mobilenet-v1) Top-1 accuracy % 72.96 #27 of 52 Archive leaderboard report
Knowledge Distillation ImageNet KD++(T:resnet-152 S:resnet18) CRD training setting ✘ #28 of 52 Archive leaderboard report
Knowledge Distillation ImageNet KD++(T:resnet-152 S:resnet18) Top-1 accuracy % 72.54 #28 of 52 Archive leaderboard report
Knowledge Distillation ImageNet KD++(T:renset101 S:resnet18) CRD training setting ✘ #29 of 52 Archive leaderboard report
Knowledge Distillation ImageNet KD++(T:renset101 S:resnet18) Top-1 accuracy % 72.54 #29 of 52 Archive leaderboard report
Knowledge Distillation ImageNet KD++(T:resnet50 S:resnet18) CRD training setting ✘ #30 of 52 Archive leaderboard report
Knowledge Distillation ImageNet KD++(T:resnet50 S:resnet18) Top-1 accuracy % 72.53 #30 of 52 Archive leaderboard report
Knowledge Distillation ImageNet KD++(T: ResNet-34 S:ResNet-18) CRD training setting ✘ #35 of 52 Archive leaderboard report
Knowledge Distillation ImageNet KD++(T: ResNet-34 S:ResNet-18) Top-1 accuracy % 72.07 #35 of 52 Archive leaderboard report
Knowledge Distillation ImageNet KD++(T:ViT-B, S:resnet18) CRD training setting ✘ #39 of 52 Archive leaderboard report
Knowledge Distillation ImageNet KD++(T:ViT-B, S:resnet18) Top-1 accuracy % 71.84 #39 of 52 Archive leaderboard report
Knowledge Distillation ImageNet KD++(T: ViT-S, S:resnet18) CRD training setting ✘ #46 of 52 Archive leaderboard report
Knowledge Distillation ImageNet KD++(T: ViT-S, S:resnet18) Top-1 accuracy % 71.46 #46 of 52 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

ALIGNKnowledge DistillationPruning

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