Multivariate Confidence Calibration for Object Detection

Fabian Küppers, Jan Kronenberger, Amirhossein Shantia, Anselm HaselhoffWorkshops @ CVPR 2020

Modern object detection systems are frequently overconfident, a trait that poses significant risks in safety-critical domains such as autonomous driving. While confidence calibration is well-established for image classification, object detection introduces unique spatial dependencies. This paper, presented at a CVPR 2020 workshop, demonstrates that calibration error is not uniform across an image but varies based on an object's location and size. By incorporating bounding box coordinates and scales into the calibration process—termed multivariate calibration—the authors significantly enhance the reliability of confidence scores.

The Challenge of Spatial Bias

In a perfectly calibrated system, a prediction with 90% confidence should be correct 90% of the time. However, deep learning models often report high confidence for incorrect predictions. In object detection, this issue is compounded by "spatial bias": detectors tend to be more miscalibrated near the edges of a frame or for objects of specific dimensions. Standard univariate calibration methods, such as Temperature Scaling, ignore this context, treating a detection in the center of the image identically to one at the periphery.

Methodology: Box-Sensitive Calibration

The authors propose shifting from univariate calibration (relying solely on confidence $p$) to multivariate calibration, which incorporates bounding box properties: center coordinates ($c_x, c_y$) and dimensions ($w, h$).

Overview of the proposed box-sensitive calibration framework compared to standard calibration.

Multivariate Extensions

The framework adapts classic techniques like Logistic Calibration (Platt Scaling) and Beta Calibration to handle vector inputs. Two primary approaches were explored:

  • Independent Models: These treat location and scale as independent factors affecting calibration.
  • Dependent Models: These utilize multivariate distributions to capture complex correlations, such as whether a model is specifically overconfident for small objects located at the image boundaries.

Detection Expected Calibration Error (D-ECE)

To evaluate these methods, the authors introduced D-ECE. Unlike classification, where correctness is binary, detection success depends on an Intersection over Union (IoU) threshold. D-ECE uses precision as a surrogate for accuracy to measure the gap between predicted confidence and observed success across the multi-feature space.

Experimental Results

The researchers evaluated their framework on the COCO validation dataset 2017 across three architectures: R-FCN, Faster R-CNN, and SSD.

Comparison of calibration errors: (a) default miscalibration, (b) global univariate calibration, and (c) the proposed dependent multivariate calibration.

Key Findings

  • Boundary Effect: Miscalibration increases significantly as objects move toward image boundaries. This insight is vital for applications like autonomous driving, where detecting a pedestrian entering from the side is critical.
  • Superior Performance: Box-sensitive calibration consistently outperformed standard methods. For an R-FCN model, while standard calibration reduced global error, the multivariate approach further minimized granular, location-aware errors.
  • Data Efficiency: While non-parametric methods like multidimensional histogram binning are powerful, they suffer from the "curse of dimensionality." Parametric multivariate Logistic and Beta models proved more data-efficient and robust when using the full suite of box information.

Conclusion and Future Directions

By making confidence scores "box-sensitive," this research provides a path toward more honest and reliable object detectors. The qualitative impact is clear: after calibration, a model's confidence in ambiguous, partially obscured objects drops significantly, while remaining high for clear detections.

Future work may involve integrating these multivariate calibration constraints directly into the model's loss function during training, rather than applying them as a post-processing step. Additionally, addressing the dependence of calibration on specific IoU thresholds remains an open challenge for creating truly universal calibration methods in object detection.

Summary updated

BibTeX
@inproceedings{kuppers2020multivariate,
  author = {Fabian Küppers and Jan Kronenberger and Amirhossein Shantia and Anselm Haselhoff},
  title = {{Multivariate Confidence Calibration for Object Detection}},
  booktitle = {Workshops @ CVPR},
  year = {2020},
  doi = {10.1109/cvprw50498.2020.00171},
}
Figure