English

DN-DETR: Accelerate DETR Training by Introducing Query DeNoising

Computer Vision and Pattern Recognition 2022-12-09 v3 Artificial Intelligence

Abstract

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+1.9AP) under the same setting and achieves the best result (AP 43.443.4 and 48.648.6 with 1212 and 5050 epochs of training respectively) among DETR-like methods with ResNet-5050 backbone. Compared with the baseline under the same setting, DN-DETR achieves comparable performance with 50%50\% training epochs. Code is available at \url{https://github.com/FengLi-ust/DN-DETR}.

Keywords

Cite

@article{arxiv.2203.01305,
  title  = {DN-DETR: Accelerate DETR Training by Introducing Query DeNoising},
  author = {Feng Li and Hao Zhang and Shilong Liu and Jian Guo and Lionel M. Ni and Lei Zhang},
  journal= {arXiv preprint arXiv:2203.01305},
  year   = {2022}
}

Comments

Extended version from CVPR 2022

R2 v1 2026-06-24T09:59:44.749Z