arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2207.02039cs.CVcs.AI
收藏

PKD:基于皮尔逊相关系数的目标检测器通用蒸馏框架

PKD: General Distillation Framework for Object Detectors via Pearson Correlation Coefficient

Shanghai AI Laboratory(上海人工智能实验室);University of Chinese Academy of Sciences(中国科学院大学)

Weihan Cao, Yifan Zhang, Jianfei Gao, Anda Cheng, Ke Cheng, Jian Cheng

摘要:

知识蒸馏(KD)是目标检测中一种广泛使用的训练紧凑模型的技术。然而,对于如何在异构检测器之间进行提取,目前还缺乏研究。在本文中,我们的经验发现,更好的FPN功能,从异构教师检测器可以帮助学生,虽然他们的检测头和标签分配是不同的。然而,直接对准特征图以提取检测器遭受两个问题。首先,教师和学生之间的特征幅度差异可能会对学生施加过于严格的约束。第二,教师模型中具有大特征量的FPN级和通道可以主导蒸馏损失的梯度,这将压倒KD中其他特征的影响并引入大量噪声。为了解决上述问题,我们提出了模仿特征与皮尔逊相关系数,专注于从教师的关系信息和放松对特征的大小的限制。我们的方法始终优于现有的检测KD方法,适用于同质和异质的学生-教师对。此外,它收敛得更快。在强大的MaskRCNN-Swin检测器作为教师的情况下,基于ResNet-50的RetinaNet和FCOS在COCO 2017上实现了41.5%和43.9%的mAP,分别比基线高出4.1%和4.8%。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑