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

KD-DETR:基于一致蒸馏点采样的Detection Transformer知识蒸馏

KD-DETR: Knowledge Distillation for Detection Transformer with Consistent Distillation Points Sampling

Baidu VIS(百度视觉)

Yu Wang, Xin Li, Shengzhao Weng, Gang Zhang, Haixiao Yue, Haocheng Feng, Junyu Han, Errui Ding

AI总结:

本文提出KD-DETR,首个面向DETR的通用知识蒸馏范式,通过引入专用object queries构建一致蒸馏点并解耦检测与蒸馏任务,支持同构和异构蒸馏,使学生模型性能提升2.1%-5.2%。

摘要:

DETR是一种新颖的端到端transformer架构目标检测器,在规模扩大时显著优于经典检测器。本文专注于通过知识蒸馏压缩DETR。尽管知识蒸馏在经典检测器中已被充分研究,但缺乏如何使其在DETR上有效工作的研究。我们首先提供实验和理论分析,指出DETR蒸馏的主要挑战在于缺乏一致的蒸馏点。蒸馏点指供学生模型模仿的预测对应输入,其在CNN检测器和DETR中有不同表述,可靠蒸馏需要教师与学生间足够多且一致的蒸馏点。基于此观察,我们提出首个面向DETR的通用知识蒸馏范式(KD-DETR),采用一致蒸馏点采样,适用于同构和异构蒸馏。具体而言,我们通过引入一组专用object queries为DETR构建蒸馏点,解耦检测与蒸馏任务。我们进一步提出由通用到特定的蒸馏点采样策略,探索KD-DETR的可扩展性。大量实验验证了KD-DETR的有效性与泛化性。对于单尺度DAB-DETR及多尺度Deformable DETR和DINO,KD-DETR使学生模型性能提升2.6%-5.2%。我们进一步将KD-DETR扩展至异构蒸馏,通过将DINO知识蒸馏至Faster R-CNN with ResNet-50实现2.1%提升,与同构蒸馏方法相当。代码见https://github.com/wennyuhey/KD-DETR。

英文摘要:

DETR is a novel end-to-end transformer architecture object detector, which significantly outperforms classic detectors when scaling up. In this paper, we focus on the compression of DETR with knowledge distillation. While knowledge distillation has been well-studied in classic detectors, there is a lack of researches on how to make it work effectively on DETR. We first provide experimental and theoretical analysis to point out that the main challenge in DETR distillation is the lack of consistent distillation points. Distillation points refer to the corresponding inputs of the predictions for student to mimic, which have different formulations in CNN detector and DETR, and reliable distillation requires sufficient distillation points which are consistent between teacher and student. Based on this observation, we propose the first general knowledge distillation paradigm for DETR (KD-DETR) with consistent distillation points sampling, for both homogeneous and heterogeneous distillation. Specifically, we decouple detection and distillation tasks by introducing a set of specialized object queries to construct distillation points for DETR. We further propose a general-to-specific distillation points sampling strategy to explore the extensibility of KD-DETR. Extensive experiments validate the effectiveness and generalization of KD-DETR. For both single-scale DAB-DETR and multis-scale Deformable DETR and DINO, KD-DETR boost the performance of student model with improvements of $2.6\%-5.2\%$. We further extend KD-DETR to heterogeneous distillation, and achieves $2.1\%$ improvement by distilling the knowledge from DINO to Faster R-CNN with ResNet-50, which is comparable with homogeneous distillation methods.The code is available at https://github.com/wennyuhey/KD-DETR.

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

↑