[Paper Review] Detection Transformer with Stable Matching
This paper addresses the unstable matching problem in DETR-like object detectors caused by multiple conflicting optimization paths during training. By enforcing only positional metrics (e.g., IoU) to supervise classification scores of positive predictions, the authors propose a position-supervised loss and position-modulated cost, achieving state-of-the-art AP of 50.4 and 51.5 on COCO with ResNet-50 under 1× and 2× schedules, and 63.8 AP with Swin-Large.
This paper is concerned with the matching stability problem across different decoder layers in DEtection TRansformers (DETR). We point out that the unstable matching in DETR is caused by a multi-optimization path problem, which is highlighted by the one-to-one matching design in DETR. To address this problem, we show that the most important design is to use and only use positional metrics (like IOU) to supervise classification scores of positive examples. Under the principle, we propose two simple yet effective modifications by integrating positional metrics to DETR's classification loss and matching cost, named position-supervised loss and position-modulated cost. We verify our methods on several DETR variants. Our methods show consistent improvements over baselines. By integrating our methods with DINO, we achieve 50.4 and 51.5 AP on the COCO detection benchmark using ResNet-50 backbones under 12 epochs and 24 epochs training settings, achieving a new record under the same setting. We achieve 63.8 AP on COCO detection test-dev with a Swin-Large backbone. Our code will be made available at https://github.com/IDEA-Research/Stable-DINO.
Motivation & Objective
- To identify and resolve the unstable matching problem across decoder layers in DETR-like models.
- To analyze the root cause of instability as the multi-optimization path problem due to one-to-one Hungarian matching.
- To propose a principled solution that ensures consistent optimization targets by relying solely on positional metrics (e.g., IoU) for classification supervision.
- To improve training stability and performance in DETR variants without modifying backbone or architecture significantly.
- To validate the method across multiple DETR variants and achieve new SOTA results on COCO.
Proposed method
- Introduce a position-supervised loss that uses only IoU scores to supervise classification scores of positive predictions, eliminating conflicting optimization paths.
- Design a position-modulated cost that reweights matching cost based on IoU, favoring high-overlap predictions during bipartite matching.
- Apply the principle that only positional metrics should guide classification optimization, ensuring a single, stable optimization path per ground truth.
- Integrate the new loss and cost into existing DETR variants like DINO, with minimal architectural changes.
- Use dense memory fusion to enhance feature interaction between encoder and backbone features.
- Train models end-to-end with standard training schedules, evaluating on COCO detection benchmarks.
Experimental results
Research questions
- RQ1What causes unstable matching across decoder layers in DETR-like models?
- RQ2Why does the one-to-one matching strategy in DETR lead to conflicting optimization paths?
- RQ3Can enforcing supervision via positional metrics alone stabilize the training process and improve performance?
- RQ4How does the proposed method compare to existing loss designs like Focal Loss or task-aligned loss in DETR settings?
- RQ5To what extent can the method improve performance across different backbone architectures and training schedules?
Key findings
- The proposed position-supervised loss and position-modulated cost achieve 50.4 AP on COCO with ResNet-50 under 1× training (12 epochs), setting a new SOTA.
- The method achieves 51.5 AP on COCO with ResNet-50 under 2× training (24 epochs), also a new SOTA under the same setting.
- With a Swin-Large backbone, the method reaches 63.8 AP on COCO test-dev, demonstrating strong generalization.
- Ablation studies confirm that using only IoU for classification supervision stabilizes training and improves performance, while alternative loss designs degrade results.
- The method is effective across multiple DETR variants and introduces minimal computational overhead.
- The dense memory fusion component further enhances feature representation, contributing to performance gains.
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.