RQFormer: Rotated Query Transformer for End-to-End Oriented Object Detection
Jiaqi Zhao, Zeyu Ding, Yong Zhou, Hancheng Zhu, Wenliang Du, Rui Yao, Abdulmotaleb El Saddik
TL;DR
RQFormer tackles two core challenges in end-to-end oriented object detection: misalignment between positional queries and keys and the proliferation of similar queries that hinder one-to-one label assignment. It introduces Rotated RoI Attention to align oriented region features with queries and Selective Distinct Queries to harvest high-quality, distinct queries from intermediate decoder layers, reducing redundancy without extra auxiliary structures. The method achieves strong results across remote sensing and text benchmarks, outperforming a range of CNN- and Transformer-based baselines, and demonstrates good generalization to horizontal detection tasks. With a parameter-efficient design and competitive inference speed, RQFormer offers a practical end-to-end solution for oriented object detection and points to future enhancements through contextual integration and further efficiency gains.
Abstract
Oriented object detection presents a challenging task due to the presence of object instances with multiple orientations, varying scales, and dense distributions. Recently, end-to-end detectors have made significant strides by employing attention mechanisms and refining a fixed number of queries through consecutive decoder layers. However, existing end-to-end oriented object detectors still face two primary challenges: 1) misalignment between positional queries and keys, leading to inconsistency between classification and localization; and 2) the presence of a large number of similar queries, which complicates one-to-one label assignments and optimization. To address these limitations, we propose an end-to-end oriented detector called the Rotated Query Transformer, which integrates two key technologies: Rotated RoI Attention (RRoI Attention) and Selective Distinct Queries (SDQ). First, RRoI Attention aligns positional queries and keys from oriented regions of interest through cross-attention. Second, SDQ collects queries from intermediate decoder layers and filters out similar ones to generate distinct queries, thereby facilitating the optimization of one-to-one label assignments. Finally, extensive experiments conducted on four remote sensing datasets and one scene text dataset demonstrate the effectiveness of our method. To further validate its generalization capability, we also extend our approach to horizontal object detection The code is available at \url{https://github.com/wokaikaixinxin/RQFormer}.
