[论文解读] Focal and Global Knowledge Distillation for Detectors
本文提出Focal和Global蒸馏(FGD),一种用于目标检测的知识蒸馏方法,通过分别蒸馏前景和背景特征,同时保留关键的空间和通道注意力,并利用GcBlock重建全局特征关系。FGD在多种检测器上实现了SOTA的mAP提升,包括在COCO2017上使用RetinaNet-ResNet50时达到40.7%的mAP。
Knowledge distillation has been applied to image classification successfully. However, object detection is much more sophisticated and most knowledge distillation methods have failed on it. In this paper, we point out that in object detection, the features of the teacher and student vary greatly in different areas, especially in the foreground and background. If we distill them equally, the uneven differences between feature maps will negatively affect the distillation. Thus, we propose Focal and Global Distillation (FGD). Focal distillation separates the foreground and background, forcing the student to focus on the teacher's critical pixels and channels. Global distillation rebuilds the relation between different pixels and transfers it from teachers to students, compensating for missing global information in focal distillation. As our method only needs to calculate the loss on the feature map, FGD can be applied to various detectors. We experiment on various detectors with different backbones and the results show that the student detector achieves excellent mAP improvement. For example, ResNet-50 based RetinaNet, Faster RCNN, RepPoints and Mask RCNN with our distillation method achieve 40.7%, 42.0%, 42.0% and 42.1% mAP on COCO2017, which are 3.3, 3.6, 3.4 and 2.9 higher than the baseline, respectively. Our codes are available at https://github.com/yzd-v/FGD.
研究动机与目标
- 解决标准知识蒸馏在目标检测中因教师与学生网络之间存在较大特征差异而导致性能不佳的问题。
- 研究前景与背景类别不平衡对蒸馏效果的影响,特别是对特征图注意力模式的影响。
- 开发一种方法,选择性地蒸馏教师网络中的关键像素与通道,以提高学生网络的学习效率。
- 通过从教师网络向学生网络转移像素间关系,补偿焦点蒸馏中丢失的全局上下文信息。
- 设计一种即插即用的蒸馏框架,兼容多种检测器架构,包括两阶段、基于锚点和无锚点模型。
提出的方法
- 通过解耦特征图中的前景与背景区域,应用基于注意力的加权策略,优先关注关键像素与通道,实现焦点蒸馏。
- 利用教师网络的空间与通道注意力掩码,引导学生网络聚焦于高重要性特征。
- 引入基于GcBlock的全局蒸馏,以重建并传递教师网络中特征间的长程空间依赖关系。
- 将焦点与全局蒸馏损失仅基于特征图计算,从而实现与多种检测器架构的兼容性。
- 使用温度缩放超参数T来锐化特征图中的注意力分布,增强对显著区域的关注。
- 通过结合蒸馏损失与标准检测目标联合训练学生检测器,无需修改网络架构。
实验结果
研究问题
- RQ1为何标准知识蒸馏方法在目标检测中难以显著提升性能?
- RQ2前景与背景特征之间的不平衡如何影响目标检测中的知识蒸馏?
- RQ3教师与学生网络在空间与通道维度上的注意力差异在蒸馏效果中起到何种作用?
- RQ4将蒸馏分离为前景与背景区域是否优于统一蒸馏?
- RQ5保留全局特征关系在多大程度上能提升学生检测器在目标检测中的性能?
主要发现
- 仅使用焦点蒸馏即可在COCO2017上将mAP提升最高达3.3%,其中使用FGD训练的RetinaNet-ResNet50达到40.7%的mAP。
- 使用GcBlock的全局蒸馏在ResNeXt101的Faster R-CNN上使mAP提升3.1%,表明全局上下文信息在蒸馏中的重要性。
- 空间与通道注意力掩码的结合使mAP相比基线提升2.6,其中空间掩码贡献了最大的改进。
- 该方法对超参数T具有鲁棒性,不同T值下性能仅下降0.4 mAP,表明其对参数敏感度低。
- 从背景蒸馏可减少误报,从前景蒸馏可减少漏检,表明二者具有互补作用。
- FGD在多种检测器上均达到SOTA性能,包括单阶段、两阶段及无锚点模型,且无需修改网络架构。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。