Skip to main content
QUICK REVIEW

[Paper Review] PKD: General Distillation Framework for Object Detectors via Pearson Correlation Coefficient

Weihan Cao, Yifan Zhang|arXiv (Cornell University)|Jul 5, 2022
Advanced Neural Network ApplicationsComputer Science41 citations
TL;DR

PKD introduces a Pearson Correlation Coefficient-based distillation loss for transferring knowledge between heterogeneous object detectors, focusing on relational feature information and normalization to improve cross-detector KD performance and convergence speed.

ABSTRACT

Knowledge distillation(KD) is a widely-used technique to train compact models in object detection. However, there is still a lack of study on how to distill between heterogeneous detectors. In this paper, we empirically find that better FPN features from a heterogeneous teacher detector can help the student although their detection heads and label assignments are different. However, directly aligning the feature maps to distill detectors suffers from two problems. First, the difference in feature magnitude between the teacher and the student could enforce overly strict constraints on the student. Second, the FPN stages and channels with large feature magnitude from the teacher model could dominate the gradient of distillation loss, which will overwhelm the effects of other features in KD and introduce much noise. To address the above issues, we propose to imitate features with Pearson Correlation Coefficient to focus on the relational information from the teacher and relax constraints on the magnitude of the features. Our method consistently outperforms the existing detection KD methods and works for both homogeneous and heterogeneous student-teacher pairs. Furthermore, it converges faster. With a powerful MaskRCNN-Swin detector as the teacher, ResNet-50 based RetinaNet and FCOS achieve 41.5% and 43.9% mAP on COCO2017, which are 4.1\% and 4.8\% higher than the baseline, respectively.

Motivation & Objective

  • Motivate improving knowledge distillation for heterogeneous detector pairs (different heads and label assignments) in object detection.
  • Propose a PCC-based feature imitation loss to relax magnitude constraints and focus on relational information.
  • Demonstrate that FPN feature imitation works across heterogeneous detector pairs and datasets.
  • Show faster convergence and strong performance gains on COCO across multiple detector families.

Proposed method

  • Normalize teacher and student FPN features to zero mean and unit variance to compute PCC-based loss.
  • Minimize the MSE between normalized features, which is equivalent to maximizing PCC between teacher and student features.
  • Use a single distillation loss term (L_FPN = 1 - r(s, t)) with PCC to avoid magnitudes dominating gradients.
  • Train with L = L_GT + alpha * L_FPN, where alpha balances detection and distillation losses.
  • Demonstrate that PKD does not require forwarding the teacher’s detection head, reducing training time.

Experimental results

Research questions

  • RQ1Can feature imitation through PCC-based loss effectively distill knowledge between heterogeneous detectors with different heads and label assignments?
  • RQ2Does PCC-based distillation improve performance and convergence speed compared to traditional MSE-based feature imitation?
  • RQ3Is PKD applicable across diverse detector architectures (two-stage, one-stage, anchor-based, anchor-free) on COCO?
  • RQ4How sensitive is PKD to the distillation weight alpha across detector pairs?

Key findings

  • PKD consistently improves mAP across multiple homogeneous and heterogeneous detector pairs on COCO, outperforming prior KD methods.
  • Using a strong heterogeneous teacher (e.g., Mask R-CNN with Swin transformer) yields substantial gains for students like RetinaNet and FCOS (e.g., +4.1 to +4.8 mAP).
  • PKD accelerates convergence compared to previous methods, and does not require passing through the teacher’s detection head, reducing training time.
  • Normalization enables robust distillation despite magnitude differences, dominant FPN stages, and noisy channels, enabling cross-detector compatibility.
  • PKD shows low sensitivity to the distillation weight alpha, indicating stable performance across settings.

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.