[Paper Review] Improving Knowledge Distillation via Regularizing Feature Norm and Direction
This paper proposes a novel knowledge distillation method that improves student model performance by jointly regularizing feature norm and direction: it encourages the student to produce high-norm features aligned with the class-mean features of the teacher. The key contribution is a simple yet effective ND loss that simultaneously boosts feature magnitude and alignment, achieving state-of-the-art accuracy on ImageNet, CIFAR-100, and COCO benchmarks when combined with existing KD methods.
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}.
Motivation & Objective
- To address the limitation of existing knowledge distillation methods that align student features directly with teacher features without considering feature magnitude or classifier structure.
- To improve student performance by leveraging the teacher’s class-mean features as a strong, intrinsic classifier for guiding feature learning.
- To explore the role of large-norm features in knowledge distillation, inspired by findings in model pruning and domain adaptation.
- To develop a simple, plug-in loss (ND loss) that simultaneously regularizes feature norm and direction for improved distillation.
Proposed method
- The method constructs class-mean features from off-the-shelf features of the teacher model, using them as a strong classifier to guide student feature learning.
- It introduces a novel ND loss that jointly optimizes two objectives: (1) maximizing the L2 norm of student features, and (2) minimizing the cosine distance between student features and the corresponding teacher class-mean features.
- The ND loss is applied at the penultimate layer (embedding layer), where features are used to compute logits, making it directly relevant to classification performance.
- The approach is compatible with both logit distillation and feature distillation frameworks, and can be seamlessly integrated into existing KD pipelines.
- The method is empirically validated on ImageNet, CIFAR-100, and COCO datasets, with ablation studies confirming the effectiveness of each component.
- The implementation is released as KD++ and is shown to require minimal computational overhead while delivering significant accuracy gains.

Experimental results
Research questions
- RQ1Does regularizing student features to have larger norms and align with teacher class-means improve knowledge distillation performance?
- RQ2Can a simple, unified loss function effectively combine norm maximization and directional alignment in knowledge distillation?
- RQ3How does the proposed ND loss compare to baseline regularizers (e.g., cosine loss, norm regularization) in terms of performance gain?
- RQ4Does the benefit of the ND loss scale with increasing teacher model capacity?
- RQ5Can the ND loss improve performance when distilling from Transformers to CNNs, despite architectural differences?
Key findings
- Applying the ND loss to standard KD (KD++) achieves 72.53% top-1 accuracy on ImageNet using a ResNet-18 student and ResNet-50 teacher, outperforming the original KD (71.35%) and other recent methods like ReviewKD (71.10%) and DKD (71.87%).
- The ND loss leads to a 1.45% absolute accuracy gain over KD when training a ResNet-18 student on ImageNet, demonstrating its strong effectiveness.
- When distilling from larger teacher models (ResNet-34 to ResNet-152), KD++ shows consistent performance improvements (e.g., 71.98% → 72.54%), unlike baseline KD methods that show degradation or fluctuation.
- On COCO object detection, the use of ND loss leads to higher detection precision, confirming its benefit beyond image classification.
- Visualizations show that KD++ produces higher-norm features and better class separation, successfully recovering misclassified classes (e.g., the purple class) that were missed by standard KD and naive student models.
- The ND loss is effective even when used alone with cross-entropy or KL loss, boosting accuracy by approximately 1% compared to classical KD, with negligible computational cost.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.