Skip to main content
QUICK REVIEW

[论文解读] DN-DETR: Accelerate DETR Training by Introducing Query DeNoising

Feng Li, Hao Zhang|arXiv (Cornell University)|Mar 2, 2022
Network Packet Processing and OptimizationComputer Science被引用 54
一句话总结

DN-DETR 引入了一项去噪任务,使用带噪的 ground-truth boxes 作为辅助解码输入,以稳定二分匹配并加速 DETR 风格模型训练,实现更快收敛和更高精度。它可以以最少的代码改动插入到现有的 DETR 变体中。

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$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}.

研究动机与目标

  • 理解为何由于二分图匹配不稳定导致 DETR 模型收敛缓慢。
  • 提出使用带噪的 GT 框作为辅助训练任务以稳定优化。
  • 证明去噪在各种 DETR 变体及相关模型中加速收敛。
  • 提供消融分析以研究噪声、标签嵌入和注意力掩码的影响。

提出的方法

  • 引入一个去噪训练分支,该分支将带噪的 GT 框与标签作为额外的解码输入输入。
  • 将解码器查询表述为两部分:去噪(带噪 GT)部分和传统匹配(可学习锚点)部分。
  • 使用多个去噪组并配合注意力掩码,以防止组之间以及去噪与匹配部分之间的信息泄漏。
  • 在去噪分支中应用重构损失(boxes 的 l1 和 GIoU;标签的 focal loss),与标准的 Hungarian 损失一起使用。
  • 将解码器嵌入表示为带有区分去噪与匹配任务的指示符的标签嵌入。
  • 可选地将去噪扩展到 Deformable DETR、Faster R-CNN 和 Mask2Former 以展示通用性。

实验结果

研究问题

  • RQ1去噪辅助任务是否能在 DETR 的不稳定二分匹配中稳定化并加速训练?
  • RQ2将带噪 GT 框(及标签)作为去噪查询加入对收敛速度和最终精度有何影响?
  • RQ3去噪训练是否可跨越不同的 DETR 风格架构甚至传统的 CNN 检 detector?
  • RQ4噪声类型、标签嵌入和注意力掩码对性能的贡献是什么?
  • RQ5在保持或提升性能的前提下,训练 epoch 能缩短到多少?

主要发现

  • 在训练过程中,DN-DETR 减少了 Hungarian 匹配的不稳定性。
  • 去噪任务带来更快的收敛和改进的 AP(在 12-epoch 设置中尤为显著)。
  • 使用多个带噪 GT 组及注意力掩码可以保持训练稳定性,并在 DETR 变体甚至非 DETR 检测器中实现增益。
  • 将 DN-DETR 应用于 DAB-DETR、Deformable DETR、Anchor DETR、Vanilla DETR、Faster R-CNN 和 Mask2Former 时显示出改进,表明应用广泛性。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。