Evaluating and Calibrating Uncertainty Prediction in Regression Tasks

Dan Levi, Liran Gispan, Niv Giladi, Ethan Fetaya

TL;DR

This paper identifies critical flaws in existing methods for evaluating uncertainty predictions in regression tasks, particularly for safety-critical applications. The authors propose a novel, more robust definition of calibration and a corresponding evaluation metric, along with a simple yet effective scaling-based calibration method that performs comparably to more complex approaches.

What Problem Does This Paper Address?

In many machine learning applications, especially those involving safety-critical decisions (like autonomous driving), it's not enough for a model to simply predict a value. It also needs to accurately convey its confidence in that prediction. This is known as uncertainty prediction. For regression tasks, where the output is a continuous value, accurately measuring and calibrating this uncertainty is crucial. Existing methods for evaluating "calibration" in regression have been found to have significant limitations, potentially leading to a false sense of security by appearing to be well-calibrated even when the uncertainty predictions are uninformative or uncorrelated with the actual error. This paper aims to address this by proposing a more reliable way to define, evaluate, and calibrate uncertainty in regression.

Methods

The core of this paper lies in its critique of existing calibration definitions and its proposal of new ones.

  • Critique of Interval-Based Calibration: The authors highlight that a popular definition of regression calibration, based on confidence intervals, suffers from a fundamental flaw: it can be "fooled" by averaging over the entire dataset. This means a model can appear calibrated according to this definition even if its uncertainty predictions are entirely uncorrelated with the actual error. They demonstrate this with an analytical example using a Cauchy distribution.
  • New Definition of Calibration: They propose a new definition that draws an analogy to classification calibration. Instead of focusing on misclassification probability, they focus on the expected mean squared error (MSE) for a given level of predicted uncertainty (standard deviation, $\sigma^2$). A regressor is considered well-calibrated if the expected MSE, conditioned on the predicted uncertainty, equals that predicted uncertainty.
  • New Evaluation Metric (ENCE): Based on their new definition, they introduce the Expected Normalized Calibration Error (ENCE). This metric involves binning predictions by their predicted uncertainty and comparing the empirical root mean squared error (RMSE) within each bin to the average predicted standard deviation (RMV). They also propose a reliability diagram that plots RMSE against RMV for visual diagnosis.
  • Simple Scaling Calibration Method: They propose a straightforward calibration method that scales the predicted standard deviation (STD) by a single learned parameter. This is analogous to "temperature scaling" in classification and is optimized by minimizing the negative log-likelihood (NLL) on a re-calibration set.

Datasets

  • Synthetic Dataset: A controlled synthetic regression problem was generated for initial validation, allowing for precise control over the target distribution and uncertainty.
  • COCO (Common Objects in Context): Used for training the object detection model.
  • KITTI: Used for uncertainty calibration and validation of the object detection bounding box regression task. This dataset is specifically for road scenes and contains annotated objects.

Key Insights and Ideas

  • The "Averaging Problem": The most significant insight is the demonstration that existing interval-based calibration methods can be misleading because they average over the entire dataset, masking uninformative uncertainty predictions. This is particularly dangerous for safety-critical systems.
  • MSE as the Regression Equivalent of Misclassification: The paper effectively bridges the gap between classification and regression calibration by framing the problem in terms of expected error (MSE) for regression, mirroring the concept of correct prediction probability in classification.
  • Simplicity is Effective: The proposed simple scaling method for calibration achieves results comparable to more complex methods like isotonic regression, highlighting that a well-defined problem and metric can lead to effective solutions without excessive complexity.
  • Calibration vs. Accuracy: The work emphasizes that calibration is distinct from prediction accuracy. A model can be accurate but poorly calibrated, or vice-versa, and their proposed metrics help disentangle these aspects.

Key Results

  • The proposed ENCE metric and reliability diagrams effectively diagnose calibration issues, showing that the interval-based method [8] can produce misleadingly good results on synthetic data with random uncertainty.
  • The simple scaling calibration method significantly reduces ENCE on both synthetic and real-world object detection tasks. For example, on the KITTI validation set, ENCE for the tx (x-position) regression task was reduced from 16.5% to 8.3% with their method, and further to 6.0% with the interval-based method [8]. However, their method is noted as being simpler and not requiring numerical integration.
  • The paper demonstrates that their calibration method improves ENCE considerably while keeping the coefficient of variation (Cv) of the predicted STDs unchanged, indicating that the dispersion of uncertainty estimates is preserved.

Limitations and Future Work

  • Generalization: The authors suggest that further research is needed to test the generalization of their evaluation metrics to multiple domains and tasks.
  • Complex Calibration: While their simple scaling method works well, they acknowledge that more complex calibration methods might be required for other tasks.
  • Numerical Integration: The interval-based calibration method [8] requires numerical integration to extract variance, which is computationally more intensive than their proposed scaling method. This is a practical limitation of the prior work.

Summary updated

BibTeX
@inproceedings{levi2022evaluating,
  author = {Dan Levi and Liran Gispan and Niv Giladi and Ethan Fetaya},
  title = {{Evaluating and Calibrating Uncertainty Prediction in Regression Tasks}},
  booktitle = {Sensors},
  year = {2022},
  url = {https://openreview.net/forum?id=F95zl2A-XjN},
}
Figure