Credal Ensemble Distillation for Uncertainty Quantification

Kaizheng Wang, Fabio Cuzzolin, David Moens, Hans HallezarXiv 2025 · DOI

Abstract

Deep Ensembles (DE) are widely regarded as the gold standard for uncertainty quantification in deep learning, yet their high computational cost limits deployment in resource-constrained environments. We present Credal Ensemble Distillation (CED), a novel framework that distills the collective knowledge of an ensemble into a single student model, CREDIT. Unlike traditional distillation that targets point estimates, CED leverages a "credal wrapper" to capture class-wise probability intervals, effectively preserving the ensemble's ability to distinguish between aleatoric and epistemic uncertainty. Our results demonstrate that CED achieves ensemble-level out-of-distribution (OOD) detection performance—sometimes even surpassing the teacher ensemble—while maintaining the inference speed of a single neural network.

Introduction

In safety-critical applications such as autonomous driving and medical diagnostics, a model's ability to signal its own lack of knowledge is as important as its predictive accuracy. Uncertainty is typically categorized into aleatoric uncertainty (AU), arising from inherent data noise, and epistemic uncertainty (EU), stemming from a lack of training data for specific regions of the input space. While Deep Ensembles (DE) excel at capturing both, they are often too heavy for real-time edge deployment. This paper introduces Credal Ensemble Distillation (CED) to bridge this gap, providing high-fidelity uncertainty estimates within a single-model footprint.

Methods

The CED framework consists of two primary components: an ensemble teacher and a student model called CREDIT (Credal Ensemble Distillation with Interval Targets).

  • Credal Wrapper: Instead of simple averaging, CED uses a wrapper to extract the minimum and maximum predicted probabilities for each class across all ensemble members, defining a "credal set" of possible distributions.
  • CREDIT Architecture: The student model is designed to output $2C+1$ parameters for a $C$-class problem, including an intersection probability, class-wise interval lengths representing imprecision, and a scale weight factor.
  • Distillation Loss ($L_{ced}$): Training utilizes a multi-objective loss function that combines cross-entropy for classification with mean squared error to regress the interval widths and scaling behavior of the teacher.
The CED framework: Ensemble Teacher, Credal Wrapper, and the CREDIT student model distillation process.

At inference time, the model solves a small optimization problem based on generalized Shannon entropy to calculate the upper and lower bounds of uncertainty, allowing it to isolate Epistemic Uncertainty effectively.

Experiments and Results

We evaluated CED on standard benchmarks including CIFAR10 (In-Distribution), SVHN, and CIFAR10-C (Out-of-Distribution), as well as the real-world Camelyon17 histopathology dataset. A key finding is that Epistemic Uncertainty (EU) is a significantly more robust signal for OOD detection than Total Uncertainty (TU). CED is specifically optimized to preserve this EU signal during the distillation process.

As shown in the performance summary below, CED consistently outperforms other distillation baselines. Notably, on the VGG16 backbone for CIFAR10 vs. SVHN, CED achieved an AUROC of 93.56% using EU, surpassing the 89.99% achieved by the original Deep Ensemble teacher. Furthermore, CED offers a 5x reduction in inference time and memory usage compared to a 5-model ensemble, performing at the speed of a single standard neural network.

Performance comparison of CED against Deep Ensembles (DE) and other distillation baselines across different backbones and OOD tasks.

Discussion and Conclusion

CED provides a practical path for deploying ensemble-quality uncertainty quantification on edge devices. By shifting from point estimates to probability intervals, the CREDIT model maintains the "imprecision" necessary to signal epistemic uncertainty. While the method shows strong results on low-to-medium class counts, future work will address scalability to high-dimensional label spaces like ImageNet and further refinement of the model's Expected Calibration Error (ECE) to ensure confidence scores are perfectly aligned with accuracy.

Summary updated

BibTeX
@misc{wang2025credal,
  author = {Kaizheng Wang and Fabio Cuzzolin and David Moens and Hans Hallez},
  title = {{Credal Ensemble Distillation for Uncertainty Quantification}},
  year = {2025},
  eprint = {2511.13766},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.13766},
}
Figure