AO2-DETR: Arbitrary-Oriented Object Detection Transformer

Linhui Dai, Hong Liu, Hao Tang, Zhiwei Wu, Pinhao Song

TL;DR

AO2-DETR is the first transformer-based framework designed specifically for arbitrary-oriented object detection (AOOD) that eliminates the need for hand-designed anchors and NMS. By introducing oriented proposal generation and adaptive feature refinement, it achieves state-of-the-art performance on challenging aerial and retail datasets while maintaining a clean, end-to-end pipeline.

What Problem Does This Paper Address?

Detecting objects in the wild often requires more than just horizontal bounding boxes. In fields like satellite imagery (aerial images) or retail monitoring, objects like ships, planes, or products on shelves appear at arbitrary angles and are often densely packed. This is known as Arbitrary-Oriented Object Detection (AOOD).

Traditional AOOD methods rely heavily on "inductive biases"—human-designed rules like preset anchors (boxes of specific sizes and angles) and Non-Maximum Suppression (NMS) to remove duplicate predictions. These components are difficult to tune and often lead to redundant computation.

While the DETR (DEtection TRansformer) architecture revolutionized generic detection by treating it as a "set prediction" problem (eliminating NMS), simply adding an angle parameter to DETR fails. This is due to two main issues:

  1. Misalignment: Standard transformer queries are horizontal, leading to a mismatch between extracted features and rotated objects.
  2. Cluttered Features: In dense scenes, horizontal receptive fields pick up too much background or neighboring object noise.

Methods

The authors propose AO2-DETR, which adapts the Deformable DETR architecture with three novel components:

  • Oriented Proposal Generation (OPG): Instead of using generic or horizontal object queries, the model predicts initial oriented proposals directly from the encoder's memory. This provides the decoder with high-quality "positional priors" that include center, size, and orientation.
  • Adaptive Oriented Proposal Refinement (OPR): To solve the misalignment problem, this module uses a three-way convolutional layer (1x1, 5x1, and 7x1) to capture a larger, more flexible receptive field. It then uses bilinear feature interpolation to "re-sample" features so they align perfectly with the rotated proposal area.
  • Rotation-aware Set Matching Loss: The authors modified the Hungarian matching algorithm (which DETR uses to pair predictions with ground truth) to include Rotated IoU (RIoU). This ensures the model learns to produce a single, accurate oriented box for every object without needing NMS.

Datasets

The model was evaluated on four major benchmarks:

  • DOTA-v1.0 & v1.5: The gold standard for oriented object detection in aerial images, featuring 15-16 categories like planes, bridges, and small vehicles.
  • SKU110K-R: A dataset of tightly packed retail items on supermarket shelves, where objects are extremely dense.
  • HRSC2016: A specialized dataset for ship detection, characterized by objects with very high aspect ratios.

Key Insights and Ideas

  • The Power of Priors: The most striking finding was the impact of the OPG module. In ablation studies, adding oriented proposals boosted mAP on DOTA from 41.86% to 71.30%. This suggests that for rotated objects, starting with a horizontal query is a significant handicap.
  • Feature Alignment is Non-Negotiable: Standard CNN backbones are axis-aligned. By explicitly re-sampling features to match the rotation of the proposal (via OPR), the model significantly reduces the "noise" from background and adjacent objects.
  • True End-to-End AOOD: By integrating RIoU into the matching cost, AO2-DETR becomes a "pure" transformer for oriented detection, proving that complex anchor-tuning and post-processing are no longer necessary for high performance.

Key Results

AO2-DETR achieved state-of-the-art (SOTA) results among single-stage and anchor-free methods:

  • DOTA-v1.0: Achieved 77.73% mAP (single-scale), outperforming established models like R3Det (76.47%) and CFA (75.05%).
  • SKU110K-R: Reached 58.0% AP, setting a new benchmark for dense retail detection.
  • HRSC2016: Achieved an impressive 97.47% mAP (using the VOC2012 metric), proving its effectiveness on long, thin objects like ships.

Limitations and Future Work

  • Training Convergence: Like most transformer-based detectors, AO2-DETR requires more training epochs to converge compared to traditional CNN-based detectors.
  • Computational Overhead: The use of multi-scale features and the refinement modules adds to the computational cost, though the authors note the FPS remains competitive (approx. 14-16 FPS on a high-end GPU).
  • Future Directions: The authors suggest exploring ways to speed up convergence and further improving the model's ability to handle extremely small or heavily occluded objects.

Summary updated

BibTeX
@article{dai2023ao,
  author = {Linhui Dai and Hong Liu and Hao Tang and Zhiwei Wu and Pinhao Song},
  title = {{AO2-DETR: Arbitrary-Oriented Object Detection Transformer}},
  journal = {IEEE Trans. Circuits Syst. Video Technol.},
  year = {2023},
  doi = {10.1109/tcsvt.2022.3222906},
}
Figure