Optimization for Oriented Object Detection via Representation Invariance Loss

Qi Ming, Zhiqiang Zhou, Lingjuan Miao, Xue Yang, Yunpeng Dong · DOI

Abstract

Arbitrary-oriented objects exist widely in natural scenes, and thus the oriented object detection has received extensive attention in recent years. The mainstream rotation detectors use oriented bounding boxes (OBB) or quadrilateral bounding boxes (QBB) to represent the rotating objects. However, these methods suffer from the representation ambiguity for oriented object definition, which leads to suboptimal regression optimization and the inconsistency between the loss metric and the localization accuracy of the predictions. In this paper, we propose a Representation Invariance Loss (RIL) to optimize the bounding box regression for the rotating objects. Specifically, RIL treats multiple representations of an oriented object as multiple equivalent local minima, and hence transforms bounding box regression into an adaptive matching process with these local minima. Then, the Hungarian matching algorithm is adopted to obtain the optimal regression strategy. We also propose a normalized rotation loss to alleviate the weak correlation between different variables and their unbalanced loss contribution in OBB representation. Extensive experiments on remote sensing datasets and scene text datasets show that our method achieves consistent and substantial improvement.

Introduction: The Challenge of Representation Ambiguity

In standard object detection, horizontal bounding boxes are sufficient. However, for specialized tasks such as satellite imagery (detecting ships or planes) and scene text detection, objects are often rotated. Researchers typically define these using either Quadrilateral Bounding Boxes (QBB) (four corner points) or Oriented Bounding Boxes (OBB) (center, width, height, and angle).

A significant hurdle in this field is representation ambiguity. For a QBB, there are 24 different ways to order the four vertices. For an OBB, the periodicity of the angle and the ability to swap width and height (by adjusting the angle by 90°) means a single physical box has multiple valid mathematical descriptions.

Representation ambiguity in QBB (left) and OBB (right) where multiple valid descriptions exist for the same physical box.

Standard loss functions, such as Smooth L1, compare a prediction to one specific ground-truth sequence. If a model predicts a box that is physically accurate but uses a different vertex order or angle representation than the ground truth, the loss function reports a massive error. This "loss jump" makes the network difficult to train and creates a gap between the calculated loss and the actual localization quality.

Proposed Method: Representation Invariance Loss (RIL)

To resolve this, the authors introduce Representation Invariance Loss (RIL). Instead of forcing the model to match a single, rigid target, RIL treats all equivalent representations as valid local minima.

  1. Adaptive Matching: For QBB, RIL treats the four vertices as an unordered set and employs the Hungarian matching algorithm to find the optimal point-to-point assignment between the prediction and the ground truth. For OBB, it defines a representation space of equivalent parameter sets and calculates the loss against the specific representation that yields the minimum error.
  2. Normalized Rotation Loss ($L_{nrl}$): The authors also address the fact that variables like angle, width, and height contribute unequally to the final Intersection over Union (IoU). A minor angle error in a long, thin box is far more detrimental than in a square box. The $L_{nrl}$ decouples these by using a projection-based angle loss, scale-normalized center loss, and shape loss based on horizontal IoU.
Comparison between standard Smooth L1 loss (Representation-Fixed) and the proposed RIL (Representation-Free) using Hungarian matching.

These components are integrated into a baseline detector termed RIDet (Representation Invariant Detector).

Experimental Results

The proposed RIDet was evaluated across five major benchmarks in remote sensing and scene text detection, including HRSC2016, DOTA, and ICDAR2015.

  • Aerial Detection: On the HRSC2016 ship dataset, RIDet-O achieved 89.63% mAP, significantly outperforming established models like RoI Transformer (86.20%). On the large-scale DOTA dataset, it reached 74.70% mAP.
  • Scene Text: On ICDAR2015, the method improved the F-measure to 77.6% without requiring complex data augmentation.
  • Optimization Stability: Qualitative analysis indicates that RIDet converges more reliably than models using standard Smooth L1 loss, particularly for objects with extreme aspect ratios where angle sensitivity is highest.

Conclusion

By transforming the regression task from a rigid coordinate-matching problem into an optimal assignment problem, RIL effectively "unwraps" the complex geometry of oriented boxes. While the Hungarian matching algorithm adds a minor computational overhead during training, the resulting smoothness in the optimization landscape leads to superior detection accuracy. Future work may extend this representation-invariant approach to 3D object detection and more complex polygon-based tasks.

Summary updated

BibTeX
@article{ming2022optimization,
  author = {Qi Ming and Zhiqiang Zhou and Lingjuan Miao and Xue Yang and Yunpeng Dong},
  title = {{Optimization for Oriented Object Detection via Representation Invariance Loss}},
  journal = {IEEE Geosci. Remote. Sens. Lett.},
  year = {2022},
  doi = {10.1109/lgrs.2021.3115110},
}
Figure