Rethinking Boundary Discontinuity Problem for Oriented Object Detection

Hang Xu, Xinyuan Liu, Haonan Xu, Yike Ma, Zunjie Zhu, Chenggang Yan, Feng Dai

Introduction: The Boundary Discontinuity Problem

Oriented object detection requires predicting a rotation angle $\theta$ in addition to standard bounding box parameters. However, a fundamental mathematical quirk exists: a box rotated by 180° ($\pi$ radians) is geometrically identical to one at 0°, yet their numerical labels are at opposite ends of the range. This creates a boundary discontinuity.

The boundary discontinuity problem: (a) geometric ambiguity between 45° and 225°, and (b) the resulting "sawtooth" relationship leading to prediction mutations near the boundary.

A key insight of this work is that while an object might require a full 360° range to be defined, a bounding box is symmetric. This mismatch between the object's orientation and the box's geometric representation is the root of the discontinuity. As an object rotates slightly past the boundary, the ground truth label jumps abruptly from $\pi$ to 0. Neural networks struggle with this non-continuous relationship, leading to "mutations"—sudden flips or collapses in predicted boxes near boundary angles.

Methodology: Dual-Optimization and ACM

The authors argue that popular IoU-like loss functions do not truly solve this instability. They propose a Dual-Optimization paradigm that decouples angle correction from joint parameter optimization.

Angle Correct Module (ACM)

Instead of forcing the network to predict a raw angle, the model uses complex-exponential encoding: $$z = f(\theta) = e^{j\omega\theta}$$ By mapping the angle to a complex circle, the boundary becomes continuous (0 and $\pi$ meet at the same point). The frequency $\omega$ is set based on object symmetry: $\omega=2$ for rectangles and $\omega=4$ for squares. This ensures that geometrically identical orientations map to the same point in the encoded space, effectively eliminating the discontinuity.

Key Results and Evaluation

The researchers evaluated the ACM module on standard benchmarks like DOTA-v1.0, HRSC2016, and UCAS-AOD. The results demonstrate significant gains, particularly in high-precision detection ($AP_{75}$).

Qualitative comparison at the angular boundary. Standard methods (KFIoU, KLD) show "collapsed" or misaligned boxes, while ACM-enhanced versions maintain stability and rotation equivariance.

On the HRSC2016 ship dataset, adding ACM to the KFIoU detector improved $AP_{75}$ by a staggering 24.82% (from 62.95 to 87.77). Furthermore, the method brought several different IoU-like approaches (GWD, KLD, KFIoU) to a similar, high level of performance, suggesting that ACM solves a fundamental bottleneck shared by these methods. Visualizations confirm that ACM-enhanced models maintain perfect rotation equivariance, whereas baseline models produce unstable predictions near the 0/$\pi$ boundary.

Conclusion

By shifting focus from loss function design to data representation, this work provides a robust solution to the boundary discontinuity problem. The complex-exponential encoding in the ACM module transforms a discontinuous periodic problem into a continuous circular one, allowing neural networks to learn oriented object detection more naturally and accurately.

Summary updated

BibTeX
@inproceedings{xu2023rethinking,
  author = {Hang Xu and Xinyuan Liu and Haonan Xu and Yike Ma and Zunjie Zhu and Chenggang Yan and Feng Dai},
  title = {{Rethinking Boundary Discontinuity Problem for Oriented Object Detection}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
}
Figure