Credal Deep Ensembles for Uncertainty Quantification

Kaizheng Wang, Fabio Cuzzolin, Shireen Kudukkil Manchingal, Keivan Shariatmadar, David Moens, Hans Hallez

Executive Summary

Credal Deep Ensembles (CreDEs) introduce a novel approach to uncertainty quantification by predicting probability intervals rather than single point estimates, effectively capturing what a model doesn't know (epistemic uncertainty). By combining these "Credal-Set" networks with robust optimization techniques, the authors achieve higher accuracy, better calibration, and significantly superior out-of-distribution (OOD) detection compared to standard deep ensembles.

The Challenge of Overconfident AI

In the realm of AI safety and reliability, knowing when to trust a model is just as important as the prediction itself. Researchers generally distinguish between two types of uncertainty:

  1. Aleatory Uncertainty: Inherent randomness or noise in the data (e.g., a blurry image). This type of uncertainty is irreducible.
  2. Epistemic Uncertainty: Uncertainty arising from a lack of knowledge or training data. This is reducible if the model is exposed to more information.

Standard neural networks are notoriously overconfident; they output a single probability distribution that assumes precise knowledge of the world. Even "Deep Ensembles"—often considered the gold standard for uncertainty—frequently provide low-quality estimates of epistemic uncertainty and lack a strong theoretical foundation for doing so. This paper tackles the challenge of building a model that can explicitly represent its own ignorance, especially when it encounters out-of-distribution (OOD) data it wasn't trained to handle.

Introducing Credal Deep Ensembles

To address these shortcomings, the authors introduce Credal-Set Neural Networks (CreNets) and their ensemble counterpart, CreDEs.

Comparison of standard Deep Ensembles mapping to single points versus Credal Deep Ensembles mapping to probability intervals (credal sets).

From Points to Intervals

Instead of outputting a single probability value per class, a CreNet outputs a lower and an upper probability bound. These bounds define a credal set—a convex set encompassing all possible probability distributions that fit within those constraints.

Interval SoftMax

Because the standard SoftMax function cannot process intervals, the authors employ a specialized "Interval SoftMax" activation. This ensures the predicted bounds are mathematically valid, meaning there exists at least one valid probability distribution inside the predicted interval.

Architecture of a CreNet output layer utilizing Interval SoftMax to generate a credal set on the probability simplex.

The "Optimistic vs. Pessimistic" Loss

The core innovation lies in the training objective. The network trains the upper bound using standard cross-entropy, representing an "optimistic" view of the data. Conversely, it trains the lower bound using Distributionally Robust Optimization (DRO). DRO identifies "hard-to-learn" samples in a batch and treats them as proxies for future distribution shifts, forcing the lower bound to be "pessimistic."

The gap between these upper and lower bounds naturally and explicitly represents the model's epistemic uncertainty.

Scaling to Large Datasets

To make the mathematics computationally feasible for datasets with many classes (like ImageNet's 1,000 classes), the authors developed Probability Interval Dimension Reduction (PIDR). This algorithm merges low-probability classes into a single "meta-class," streamlining complex entropy calculations.

Key Insights and Results

The researchers evaluated CreDEs across a rigorous set of benchmarks, including In-Distribution datasets (CIFAR-10/100, ImageNet), Out-of-Distribution datasets (SVHN, Tiny-ImageNet, ImageNet-O), and corrupted data (CIFAR-10-C). They also tested across multiple architectures (ResNet50, VGG16, and ViT Base).

  • Uncertainty as a Gap: By forcing the network to predict a range, the "width" of the interval becomes a direct, interpretable measure of epistemic uncertainty. A wide range signals that the model hasn't seen enough similar data to be confident.
  • Superior OOD Detection: CreDEs consistently outperformed traditional Deep Ensembles. On the CIFAR-10 vs. SVHN benchmark, CreDEs achieved an AUROC of 96.55%, compared to just 89.58% for standard Deep Ensembles.
  • Better Calibration: CreDEs showed significantly lower Expected Calibration Error (ECE), meaning their confidence scores more closely matched their actual accuracy. On CIFAR-100, CreDEs reduced ECE from 0.0392 to 0.0268.
  • Improved Accuracy: Surprisingly, focusing on uncertainty bounds did not harm performance. On ImageNet, CreDEs improved top-1 accuracy to 78.51%, up from 77.92% for standard ensembles.
  • Efficiency: While CreNets double the number of output nodes to handle bounds, the inference time increase is marginal (e.g., 5.5ms vs. 5.7ms on ImageNet), making them highly practical for real-world deployment.

Limitations and Future Directions

While highly effective, CreDEs still rely on ensembling (training multiple models), which carries a higher computational and memory overhead compared to a single network. In environments with strict memory limits, storing multiple models may remain a bottleneck.

Looking ahead, the authors plan to extend this framework from classification to regression tasks. They also aim to explore conformal prediction to provide formal statistical guarantees on the predicted intervals, and see strong potential for CreDEs in active learning, where the model could specifically request labels for data where its predicted uncertainty interval is the widest.

Summary updated

BibTeX
@inproceedings{wang2024credal,
  author = {Kaizheng Wang and Fabio Cuzzolin and Shireen Kudukkil Manchingal and Keivan Shariatmadar and David Moens and Hans Hallez},
  title = {{Credal Deep Ensembles for Uncertainty Quantification}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=PCgnTiGC9K},
}
Figure