Introduction
Deep neural networks (DNNs) frequently exhibit overconfidence, leading to "confidently wrong" predictions when encountering out-of-distribution (OOD) samples or noisy inputs. While Bayesian Neural Networks (BNNs) and Deep Ensembles (DEs) mitigate this by generating multiple predictive distributions, practical constraints often limit these to a small number of samples (e.g., $N=5$). Simple averaging of these few samples often fails to adequately capture epistemic uncertainty—the uncertainty stemming from a lack of knowledge. This paper introduces the Credal Wrapper, a plug-and-play method that treats a collection of predictions as a "credal set" of probability intervals, significantly enhancing OOD detection and calibration without requiring any retraining.
Methodology
The Credal Wrapper shifts the paradigm from point-based averaging to interval-based representation. The process involves four key stages:
- Interval Extraction: For each class, the method identifies the minimum ($p_L$) and maximum ($p_U$) probabilities assigned across the ensemble.
- Credal Set Representation: These intervals define a convex set of all possible probability distributions, providing a "second-order" representation of uncertainty.
- Intersection Probability Transformation: A mathematical transformation maps the credal set to a single "intersection probability" ($p^*$), which is more robust than a simple mean as it accounts for the entire interval system.
- Probability Interval Approximation (PIA): To ensure scalability for high-dimensional datasets like ImageNet, the PIA algorithm reduces complexity by focusing on relevant classes and grouping others.
Experimental Evaluation
The authors evaluated the Credal Wrapper across diverse architectures (VGG16, ResNet-18/50, EfficientNet B2, and ViT Base) using standard benchmarks:
- In-Distribution (ID): CIFAR-10, CIFAR-100, ImageNet.
- Out-of-Distribution (OOD): SVHN, Tiny-ImageNet, ImageNet-O.
- Corrupted Data: CIFAR-10-C and CIFAR-100-C, featuring 15 types of natural corruptions like blur and snow.
Results and Discussion
The Credal Wrapper consistently outperforms standard BNN and DE baselines in OOD detection. For a ResNet-50 backbone on CIFAR-10, the AUROC for detecting SVHN samples improved from 89.58% to 93.77%.
Beyond detection, the method improves model calibration. On corrupted data (CIFAR-10-C), it achieved a lower Expected Calibration Error (ECE), indicating that confidence scores better reflect actual accuracy. The "intersection probability" naturally penalizes overconfidence by highlighting disagreement between models—a crucial signal for epistemic uncertainty that simple averaging obscures.
Conclusion
The Credal Wrapper provides a mathematically grounded, scalable solution for uncertainty estimation in deep learning. By leveraging the conflict between ensemble members through probability intervals, it offers a robust signal for OOD samples. Future work will explore its application in safety-critical domains such as autonomous driving and medical diagnostics, where knowing when a model is uncertain is as vital as the prediction itself.
Summary updated