[Paper Review] Towards Improving Calibration in Object Detection Under Domain Shift
This paper proposes a plug-and-play train-time calibration loss (TCD) for deep neural network-based object detectors to improve confidence calibration across in-domain and out-of-domain detection scenarios. It further introduces an implicit calibration technique (ICT) using uncertainty quantification in self-training domain adaptation, showing that combining TCD and ICT significantly enhances calibration without sacrificing accuracy, especially under challenging domain shifts.
With deep neural network based solution more readily being incorporated in real-world applications, it has been pressing requirement that predictions by such models, especially in safety-critical environments, be highly accurate and well-calibrated. Although some techniques addressing DNN calibration have been proposed, they are only limited to visual classification applications and in-domain predictions. Unfortunately, very little to no attention is paid towards addressing calibration of DNN-based visual object detectors, that occupy similar space and importance in many decision making systems as their visual classification counterparts. In this work, we study the calibration of DNN-based object detection models, particularly under domain shift. To this end, we first propose a new, plug-and-play, train-time calibration loss for object detection (coined as TCD). It can be used with various application-specific loss functions as an auxiliary loss function to improve detection calibration. Second, we devise a new implicit technique for improving calibration in self-training based domain adaptive detectors, featuring a new uncertainty quantification mechanism for object detection. We demonstrate TCD is capable of enhancing calibration with notable margins (1) across different DNN-based object detection paradigms both in in-domain and out-of-domain predictions, and (2) in different domain-adaptive detectors across challenging adaptation scenarios. Finally, we empirically show that our implicit calibration technique can be used in tandem with TCD during adaptation to further boost calibration in diverse domain shift scenarios.
Motivation & Objective
- To address the lack of calibration techniques for deep learning-based object detectors, especially under domain shift.
- To improve calibration of object detectors not only in-domain but also in out-of-domain settings, where distribution shifts degrade prediction reliability.
- To develop a plug-and-play, train-time calibration loss (TCD) that enhances confidence calibration without modifying backbone architectures.
- To design an implicit calibration method (ICT) for self-training-based domain adaptive detectors using uncertainty quantification.
- To demonstrate that TCD and ICT are complementary and jointly boost calibration across diverse domain shift scenarios.
Proposed method
- Proposes TCD, a novel auxiliary loss function that regularizes both classification confidence and bounding box localization during training.
- TCD integrates a confidence calibration term that minimizes the discrepancy between predicted confidence and actual correctness across all classes.
- Introduces an implicit calibration technique (ICT) that uses uncertainty estimation from predicted confidences, center coordinates, and aspect ratios to filter low-confidence pseudo-labels in self-training.
- Employs a multi-component uncertainty quantification strategy in ICT, combining confidence, spatial (x,y), and aspect ratio predictions to improve pseudo-label quality.
- Applies TCD with various detection heads (one-stage and two-stage) and integrates it with domain adaptation frameworks like SSAL and UGPL.
- Validates the methods across multiple domain shift benchmarks: Sim10k→Cityscapes, Cityscapes→Cityscapes-foggy, KITTI→Cityscapes, and Cityscapes→BDD100K.
Experimental results
Research questions
- RQ1Can a train-time calibration loss improve confidence calibration in object detectors across both in-domain and out-of-domain detection scenarios?
- RQ2How does the proposed TCD loss perform when combined with different object detection architectures and loss functions?
- RQ3Can implicit calibration via uncertainty-aware pseudo-labeling improve calibration in self-training-based domain adaptive detectors?
- RQ4Is the proposed implicit calibration technique (ICT) complementary to the TCD loss in enhancing calibration under domain shift?
- RQ5What components of uncertainty estimation (confidence, location, aspect ratio) most effectively improve calibration in domain adaptation?
Key findings
- TCD reduces distributional expected calibration error (D-ECE) by up to 40% across different detection models and domain shifts, with the best performance on Sim10k→Cityscapes (D-ECE: 7.9) when combined with ICT.
- The addition of TCD improves mean average precision (mAP@0.5) by 4.7–12.8 points across different shift scenarios, with minimal negative impact on accuracy.
- The component d_det in TCD is critical: removing it increases D-ECE by up to 4.8 points, indicating its role in stabilizing localization calibration.
- ICT with full uncertainty estimation (confidence, x/y, aspect ratio) achieves the lowest D-ECE (12.7) on Sim10k→Cityscapes, outperforming methods using only confidence or confidence + spatial coordinates.
- Combining TCD and ICT yields the best overall calibration, reducing D-ECE to 7.9 on Sim10k→Cityscapes and 16.7 on Cityscapes→Cityscapes-foggy, demonstrating their complementary nature.
- Ablation studies confirm that TCD mitigates both under-confidence and over-confidence across class-wise reliability diagrams, especially in multi-class domain shift settings.
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.