Introduction
Knowledge Distillation (KD) is a widely used technique to improve the performance of compact "student" models by leveraging the expertise of larger "teacher" models. In the context of object detection, KD typically follows two paradigms: feature imitation, which aligns intermediate feature maps, and prediction mimicking, which matches final output distributions. While prediction mimicking is highly effective in image classification, its application in object detection has been hindered by a phenomenon known as Target Conflict.
The Challenge: Target Conflict
Target conflict arises because modern object detectors use complex label assignment strategies. Often, the teacher's prediction for a specific spatial location contradicts the ground-truth (GT) label assigned to the student. When a student is forced to minimize loss against both a GT label and a conflicting teacher prediction, it experiences an optimization "tug-of-war," leading to degraded performance.
Methodology: Cross-Head Knowledge Distillation (CrossKD)
To resolve this conflict, the authors propose CrossKD. The core idea is to decouple the distillation process from the student's final prediction layers.
As shown in Figure 1, CrossKD follows a three-step process:
- Feature Extraction: The student model processes the input image up to an intermediate layer within its detection head.
- Cross-Head Delivery: These intermediate student features ($f^s$) are fed into the teacher's remaining detection head layers.
- Distillation: The output of this "cross-head" prediction ($\hat{p}^s$) is then trained to mimic the teacher's original prediction ($p^t$).
By using the teacher's head as a "proxy" for distillation, the student's internal features are forced to become compatible with the teacher's reasoning logic. Crucially, the student's own final head layers remain primarily supervised by the ground-truth labels, effectively bypassing the target conflict.
Visualizing the Solution
The impact of CrossKD is most evident when examining prediction heatmaps. Traditional prediction mimicking often struggles in regions where the teacher's confidence is high but the ground truth is negative (or vice versa).
In Figure 6, we can see that CrossKD allows the student to capture the teacher's nuanced understanding of the scene (e.g., identifying potential object regions) without the "blurring" or contradictory signals often seen in standard prediction mimicking.
Experimental Results
CrossKD was evaluated on the MS COCO benchmark across a diverse set of detector architectures and backbones.
- Performance Gains: On the GFL detector with a ResNet-50 backbone, CrossKD improved Average Precision (AP) from 40.2 to 43.7 (+3.5 AP), setting a new state-of-the-art for distillation in this category.
- Versatility: The method yielded consistent improvements across various architectures, including RetinaNet (+2.3 AP), FCOS (+2.8 AP), and ATSS (+2.4 AP).
- Heterogeneous Distillation: CrossKD proved effective even when the teacher and student used different architectures, such as distilling a Swin-Transformer teacher into a ResNet-50 student.
- Efficiency: Unlike methods that require heavy feature-map alignment or complex assistant heads, CrossKD is computationally efficient during training as it reuses the existing teacher architecture.
Conclusion
CrossKD offers a simple yet powerful solution to the target conflict problem in object detection distillation. By shifting the distillation target to a cross-head branch, it enables students to inherit the teacher's task-specific knowledge without compromising their ability to learn from ground-truth labels. Future work may explore extending this "cross-head" philosophy to other complex tasks such as 3D object detection.
Summary updated