SOTAVerified

Relation DETR: Exploring Explicit Position Relation Prior for Object Detection

2024-07-16Code Available3· sign in to hype

Xiuquan Hou, Meiqin Liu, Senlin Zhang, Ping Wei, Badong Chen, Xuguang Lan

Code Available — Be the first to reproduce this paper.

Reproduce

Code

Abstract

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.

Tasks

Benchmark Results

DatasetModelMetricClaimedVerifiedStatus
COCO 2017 valRelation-DETR (Swin-L 2x)AP58.1Unverified
COCO 2017 valRelation-DETR (Swin-L 1x)AP57.8Unverified
COCO 2017 valRelation-DETR (ResNet50 2x)AP52.1Unverified
COCO 2017 valRelation-DETR (ResNet50 1x)AP51.7Unverified
COCO test-devRelation-DETR (Focal-L)box mAP63.5Unverified
SA-Det-100kRelation-DETR (ResNet50 1x)AP45Unverified

Reproductions