[Paper Review] The KFIoU Loss for Rotated Object Detection
This paper introduces KFIoU loss, an easy-to-implement, fully differentiable Gaussian-product based approximation to SkewIoU for rotated object detection, with 2-D and 3-D extensions, showing strong performance across aerial, text, and face datasets.
Differing from the well-developed horizontal object detection area whereby the computing-friendly IoU based loss is readily adopted and well fits with the detection metrics. In contrast, rotation detectors often involve a more complicated loss based on SkewIoU which is unfriendly to gradient-based training. In this paper, we propose an effective approximate SkewIoU loss based on Gaussian modeling and Gaussian product, which mainly consists of two items. The first term is a scale-insensitive center point loss, which is used to quickly narrow the distance between the center points of the two bounding boxes. In the distance-independent second term, the product of the Gaussian distributions is adopted to inherently mimic the mechanism of SkewIoU by its definition, and show its alignment with the SkewIoU loss at trend-level within a certain distance (i.e. within 9 pixels). This is in contrast to recent Gaussian modeling based rotation detectors e.g. GWD loss and KLD loss that involve a human-specified distribution distance metric which require additional hyperparameter tuning that vary across datasets and detectors. The resulting new loss called KFIoU loss is easier to implement and works better compared with exact SkewIoU loss, thanks to its full differentiability and ability to handle the non-overlapping cases. We further extend our technique to the 3-D case which also suffers from the same issues as 2-D. Extensive results on various public datasets (2-D/3-D, aerial/text/face images) with different base detectors show the effectiveness of our approach.
Motivation & Objective
- Motivate and address the misalignment between rotation SkewIoU metrics and regression losses in rotated object detection.
- Propose a differentiable, hyperparameter-free loss based on Gaussian modeling to approximate SkewIoU.
- Extend the approach from 2-D to 3-D rotation detection and validate across diverse datasets and detectors.
Proposed method
- Convert rotated bounding boxes to Gaussian distributions via rotation and eigen decomposition (R, Λ).
- Use a scale-insensitive center-point loss to shrink center distance between Gaussians.
- Compute overlap via the product of Gaussian distributions and derive KFIoU as a normalized overlap-based loss.
- Formulate regression loss as L_reg = L_c + L_kf with L_kf = exp(1 - KFIoU) - 1.
- Provide two options for center-point loss L_c (standard L_n-based or KLD-based center term).
- Maintain end-to-end differentiability and applicability to non-overlapping cases, with 2-D and 3-D extensions.
Experimental results
Research questions
- RQ1Can a fully differentiable, Gaussian-product based loss approximate SkewIoU for rotated boxes without hyperparameter tuning?
- RQ2Does the proposed KFIoU loss improve rotation detection performance across 2-D and 3-D tasks and diverse datasets compared to GWD, KLD, and plain SkewIoU?
- RQ3How does the trend-level alignment between KFIoU and SkewIoU compare to other Gaussian-based losses (GWD, KLD) across varying distances and aspect ratios?
Key findings
- KFIoU loss is easy to implement with standard DL ops and handles non-overlapping cases effectively.
- KFIoU shows better trend-level alignment with SkewIoU than GWD and KLD and reduces sensitivity to hyperparameters.
- On multiple datasets (aerial, scene text, face) and detectors, KFIoU outperforms best-tuned Gaussian-based and plain SkewIoU variants.
- Extending Gaussian modeling to 3-D rotation detection yields notable improvements over baselines on KITTI BEV/3-D metrics.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.