Manuscript Offprint

arXiv:2610.29159

RiO-DETRv2: Geometry-Aware Uncertainty Modeling Meets Real-Time Oriented Object Detection Transformer

Zhangchi Hu, Zilong He, Yifan Zhao, Xiangyu Yu, Jie Chen, Peixi Wu, Yansong Peng, Hebei Li, Xiaoyan Sun

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

RiO-DETR is the first real-time end-to-end transformer for oriented object detection, yet further localization gains require a more expressive box representation. Although distributional regression has succeeded in horizontal DETRs, extending it to oriented detection introduces geometry-misaligned boundary modeling and topology-inconsistent orientation refinement. We present RiO-DETRv2, a geometry-aware uncertainty modeling framework for real-time oriented object detection. To resolve the geometry mismatch, Object-Aligned Boundary Distribution Refinement represents box boundaries as probability distributions in an object-aligned coordinate system and progressively refines them across decoder layers. For better orientation topology consistency, we introduce Circular-to-Local Angular Residual Refinement that transitions from global periodic search to local fine-grained estimation. Unified OBB Quality-Aligned Learning further aligns classification, boundary and angular refinement with complete-OBB localization quality. Together, these designs improve localization without compromising efficiency, achieving a better balance between speed and accuracy. Specifically, RiO-DETRv2-l/x achieves 53.7/54.1 mAP 50−95_{50-95} on DOTA, outperforming RiO-DETR-l/x by 1.2/1.5 points with nearly unchanged computational cost. Code is available at https://github.com/RicePasteM/RiO-DETRv2.

Introduction

Oriented object detection extends horizontal bounding boxes to localize objects with arbitrary rotations (Oriented Bounding Boxes, OBB), which is crucial for aerial imagery, remote sensing, and scene text understanding (Xia et al. 2018; Ding et al. 2021; Cheng et al. 2022; Zhou et al. 2022; Redmon et al. 2016; Zou et al. 2023). Recent real-time DETRs have demonstrated strong speed–accuracy trade-offs, and RiO-DETR (Hu et al. 2026) further extends this paradigm to oriented detection. However, the deterministic box parameterization in previous methods limits gains in localization accuracy, making it challenging to improve fine-grained OBB localization while preserving real-time efficiency.

Distributional regression has recently emerged as an effective alternative to deterministic box regression in horizontal object detection (Li et al. 2020, 2021; Peng et al. 2024). Instead of predicting each boundary as a single scalar, it represents possible boundary locations as a probability distribution and recovers a continuous estimate through distribution

(A)

Figure

Prediction

GT

(B)

Figure

Latency on T4 (ms)

RiO-DETRv2 (Ours)

YOLO26-obb

YOLO11-obb

YOLOX-obb*

RTMDet-R

RiO-DETR

YOLO12-obb

YOLOv8-obb

YOLOv5-obb*

PPYOLOE-R

O2-RT-DETR

Figure 1: (A) Representative localization errors that are counted as TPs under the IoU threshold of 0.5 but fail the stricter 0.75 matching criterion, revealing the need for more precise OBB localization. (B) Comparisons with other detectors of AP 50−95_{50-95} and AP 50_{50} versus inference latency on DOTA-1.0 under single-scale training and testing protocol.

integration. Such a formulation provides richer supervision and facilitates progressive localization refinement.

However, oriented localization involves special geometric structures that are absent from horizontal bounding boxes, which makes it challenging to apply such representation. The challenges are three-fold: (1) Geometry-misaligned boundary modeling. Existing distributional regressors decompose localization into four axis-aligned boundary distributions in the global image frame. However, rotating an object changes these regression targets even when its intrinsic geometry remains unchanged, causing boundary uncertainty to be entangled with orientation. (2) Topology-inconsistent orientation refinement. Unlike boundary distributions relative to the initial distance, angular refinement is defined in a fixed domain and requires both broad early-stage correction and fine-grained late-stage estimation. A fixed support therefore suffers from a range-resolution conflict, hindering the transition from global search to local refinement. (3) Quality-misaligned branch optimization. Although boundary and

∗^{*}Corresponding author.

orientation should be represented independently according to their geometric structures, they jointly determine complete-OBB localization quality. Optimizing them with separate quality criteria may produce high confidence predictions with unreliable overall localization.

We present RiO-DETRv2, a geometry-aware uncertainty refinement framework that models spatial and angular uncertainty according to their geometric structures while aligning optimization at the complete-OBB level. For spatial localization, Object-Aligned Boundary Distribution Refinement extends D-FINE (Peng et al. 2024) by defining four boundary distributions in an object-aligned local coordinate system. This representation preserves stable side semantics under arbitrary rotations, reduces orientation-boundary entanglement, and enables progressive refinement across decoder layers. For orientation estimation, Circular-to-Local Angular Residual Refinement models layer-wise residual distributions around the current reference orientation. The first decoder layer performs topology-consistent global search over the complete periodic domain using a circular distribution, while subsequent layers employ progressively contracted local supports for fine angular estimation. The decoded residuals iteratively update the orientation through the periodic refinement mechanism of RiO-DETR, extending deterministic angle regression to coarse-to-fine uncertainty refinement. Finally, Unified OBB Quality-Aligned Learning coordinates boundary and angular branches using complete-OBB localization quality. The quality score serves as both the soft classification target and the shared weight for distribution losses. Uncertainty statistics from predicted distributions further calibrate classification confidence, improving its consistency with the reliability of complete OBB predictions.

Extensive experiments on DOTA-1.0, DIOR-R and AI-TOD-R demonstrate that RiO-DETRv2 establishes a better speed–accuracy trade-off for DETR-based real-time oriented object detection. Across different model scales and training schedules, RiO-DETRv2 consistently improves detection accuracy over RiO-DETR with comparable computational cost. These improvements are particularly pronounced on high-IoU-threshold metrics, which more sensitively reflect localization precision. In particular, RiO-DETRv2-x achieves 54.1 mAP 50−95_{50-95} on DOTA-1.0 and 53.46 mAP 50−95_{50-95} / 78.32 AP 50_{50} on DIOR-R, while preserving real-time inference at 30.0 ms and 17.48 ms on an NVIDIA T4 GPU, respectively. By unifying geometry-aware uncertainty refinement with complete-OBB quality-aligned learning, we offer a meaningful step toward more precise real-time oriented object detection, inspiring further exploration in the field.

References (67)