Uncertainty Quantification for Deep Learning

Chen Yang (sjtu), Peter Jan van Leeuwen, J. Christine Chiu, C. Kevin YangarXiv 2024 · DOI

Abstract

Deep learning (DL) models are increasingly utilized in the geosciences as computationally efficient alternatives to physical simulations. However, their adoption is often hindered by a lack of robust uncertainty quantification (UQ). This paper introduces a comprehensive Bayesian framework that accounts for four distinct sources of uncertainty: inputs, training data, model weights, and the network itself. By introducing a novel proposal density to solve the "ensemble collapse" problem, the authors demonstrate a method that provides statistically consistent and physically meaningful predictive distributions. The framework is validated on a complex cloud autoconversion dataset, revealing that data noise, rather than model weights, is often the dominant source of predictive uncertainty.

Introduction

In fields such as meteorology and climate science, deep learning is frequently employed to emulate high-stakes physical processes. Despite their predictive power, these models are often treated as "black boxes" that fail to communicate their level of confidence. Traditional UQ methods, such as Bagging or Monte Carlo (MC) Dropout, typically suffer from two major limitations: they are incomplete, often focusing solely on weight uncertainty, and they are statistically inconsistent. In high-dimensional spaces, many ensemble methods suffer from "filter degeneracy," where a single model dominates the ensemble, causing the estimated uncertainty to collapse to near-zero.

A Unified Bayesian Framework

The authors derive a "fundamental equation of machine learning," a Bayesian identity that integrates four primary sources of uncertainty into a single probability density function (PDF):

  1. Input Uncertainty: Noise present in the new data used for prediction.
  2. Data Uncertainty: Errors inherent in the historical training and testing datasets.
  3. Weight Uncertainty: Variations resulting from different weight initializations and training batch orders.
  4. Model Uncertainty: The intrinsic imperfection of the neural network architecture itself.

To prevent the aforementioned ensemble collapse, the framework introduces a new proposal density. Instead of standard training, the ensemble is trained to reach a specific "target likelihood." By applying a mathematically derived perturbation to the weights, the authors ensure that every model in the ensemble remains equally probable in the posterior distribution. This maintains a diverse ensemble capable of providing a realistic spread of possible outcomes.

Experimental Validation

Toy Regression Problem

The method was first tested on a quadratic system ($z = ax^2 + bx + c$) with added Gaussian noise. While traditional Bagging produced a degenerate PDF—essentially a single line that missed the ground truth—the proposed framework produced a broad, inclusive PDF that correctly captured the structural constraints and the true value.

Cloud Autoconversion Rates

The framework was applied to a real-world geoscience problem: predicting the rate at which cloud droplets turn into rain (autoconversion). Using 10.6 million samples from the Aerosol and Cloud Experiments in the Eastern North Atlantic (ACE-ENA) field campaign, the model utilized features such as cloud water content and droplet concentration.

Key findings from this application include:

  • Dominance of Data Noise: Uncertainty in the training and testing data was the most significant contributor to total uncertainty, leading to output variations of nearly an order of magnitude. Conversely, weight uncertainty was the least significant factor.
  • Non-Gaussian Distributions: Unlike standard methods that assume a Gaussian "bell curve," this framework successfully captured bimodal distributions and significant skewness, which are critical for representing complex physical transitions.
  • Efficiency: The predictive PDF was found to converge with relatively small ensemble sizes (20–100 members), suggesting the method is computationally feasible for large-scale geoscience applications.

Discussion and Future Work

A significant advantage of this approach is the elimination of manual hyperparameter tuning for uncertainty intervals; the uncertainty emerges naturally from the Bayesian formulation. However, some limitations remain. The current framework does not explicitly account for uncertainty in the choice of network architecture (e.g., depth or width), and it primarily addresses interpolation within the training data range. Future work will focus on "extrapolation uncertainty" for inputs far outside the training distribution. While training an ensemble of networks (up to 400 in this study) incurs higher computational costs, the authors argue this is a necessary requirement for scientific rigor in high-stakes forecasting.

Summary updated

BibTeX
@misc{sjtu2024uncertainty,
  author = {Chen Yang (SJTU) and Peter Jan van Leeuwen and J. Christine Chiu and C. Kevin Yang},
  title = {{Uncertainty Quantification for Deep Learning}},
  year = {2024},
  eprint = {2405.20550},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.20550},
}
Figure