Abstract
Oriented Object Detection (OOD) is critical for interpreting remote sensing imagery where objects like ships, planes, and vehicles are often tilted. Traditional end-to-end detectors struggle with feature misalignment and query redundancy in these contexts. We present RQFormer (Rotated Query Transformer), an efficient decoder architecture that introduces Rotated RoI (RRoI) Attention for precise feature alignment and Selective Distinct Queries (SDQ) to eliminate redundant predictions. RQFormer achieves state-of-the-art performance on major benchmarks like DOTA and DIOR-R while maintaining high computational efficiency.
Introduction
Oriented Object Detection (OOD) involves identifying objects and enclosing them in rotated bounding boxes. This task is particularly challenging in aerial and satellite imagery due to the arbitrary orientations and high density of objects. While Transformer-based detectors (DETR-like models) have simplified horizontal detection by removing the need for hand-crafted components like Non-Maximum Suppression (NMS), they face two significant hurdles in OOD:
- Feature Misalignment: Standard attention mechanisms typically sample features from axis-aligned or point-based regions, which fail to capture the geometric properties of long, tilted objects.
- Query Redundancy: The one-to-one label assignment in DETR models often results in multiple queries competing for the same object, leading to optimization difficulties and computational waste in dense scenes.
The RQFormer Architecture
RQFormer addresses these challenges through a specialized decoder design. The architecture integrates two primary innovations: Rotated RoI Attention and Selective Distinct Queries (SDQ).
Rotated RoI (RRoI) Attention
To solve the misalignment problem, RQFormer replaces standard cross-attention with Rotated RoI Attention. This module treats learnable oriented boxes as positional queries. By performing a warping operation similar to RoI Align but adapted for rotation, the model extracts features that are perfectly aligned with the predicted box's orientation. This ensures that the decoder "sees" the object within its own local coordinate frame, significantly improving localization accuracy for elongated objects like ships.
Selective Distinct Queries (SDQ)
To mitigate query redundancy, the Selective Distinct Queries (SDQ) module is introduced. Rather than passing a fixed set of queries through all decoder layers, SDQ identifies high-quality queries from intermediate stages. It applies a class-agnostic filtering mechanism to remove highly similar queries before they reach the final layers. This sparsification makes the one-to-one matching process easier to learn and reduces the computational overhead of the final decoder stages.
Experimental Results
RQFormer was evaluated on several rigorous remote sensing benchmarks, demonstrating superior accuracy and efficiency.
- DIOR-R: RQFormer achieved 67.31% mAP, outperforming previous end-to-end detectors such as ARS-DETR.
- DOTA-v1.0: The model reached 75.04% mAP with single-scale testing and 80.92% mAP with multi-scale testing. It maintains a competitive inference speed of 11.20 FPS.
- Generalization: When applied to the horizontal MS COCO dataset, the SDQ module improved the Sparse R-CNN baseline by 3.1% mAP, indicating that the redundancy problem is a general challenge in object detection.
Conclusion
RQFormer effectively bridges the gap between end-to-end Transformer architectures and the specific requirements of oriented object detection. By focusing on geometric alignment and query distinctness, it provides a robust framework for high-precision remote sensing analysis. Future work will explore integrating broader global context to complement the high-precision local alignment provided by the RRoI Attention module.
Summary updated