Credal Bayesian Deep Learning

Michele Caprio, Souradeep Dutta, Kuk Jin Jang, Vivian Lin, Radoslav Ivanov, Oleg Sokolsky, Insup Lee

Abstract

Uncertainty quantification and robustness to distribution shifts are critical requirements for machine learning systems deployed in safety-critical environments. While Bayesian Neural Networks (BNNs) provide a framework for assessing predictive uncertainty, they often struggle to distinguish between different sources of uncertainty and are sensitive to prior misspecification. We present Credal Bayesian Deep Learning (CBDL), a framework that leverages finitely generated credal sets (FGCSs) from the imprecise probability literature. CBDL effectively trains an uncountably infinite ensemble of BNNs using only a finite number of elements. This approach allows for the disentanglement of aleatoric and epistemic uncertainties and provides robust probabilistic guarantees. We demonstrate that CBDL outperforms standard BNN ensembles in out-of-distribution detection, autonomous motion prediction, and medical control tasks.

Introduction

In safety-critical AI applications, such as autonomous driving or medical diagnostics, a model's ability to quantify its own ignorance is as vital as its predictive accuracy. Standard BNNs attempt to capture this by placing a prior distribution over network weights. However, the choice of a single prior is often arbitrary. If this prior is misspecified—meaning it does not accurately reflect the underlying reality—the model may become overconfident or produce unreliable uncertainty estimates.

Furthermore, standard Bayesian approaches often conflate two distinct types of uncertainty:

  1. Aleatoric Uncertainty (AU): The inherent noise or randomness in the data (e.g., sensor noise).
  2. Epistemic Uncertainty (EU): The uncertainty stemming from a lack of knowledge or data (e.g., encountering a novel scenario).

CBDL addresses these limitations by replacing the single prior and likelihood of standard BNNs with credal sets—convex sets of probability measures. This allows the model to represent ambiguity directly, providing a more robust foundation for decision-making under uncertainty.

Methodology: Finitely Generated Credal Sets

The core innovation of CBDL is the use of Finitely Generated Credal Sets (FGCS). Instead of selecting a single prior distribution, the designer identifies a finite collection of "extreme" probability measures. The credal set is then defined as the convex hull of these extremes, representing all possible weighted averages between them.

A Finitely Generated Credal Set (FGCS) visualized as the convex hull (orange) of extreme probability measures $P_1, \dots, P_5$ within a probability simplex.

The CBDL Pipeline

  1. Training: The framework trains a finite ensemble of BNNs corresponding to the extreme points of the prior and likelihood sets.
  2. Variational Inference (VI): Each BNN in the ensemble is approximated using standard VI techniques to find the posterior distribution.
  3. Inference: For a given input, CBDL generates a set of predictive distributions. This set captures the range of possible outcomes allowed by the initial ambiguity in the prior and likelihood.

Uncertainty Quantification and Decision Making

By producing a set of predictive distributions rather than a single point estimate, CBDL can more effectively quantify uncertainty. The framework utilizes Upper and Lower Shannon Entropy across the predictive set. The difference between the maximum possible entropy (upper) and the minimum (lower) serves as a direct measure of Epistemic Uncertainty (EU).

A visualization of a set of predictive distributions where $q(\omega)$ represents a distribution within the credal set, bounded by extreme distributions $p_1(\omega)$ and $p_2(\omega)$.

For decision-making, CBDL produces an Imprecise Highest Density Region (IHDR). This is a set of outputs guaranteed to contain the "correct" answer with a high lower probability, providing a safety buffer that single-prior models lack. This "self-regulating" property ensures that when the data conflicts with the prior, the posterior credal set widens, naturally flagging the model's confusion.

Experimental Results

The authors evaluated CBDL across three distinct domains to test its robustness and utility:

1. Image Classification and OOD Detection

Using corrupted datasets (MNIST-C, CIFAR-10C, etc.), CBDL demonstrated superior Out-of-Distribution (OOD) detection. Unlike standard ensembles (EBNNs), which sometimes showed counterintuitive decreases in uncertainty as noise increased, CBDL provided a stable and consistent increase in predictive uncertainty when facing corrupted or novel data.

2. Autonomous Racing

In motion prediction tasks using the F1Tenth-Gym simulator, CBDL's IHDRs achieved significantly higher multi-step coverage than standard BNN ensembles. This means the model's predicted "safety regions" were much more likely to contain the vehicle's actual future trajectory, especially in scenarios that differed from the training data.

3. Medical Control (Artificial Pancreas)

CBDL was integrated into a Model Predictive Control (MPC) loop for blood glucose regulation in Type 1 Diabetes simulation. By better quantifying the uncertainty in insulin dynamics, CBDL reduced the time patients spent in dangerous hypoglycemic or hyperglycemic states by up to 5.5% compared to baseline Bayesian methods.

Conclusion and Future Work

Credal Bayesian Deep Learning offers a mathematically rigorous way to handle model ambiguity and distribution shift. By representing an infinite ensemble through finite extreme points, it achieves robustness without the computational impossibility of sampling an infinite space. While the current framework requires domain expertise to select extreme priors and carries a higher computational cost than single BNNs, its ability to disentangle uncertainties makes it a powerful tool for safety-critical AI. Future research will focus on automating prior selection and scaling CBDL to active and continual learning settings.

Summary updated

BibTeX
@article{caprio2024credal,
  author = {Michele Caprio and Souradeep Dutta and Kuk Jin Jang and Vivian Lin and Radoslav Ivanov and Oleg Sokolsky and Insup Lee},
  title = {{Credal Bayesian Deep Learning}},
  journal = {Accepted by TMLR},
  year = {2024},
  url = {https://openreview.net/forum?id=4NHF9AC5ui},
}
Figure