Hausdorff Distance Matching with Adaptive Query Denoising for Rotated Detection Transformer

Hakjin Lee, Minki Song, Jamyoung Koo, Junghoon Seo

Abstract

Detection Transformers (DETR) have significantly advanced object detection by treating it as a set-prediction problem. However, their application to oriented object detection (OOD) in aerial imagery has been hindered by matching inconsistencies and suboptimal query denoising. We present RHINO (Rotated detection transformer with Hausdorff distance matching), which introduces Hausdorff distance-based bipartite matching and Adaptive Query Denoising (AQD). RHINO effectively resolves the "square-like" matching problem and optimizes the denoising process, achieving state-of-the-art results on DOTA and DIOR-R datasets.

Introduction

Oriented object detection is crucial for analyzing remote sensing imagery where objects like ships, planes, and vehicles appear at arbitrary rotations. While DETR-based models eliminate the need for hand-crafted components like Non-Maximum Suppression (NMS), they face unique challenges in the rotated domain. Specifically, the standard bipartite matching process and static query denoising techniques often fail to provide stable and accurate supervision for oriented boxes.

The Challenges of Oriented Object Detection

The Square-like Matching Problem

A core issue in applying DETR to rotated objects is the "square-like" problem. Standard models use L1 distance between box parameters ($x, y, w, h, \theta$) for bipartite matching. For objects that are nearly square, a slight change in the angle $\theta$ can result in a significant jump in L1 loss, even if the spatial overlap (IoU) remains high. This inconsistency confuses the matching process, leading to duplicate low-confidence predictions.

Comparison of matching costs. Standard L1 and KLD costs suffer from the 'square-like' problem where small rotations lead to high costs or matching ambiguity. Hausdorff cost provides a more spatially consistent metric.

Static Denoising Hindrance

Query denoising is a common technique to accelerate DETR convergence by feeding noised ground truths into the decoder. However, as training progresses, the model's intrinsic predictions often become more accurate than these artificially noised queries. Forcing the model to learn from "noisier" data at this stage can degrade final performance.

The RHINO Framework

Hausdorff Distance Matching

To address the matching instability, RHINO replaces the L1 matching cost with a Hausdorff distance-based cost. The Hausdorff distance measures the maximum distance between two sets of points (e.g., box corners). By treating the bounding box as a spatial shape rather than a vector of independent parameters, Hausdorff matching naturally handles boundary discontinuities and the square-like problem. This ensures that predictions are matched to ground truths based on actual spatial alignment.

Adaptive Query Denoising (AQD)

RHINO introduces an adaptive strategy for query denoising. Instead of blindly trusting noised ground truths, the model performs bipartite matching on a combined set of its own predictions and the noised queries. If a noised query is no longer the "best match" for its corresponding ground truth—meaning the model's own prediction is superior—that query is filtered out. This allows the denoising task to phase out naturally as the model matures.

Experimental Results

RHINO was evaluated on several large-scale oriented object detection benchmarks, including DOTA-v1.0, v1.5, v2.0, and DIOR-R.

Qualitative comparison between standard Hungarian matching and Hausdorff distance matching (left), and the effect of Adaptive Query Denoising (right).

The model demonstrated significant improvements across all datasets:

  • DOTA-v2.0: Achieved a +4.18 AP50 improvement over the ResNet-50 baseline.
  • DIOR-R: Achieved a +4.99 AP50 improvement.
  • SOTA Performance: On DOTA-v1.0, RHINO reached 78.68 AP50 with a ResNet-50 backbone, outperforming established models like Oriented R-CNN.

Qualitative analysis shows that Hausdorff matching significantly reduces duplicate predictions and improves orientation accuracy, especially for dense or square-like objects.

Conclusion

By rethinking the fundamental matching and denoising mechanisms of DETR for the rotated domain, RHINO sets a new standard for oriented object detection. The introduction of Hausdorff distance matching provides a spatially consistent supervision signal, while Adaptive Query Denoising ensures the model continues to learn from the most accurate available data throughout the training process.

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