NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Oriented Object Detection with Transformer

Teli Ma, Mingyuan Mao, Honghui Zheng, Peng Gao, Xiaodi Wang, Shumin Han, Errui Ding, Baochang Zhang, David S. DoermannarXiv 2021

TL;DR

This paper introduces O²DETR, the first end-to-end Transformer-based model for oriented object detection. It achieves competitive results by replacing the computationally expensive self-attention in the encoder with efficient depthwise separable convolutions and by proposing a novel fine-tuning strategy that leverages O²DETR's high recall for improved performance.

What Problem Does This Paper Address?

Detecting objects that are not aligned with the standard horizontal bounding boxes, known as oriented object detection, is crucial for applications like scene text recognition and aerial imagery analysis. Traditional methods often rely on complex anchor-based systems with rotated anchors, which involve tedious regression and post-processing steps like Non-Maximum Suppression (NMS). These methods can be suboptimal and computationally expensive. While Transformers have shown great promise in standard object detection (DETR), their application to the more challenging arbitrary-oriented object detection problem remained largely unexplored. This paper aims to bridge this gap by developing an end-to-end Transformer-based approach for oriented object detection.

Methods

The core of the proposed method, O²DETR, is an end-to-end Transformer architecture adapted for oriented object detection. Key innovations include:

  • Direct Oriented Object Localization: Unlike traditional methods that use rotated anchors, O²DETR directly predicts oriented bounding boxes using object queries. These queries are enhanced with an angle dimension to interact with visual features and extract angle-specific information.
  • Efficient Transformer Encoder: To address the computational complexity of Transformers with multi-scale features, the authors replace the self-attention mechanism in the encoder with depthwise separable convolutions. This significantly reduces memory and computational costs while maintaining strong contextual aggregation.
  • Angle-Aware Object Queries: The object queries are designed to be "angle-aware," meaning they are augmented with an angle dimension. This allows them to directly estimate the orientation of objects, moving away from indirect anchor-based rotation prediction.
  • Fine-tuning Strategy: The paper proposes a simple yet effective fine-tuning approach. O²DETR is first trained as an end-to-end detector. Then, its high-recall bounding box predictions are used as region proposals, and a lightweight prediction head is fine-tuned on these proposals to further refine the bounding boxes and confidence scores. This strategy avoids the need for NMS during the proposal generation phase.

Datasets

The primary dataset used for training and evaluation is DOTA (Dataset for Object Detection in Aerial Images). DOTA is a benchmark dataset for oriented object detection, containing aerial images with various object categories exhibiting different scales, orientations, and shapes. The authors also mention using ImageNet pre-trained ResNet-50 as a backbone.

Key Insights and Ideas

  • Transformers are well-suited for direct oriented object detection: The paper demonstrates that Transformers can be adapted to directly predict oriented bounding boxes without relying on complex anchor mechanisms.
  • Depthwise separable convolutions are a viable and efficient alternative to self-attention for encoders: Replacing self-attention with depthwise separable convolutions in the encoder significantly reduces computational burden and memory usage, making the model more scalable for multi-scale feature processing. This suggests that local feature aggregation can be sufficient for oriented object detection.
  • High recall from an end-to-end detector can be leveraged for fine-tuning: The proposed fine-tuning strategy highlights that a well-performing end-to-end oriented object detector can serve as an excellent region proposal generator, leading to significant performance gains with minimal additional training.

Key Results

  • O²DETR achieves up to 3.85 mAP improvement over Faster R-CNN and RetinaNet on the DOTA dataset.
  • The O²DETR with depthwise separable convolution encoder outperforms the version with self-attention, indicating the effectiveness of the proposed encoder design. For example, O²DETR-DSConv with ResNet-101 achieves 67.66 mAP, while O²DETR-Attn with ResNet-101 achieves 66.45 mAP.
  • The fine-tuned O²DETR (F-O²DETR) achieves state-of-the-art performance on the DOTA dataset, reaching 79.66% mAP with a ResNet-50 backbone.
  • The fine-tuning strategy significantly boosts performance with only a few additional epochs (e.g., 12 epochs). F-O²DETR with ResNet-101 achieves 76.23 mAP, a substantial increase from O²DETR's 67.66 mAP.
  • The paper demonstrates that O²DETR has a higher recall rate compared to the RPN of Faster R-CNN, indicating its ability to cover more positive proposals.

Limitations and Future Work

  • Limitations: The paper acknowledges that while O²DETR is end-to-end, the fine-tuning step still relies on a cascaded architecture. The authors also note that their model is compared against anchor-based baselines, and further comparisons with other Transformer-based oriented object detectors would be valuable.
  • Future Work: The authors suggest that O²DETR opens up possibilities for further improvements in oriented object detection accuracy. They also express interest in exploring more applications to verify the method's performance and adaptability.

Summary updated

BibTeX
@misc{ma2021oriented,
  author = {Teli Ma and Mingyuan Mao and Honghui Zheng and Peng Gao and Xiaodi Wang and Shumin Han and Errui Ding and Baochang Zhang and David S. Doermann},
  title = {{Oriented Object Detection with Transformer}},
  year = {2021},
  eprint = {2106.03146},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.03146},
}
Figure