Introduction
This paper explores the often-overlooked role of feature projectors in knowledge distillation. The authors discover that using a projector prevents the student model from overfitting the teacher's feature space, and they propose a simple yet highly effective "projector ensemble" method to further boost performance. By averaging the outputs of multiple randomly initialized projectors, their approach achieves state-of-the-art results on standard image classification benchmarks without adding any inference overhead.
The Problem: Feature Entanglement in Distillation
In knowledge distillation, a smaller "student" neural network learns to mimic a larger, pre-trained "teacher" network. Feature-based distillation—where the student is trained to match the intermediate or final feature maps of the teacher—is currently one of the most effective approaches.
Because the student and teacher often have different architectures, a "projector" (usually a simple linear layer) is used to map the student's features into the teacher's dimensional space so they can be compared. Historically, researchers have focused heavily on designing complex loss functions or choosing which layers to distill, treating the projector as a mere dimensional matching tool.
This paper asks: Does the projector do more than just match dimensions? The authors identify that when a student directly mimics a teacher without a projector, it is forced to do two things in the exact same feature space: classify the image and match the teacher. This multi-tasking causes the student to overfit the teacher's distribution, degrading the discriminative power of its own features.
Proposed Method: Projector Ensemble
To solve the feature entanglement problem, the authors propose Improved Feature Distillation via Projector Ensemble.
- The Role of the Projector: They first mandate the use of a projector on the student network even if the student and teacher already have the same feature dimensions. This acts as a buffer, disentangling the classification task from the distillation task.
- Projector Ensemble: Instead of a single linear layer, they use an ensemble of parallel projectors. Each projector consists of a linear transformation followed by a ReLU activation.
- Modified Direction Alignment (MDA): During training, the student passes its features through all projectors. The outputs are averaged, and this averaged representation is aligned with the teacher's features using a cosine similarity loss.
Crucially, because these projectors are only used to calculate the distillation loss during training, they are completely discarded during inference. The student network remains lightweight and fast.
Key Insights
- Projectors are useful even when dimensions match: The most surprising finding is that adding a projector improves accuracy even if the student and teacher have identical architectures. It prevents the student's classification features from collapsing into a pure imitation of the teacher.
- Direct matching hurts discriminability: The authors proved mathematically and empirically that without a projector, the student's features become less separable (lower between-class cosine similarity).
- Wider (Ensemble) > Deeper (Cascade): Stacking projectors sequentially (e.g., using a 3-layer MLP as a single projector) actually degrades performance because the deep projector overfits the teacher. A "horizontal" ensemble of single-layer projectors works much better by providing diverse feature transformations.
- Non-linearity is non-negotiable: If you remove the ReLU activation from the ensemble, the multiple linear projectors mathematically collapse into a single linear projection, completely destroying the benefits of the ensemble.
Key Results
The authors evaluated their method on standard image classification benchmarks, including CIFAR-100 and ImageNet.
- State-of-the-Art on CIFAR-100: The proposed method consistently beat recent, highly complex feature distillation methods (like CRD, SRRL, and CID) across various teacher-student pairs. For example, distilling a ResNet32x4 teacher to a ResNet8x4 student achieved 76.08% accuracy (vs. 75.51% for CRD).
- Strong ImageNet Performance: When distilling a massive DenseNet201 teacher to a tiny MobileNet student, the method achieved a top-1 accuracy of 73.24%, outperforming the next best method (SRRL at 72.28%).
- Massive Compression: The MobileNet student (4.2M parameters) distilled via this method achieved similar performance to a ResNet34 teacher (21.8M parameters), effectively reducing the parameter count by ~80% without sacrificing accuracy.
- Training Efficiency: Because the method relies on a simple direction alignment loss rather than complex contrastive memory banks or assistant networks, its training time and GPU memory usage are significantly lower than competing feature-based methods.
Limitations and Future Work
The paper strictly evaluates the method on image classification. The authors note that applying this projector ensemble to downstream tasks like object detection and semantic segmentation is a necessary next step. Additionally, future work could explore how to efficiently integrate logit-based (predictions) and similarity-based (relational) distillation information into this ensemble framework for even better results.
Summary updated