[Paper Review] Relation DETR: Exploring Explicit Position Relation Prior for Object Detection
This paper proposes Relation-DETR, a novel DETR-based object detector that enhances convergence and performance by explicitly modeling position relations between object proposals using a learnable relation encoder. By introducing explicit spatial bias via a contrastive relation pipeline, it achieves state-of-the-art 51.7% AP on COCO with only 2 training epochs under 1× setting, significantly outperforming prior methods in convergence speed and accuracy.
This paper presents a general scheme for enhancing the convergence and performance of DETR (DEtection TRansformer). We investigate the slow convergence problem in transformers from a new perspective, suggesting that it arises from the self-attention that introduces no structural bias over inputs. To address this issue, we explore incorporating position relation prior as attention bias to augment object detection, following the verification of its statistical significance using a proposed quantitative macroscopic correlation (MC) metric. Our approach, termed Relation-DETR, introduces an encoder to construct position relation embeddings for progressive attention refinement, which further extends the traditional streaming pipeline of DETR into a contrastive relation pipeline to address the conflicts between non-duplicate predictions and positive supervision. Extensive experiments on both generic and task-specific datasets demonstrate the effectiveness of our approach. Under the same configurations, Relation-DETR achieves a significant improvement (+2.0% AP compared to DINO), state-of-the-art performance (51.7% AP for 1x and 52.1% AP for 2x settings), and a remarkably faster convergence speed (over 40% AP with only 2 training epochs) than existing DETR detectors on COCO val2017. Moreover, the proposed relation encoder serves as a universal plug-in-and-play component, bringing clear improvements for theoretically any DETR-like methods. Furthermore, we introduce a class-agnostic detection dataset, SA-Det-100k. The experimental results on the dataset illustrate that the proposed explicit position relation achieves a clear improvement of 1.3% AP, highlighting its potential towards universal object detection. The code and dataset are available at https://github.com/xiuqhou/Relation-DETR.
Motivation & Objective
- To address the slow convergence of DETR detectors by introducing structural bias into self-attention mechanisms.
- To investigate whether explicit position relation prior can reduce data dependency and improve training efficiency.
- To overcome the conflict between non-duplicate predictions and insufficient positive supervision in DETR frameworks.
- To develop a plug-and-play component that enhances any DETR-like detector through progressive attention refinement.
- To evaluate the generalization potential of position relation prior on diverse and universal detection benchmarks.
Proposed method
- Proposes a quantitative macroscopic correlation (MC) metric to verify the statistical significance of position relations in object detection.
- Introduces a position relation encoder that computes normalized relative geometry features between all pairwise bounding boxes for explicit spatial bias.
- Employs progressive attention refinement across decoder layers to enhance cross-layer information interaction using learned relation embeddings.
- Extends the standard DETR streaming pipeline into a contrastive relation pipeline that leverages both one-to-one and one-to-many matching for stronger supervision.
- Uses a contrastive learning strategy to emphasize the role of position relations in deduplication, reducing reliance on implicit attention learning.
- Designs a class-agnostic detection dataset, SA-Det-100k, to evaluate generalization across diverse and open-vocabulary scenarios.
Experimental results
Research questions
- RQ1Can explicit position relation prior significantly improve the convergence speed of DETR-based detectors?
- RQ2Does incorporating structural bias via learned position relations reduce data dependency and improve training efficiency?
- RQ3How does the proposed contrastive relation pipeline mitigate the conflict between non-duplicate predictions and positive supervision?
- RQ4Can the relation encoder serve as a universal plug-in-and-play component for enhancing any DETR-like architecture?
- RQ5Does the explicit position relation prior generalize to universal and open-vocabulary detection tasks?
Key findings
- Relation-DETR achieves 51.7% AP on COCO val2017 under 1× training setting, surpassing SOTA methods including DINO by +2.0% AP.
- It reaches over 40% AP on COCO with only 2 training epochs using ResNet-50, demonstrating a convergence speed improvement of over 40% compared to prior DETR detectors.
- The proposed relation encoder improves DINO by +1.3% AP on the SA-Det-100k dataset, confirming its scalability and generalization to universal detection tasks.
- Ablation studies confirm that the contrastive relation pipeline and progressive attention refinement are key to performance gains, especially in reducing negative supervision dominance.
- Visualization shows that the model learns meaningful spatial relations, with small objects forming more connections due to limited semantic cues.
- Failure case analysis indicates that the model benefits from modeling complex relations like occlusion and semantic ambiguity, suggesting room for further improvement in dense scenes.
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.