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

D $^3$ ETR:用于检测Transformer的解码器蒸馏

D$^3$ETR: Decoder Distillation for Detection Transformer

Peking University(北京大学);Beihang University(北京航空航天大学);Microsoft Research Asia(微软亚洲研究院)

Xiaokang Chen, Jiahui Chen, Yan Liu, Gang Zeng

摘要:

虽然基于CNN的检测器中的各种知识蒸馏(KD)方法在提高小学生方面表现出了有效性,但基于DETR的检测器的基线和配方尚未建立。本文主要研究基于DETR的检测器中的Transformer解码器,并探讨其KD方法。Transformer解码器的输出是随机的,这使得教师和学生的预测之间没有直接的对应关系,从而对知识蒸馏提出了挑战。为此,我们提出了MixMatcher来对齐基于DETR的教师和学生的解码器输出,它混合了两种教师-学生匹配策略,即,自适应匹配和固定匹配。具体地,自适应匹配应用二分匹配以自适应地匹配每个解码器层中的教师和学生的输出,而固定匹配固定具有相同对象查询的教师和学生的输出之间的对应关系,其中教师的固定对象查询作为辅助组被馈送到学生的解码器。在MixMatcher的基础上,我们构建了\textbf{D}编码器\textbf{D} istilation for \textbf{DE} tection \textbf{TR} ansformer(D $^3$ ETR),它将解码器预测和注意力地图中的知识从教师那里提取出来,传递给学生。D $^3$ ETR在具有不同主链的各种基于DETR的检测器上显示出优异的性能。例如,D $^3$ ETR在$12/50$ epoch训练设置下通过$\textbf{7.8}/\textbf{2.4}$ mAP改进条件DETR-R50-C5,条件DETR-R101-C5作为老师。

英文摘要:

While various knowledge distillation (KD) methods in CNN-based detectors show their effectiveness in improving small students, the baselines and recipes for DETR-based detectors are yet to be built. In this paper, we focus on the transformer decoder of DETR-based detectors and explore KD methods for them. The outputs of the transformer decoder lie in random order, which gives no direct correspondence between the predictions of the teacher and the student, thus posing a challenge for knowledge distillation. To this end, we propose MixMatcher to align the decoder outputs of DETR-based teachers and students, which mixes two teacher-student matching strategies, i.e., Adaptive Matching and Fixed Matching. Specifically, Adaptive Matching applies bipartite matching to adaptively match the outputs of the teacher and the student in each decoder layer, while Fixed Matching fixes the correspondence between the outputs of the teacher and the student with the same object queries, with the teacher's fixed object queries fed to the decoder of the student as an auxiliary group. Based on MixMatcher, we build \textbf{D}ecoder \textbf{D}istillation for \textbf{DE}tection \textbf{TR}ansformer (D$^3$ETR), which distills knowledge in decoder predictions and attention maps from the teachers to students. D$^3$ETR shows superior performance on various DETR-based detectors with different backbones. For example, D$^3$ETR improves Conditional DETR-R50-C5 by $\textbf{7.8}/\textbf{2.4}$ mAP under $12/50$ epochs training settings with Conditional DETR-R101-C5 as the teacher.

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

↑