Skip to main content
QUICK REVIEW

[Paper Review] CrossKD: Cross-Head Knowledge Distillation for Object Detection

Jiabao Wang, Yumin Chen|arXiv (Cornell University)|Jun 20, 2023
Advanced Neural Network ApplicationsComputer Science6 citations
TL;DR

CrossKD proposes a novel knowledge distillation framework for object detection that alleviates the conflict between ground-truth labels and teacher predictions by transferring intermediate features from the student's detection head to the teacher's head, enabling more consistent prediction mimicking. This cross-head distillation boosts YOLOv5-based GFL-R50 to 43.7 AP on COCO, surpassing all prior KD methods.

ABSTRACT

Knowledge Distillation (KD) has been validated as an effective model compression technique for learning compact object detectors. Existing state-of-the-art KD methods for object detection are mostly based on feature imitation. In this paper, we present a general and effective prediction mimicking distillation scheme, called CrossKD, which delivers the intermediate features of the student's detection head to the teacher's detection head. The resulting cross-head predictions are then forced to mimic the teacher's predictions. This manner relieves the student's head from receiving contradictory supervision signals from the annotations and the teacher's predictions, greatly improving the student's detection performance. Moreover, as mimicking the teacher's predictions is the target of KD, CrossKD offers more task-oriented information in contrast with feature imitation. On MS COCO, with only prediction mimicking losses applied, our CrossKD boosts the average precision of GFL ResNet-50 with 1x training schedule from 40.2 to 43.7, outperforming all existing KD methods. In addition, our method also works well when distilling detectors with heterogeneous backbones. Code is available at https://github.com/jbwang1997/CrossKD.

Motivation & Objective

  • To address the performance gap between prediction mimicking and feature imitation in knowledge distillation for object detection.
  • To resolve the conflicting supervision signals in prediction mimicking, where ground-truth labels and teacher predictions often disagree.
  • To improve distillation efficiency by aligning the optimization objectives of student and teacher networks.
  • To achieve state-of-the-art performance using only prediction mimicking losses, without relying on complex feature imitation.

Proposed method

  • CrossKD transfers intermediate features from the student's detection head to the teacher's detection head, creating cross-head predictions.
  • The distillation loss is applied between the cross-head predictions and the original teacher predictions, not between student and teacher directly.
  • This design decouples the KD loss from the student's original detection head, avoiding conflicting gradients during optimization.
  • The method uses task-specific loss functions: GIoU for regression and a modified QFL with sigmoid modulation for classification.
  • The cross-head predictions are more consistent with the teacher's outputs due to shared network components, enhancing training stability.
  • The approach is orthogonal to feature imitation, allowing further gains when combined with methods like PKD.

Experimental results

Research questions

  • RQ1Why does prediction mimicking underperform compared to feature imitation in object detection KD?
  • RQ2What causes the performance gap between ground-truth targets and distillation targets in prediction mimicking?
  • RQ3Can decoupling the KD loss from the student’s detection head improve training stability and performance?
  • RQ4Does transferring features from the student to the teacher’s head create more consistent supervision than standard KD?
  • RQ5Can a simple prediction-mimicking-only method outperform state-of-the-art feature-imitation-based KD methods?

Key findings

  • CrossKD achieves 43.7 AP on MS COCO with GFL-R50 using only prediction mimicking losses, a 3.5 AP gain over the baseline.
  • The method outperforms all existing KD methods for object detection, including those based on feature imitation.
  • When combined with PKD, CrossKD achieves 43.9 AP, demonstrating its orthogonality and complementarity to feature imitation.
  • The ablation study shows that QFL loss outperforms BCE by 2.5 AP when applied to both positive and negative regions.
  • Visualization confirms that CrossKD produces better detection results than the teacher, even when the teacher has suboptimal predictions.
  • The method enables faster training convergence and avoids training instability caused by conflicting supervision signals.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.