Uncertainty Estimates of Predictions via a General Bias-Variance Decomposition

Sebastian Gruber, Florian Buettner · DOI

TL;DR

This paper introduces a general bias-variance decomposition for uncertainty estimation in predictive models, using Bregman Information as a unified measure of variance. This framework provides novel formulations for common tasks like classification and exponential families, and importantly, enables more reliable out-of-distribution detection compared to traditional confidence scores, especially under domain drift.

What Problem Does This Paper Address?

Estimating the uncertainty of a model's predictions is critical, especially in safety-critical applications like medical diagnostics. The standard approach, using predicted confidence scores, works well for in-domain data but becomes unreliable when the data distribution shifts (domain drift). While "proper scores" offer a more general way to quantify predictive uncertainty across various tasks, a unified bias-variance decomposition for these scores, which explicitly separates the sources of error, has been missing. This lack of a general framework limits our understanding of model uncertainty and its behavior under challenging conditions.

Methods

The core contribution is a general bias-variance decomposition for strictly proper scores. The authors introduce Bregman Information as the variance term in this decomposition. Bregman Information is a generalization of variance that leverages convex functions and their conjugates. They show that this framework naturally extends to functional settings, allowing for the decomposition of uncertainty in complex models and distributions.

Key methodological advancements include:

  • Generalizing the bias-variance decomposition: Extending existing concepts to functional Bregman divergences, which are applicable to a wider range of predictive tasks beyond simple classification or regression.
  • Novel formulations for special cases: Deriving specific, simplified decompositions for exponential families and, surprisingly, for classification log-likelihoods directly in the logit space (without needing to convert to probabilities).
  • Law of total variance for Bregman Information: Adapting this fundamental statistical tool to the Bregman Information framework, which is crucial for analyzing ensemble predictions.

Datasets

The paper uses standard datasets for evaluation, including:

  • CIFAR-10 and ImageNet: For evaluating out-of-distribution detection capabilities.
  • Corrupted versions of CIFAR-10 and ImageNet (CIFAR-10-C, ImageNet-C): These datasets are specifically designed to simulate domain drift by introducing various corruptions (e.g., brightness, fog, blur) at different severity levels.
  • Simulated toy tasks: Used to illustrate concepts and compare the Bregman Information of various classifiers (k-nearest neighbors, SVM, Gaussian Process, Decision Tree, Random Forest, XGBoost, Naive Bayes, neural networks).

Key Insights and Ideas

  • Bregman Information as a unified variance measure: The paper elegantly shows that Bregman Information, derived from the convex conjugate of the negative entropy of a proper score, serves as a universal variance term in a bias-variance decomposition. This unifies previous, more specialized decompositions.
  • Logit-space classification uncertainty: A surprising finding is that the classification log-likelihood decomposition can be performed directly in the logit space, which is how most neural networks output predictions. This avoids the computationally expensive and potentially unstable step of converting logits to probabilities.
  • Improved Out-of-Distribution (OOD) detection: Bregman Information, particularly when estimated from ensembles, proves to be a more robust indicator of out-of-domain data than traditional confidence scores. It allows for more effective discarding of uncertain (potentially out-of-domain) samples while maintaining higher accuracy.
  • Ensembles and uncertainty: The paper demonstrates how ensemble predictions can be used to approximate the ground truth Bregman Information, offering a practical way to estimate uncertainty even for complex models.

Key Results

  • More effective OOD detection: Experiments on corrupted CIFAR-10 and ImageNet show that using Bregman Information as an uncertainty threshold allows for discarding fewer samples to achieve a desired accuracy level compared to using confidence scores. For instance, on ImageNet-C, fewer samples needed to be discarded to reach better accuracy when using Bregman Information.
  • Robustness to domain drift: Bregman Information estimates are shown to be more robust to varying levels of corruption severity and types compared to confidence scores, which degrade significantly with increasing severity.
  • Novel formulations: The paper provides new, closed-form decompositions for exponential families and classification log-likelihoods, simplifying theoretical analysis and practical implementation.

Limitations and Future Work

  • Approximations of Bregman Information: The paper acknowledges that the Bregman Information estimators used are approximations and suggests that further research into more refined approximation methods could be beneficial.
  • Practical implementation: While empirical results are promising, the authors note that more research is needed for direct application in real-world systems, particularly in comparing their approach to state-of-the-art OOD detection methods.
  • General vector spaces: The theoretical framework is primarily focused on distributions and exponential families. Extending the decomposition to more general vector spaces for bias and noise terms is left as future work.

Summary updated

BibTeX
@misc{gruber2022uncertainty,
  author = {Sebastian Gruber and Florian Buettner},
  title = {{Uncertainty Estimates of Predictions via a General Bias-Variance Decomposition}},
  year = {2022},
  eprint = {2210.12256},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.12256},
}
Figure