Abstract
Deep Neural Networks (DNNs) in object detection often exhibit overconfidence, which can be critical in safety-sensitive applications. This paper presents Multiclass Confidence and Localization Calibration (MCCL), a train-time auxiliary loss designed to jointly calibrate classification confidence and bounding box accuracy. By utilizing Monte-Carlo (MC) Dropout for uncertainty estimation, MCCL aligns a model's predictive certainty with its actual performance. Experimental results across various datasets, including MS-COCO and PASCAL VOC, demonstrate that MCCL significantly reduces detection expected calibration error (D-ECE) in both in-domain and out-of-distribution scenarios while maintaining detection precision.
Introduction
Object detection requires models to accurately identify "what" an object is and "where" it is located. While calibration for image classification is well-established, object detection introduces the added complexity of spatial localization. Standard detectors are frequently miscalibrated, meaning their confidence scores do not accurately reflect the true probability of a correct prediction. This is particularly evident in the "gap" between predicted confidence and actual precision.
Existing post-processing methods like Temperature Scaling often require separate validation data and typically ignore the localization component. MCCL addresses these limitations by integrating calibration directly into the training process.
Methods
The proposed MCCL method introduces an auxiliary loss function, $\mathcal{L}_{MCCL-aux}$, which is optimized alongside standard detection losses. The approach consists of three primary stages:
- Uncertainty Estimation: The model employs Monte-Carlo (MC) Dropout during training. By performing multiple stochastic forward passes, it generates a distribution of predictions where the variance serves as a proxy for predictive uncertainty.
- Multiclass Confidence Calibration (MCC): This component creates a "fused confidence" score by combining mean logit scores with the estimated certainty. The loss penalizes discrepancies between this fused score and the ground-truth accuracy.
- Localization Calibration (LC): This ensures that the model's spatial certainty aligns with the actual Intersection-over-Union (IoU) of the predicted bounding boxes.
By jointly optimizing these components, the model learns to produce confidence scores that are representative of both classification and localization quality.
Experimental Setup
The effectiveness of MCCL was evaluated on several benchmarks:
- In-Domain: MS-COCO, PASCAL VOC 2012, Sim10K, KITTI, and Cityscapes.
- Out-of-Domain (OOD): To test robustness against domain shifts, the authors used Foggy Cityscapes, Corrupted-COCO, and cross-dataset evaluations (e.g., Sim10K to Cityscapes).
- Domain Drifts: Evaluations were also conducted on VOC to Clipart, Watercolor, and Comic datasets.
Results and Discussion
MCCL consistently outperformed baseline models and existing classification-based calibration techniques like MDCA across all tested scenarios.
Key Findings
- Significant Error Reduction: On the PASCAL VOC dataset, MCCL reduced the D-ECE from 11.88% to 6.02%, a nearly 50% relative improvement. In the Sim10K to Cityscapes shift, D-ECE dropped from 9.51% to 6.60%.
- Spatial Bias Mitigation: The authors observed that miscalibration often increases near image boundaries. MCCL helps the model adjust confidence based on spatial location.
- Synergy of Joint Calibration: Calibrating localization ("where") was found to synergistically improve classification ("what") calibration, particularly in OOD settings.
- Accuracy Preservation: Unlike many calibration techniques, MCCL maintains or slightly improves the Mean Average Precision (mAP), ensuring that reliability does not come at the cost of performance.
Conclusion
MCCL provides a robust framework for training well-calibrated object detectors. While the use of MC Dropout introduces some computational overhead during training, the benefits in reliability and OOD robustness are substantial. Future work may focus on distilling this calibrated uncertainty into single-pass models to improve inference speed for real-time applications like autonomous driving.
Summary updated