arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2006.13108cs.CV
收藏

用任务自适应正则化提取目标检测器

Distilling Object Detectors with Task Adaptive Regularization

Shanghai Jiaotong University(上海交通大学);Huawei Noah’s Ark Lab(华为诺亚方舟实验室)

Ruoyu Sun, Fuhui Tang, Xiaopeng Zhang, Hongkai Xiong, Qi Tian

摘要:

目前最先进的目标检测器以高计算成本为代价,并且难以部署到低端设备。知识蒸馏,其目的是训练一个更小的学生网络,从一个较大的教师模型转移知识,是一个有前途的解决方案模型小型化。在本文中,我们深入研究了一个典型的检测器的每个模块,并提出了一个通用的蒸馏框架,自适应地转移知识从教师到学生根据任务特定的先验。直觉是,简单地从教师到学生提取所有信息是不可取的,相反,我们应该只从学生表现不好的教师模型中借用先验。为了实现这一目标,我们提出了一个区域建议共享机制,交流区域之间的教师和学生模型的反应。在此基础上,我们自适应地转移知识的三个层次,\emph{i.e.},特征骨干,分类头,和限界框回归头,根据模型的性能更合理。此外,考虑到同时最小化蒸馏损失和检测损失会引入优化困境,我们提出了一种蒸馏衰减策略,通过逐步减少蒸馏损失来提高模型的泛化能力。广泛使用的检测基准上的实验证明了我们的方法的有效性。特别是,使用FPN作为实例的Faster R-CNN,我们在COCO数据集上使用Resnet-50实现了$39.0\%$的准确性,超过了基线$36.3\%$的$2.7\%$点,甚至比使用$38.5\%$ mAP的教师模型更好。

英文摘要:

Current state-of-the-art object detectors are at the expense of high computational costs and are hard to deploy to low-end devices. Knowledge distillation, which aims at training a smaller student network by transferring knowledge from a larger teacher model, is one of the promising solutions for model miniaturization. In this paper, we investigate each module of a typical detector in depth, and propose a general distillation framework that adaptively transfers knowledge from teacher to student according to the task specific priors. The intuition is that simply distilling all information from teacher to student is not advisable, instead we should only borrow priors from the teacher model where the student cannot perform well. Towards this goal, we propose a region proposal sharing mechanism to interflow region responses between the teacher and student models. Based on this, we adaptively transfer knowledge at three levels, \emph{i.e.}, feature backbone, classification head, and bounding box regression head, according to which model performs more reasonably. Furthermore, considering that it would introduce optimization dilemma when minimizing distillation loss and detection loss simultaneously, we propose a distillation decay strategy to help improve model generalization via gradually reducing the distillation penalty. Experiments on widely used detection benchmarks demonstrate the effectiveness of our method. In particular, using Faster R-CNN with FPN as an instantiation, we achieve an accuracy of $39.0\%$ with Resnet-50 on COCO dataset, which surpasses the baseline $36.3\%$ by $2.7\%$ points, and even better than the teacher model with $38.5\%$ mAP.

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

↑