NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Understanding the Role of the Projector in Knowledge Distillation

Roy Miles, Krystian Mikolajczyk · DOI

Abstract

In this paper, we revisit the efficacy of knowledge distillation (KD) as a function matching and metric learning problem. We identify three critical design components: normalization, a soft maximum distance function, and projection layers. We theoretically demonstrate that the projector implicitly encodes relational information from past examples, providing the student with relational gradients without explicit memory banks. Furthermore, we show that representation normalization is essential to prevent projector collapse. Finally, we introduce a soft maximum function (LogSum) to mitigate the capacity gap between teacher and student models. Our approach achieves state-of-the-art performance across image classification and object detection benchmarks while maintaining high computational efficiency.

Introduction

Knowledge Distillation (KD) aims to transfer knowledge from a high-capacity teacher model to a compact student model. Recent trends in KD have moved toward increasingly complex frameworks, often involving large memory banks or expensive relational matrices to capture inter-sample dependencies. This paper addresses the growing complexity by investigating the fundamental roles of standard components, specifically the projector layer and normalization, to develop a more efficient and theoretically grounded distillation recipe.

Proposed Methodology

The proposed framework simplifies feature-based distillation into three core pillars:

  1. Linear Projection: A bias-free linear layer $W_p$ maps student features to the teacher's feature space.
  2. Batch Normalization: Applied to the projected representations to stabilize training and preserve feature rank.
  3. LogSum Distance: A novel metric defined as $D(Z_s, Z_t; W_p) = \log \sum_i |Z_s W_p - Z_t|_i^\alpha$. This "soft maximum" focuses the student's learning on significant discrepancies, effectively bridging the capacity gap.
Overview of the proposed knowledge distillation framework highlighting the roles of the linear projector, batch normalization, and LogSum distance.

Theoretical and Empirical Insights

The Projector as an Implicit Memory Bank

A key theoretical contribution is the proof that a linear projector updated via gradient descent implicitly encodes relational information. The update rule for the projector weights involves self-correlation and cross-correlation matrices of the features. This allows the student to benefit from relational signals without the $O(N^2)$ computational cost of explicit correlation matrices.

Normalization and Projector Collapse

The interaction between normalization and the projector is critical. Without proper normalization, the projector's singular values tend to collapse toward zero over time, leading to information loss. Batch normalization effectively maintains the rank of the projector weights, ensuring a continuous flow of information from the teacher.

Singular value distribution of projector weights over training epochs for different normalization strategies. Batch normalization (c) prevents the collapse of singular values compared to no normalization (a).

Bridging the Capacity Gap

The LogSum distance metric acts as a robust alternative to standard L2 loss. By softening the penalty for minor feature differences, it prevents the student from being overwhelmed by high-frequency teacher signals that exceed its capacity, allowing it to focus on the most salient features.

Experimental Results

The effectiveness of this "cheap and effective" recipe was validated across multiple benchmarks:

  • ImageNet-1K: The method significantly improved the performance of data-efficient transformers. For instance, the DeiT-Ti model reached 77.2% top-1 accuracy, a 2.2% improvement over specialized distillation baselines.
  • CIFAR100: Across various teacher-student architectures (e.g., ResNet50 to ResNet18), the approach outperformed complex methods like CRD and SSKD.
  • Object Detection: On the COCO2017 dataset, the method improved the mAP of YOLOv5s from 56.8 to 57.3, demonstrating its versatility beyond classification.

Conclusion

This work demonstrates that state-of-the-art distillation performance can be achieved through a deeper understanding of simple components rather than increasing architectural complexity. By leveraging the implicit relational encoding of projectors and the stabilizing effects of batch normalization and LogSum distance, we provide a computationally efficient framework for training high-performance student models. Future work will explore non-linear projection architectures and automated hyperparameter tuning for the LogSum function.

Summary updated

BibTeX
@inproceedings{miles2024understanding,
  author = {Roy Miles and Krystian Mikolajczyk},
  title = {{Understanding the Role of the Projector in Knowledge Distillation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i5.28219},
}
Figure