Abstract
Uncertainty quantification for complex deep learning models is increasingly important as these techniques see growing use in high-stakes, real-world settings. Currently, the quality of a model's uncertainty is evaluated using point-prediction metrics such as negative log-likelihood or the Brier score on heldout data. In this study, we provide the first large scale evaluation of the empirical frequentist coverage properties of well known uncertainty quantification techniques on a suite of regression and classification tasks. We find that, in general, some methods do achieve desirable coverage properties on in distribution samples, but that coverage is not maintained on out-of-distribution data. Our results demonstrate the failings of current uncertainty quantification techniques as dataset shift increases and establish coverage as an important metric in developing models for real-world applications.
Introduction
In high-stakes fields like medicine or autonomous driving, a model shouldn't just give a prediction; it needs to provide a reliable measure of its own uncertainty. Traditionally, researchers evaluate this using metrics like Negative Log-Likelihood (NLL) or Expected Calibration Error (ECE).
However, these metrics can be unintuitive for end-users. A clinician, for instance, might prefer a prediction set (e.g., "The true diagnosis is one of these three options with 95% certainty"). This study addresses the lack of large-scale, systematic evaluation of marginal coverage: the frequency with which these predicted intervals actually capture the ground truth. Specifically, it investigates whether current uncertainty quantification (UQ) methods provide the coverage they claim to, especially under dataset shift.
Methods and Datasets
The authors evaluate a "catalog" of popular UQ techniques, including Ensembles, Approximate Bayesian Methods (MC-Dropout, SVI), and their Last-Layer variants. These are compared against baselines like Linear Regression, Gaussian Processes, and Temperature Scaling.
Performance is measured using two primary metrics:
- Coverage: The fraction of test samples where the true label falls within the model's 95% prediction interval or set.
- Width: The size of that interval. Ideally, a model should have high coverage and low width.
The evaluation spans regression (nine real-world datasets) and classification (MNIST, CIFAR-10, ImageNet). To test robustness, the study utilizes dataset shift benchmarks like MNIST-Rotated, CIFAR-10-C, and ImageNet-C, which include various algorithmic corruptions at multiple intensity levels.
Key Insights: The Coverage-Width Trade-off
Coverage and width are inextricably linked. A model can easily achieve 100% coverage by predicting an infinitely wide interval, but such a prediction is useless. The "best" model maintains the target coverage (e.g., 95%) with the narrowest possible width.
Interestingly, for methods like SVI, the width of the prediction set correlates strongly (Pearson correlation of 0.9) with the severity of dataset shift. This suggests that monitoring the size of a model's uncertainty intervals could serve as a natural detector for out-of-distribution data. However, the "in-distribution" reliability of many methods is fragile; as data shifts, coverage often plummets because intervals fail to widen sufficiently to compensate for increased error.
Key Results
The study reveals several critical findings across tasks:
- Regression: Last-Layer SVI (LL SVI) was the standout performer, maintaining at least 95% coverage across datasets with the lowest average width compared to full SVI or Gaussian Processes.
- Classification: SVI proved most robust to rotation and translation on MNIST, though its prediction sets widened significantly.
- Dataset Shift: On CIFAR and ImageNet, Deep Ensembles generally provided the best trade-off. While all methods saw coverage drop as corruption intensity increased, Ensembles remained more robust, providing higher coverage at lower widths than Temperature Scaling or Dropout.
The authors also noted that the ranking of methods by coverage closely matches their ranking by ECE, suggesting that coverage is a valid and more interpretable proxy for traditional calibration metrics.
Conclusion
Current UQ methods are likely insufficient for high-stakes applications where dataset shift is expected. While they may provide a "95% guarantee" on in-distribution data, this reliability evaporates under distribution shift. Future research must focus on developing methods where coverage is explicitly guaranteed or more robustly maintained, perhaps by moving toward more rigorous conditional coverage guarantees.
Summary updated