Abstract
Arbitrary-oriented object detection is critical for applications like aerial photography and remote sensing. Traditional rotation detectors rely on dense, multi-oriented anchors and Intersection-over-Union (IoU) for label assignment. However, this approach often leads to an inconsistency between classification confidence and localization accuracy. We propose Dynamic Anchor Learning (DAL), a method that evaluates anchors based on their actual localization potential using a newly defined "matching degree." DAL allows detectors to dynamically select high-quality anchors, achieving superior performance on datasets like HRSC2016 and DOTA using only a few horizontal anchors.
The Inconsistency Problem in Label Assignment
In standard object detection, label assignment determines which anchors are treated as positive samples (objects) versus negative samples (background). This is typically governed by spatial overlap (IoU). For arbitrary-oriented objects, this static approach fails in two ways:
- The High-IoU Trap: Anchors with high initial overlap often fail to produce accurate final boxes after regression.
- The Neglected Negatives: Many anchors labeled as "negatives" due to low initial overlap actually possess the potential to regress into high-quality detections.
This misalignment causes the classifier to assign high confidence scores to poorly localized boxes during inference, degrading overall detection performance.
Dynamic Anchor Learning (DAL)
To address these issues, DAL introduces a dynamic selection mechanism based on two core components:
1. Matching Degree (MD)
Instead of relying solely on initial spatial alignment ($sa$), DAL uses a Matching Degree ($md$) to evaluate anchors: $$md = \alpha \cdot sa + (1 - \alpha) \cdot fa - u^\gamma$$ - $sa$ (Spatial Alignment): The traditional input IoU. - $fa$ (Feature Alignment): The "output IoU" after the anchor has undergone regression. - $u$ (Uncertainty): A penalty term $|sa - fa|$ that discourages anchors with unstable regression behavior.
2. Matching-Sensitive Loss (MSL)
To bridge the gap between classification and localization, the Matching Degree is integrated into the loss function as a weighting factor. This forces the classifier to prioritize anchors that demonstrate high localization potential, effectively aligning classification confidence with final bounding box quality.
Key Insights: The "58% Rule"
Analysis of standard detectors reveals a startling inefficiency: approximately 58% of high-quality detections (IoU > 0.5) originate from anchors that were initially labeled as negative samples during training. This confirms that static IoU-based matching suppresses many anchors capable of excellent localization.
Furthermore, DAL demonstrates that complex rotated anchors are often unnecessary. By utilizing a smarter matching strategy, the model achieves state-of-the-art results using only a few simple horizontal anchors, significantly reducing computational overhead.
Experimental Results
DAL was evaluated across several major benchmarks for oriented object detection:
- HRSC2016 (Ships): Achieved 88.6% mAP, a significant improvement over the 80.8% baseline.
- DOTA (Aerial Images): Reached 71.44% mAP, outperforming many complex two-stage detectors.
- Efficiency: The model maintains high inference speeds, reaching 34 FPS on an RTX 2080 Ti.
- Universality: When applied to standard horizontal bounding box detection (VOC 2007), DAL still provided a ~1.2% mAP boost, proving the misalignment problem is universal.
Conclusion
Dynamic Anchor Learning shifts the focus of label assignment from static spatial overlap to dynamic localization potential. By aligning the classification and regression tasks through the Matching Degree, DAL enables more accurate and efficient detection of arbitrary-oriented objects. This approach not only sets new benchmarks for aerial and text datasets but also offers a more robust framework for general object detection.
Summary updated