[Paper Review] DEIM: DETR with Improved Matching for Fast Convergence
DEIM speeds up DETR-based real-time object detection by Dense O2O matching and a Matchability-Aware Loss, achieving faster convergence and higher AP on COCO, including 53.2% AP in one day on a 4090 GPU.
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.
Motivation & Objective
- Address slow convergence in DETR due to sparse one-to-one supervision.
- Increase supervision per image without extra decoders by Dense O2O matching.
- Improve handling of low-quality matches with a new loss function (MAL).
- Demonstrate training efficiency and accuracy gains on COCO across RT-DETR and D-FINE variants.
- Show real-time detection improvements, outperforming leading detectors in speed and accuracy.
Proposed method
- Introduce Dense O2O to increase the number of targets per image while preserving one-to-one matching.
- Apply mosaic and mixup augmentations to generate additional positive samples per image.
- Propose Matchability-Aware Loss (MAL) to optimize matches across quality levels and emphasize low-quality matches.
- Compare MAL with Varifocal Loss (VFL) and demonstrate improved loss dynamics for training efficiency.
- Evaluate DEIM on COCO with RT-DETRv2 and D-FINE, and report training cost reductions and AP gains.
Experimental results
Research questions
- RQ1How does Dense O2O affect the quantity and quality of positive matches in DETR-based training?
- RQ2Does MAL provide better optimization for low-quality matches compared to VFL, and how does this impact overall performance?
- RQ3What are the training-efficiency and accuracy gains when integrating DEIM with RT-DETRv2 and D-FINE on COCO?
- RQ4Can DEIM enable real-time DETR models to surpass existing real-time detectors in AP and latency?
Key findings
- DEIM accelerates convergence and improves AP while reducing training cost, outperforming RT-DETRv2 and D-FINE with half the training epochs.
- When paired with RT-DETRv2, DEIM achieves 53.2% mAP in about one day on an NVIDIA 4090 GPU.
- DEIM-trained D-FINE-L and D-FINE-X reach 54.7% and 56.5% AP at 124 FPS and 78 FPS on NVIDIA T4, respectively, without extra data.
- Compared to YOLOv11, DEIM-RT-DETRv2 variants achieve higher AP (55.2–55.5% depending on setup) with competitive or better latency.
- Dense O2O substantially increases the number of positive samples per image, enabling faster learning without adding decoders.
- MAL provides stronger guidance for low-quality matches, improving training efficiency and maintaining high-quality predictions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.