NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A survey of uncertainty in deep neural networks

Jakob Gawlikowski, Cedrique Rovile Njieutcheu Tassi, Mohsin Ali, Jongseok Lee, Matthias Humt, Jianxiang Feng, Anna M. Kruspe, Rudolph Triebel, Peter Jung, Ribana Roscher, Muhammad Shahzad, Wen Yang, Richard Bamler, Xiaoxiang Zhu

TL;DR

Deep neural networks (DNNs) are increasingly used in critical applications, but their lack of reliable uncertainty estimates hinders trust and deployment. This survey provides a comprehensive overview of uncertainty quantification in DNNs, covering its sources, estimation methods, calibration techniques, and real-world applications, aiming to guide researchers and practitioners in this vital field.

What Problem Does This Paper Address?

The paper addresses a critical limitation of deep neural networks (DNNs): their inability to reliably express uncertainty in their predictions. While DNNs excel at tasks like image recognition and prediction, they often provide overconfident or underconfident outputs, making it difficult to trust their decisions, especially in safety-critical domains like autonomous driving or medical diagnosis. This lack of uncertainty estimation also makes it hard to distinguish between in-domain (expected) and out-of-domain (unexpected) data, a crucial capability for robust AI systems. The paper aims to bridge this gap by providing a structured overview of the problem, its causes, and the solutions being developed.

Methods

The paper categorizes uncertainty estimation methods into four main types:

  • Single Deterministic Methods: These use a single, deterministic neural network. Uncertainty is either predicted directly by the network (internal methods) or estimated using external components applied to a trained network (external methods).
  • Bayesian Neural Networks (BNNs): These treat network parameters as random variables, allowing for principled uncertainty quantification. The paper discusses three main approaches to inferring the posterior distribution of these parameters: Variational Inference, Sampling Approaches (like MCMC), and Laplace Approximation.
  • Ensemble Methods: These combine predictions from multiple independently trained deterministic networks. The diversity among the ensemble members is key to capturing uncertainty.
  • Test-Time Data Augmentation (TTA): This method involves augmenting the input data at inference time and aggregating predictions from these augmented samples to estimate uncertainty.

The paper also delves into calibration methods, which aim to ensure that the predicted uncertainty accurately reflects the true probability of correctness. These are categorized into regularization methods (applied during training), post-processing methods (applied after training), and methods that leverage uncertainty estimation itself.

Datasets

The paper mentions several standard datasets commonly used for evaluating uncertainty quantification methods, including:

  • MNIST, Fashion-MNIST, (not)MNIST: For classification tasks.
  • CIFAR10/100: For classification tasks.
  • SVHN: For classification tasks.
  • ImageNet: For classification tasks.
  • Diabetic Retinopathy: For medical image analysis.
  • UCI datasets: For regression tasks.
  • NYU Depth: For depth estimation.
  • Medical data: For segmentation tasks.

The paper notes that while these datasets are widely used, there's a need for more real-world, complex datasets to properly evaluate methods in practical scenarios.

Key Insights and Ideas

  • Sources of Uncertainty are Multifaceted: Uncertainty doesn't just stem from noisy data; it also arises from model structure, training procedures, and the inherent variability of real-world situations. Understanding these distinct sources (model vs. data uncertainty) is crucial for developing effective solutions.
  • Calibration is as Important as Estimation: Simply estimating uncertainty isn't enough; the estimates must be reliable. A well-calibrated model's confidence score should directly correspond to its accuracy.
  • No One-Size-Fits-All: Different methods have distinct strengths and weaknesses regarding computational cost, implementation effort, and the types of uncertainty they can capture. The choice of method depends heavily on the specific application and its constraints.
  • Real-World Validation is Lagging: While many methods show promise on benchmark datasets, their performance on complex, real-world applications (like earth observation or robotics) is less understood, highlighting a significant gap.
  • Explainability is Key for Trust: For safety-critical applications, understanding why a model is uncertain is as important as knowing that it is uncertain. This lack of explainability is a major barrier to adoption.

Key Results

The paper is a survey, so it doesn't present novel experimental results but rather synthesizes findings from existing research. Key qualitative findings include:

  • Ensembles and TTA are relatively easy to apply and can provide good uncertainty estimates.
  • Bayesian approaches offer a deeper theoretical foundation and more expressive uncertainty descriptions but are often computationally more demanding.
  • Single deterministic methods are computationally efficient but may be less robust to domain shifts.
  • Calibration methods can significantly improve the reliability of uncertainty estimates, even when the underlying uncertainty estimation method is not perfect.
  • Out-of-distribution detection is a critical capability for safety-critical applications, and many methods are being developed to address this.

Limitations and Future Work

  • Lack of Standardized Evaluation Protocols: The paper highlights the difficulty in comparing different uncertainty quantification methods due to the absence of standardized benchmarks, evaluation metrics, and ground truth uncertainties.
  • Limited Real-World Validation: Most research is conducted on benchmark datasets, which may not reflect the complexity and variability of real-world scenarios. More evaluations on diverse, real-world applications are needed.
  • Explainability Gap: Current methods often provide uncertainty estimates without clear explanations for their origins, hindering trust and adoption in critical applications.
  • Pointwise Evaluation: Existing evaluation metrics often aggregate performance over entire datasets. There's a need for methods that can evaluate uncertainty at a single-decision level, crucial for real-time, safety-critical systems.
  • Future Work: The authors suggest developing generic evaluation frameworks, conducting systematic comparisons of baselines on real-world data, establishing better methods for obtaining ground truth uncertainties, and improving the explainability of uncertainty estimates, potentially by integrating physically-based models.

Summary updated

BibTeX
@misc{gawlikowski2021survey,
  author = {Jakob Gawlikowski and Cedrique Rovile Njieutcheu Tassi and Mohsin Ali and Jongseok Lee and Matthias Humt and Jianxiang Feng and Anna M. Kruspe and Rudolph Triebel and Peter Jung and Ribana Roscher and Muhammad Shahzad and Wen Yang and Richard Bamler and Xiaoxiang Zhu},
  title = {{A survey of uncertainty in deep neural networks}},
  year = {2021},
  eprint = {2107.03342},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2107.03342},
}
Figure