Hausdorff Distance Matching with Adaptive Query Denoising for Rotated Detection Transformer

Hakjin Lee, Minki Song, Jamyoung Koo, Junghoon Seo · OpenReview

Abstract

The Detection Transformer (DETR) has emerged as a pivotal role in object detection tasks, setting new performance benchmarks due to its end-to-end design and scalability. Despite its advancements, the application of DETR in detecting rotated objects has demonstrated suboptimal performance relative to established oriented object detectors. Our analysis identifies a key limitation: the L1 cost used in Hungarian Matching leads to duplicate predictions due to the square-like problem in oriented object detection, thereby obstructing the training process of the detector. We introduce a Hausdorff distance-based cost for Hungarian matching, which more accurately quantifies the discrepancy between predictions and ground truths. Moreover, we note that a static denoising approach hampers the training of rotated DETR, particularly when the detector's predictions surpass the quality of noised ground truths. We propose an adaptive query denoising technique, employing Hungarian matching to selectively filter out superfluous noised queries that no longer contribute to model improvement. Our proposed modifications to DETR have resulted in superior performance, surpassing previous rotated DETR models and other alternatives. This is evidenced by our model's state-of-the-art achievements in benchmarks such as DOTA-v1.0/v1.5/v2.0, and DIOR-R.

Introduction

Detecting objects in aerial and satellite imagery presents unique challenges compared to standard horizontal object detection. In these domains, objects like ships, planes, and storage tanks appear at arbitrary orientations. While Detection Transformers (DETR) have revolutionized standard object detection, their performance in the rotated domain has lagged behind traditional oriented detectors.

Research into this performance gap identifies two primary bottlenecks: the "square-like problem" in bipartite matching and the limitations of static query denoising. Standard DETR models rely on L1 distance metrics for Hungarian matching, which struggle to distinguish between rotated boxes that are nearly square, leading to spatially inconsistent matching and duplicate predictions. Furthermore, while query denoising typically accelerates training, a static approach eventually introduces "noisy" supervision once the model's own predictions surpass the quality of the noised ground truths.

Methodology

Hausdorff Distance Matching

To address the geometric ambiguities of the L1 cost, the RHINO framework replaces coordinate-based matching with a Hausdorff distance-based cost. Instead of treating a bounding box as a simple vector of parameters ($x, y, w, h, \theta$), RHINO treats the box as a set of points (corners and edge midpoints).

Comparison of L1, KLD, and Hausdorff costs for rotated box matching. Hausdorff distance provides a more geometrically consistent metric for oriented objects.

The Hausdorff distance measures the maximum distance from a point in one set to the nearest point in the other set. This approach is inherently more sensitive to the actual shape and orientation of the boxes, effectively resolving the "square-like" ambiguity where multiple orientations might yield similar L1 costs but vastly different spatial overlaps.

Adaptive Query Denoising (AQD)

Modern DETR variants use query denoising to stabilize training by feeding noised ground-truth boxes into the decoder. However, as training progresses, these static noised queries can become less accurate than the model's actual predictions, acting as a ceiling on performance.

Conceptual comparison between (a) Contrastive Query Denoising and (b) the proposed Adaptive Query Denoising, which uses bipartite matching to filter unhelpful queries.

RHINO introduces Adaptive Query Denoising (AQD), which employs a selection mechanism based on bipartite matching. By evaluating whether a noised query remains helpful relative to the model's current state, AQD filters out superfluous queries that no longer contribute to improvement. This allows the model to transition from guided supervision to self-refined accuracy seamlessly.

Experimental Results

RHINO was evaluated across several major aerial imagery benchmarks, including DOTA (v1.0, v1.5, v2.0) and DIOR-R. The results demonstrate significant performance leaps over previous DETR-based and convolution-based oriented detectors:

  • DOTA-v2.0: Achieved an improvement of +4.18 $AP_{50}$.
  • DIOR-R: Achieved a jump of +4.99 $AP_{50}$.
  • High Precision: The model significantly outperforms competitors in high-precision metrics ($AP_{75}$), which is critical for accurate satellite-based measurements.

Importantly, these gains are achieved without increasing inference complexity. While the adaptive matching adds approximately 20% to training time, the final model's parameter count and inference speed (FPS) remain identical to the baseline DINO model.

Conclusion

By rethinking the fundamental matching and denoising strategies of the Detection Transformer for the rotated domain, RHINO establishes a new state-of-the-art for oriented object detection. The shift from coordinate-based L1 matching to geometrically grounded Hausdorff distance matching, combined with an adaptive approach to query denoising, allows DETR to overcome long-standing spatial ambiguities in aerial imagery. Future work will focus on optimizing the training efficiency of the adaptive matching process and refining denoising strategies for mixed horizontal and rotated datasets.

Summary updated

BibTeX
@inproceedings{lee2025hausdorff,
  author = {Hakjin Lee and Minki Song and Jamyoung Koo and Junghoon Seo},
  title = {{Hausdorff Distance Matching with Adaptive Query Denoising for Rotated Detection Transformer}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2025},
  doi = {10.1109/wacv61041.2025.00189},
}
Figure