Optimal Conformal Prediction under Epistemic Uncertainty
Alireza Javanmardi, Soroush H. Zargarbashi, Santo M. A. R. Thies, Willem Waegeman, Aleksandar Bojchevski, Eyke Hüllermeier
TL;DR
This work addresses how to incorporate epistemic uncertainty into conformal prediction by leveraging second-order representations. It introduces Bernoulli Prediction Sets (BPS), a provably optimal, randomized set predictor that yields the smallest possible conditional-coverage sets under credal (second-order) distributions; when only a single first-order predictor is available, BPS recovers Adaptive Prediction Sets (APS). The authors further adapt BPS to scenarios where second-order validity may be compromised by applying conformal risk control to preserve marginal coverage, and provide an efficient linear-programming formulation that generalizes APS. Empirical results on synthetic data and CIFAR-10/100 with various second-order predictors show that BPS achieves superior or comparable conditional coverage with competitive set sizes, especially in regions of high epistemic uncertainty, illustrating the practical impact of optimally accounting for epistemic uncertainty in CP. The work advances uncertainty quantification for safety-critical applications by offering a principled, scalable method to algebraically blend second-order uncertainty with conformal guarantees.
Abstract
Conformal prediction (CP) is a popular frequentist framework for representing uncertainty by providing prediction sets that guarantee coverage of the true label with a user-adjustable probability. In most applications, CP operates on confidence scores coming from a standard (first-order) probabilistic predictor (e.g., softmax outputs). Second-order predictors, such as credal set predictors or Bayesian models, are also widely used for uncertainty quantification and are known for their ability to represent both aleatoric and epistemic uncertainty. Despite their popularity, there is still an open question on ``how they can be incorporated into CP''. In this paper, we discuss the desiderata for CP when valid second-order predictions are available. We then introduce Bernoulli prediction sets (BPS), which produce the smallest prediction sets that ensure conditional coverage in this setting. When given first-order predictions, BPS reduces to the well-known adaptive prediction sets (APS). Furthermore, when the validity assumption on the second-order predictions is compromised, we apply conformal risk control to obtain a marginal coverage guarantee while still accounting for epistemic uncertainty.
