Skip to main content
QUICK 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 Science被引用 41
一句话总结

PKD 引入基于皮尔逊相关系数的蒸馏损失,用于在异构目标检测器之间传递知识,聚焦关系特征信息与归一化,以提升跨检测器知识蒸馏的性能和收敛速度。

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.

研究动机与目标

  • 在目标检测中,推动改进异构检测器对(不同 head 和不同标签分配)的知识蒸馏。
  • 提出基于 PCC 的特征模仿损失,以放宽幅度约束并聚焦关系信息。
  • 证明 FPN 特征模仿在异构检测器对和不同数据集上都有效。
  • 展示在 COCO 数据集上,跨多种检测器家族的更快收敛和显著性能提升。

提出的方法

  • 将教师和学生的 FPN 特征归一化为零均值、单位方差,以计算 PCC 基于的损失。
  • 最小化归一化特征之间的 MSE,这等价于最大化教师与学生特征之间的 PCC。
  • 使用一个单一的蒸馏损失项(L_FPN = 1 - r(s, t))结合 PCC,以避免幅值对梯度的主导作用。
  • 以 L = L_GT + alpha * L_FPN 进行训练,其中 alpha 用于平衡检测损失和蒸馏损失。
  • 证明 PKD 不需要前向教师的检测头,从而减少训练时间。

实验结果

研究问题

  • RQ1通过基于 PCC 的损失进行特征模仿,能否在具有不同 head 和标签分配的异构检测器之间有效蒸馏知识?
  • RQ2与传统的基于 MSE 的特征模仿相比,基于 PCC 的蒸馏是否提高了性能和收敛速度?
  • RQ3PKD 是否可在 COCO 上跨越多样化的检测器结构(两阶段、单阶段、锚基、无锚)应用?
  • RQ4在不同检测器对中,PKD 对蒸馏权重 alpha 的敏感性如何?

主要发现

  • PKD 在 COCO 上对多组同质和异质检测器对的一致性提升 mAP,超过了以往的 KD 方法。
  • 使用强大的异质教师(如配备 Swin transformer 的 Mask R-CNN)为如 RetinaNet 和 FCOS 的学生带来实质性提升(如 +4.1 到 +4.8 mAP)。
  • 与以往方法相比,PKD 提高收敛速度,并且不需要经过教师的检测头,降低训练时间。
  • 归一化使蒸馏在幅值差异、主导的 FPN 层次和噪声通道存在时仍具鲁棒性,从而实现跨检测器兼容性。
  • PKD 对蒸馏权重 alpha 的敏感性低,表明在不同设定下性能稳定。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。