Skip to main content
QUICK REVIEW

[Paper Review] Rank-DETR for High Quality Object Detection

Yifan Pu, Weicong Liang|arXiv (Cornell University)|Oct 13, 2023
Advanced Neural Network ApplicationsComputer Science25 citations
TL;DR

Rank-DETR introduces rank-oriented architecture, loss, and matching cost for DETR-based detectors to improve high-IoU accuracy, achieving better AP and AP75 on COCO across backbones compared to recent methods.

ABSTRACT

Modern detection transformers (DETRs) use a set of object queries to predict a list of bounding boxes, sort them by their classification confidence scores, and select the top-ranked predictions as the final detection results for the given input image. A highly performant object detector requires accurate ranking for the bounding box predictions. For DETR-based detectors, the top-ranked bounding boxes suffer from less accurate localization quality due to the misalignment between classification scores and localization accuracy, thus impeding the construction of high-quality detectors. In this work, we introduce a simple and highly performant DETR-based object detector by proposing a series of rank-oriented designs, combinedly called Rank-DETR. Our key contributions include: (i) a rank-oriented architecture design that can prompt positive predictions and suppress the negative ones to ensure lower false positive rates, as well as (ii) a rank-oriented loss function and matching cost design that prioritizes predictions of more accurate localization accuracy during ranking to boost the AP under high IoU thresholds. We apply our method to improve the recent SOTA methods (e.g., H-DETR and DINO-DETR) and report strong COCO object detection results when using different backbones such as ResNet-$50$, Swin-T, and Swin-L, demonstrating the effectiveness of our approach. Code is available at \url{https://github.com/LeapLabTHU/Rank-DETR}.

Motivation & Objective

  • Motivate improving DETR-based detectors to achieve higher localization quality at high IoU thresholds.
  • Develop rank-aware components that promote true positives and suppress false positives/negatives during training and inference.
  • Design a rank-adaptive classification head and a query rank layer to utilize ranking information throughout decoding.
  • Introduce a GIoU-aware classification loss and a high-order matching cost to strengthen ranking by localization accuracy.
  • Demonstrate cross-backbone gains and compatibility with state-of-the-art DETR-based models (e.g., H-DETR, DINO-DETR).

Proposed method

  • Propose a rank-adaptive classification head that adds learnable logit bias vectors to classification scores after each decoder layer.
  • Add a query rank layer before the last L-1 Transformer decoder layers to regenerate rank-aware content and positional queries.
  • Introduce rank-aware content queries and rank-aware positional queries via a fusion mechanism and sorted inputs according to current ranking.
  • Use a GIoU-aware classification loss to supervise classification predictions with normalized GIoU targets.
  • Adopt high-order matching cost by emphasizing predictions with higher IoU (IoU^alpha) in Hungarian matching to prioritize precise localization.
  • Showcase compatibility and improvements on H-DETR and DINO-DETR across backbones like ResNet-50, Swin-T, and Swin-L.
  • Provide code at https://github.com/LeapLabTHU/Rank-DETR.

Experimental results

Research questions

  • RQ1How can ranking information be integrated throughout DETR-style decoding to improve high-IoU bounding box quality?
  • RQ2What architectural and optimization changes best align classification scores with localization accuracy in DETR-based detectors?
  • RQ3Do rank-oriented components generalize across different DETR variants (e.g., H-DETR, DINO-DETR) and backbones?
  • RQ4What is the impact of rank-aware losses and high-order matching costs on AP at IoU thresholds above 0.75?
  • RQ5Can rank-aware designs reduce false positives and false negatives in DETR-based detectors?

Key findings

  • Rank-DETR improves AP over strong DETR-based baselines (e.g., H-DETR) across backbones and epochs.
  • On COCO val with R50 backbone and 12 epochs, Rank-DETR achieves AP 50.2, AP 75 55.0, and AP 64.0 across listed metrics.
  • Rank-DETR yields notable gains at AP75 (e.g., +2.1% to +2.7% over baselines, depending on backbone).
  • The method shows competitive AP with shorter training schedules (e.g., 50.2 AP with 12 epochs on R50).
  • Ablation studies indicate cumulative gains when adding rank-oriented architecture and loss components, with the full set providing the best results.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.