Epistemic Wrapping for Uncertainty Quantification

Maryam Sultana, Neil Yorke-Smith, Kaizheng Wang, Shireen Kudukkil Manchingal, Muhammad Mubashar, Fabio Cuzzolin · DOI

Introduction

In high-stakes applications such as autonomous driving or medical diagnostics, a model's ability to quantify its own uncertainty is as critical as its predictive accuracy. Traditional Bayesian Neural Networks (BNNs) capture aleatoric uncertainty (inherent data noise) and epistemic uncertainty (lack of knowledge), but they often struggle to express "uncertainty about their own uncertainty" and can be computationally prohibitive.

"Epistemic Wrapping" is a novel methodology designed to enhance uncertainty quantification by transforming BNN weight posteriors into higher-order belief functions. Unlike existing methods that quantify uncertainty at the output level, this approach models it directly within the parameter space—the weights and biases—significantly improving robustness without requiring the retraining of the underlying BNN.

Methodology: The Epistemic Wrapper

The Epistemic Wrapper is a structured five-step pipeline that augments a pre-trained BNN:

Overview of the Epistemic Wrapping pipeline, from weight posterior to belief posterior and interval inference.
  1. Baseline BNN: The process begins with a standard BNN providing Gaussian posterior distributions for its weights.
  2. Dynamic Truncation: To focus on the most probable parameter regions, the wrapper adaptively clips weight distributions based on their variance, removing infinite Gaussian tails.
  3. Belief Function Mapping: Truncated distributions are converted into continuous belief functions over closed intervals. This adheres to the "Principle of Minimum Commitment," ensuring the model avoids over-assuming information.
  4. Dirichlet Fitting: For computational tractability in deep learning, the grid of belief masses is fitted to a Dirichlet distribution using the Method of L-moments. This creates a "second-order" distribution—a distribution of distributions.
  5. Hybrid Interval Inference: Finally, a Hybrid Interval Neural Network (INN) propagates these ranges (intervals) to produce a range of possible predictions rather than a single point estimate.
Projection of intervals onto a 2D simplex and the subsequent Dirichlet fitting using L-moments.

To maintain efficiency, a Budgeting Strategy is employed, "wrapping" only a small subset (e.g., 5%) of the most influential or uncertain weights.

Experimental Evaluation

The methodology was evaluated using four standard computer vision benchmarks: MNIST, Fashion-MNIST, CIFAR-10, and CIFAR-100. Additionally, Fashion-MNIST served as an Out-of-Distribution (OoD) test for models trained on MNIST to evaluate the wrapper's ability to detect unfamiliar data.

Key Results

The Epistemic Wrapper demonstrated significant performance gains over standard BNNs and INNs:

  • Accuracy Improvements: On MNIST, accuracy rose from ~72.4% (baseline BNN) to 91.02%. Similarly, on Fashion-MNIST, accuracy increased from ~58.9% to 82.45%.
  • Enhanced OoD Detection: In detecting "unknown" data, the Epi-Wrapper achieved an AUROC of 0.6673, markedly better than the standard INN's 0.5329.
  • Improved Calibration: The model's Epistemic Uncertainty (EU) score was more than double that of the baseline, indicating a much higher sensitivity to unfamiliar inputs.

Discussion and Insights

  • Parameter Space Focus: By wrapping weights directly, the model captures uncertainty at its source before propagation, a more principled approach than post-hoc output adjustments.
  • Conservative Enrichment: Theoretical analysis shows that the original Bayesian posterior remains within the "credal set" created by the wrapper, ensuring robustness without sacrificing the BNN's underlying predictive power.
  • Efficient Budgeting: Wrapping only the most "influential" weights (those with high variance or mean) provides the best performance-to-cost ratio.

Limitations and Future Work

Despite its success, the Epistemic Wrapper introduces computational overhead due to the Dirichlet transformation. Future research will focus on scaling this approach to larger architectures like ResNet and VGG, and eventually to foundation models. The authors also aim to develop a framework for generating "predictive random sets" in the target space for even more granular uncertainty labeling.

Summary updated

BibTeX
@misc{sultana2025epistemic,
  author = {Maryam Sultana and Neil Yorke-Smith and Kaizheng Wang and Shireen Kudukkil Manchingal and Muhammad Mubashar and Fabio Cuzzolin},
  title = {{Epistemic Wrapping for Uncertainty Quantification}},
  year = {2025},
  eprint = {2505.02277},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.02277},
}
Figure