[Paper Review] From Black-box to White-box: Examining Confidence Calibration under different Conditions
This paper investigates how non-maximum suppression (NMS) affects confidence calibration in object detection models by comparing white-box calibration (using raw network outputs before NMS) and black-box calibration (after NMS). It finds that NMS degrades calibration, turning well-calibrated models like Faster R-CNN into overconfident ones, and shows that calibration performance varies significantly between architectures and post-processing stages.
Confidence calibration is a major concern when applying artificial neural networks in safety-critical applications. Since most research in this area has focused on classification in the past, confidence calibration in the scope of object detection has gained more attention only recently. Based on previous work, we study the miscalibration of object detection models with respect to image location and box scale. Our main contribution is to additionally consider the impact of box selection methods like non-maximum suppression to calibration. We investigate the default intrinsic calibration of object detection models and how it is affected by these post-processing techniques. For this purpose, we distinguish between black-box calibration with non-maximum suppression and white-box calibration with raw network outputs. Our experiments reveal that post-processing highly affects confidence calibration. We show that non-maximum suppression has the potential to degrade initially well-calibrated predictions, leading to overconfident and thus miscalibrated models.
Motivation & Objective
- To analyze the impact of non-maximum suppression (NMS) on confidence calibration in object detection models.
- To compare white-box calibration (using raw model outputs before NMS) with black-box calibration (after NMS) on the COCO dataset.
- To evaluate how model architecture (RetinaNet vs. Faster R-CNN) influences calibration behavior before and after NMS.
- To investigate whether calibration can be improved by incorporating spatial and scale information (box centers, height, width) into the calibration mapping.
- To assess the effectiveness of histogram-based calibration on different subsets of detection outputs.
Proposed method
- The study uses Faster R-CNN and RetinaNet as base object detection models, trained with cross-entropy and focal loss, respectively.
- White-box calibration is performed on raw network outputs before NMS, while black-box calibration is applied after NMS with varying IoU thresholds (0.5, 0.6, 0.75, 0.9).
- Histogram-based (HB) calibration is applied to confidence scores, using subsets of outputs including only confidence (ˆp), confidence with box centers (cx, cy), confidence with scale (h, w), and full feature sets.
- The expected calibration error (ECE) is adapted as a metric using a binning scheme to measure miscalibration across different detection conditions.
- Experiments are conducted on the COCO dataset, with D-ECE (Disagreement ECE) used to evaluate calibration performance across multiple IoU thresholds.
- The study compares calibration performance across different post-processing stages and model architectures to isolate the effect of NMS on confidence reliability.
Experimental results
Research questions
- RQ1How does non-maximum suppression (NMS) affect the confidence calibration of object detection models?
- RQ2Does the intrinsic calibration of object detectors differ between white-box (pre-NMS) and black-box (post-NMS) scenarios?
- RQ3How do model architectures like RetinaNet and Faster R-CNN differ in their calibration behavior before and after NMS?
- RQ4To what extent does incorporating spatial and scale information (cx, cy, h, w) improve calibration performance?
- RQ5Can histogram-based calibration effectively correct miscalibration in both white-box and black-box settings?
Key findings
- NMS significantly degrades confidence calibration, turning well-calibrated Faster R-CNN predictions into overconfident ones, with D-ECE increasing from 6.914% (white-box) to 13.067% (black-box) at IoU@0.75.
- For RetinaNet, the white-box model is underconfident (baseline D-ECE 7.781% at IoU@0.5), but calibration improves after NMS, with D-ECE dropping to 1.523% after histogram-based calibration.
- The black-box model with NMS@0.9 shows the highest D-ECE (34.634%) for RetinaNet at IoU@0.75, indicating severe miscalibration after suppression.
- White-box calibration outperforms black-box calibration when using only confidence or confidence with box centers, but black-box models perform slightly better when including scale features.
- The integration of box center and scale information (cx, cy, h, w) improves calibration, especially in white-box settings, with D-ECE reductions of up to 5.704% for RetinaNet at IoU@0.75.
- The results demonstrate that NMS alters the calibration profile of models, and calibrated outputs from white-box models deteriorate after NMS, indicating a need for alternative suppression strategies.
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.