Abstract
Numerous improvements for feedback mechanisms have contributed to the great progress in object detection. In this paper, we first present an evaluation-feedback module, which is proposed to consist of evaluation system and feedback mechanism. Then we analyze and summarize the disadvantages and improvements of traditional evaluation-feedback module. Finally, we focus on both the evaluation system and the feedback mechanism, and propose Control Distance IoU and Control Distance IoU loss function (or CDIoU and CDIoU loss for short) without increasing parameters or FLOPs in models, which show different significant enhancements on several classical and emerging models. Some experiments and comparative tests show that coordinated evaluation-feedback module can effectively improve model performance. CDIoU and CDIoU loss have different excellent performances in several models such as Faster R-CNN, YOLOv4, RetinaNet and ATSS. There is a maximum AP improvement of 1.9% and an average AP of 0.8% improvement on MS COCO dataset, compared to traditional evaluation-feedback modules.
Introduction: The Limitations of IoU
In the field of object detection, bounding box regression is a critical task that involves refining predicted boxes to align with ground truth (GT) annotations. The standard metric for this task is Intersection over Union (IoU). However, IoU has significant drawbacks when used as a loss function. Primarily, if the predicted box and the ground truth do not overlap, the IoU is zero, resulting in a vanishing gradient that prevents the model from learning how to move the box toward the target.
Furthermore, IoU is insensitive to the geometric configuration of the boxes. As shown in Figure 2, vastly different relative positions, scales, and rotations can result in the exact same IoU value. This ambiguity makes IoU an imprecise signal for feedback during training.
While existing variants like Generalized IoU (GIoU), Distance IoU (DIoU), and Complete IoU (CIoU) attempt to address these issues by incorporating distance or aspect ratio penalties, they often suffer from slow convergence or high computational complexity (e.g., the use of trigonometric functions in CIoU).
Methodology: Control Distance IoU (CDIoU)
The authors propose the Evaluation-Feedback Module, which treats the IoU metric (evaluation) and the loss function (feedback) as a unified system. The core of this module is Control Distance IoU (CDIoU).
Unlike DIoU, which focuses on the distance between centroids, CDIoU measures the direct Euclidean distance between the four corresponding vertices of the predicted box and the ground truth. This "control distance" ($diou$) is calculated as the average normalized distance between these four pairs of corners, where normalization is performed using the diagonal of the Minimum Bounding Rectangle (MBR).
The resulting CDIoU metric and loss function are defined as:
- CDIoU: $IoU + \lambda(1 - diou)$
- CDIoU Loss: $L_{IoU} + diou$
By minimizing the distance between corresponding vertices, the model simultaneously optimizes for position, scale, and aspect ratio. This approach is computationally efficient, relying on simple arithmetic rather than complex functions, ensuring no impact on the model's inference speed (FPS).
Experimental Results
The researchers evaluated CDIoU on the MS COCO 2017 dataset across several popular detection architectures, including Faster R-CNN, YOLOv4, and ATSS.
Key findings include:
- Enhanced Accuracy: CDIoU achieved a maximum Average Precision (AP) improvement of 1.9% and an average improvement of 0.8% across models.
- Efficiency: The method adds zero parameters or FLOPs. For instance, on Faster R-CNN, CDIoU improved AP from 36.8 to 38.5 while maintaining a constant 7.7 FPS.
- Superior Convergence: Training curves demonstrate that CDIoU loss converges faster and reaches lower final values than IoU, GIoU, DIoU, and CIoU.
Conclusion
Control Distance IoU offers a robust and efficient alternative to traditional bounding box regression metrics. By leveraging vertex-to-vertex distances, it provides a more precise feedback signal that captures geometric nuances missed by centroid-based or area-based methods. Its "plug-and-play" nature and lack of computational overhead make it a valuable tool for improving state-of-the-art object detection models.
Summary updated