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

Understanding the Role of the Projector in Knowledge Distillation

Roy Miles, Krystian Mikolajczyk

Abstract

Knowledge Distillation (KD) typically relies on complex loss functions or memory-intensive structures to capture relational information between data points. This paper demonstrates that a surprisingly simple setup—a linear projector, batch normalization, and a specific distance metric—can outperform state-of-the-art methods. We show that a linear projector acts as an implicit memory bank, encoding relational history within its weights. By combining this with batch normalization to prevent projector collapse and a "LogSum" distance metric to bridge capacity gaps, we achieve superior results in training data-efficient transformers and standard image classification tasks.

Introduction

Knowledge Distillation (KD) is a widely used technique to transfer knowledge from a high-performing teacher model to a smaller student model. Despite its success, modern state-of-the-art (SOTA) methods often suffer from high computational overhead due to explicit relational matrices or large memory banks. Furthermore, the "capacity gap" between powerful teachers and smaller students often leads to suboptimal knowledge transfer.

This work takes a "back to basics" approach, investigating the fundamental role of the projector layer—the component used to align student and teacher feature dimensions. We propose a simple yet effective recipe that eliminates the need for complex relational modules while achieving competitive or superior performance.

Methodology: A Cheap and Effective Recipe

The proposed distillation framework consists of three core components designed to optimize feature alignment and information retention.

The proposed distillation architecture featuring a linear projector, batch normalization, and LogSum distance.
  1. Linear Projection: Instead of complex attention mechanisms, a simple linear layer is used. The update rule for this projector implicitly calculates the self-correlation and cross-correlation of features over time. Thus, the projector weights themselves serve as a moving average of relational information, acting as an implicit memory bank.
  2. Batch Normalization (BN): BN is critical for maintaining training dynamics. It prevents "projector collapse," a phenomenon where the singular values of the weight matrix shrink toward zero, which would otherwise lead to significant information loss.
  3. LogSum Distance: To address the capacity gap, we replace the standard L2 distance with a LogSum function: $$D(Z_s, Z_t; W_p) = \log \sum_i |Z_s W_p - Z_t|^\alpha_i$$ This "soft maximum" function reduces the penalty for features that are already well-aligned, allowing the student to focus its limited capacity on the most significant misalignments.

The Dynamics of Projector Normalization

The choice of normalization significantly impacts the projector's ability to retain information. Without proper normalization, the projector's singular values tend to collapse over time, limiting the amount of knowledge transferred to the student.

Comparison of singular value distributions of the projector weight matrix under different normalization schemes: (a) no normalization, (b) L2 normalization, and (c) batch normalization.

As shown in the singular value analysis, batch normalization maintains a healthier distribution of singular values compared to no normalization or L2 normalization. This ensures that the projector continues to pass diverse and useful information throughout the training process.

Experimental Results

The effectiveness of this approach was validated across multiple benchmarks:

  • ImageNet-1K: The proposed method achieved 77.2% top-1 accuracy with a DeiT-Ti model, representing a 2.2% improvement over previous distillation methods specifically tailored for transformers.
  • CIFAR-100: Across various architecture pairs (e.g., ResNet to ShuffleNet), the simple linear projector recipe consistently matched or outperformed complex SOTA methods like ReviewKD and DKD.
  • Object Detection (COCO): The method proved robust for downstream tasks, outperforming detection-specific methods like FPGI when applied to Faster R-CNN and YOLOv5 pipelines.

Conclusion

This research highlights that complexity is not always a prerequisite for performance in Knowledge Distillation. By understanding the implicit relational encoding properties of linear projectors and the stabilizing role of batch normalization, we can design highly efficient distillation pipelines. Future work will explore the applicability of these insights to other domains, such as Natural Language Processing, and further investigate optimal projector architectures.

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