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

DN-DETR:通过引入查询DeNoising加速DETR培训

DN-DETR: Accelerate DETR Training by Introducing Query DeNoising

The Hong Kong University of Science and Technology(香港科技大学);Tsinghua University(清华大学);The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州));IDEA(IDEA研究院)

Feng Li, Hao Zhang, Shilong Liu, Jian Guo, Lionel M. Ni, Lei Zhang

摘要:

本文提出了一种新的去噪训练方法,以加速DETR(检测Transformer)的训练,并提供了一个深入的理解DETR类方法的收敛速度慢的问题。我们发现,收敛速度慢的结果从二分图匹配的不稳定性,导致不一致的优化目标在早期训练阶段。为了解决这个问题,除了匈牙利损失,我们的方法还将带有噪声的地面实况边界框输入Transformer解码器,并训练模型重建原始框,这有效地降低了二分图匹配的难度,并导致更快的收敛。我们的方法是通用的,可以很容易地插入到任何类似DETR的方法,通过添加几十行代码,以实现显着的改进。因此,我们的DN-DETR在相同的设置下导致显著的改进($+1.9$ AP),并且在具有ResNet- $50$主干的类似DETR的方法中实现了最佳结果(分别具有$12$和$50$训练时期的AP $43.4$和$48.6$)。与相同设置下的基线相比,DN-DETR在$50\%$训练历元下实现了相当的性能。代码可从\url{https://github.com/FengLi-ust/DN-DETR}获得。

英文摘要:

We present in this paper a novel denoising training method to speedup DETR (DEtection TRansformer) training and offer a deepened understanding of the slow convergence issue of DETR-like methods. We show that the slow convergence results from the instability of bipartite graph matching which causes inconsistent optimization goals in early training stages. To address this issue, except for the Hungarian loss, our method additionally feeds ground-truth bounding boxes with noises into Transformer decoder and trains the model to reconstruct the original boxes, which effectively reduces the bipartite graph matching difficulty and leads to a faster convergence. Our method is universal and can be easily plugged into any DETR-like methods by adding dozens of lines of code to achieve a remarkable improvement. As a result, our DN-DETR results in a remarkable improvement ($+1.9$AP) under the same setting and achieves the best result (AP $43.4$ and $48.6$ with $12$ and $50$ epochs of training respectively) among DETR-like methods with ResNet-$50$ backbone. Compared with the baseline under the same setting, DN-DETR achieves comparable performance with $50\%$ training epochs. Code is available at \url{https://github.com/FengLi-ust/DN-DETR}.

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

↑