Abstract
Detection Transformers (DETR) have revolutionized object detection by introducing end-to-one matching via bipartite matching. However, this approach often suffers from "unstable matching," where the model flip-flops between different candidate predictions for the same ground truth object during training. This paper introduces Stable-DINO, which addresses this identity crisis by ensuring a consistent, single optimization path. By supervising classification scores with positional metrics and modulating matching costs, Stable-DINO achieves a new state-of-the-art of 63.8 AP on the COCO benchmark.
Introduction: The Identity Crisis in DETR
Since the inception of DETR, the field has gravitated toward "end-to-one" matching, utilizing the Hungarian algorithm to assign a unique prediction to each ground truth object. While conceptually elegant, this design introduces significant training instability.
Consider two candidate boxes for a single object: Box A features precise boundaries but low confidence, while Box B has poor localization but high confidence. During early training phases, the Hungarian matcher may oscillate between these candidates across different decoder layers or training iterations. This "multi-optimization path problem" sends conflicting signals to the model, hindering convergence and capping final accuracy.
Proposed Methodology: Stable Matching
The authors propose a "Stable Matching" strategy predicated on the principle that positional metrics should serve as the primary guide for classification supervision. This strategy comprises three main components:
- Position-Supervised Loss (PSL): Instead of binary (0/1) classification targets, PSL employs a positional metric, such as Intersection over Union (IoU), to supervise the classification head. This ensures that high confidence scores are reserved exclusively for spatially accurate predictions.
- Position-Modulated Cost (PMC): The Hungarian matching cost is augmented with a modulated positional metric. This effectively down-weights predictions with poor spatial accuracy during matching, further stabilizing query assignments.
- Dense Memory Fusion: To improve decoder initialization, the authors fuse features from the backbone and multiple encoder layers. This "Dense Fusion" provides a multi-scale representation that accelerates early-stage convergence.
Experimental Results
The proposed methods were rigorously evaluated on the COCO 2017 benchmark. Stable-DINO demonstrates significant performance improvements over existing DETR variants.
Key Performance Metrics:
- ResNet-50 Backbone: Stable-DINO achieved 50.4 AP in a standard 12-epoch (1x) schedule and 51.5 AP in 24 epochs, establishing new benchmarks for these settings.
- State-of-the-Art (SOTA): Utilizing a Swin-Large backbone and Objects365 pre-training, the model reached 63.8 AP on COCO
test-dev, surpassing previous leaders like GLIP and the original DINO. - Versatility: The stable matching components also enhanced other architectures, including Deformable-DETR and DAB-DETR, and improved instance segmentation in MaskDINO.
Discussion and Insights
A critical insight from this work is the "Only Positional" rule: classification scores should be supervised solely by positional metrics. Incorporating classification-related data into the supervision target was found to re-introduce instability. Furthermore, the paper introduces an "unstable score" to quantify matching changes between layers, demonstrating that Stable-DINO significantly enhances model decisiveness.
Conclusion and Future Work
Stable-DINO effectively bridges the gap between DETR-style models and traditional detectors by leveraging positional information to stabilize training. While highly successful in 2D object detection and instance segmentation, future research could explore its application in 3D detection for autonomous driving and further refine localization components for additional performance gains.
Summary updated