[论文解读] DEIM: DETR with Improved Matching for Fast Convergence
DEIM 通过 Dense O2O 匹配和一个 Matchability-Aware Loss 加速基于 DETR 的实时目标检测,在 COCO 上实现更快收敛和更高 AP,包括在 4090 GPU 上一天内达到 53.2% 的 AP。
We introduce DEIM, an innovative and efficient training framework designed to accelerate convergence in real-time object detection with Transformer-based architectures (DETR). To mitigate the sparse supervision inherent in one-to-one (O2O) matching in DETR models, DEIM employs a Dense O2O matching strategy. This approach increases the number of positive samples per image by incorporating additional targets, using standard data augmentation techniques. While Dense O2O matching speeds up convergence, it also introduces numerous low-quality matches that could affect performance. To address this, we propose the Matchability-Aware Loss (MAL), a novel loss function that optimizes matches across various quality levels, enhancing the effectiveness of Dense O2O. Extensive experiments on the COCO dataset validate the efficacy of DEIM. When integrated with RT-DETR and D-FINE, it consistently boosts performance while reducing training time by 50%. Notably, paired with RT-DETRv2, DEIM achieves 53.2% AP in a single day of training on an NVIDIA 4090 GPU. Additionally, DEIM-trained real-time models outperform leading real-time object detectors, with DEIM-D-FINE-L and DEIM-D-FINE-X achieving 54.7% and 56.5% AP at 124 and 78 FPS on an NVIDIA T4 GPU, respectively, without the need for additional data. We believe DEIM sets a new baseline for advancements in real-time object detection. Our code and pre-trained models are available at https://github.com/ShihuaHuang95/DEIM.
研究动机与目标
- 解决由于稀疏的一对一监督导致的 DETR 收敛缓慢。
- 通过 Dense O2O 匹配在每张图像中增加监督而不使用额外解码器。
- 通过新的损失函数(MAL)改进对低质量匹配的处理。
- 在 COCO 上展示 RT-DETR 和 D-FINE 变体的训练效率和准确率提升。
- 展示实时检测的改进,在速度和准确性方面超越领先检测器。
提出的方法
- 引入 Dense O2O 以在保持一对一匹配的同时增加每张图像中的目标数量。
- 应用马赛克和 mixup 增强来为每张图像生成额外的正样本。
- 提出 Matchability-Aware Loss (MAL),在不同质量水平上优化匹配并强调低质量匹配。
- 将 MAL 与 Varifocal Loss (VFL) 进行对比,展示提升的损失动态以提高训练效率。
- 在 COCO 上使用 RT-DETRv2 和 D-FINE 评估 DEIM,并报告训练成本的降低和 AP 的提升。
实验结果
研究问题
- RQ1Dense O2O 如何影响基于 DETR 的训练中正样本的数量与质量?
- RQ2与 VFL 相比,MAL 是否为低质量匹配提供更好的优化?这对整体性能有何影响?
- RQ3在 COCO 上将 DEIM 与 RT-DETRv2 和 D-FINE 集成时,训练效率和准确性提升是多少?
- RQ4DEIM 是否能够使实时 DETR 模型在 AP 和延迟方面超越现有的实时检测器?
主要发现
- DEIM 加速收敛并提高 AP,同时降低训练成本,使用一半的训练轮次就超越 RT-DETRv2 和 D-FINE。
- 与 RT-DETRv2 搭配时,DEIM 在约一天内在 NVIDIA 4090 GPU 上达到 53.2% mAP。
- DEIM 训练的 D-FINE-L 和 D-FINE-X 在 NVIDIA T4 上分别达到 54.7% 和 56.5% 的 AP,帧率为 124 FPS 和 78 FPS,且不需要额外数据。
- 与 YOLOv11 相比,DEIM-RT-DETRv2 变体在 AP(55.2–55.5%,取决于设置)上更高,且延迟具有竞争力或更好。
- Dense O2O 在每张图像中显著增加正样本数量,使学习更快,同时不增加解码器。
- MAL 为低质量匹配提供更强的引导,提升训练效率并保持高质量预测。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。