Optimal Conformal Prediction under Epistemic Uncertainty


Abstract

Conformal prediction (CP) is a widely used frequentist framework to quantify uncertainty by constructing prediction sets with user-specified marginal coverage guarantees. In practice, CP is typically applied on top of probabilistic classifiers, which are able to express aleatoric but not epistemic uncertainty. In this paper, we consider the question of how to optimally employ CP on top of a more expressive formalism, namely credal sets, which can express both aleatoric and epistemic uncertainty. More specifically, we propose probabilistic Bernoulli prediction sets (BPS) and derive a variant that achieves conditional coverage for valid credal sets while remaining minimal in expected size. We then address the more realistic scenario in which the validity of the credal sets is not guaranteed. Assuming access to calibration data with ground-truth distributions over labels, we apply conformal risk control to BPS and derive a PAC-style guarantee: with high probability over the data, the achieved conditional coverage is at least the desired level. We validate our theoretical findings empirically over various datasets.

1 Introduction↩︎

Modern neural networks are widely deployed in safety-critical applications, where reliable uncertainty quantification is essential. In practice, uncertainty is typically modeled probabilistically, for instance, using a probabilistic classifier (e.g., a neural network with a softmax output), which predicts a label distribution for each input. Not only are such predictions often miscalibrated [@guo2017calibration], but they also fail to distinguish between two distinct sources of uncertainty, commonly known as aleatoric and epistemic uncertainty [@hora1996aleatory; @hullermeier2021aleatoric]. Aleatoric uncertainty arises from inherent randomness in the data and is irreducible, whereas epistemic uncertainty reflects the learner’s lack of knowledge and can, in principle, be reduced. More expressive representations of uncertainty that are able to capture both aleatoric and epistemic uncertainty exist in two main forms: credal sets, which are convex sets of plausible probability distributions over labels [@walley1991statistical; @zaffalon2002naive; @caprio2024credal; @caprio2024credalbayesian; @wang2024credal; @lohr2025credal; @nguyen2025credal; @hofman2026efficient], and second-order distributions, which are distributions over label distributions [@neal2012bayesian; @blundell2015weight; @daxberger2021laplace; @sensoy2018evidential]. Despite their appealing properties, such representations lack a formal notion of reliability in the uncertainties they express.

Formal reliability guarantees are provided by conformal prediction (CP) [@vovk2022algorithmic], a framework for uncertainty representation based on set-valued predictions: rather than returning a single label, CP outputs a set of plausible labels. Such prediction sets are practical objects for risk-averse decision-making, as highlighted by [@pmlr-v267-kiyani25a]. Importantly, CP guarantees marginal coverage, that is, on average, over a random draw of the data, the true label is contained in the predicted set with the user-specified probability. This guarantee is distribution-free, holds in finite samples, and is agnostic to the underlying predictive model, requiring only a set of holdout calibration data that are exchangeable with the future test data. Conformal risk control (CRC) [@angelopoulos2022conformal] proposes similar distribution-free guarantees to control an arbitrary user-defined risk function — it ensures that risk is upper bounded for the future test point. CP is a particular case of CRC with set-valued prediction and miscoverage risk.

In practice, CP is most commonly applied on top of probabilistic classifiers and has demonstrated strong empirical performance across a wide range of classification tasks [@sadinle2019least; @romano2020classification; @angelopoulos2020uncertainty]. The core component of CP is the nonconformity score, a function that quantifies the (im)plausibility of assigning a candidate label to a given input. When combined with probabilistic classifiers, this score is typically defined as a function of the predicted label distribution, e.g., the negative predicted probability (softmax) of the label [@sadinle2019least]. Among various approaches, [@romano2020classification] introduced the Adaptive Prediction Sets (APS) method, which, given access to the oracle label distributions, returns the smallest possible prediction sets that achieve conditional coverage, i.e., that contain the true label with a user-specified probability for each input.

In this paper, we are interested in constructing reliable prediction sets à la CP when uncertainty is represented by a credal set predictor rather than by a probabilistic classifier. One can look at this problem from two different perspectives. From the point of view of epistemic uncertainty representation, the question is how to “conformalize” a credal set predictor so as to deliver reliable set predictions. From the point of view of conformal prediction, the question is how to benefit from the additional information about epistemic uncertainty provided by a credal set predictor compared to a probabilistic classifier (see 7 for a discussion of related approaches at this intersection).

As one important benefit, let us highlight guaranteed conditional coverage. Imagine, for example, a credal set predictor is able to guarantee that the conditional probability of label \(A\) given query instance \({\boldsymbol{x}}\) is between 0.6 and 0.7, the probability of label \(B\) is between 0.3 and 0.4, and the probability of \(C\) is between 0 and 0.1. The learner can then be sure that the prediction set \(\{A, B \}\) has a conditional coverage of (at least) 0.9, i.e., that \(\{A, B \}\) is a valid prediction if the (user-specified) error rate is 0.1. This guarantee could not be given on the basis of any first-order representation, e.g., a representative label distribution of the credal set.

We approach the problem step by step, progressing from simpler to more difficult variants. We begin with the setting of valid credal sets, where the true label distribution is guaranteed to lie within the credal set for each input (like in the previous example). In this setting, we introduce Bernoulli Prediction Sets (BPS), which take a credal set as input and return the smallest prediction set satisfying conditional coverage at any given desired level. As the assumption of valid credal predictions is unrealistic in practice, we first consider the problem of optimal set prediction under a suitably relaxed assumption of partially valid credal sets, and finally, in a scenario where no validity properties can be guaranteed at all. In these latter two cases, we obtain a probably approximately correct (PAC)-style conditional coverage guarantee: with high probability, the achieved conditional coverage is at least the desired level.

We evaluate our proposed methods on multiple datasets under settings with valid, partially valid, and unknown-validity credal sets, demonstrating the practical relevance of our theoretical results.

2 Background↩︎

We assume that inputs \({\boldsymbol{x}}_i\) are sampled i.i.d.from a distribution \({\mathcal{P}}_{{\mathcal{X}}}\). Conditional on \({\boldsymbol{x}}_i\), the label \(y_i\) is drawn from the categorical distribution \(p(\cdot \mid {\boldsymbol{x}}_i) \in \triangle^{K}\), where \(K\) is the number of classes and \(\triangle^{K}\) is the \((K-1)\)-dimensional probability simplex. In this setting, we write \({\boldsymbol{p}}_i := p(\cdot \mid {\boldsymbol{x}}_i)\) and refer to it as the oracle label distribution at \({\boldsymbol{x}}_i\) (which is uniquely determined by \({\boldsymbol{x}}_i\)). Even if the true distribution \({\boldsymbol{p}}_i\) were known, the prediction of the label \(y_i\) is subject to aleatoric uncertainty due to the inherent randomness in sampling \(y_i \sim {\boldsymbol{p}}_i\). For a given input \({\boldsymbol{x}}_i\), a probabilistic classifier outputs a single probability distribution over labels, denoted by \({\boldsymbol{\pi}}_i = \pi(\cdot \mid {\boldsymbol{x}}_i) \in \triangle^K\), which serves as an estimate of \({\boldsymbol{p}}_i\). While such an estimate can represent aleatoric uncertainty, it cannot capture the discrepancy between \({\boldsymbol{\pi}}_i\) and \({\boldsymbol{p}}_i\), which corresponds to epistemic uncertainty. A credal set predictor captures this discrepancy by outputting a convex set of plausible probability distributions over labels, denoted by \({\mathcal{Q}}_i := {\mathcal{Q}}({\boldsymbol{x}}_i) \subseteq \triangle^K\). Roughly speaking, the larger the credal set, the greater the learner’s uncertainty about the true distribution \({\boldsymbol{p}}_i\).

In the standard classification setting, one typically observes zero-order data consisting of pairs \(({\boldsymbol{x}}_i, y_i)\), where each input \({\boldsymbol{x}}_i\) is paired with a single realized label \(y_i\). In a richer setting, one may instead have access to first-order data consisting of pairs \(({\boldsymbol{x}}_i, {\boldsymbol{p}}_i)\), where \({\boldsymbol{x}}_i\) is paired with the true label distribution \({\boldsymbol{p}}_i\). Such first-order data can arise in practice, for example, by aggregating multiple annotations per instance into a label distribution [@peterson2019human; @nie2020what; @obuchowicz2020qualityMRI; @schmarje2022benchmark], and are therefore becoming relevant in a growing range of applications, including conformal prediction [@stutz2023conformal; @javanmardi2024conformalized; @caprio2025conformalized].

2.0.0.1 Conformal prediction and risk control.

Let \({\mathcal{D}}_\mathrm{cal}^\mathrm{zero} = \{({\boldsymbol{x}}_i, y_i)\}_{i = 1}^n\) be a holdout zero-order calibration set exchangeable with the future test point \(({\boldsymbol{x}}_{n+1}, y_{n+1})\). For any nonconformity score function \(s:{\mathcal{X}}\times {\mathcal{Y}}\to {\mathbb{R}}\) (capturing the disagreement between \({\boldsymbol{x}}\) and \(y\)), and any user-specified coverage rate \(1 - \alpha\), conformal prediction [@vovk2022algorithmic] constructs sets \({\mathcal{C}}({\boldsymbol{x}}_{n+1})\) as follows. Let \({\mathbb{Q}}\left(1 - \alpha;{\mathcal{A}}\right)\) denote the \((1 - \alpha)\cdot(1 + \frac{1}{n})\) quantile of the set \({\mathcal{A}}\) and let \(q := {\mathbb{Q}}\left(1 - \alpha;\{s({\boldsymbol{x}}_i, y_i): ({\boldsymbol{x}}_i, y_i) \in {\mathcal{D}}_\mathrm{cal}^\mathrm{zero}\}\right)\). Then, \[\begin{align} \label{eq:conformal:set} {\mathcal{C}}({\boldsymbol{x}}_{n+1}) = \{ y: s({\boldsymbol{x}}_{n+1},y) \leq q\} \, . \end{align}\tag{1}\] In the common classification setting, the nonconformity score is often defined in terms of the predicted label distribution of a probabilistic classifier; for example, \(s({\boldsymbol{x}}, y) = -\pi(y \mid {\boldsymbol{x}})\) [@sadinle2019least]. CP guarantees \[\begin{align} \label{eq:conformal:marginal} \operatorname{P}_{{\mathcal{D}}_+}[y_{n+1} \in {\mathcal{C}}({\boldsymbol{x}}_{n+1})] \ge 1 - \alpha, \end{align}\tag{2}\] with \({\mathcal{D}}_+ := {\mathcal{D}}_\mathrm{cal}^\mathrm{zero} \cup \{({\boldsymbol{x}}_{n+1}, y_{n+1}) \}\). Moreover, when the scores have a continuous joint distribution, and there are no ties, the coverage probability is upper bounded by \(1 - \alpha + \frac{1}{n+1}\) [@lei2018distribution]. This guarantee holds only marginally, i.e., on average over a random draw of calibration and test data. In contrast, conditional coverage requires the same coverage probability at every test point, i.e., \[\begin{align} \label{eq:conformal:conditional} \operatorname{P}\big[ y_{n+1} \in {\mathcal{C}}({\boldsymbol{x}}_{n+1}) \mid {\boldsymbol{x}}_{n+1} \big] \ge 1 - \alpha. \end{align}\tag{3}\] Generalizing CP, one can provide a similar guarantee for arbitrary risk functions through conformal risk control (CRC) [@angelopoulos2022conformal]. Consider a family of set predictors \({{\mathcal{C}}_\lambda}\) indexed by a parameter \(\lambda\), and let \({\mathcal{L}}_i(\lambda) := {\mathcal{L}}({\mathcal{C}}_\lambda({\boldsymbol{x}}_i), y_i)\) denote the risk induced by the set \({\mathcal{C}}_\lambda({\boldsymbol{x}}_i)\). For exchangeable \({\mathcal{D}}_+\), if \({\mathcal{L}}(\lambda)\) is non-increasing in \(\lambda\), bounded above (i.e., \({\mathcal{L}}(\lambda) \in (-\infty, b]\)), and right continuous in \(\lambda\), [@angelopoulos2022conformal] show: \[\begin{align} \label{eq:conformal-risk-control:guarantee} \mathbb{E}_{{\mathcal{D}}_+}[{\mathcal{L}}_{n+1}(\lambda^\star)] \le \alpha \end{align}\tag{4}\] for \[\quad \lambda^\star := \inf\Big\{\lambda: \frac{1}{n+1} \sum_{i = 1}^{n}{\mathcal{L}}_i(\lambda) + \frac{b}{n+1} \le \alpha \Big\} \, .\] Intuitively, \(\lambda\) is a conservativeness parameter: increasing \(\lambda\) typically produces larger (more conservative) prediction sets and therefore reduces the risk. CRC selects the smallest \(\lambda\) that ensures the expected risk remains below the predefined tolerance level \(\alpha\). Note that conformal prediction itself is a special case of CRC with \({\mathcal{C}}_\lambda({\boldsymbol{x}}_i) = \{y: s({\boldsymbol{x}}_i, y)\leq\lambda \}\), where the risk is defined as the miscoverage; that is, \({\mathcal{L}}_i(\lambda) = \mathbb{1}[y_i \notin {\mathcal{C}}_\lambda({\boldsymbol{x}}_i)] = \mathbb{1}[s({\boldsymbol{x}}_i, y_i) > \lambda]\).

2.0.0.2 Adaptive prediction sets.

CP provides a marginal guarantee, meaning it is possible to have lower coverage in some regions of \({\mathcal{X}}\) and higher coverage in others. For instance, with \(s({\boldsymbol{x}}, y) = -\pi(y \mid {\boldsymbol{x}})\), the coverage probability can be biased toward easy examples (i.e., cases with highly concentrated predicted distributions). To address this, Adaptive Prediction Sets (APS) [@romano2020classification] use a score function that aims to better approximate conditional coverage. Formally, the APS score is defined as \(s({\boldsymbol{x}}, y) := \rho({\boldsymbol{x}}, y) + u \cdot \pi(y \mid {\boldsymbol{x}})\), where \(\rho({\boldsymbol{x}}, y) := \sum_{y' \in \mathcal{Y}} \pi(y' \mid {\boldsymbol{x}}) \mathbb{1}[\pi(y' \mid {\boldsymbol{x}}) > \pi(y \mid {\boldsymbol{x}})]\) is the cumulative probability of classes ranked above \(y\), and \(u \sim \mathrm{Uniform}[0,1]\) is a tie-breaking random variable used to achieve exact \(1-\alpha\) coverage.1 Given access to the oracle label distributions, APS produces the smallest prediction sets satisfying conditional coverage [@angelopoulos2024theoretical]. Notably, even without such oracle access, APS tends to distribute coverage more evenly across test inputs than other CP baselines.

3 Bernoulli prediction sets (BPS)↩︎

While in CP, prediction sets are typically constructed by thresholding a score function (see (1 )), we develop our approach within a more general framework of randomized prediction sets. In this section, we formalize randomized, parameterized prediction sets in full generality, and in 4 we focus on how to derive such prediction sets from a credal set predictor in an optimal manner.

For each input \({\boldsymbol{x}}_i\), a Bernoulli prediction set is specified by an inclusion probability vector \({\boldsymbol{b}}_i \in [0,1]^K\), where \(b_{ik}\) denotes the probability that class \(k\) is included in the predicted set. The realized (random) prediction set is obtained by sampling independent Bernoulli variables \[\begin{align} \label{eq:bps:sampling} z_{ik} \sim \mathrm{Bernoulli}(b_{ik}), \quad {\mathcal{C}}_\text{BPS}({\boldsymbol{x}}_i) := \{k \in [K] : z_{ik} = 1\}. \end{align}\tag{5}\] Standard (deterministic) prediction sets are a special case of BPS with \({\boldsymbol{b}}_i \in \{0,1\}^K\). With this probabilistic formulation, we redefine both the set size and the conditional coverage in expectation. For input \({\boldsymbol{x}}_i\), the (expected) set size is \[\begin{align} \label{eq:bps:set-size} \mathbb{E}\big[|{\mathcal{C}}_\text{BPS}({\boldsymbol{x}}_i)|\big] = \sum_{k=1}^K \operatorname{P}(z_{ik}=1) = \sum_{k=1}^K b_{ik} = {\boldsymbol{b}}_i \cdot \boldsymbol{1}, \end{align}\tag{6}\] and the conditional coverage is \[\begin{align} \label{eq:bps:conditional-coverage} \operatorname{P}\!\big(y_i \in {\mathcal{C}}_\text{BPS}({\boldsymbol{x}}_i) \mid {\boldsymbol{x}}_i\big) = \sum_{k=1}^K p_{ik}\operatorname{P}(z_{ik}=1) = {\boldsymbol{b}}_i \cdot {\boldsymbol{p}}_i. \end{align}\tag{7}\] Note that in both measures \({\boldsymbol{b}}_i\) is assumed to be fixed; i.e., derived deterministically as a function of \({\boldsymbol{x}}_i\). Therefore, the probability is over the randomness of the sets being sampled from \({\boldsymbol{b}}_i\), and the label \(y\) being sampled from \({\boldsymbol{p}}_i\). In some cases, the \({\boldsymbol{b}}_i\) itself will be the outcome of a process that is random (e.g., over the randomness of the calibration set in case some conformalization is used), and in that case, the metrics will be evaluated in expectation over \({\boldsymbol{b}}_i\) as well.

3.0.0.1 Reformulating APS as BPS.

Just to illustrate the generality of the definition, we show that adaptive prediction sets (APS), for any value of the conformal threshold, are a special case of BPS. Specifically, given a label distribution \({\boldsymbol{\pi}}_i\), let \(\sigma_i\) be a permutation of \([K] := \{1, \ldots, K\}\) that orders the labels in decreasing order of probability, i.e., \[\begin{align} \tilde{\pi}_{ij} := \pi_{i,\sigma_i(j)}, \quad \text{with} \quad \tilde{\pi}_{i1} \ge \tilde{\pi}_{i2} \ge \dots \ge \tilde{\pi}_{iK}. \end{align}\]

For any threshold \(\tau \in [0,1]\), APS defines \[L({\boldsymbol{\pi}}_i, \tau) = \min \Big\{ k \in [K] : \sum_{j=1}^{k} \tilde{\pi}_{ij} \ge \tau \Big\}\] and constructs a randomized set as \[\begin{align} \label{eq:APS} {\mathcal{C}}_\text{APS}({\boldsymbol{x}}_i, {\boldsymbol{\pi}}_i, \tau, u) = \begin{cases} \text{top } L({\boldsymbol{\pi}}_i, \tau) - 1 \text{ labels}, & \text{if } u \leq u_0 \\ \text{top } L({\boldsymbol{\pi}}_i, \tau) \text{ labels}, & \text{otherwise} \end{cases} \, \end{align}\tag{8}\] with \[\begin{align} u \sim \mathrm{Uniform}[0,1] \, \text{ and } u_0 = \tilde{\pi}_{iL({\boldsymbol{\pi}}_i, \tau)}^{-1} \; \Big[ \sum_{j=1}^{L({\boldsymbol{\pi}}_i, \tau)} \tilde{\pi}_{ij} - \tau \Big] \, . \end{align}\] In the BPS formulation, this construction corresponds to an inclusion probability vector defined over the original class indices as \[\begin{align} \label{eq:APS95b} b_{i,\sigma_i(j)} = \begin{cases} 1, & j < L({\boldsymbol{\pi}}_i, \tau) \\ 1 - u_0, & j = L({\boldsymbol{\pi}}_i, \tau) \\ 0, & j > L({\boldsymbol{\pi}}_i, \tau) \end{cases} \, . \end{align}\tag{9}\]

Thus, APS is a Bernoulli prediction set in which all labels with rank strictly below the threshold \(L({\boldsymbol{\pi}}_i, \tau)\) are deterministically included, the boundary label is included with probability \(1 - u_0\), and all lower-ranked labels are excluded. While APS aims for a specific objective under a specific constraint (which is the minimum set size while preserving conditional coverage over a single predictive distribution), BPS is a general framework over which we can define more general constraints and objectives, as we further discuss.

4 Set Prediction from Credal Sets↩︎

We aim to construct prediction sets given a credal set predictor \({\mathcal{Q}}_i := {\mathcal{Q}}({\boldsymbol{x}}_i) \subseteq \triangle^K\). A common representation of credal sets is the convex hull of \(m\) label distributions (the vertices of a convex polytope), i.e., \({\mathcal{Q}}_i = \mathrm{Convex}(\{{\boldsymbol{\pi}}_{i}^{(j)}\}_{j = 1}^m)\). This representation aligns well with practice, as many credal set predictors are obtained from ensembles of probabilistic classifiers [@wang2024credal; @wang2025credalwrapper; @nguyen2025credal]. While we develop our framework for this polytope representation, more general credal sets can also be handled. In particular, if a credal set is not already given as the convex hull of finitely many points, it can first be approximated by a (finite) enclosing polytope, and the vertices of this polytope can then be used within our framework.

There is no unique way to design prediction sets, regardless of whether the underlying predictor is a probabilistic classifier or a credal set predictor. Therefore, beyond marginal coverage, which is satisfied by any CP-based set predictor, we require additional desiderata and an explicit objective to guide the construction. For instance, achieving conditional coverage with the smallest possible set size, when given access to the true label distributions, is the principle underlying the design of APS. We aim to follow a design principle analogous to that of APS but tailored to credal set predictors. To this end, we replace the assumption of access to the true label distribution with the assumption of access to valid credal sets, defined as follows.

Definition 1 (valid credal sets). A credal set \({\mathcal{Q}}_i\) as a prediction for \({\boldsymbol{x}}_i\) is said to be valid if \({\boldsymbol{p}}_i \in {\mathcal{Q}}_i\), that is, if the oracle label distribution lies within the credal set.

It is worth noting that assuming access to valid credal sets is a weaker assumption than having access to oracle label distributions. Indeed, the former still accounts for epistemic uncertainty and does not require precise knowledge of the ground truth. In the following, we first consider the setting in which this validity assumption holds for every input \({\boldsymbol{x}}_i\) and formulate our desiderata accordingly, leading to a concrete set predictor (4.1). We then study the case in which this assumption holds only with high probability over random draws of data points (4.2), and finally, the case where the validity of the credal sets is unknown (4.3).

4.1 Case I: valid credal sets↩︎

We begin with the setting in which the credal set predictor outputs a valid credal set for every input, that is, \(\forall {\boldsymbol{x}}_i,\;{\boldsymbol{p}}_i \in {\mathcal{Q}}_i\). Given a valid credal set \({\mathcal{Q}}_i\), our objective is to construct a prediction set \({\mathcal{C}}({\boldsymbol{x}}_i)\) based solely on \({\mathcal{Q}}_i\). Since the true label distribution lies in the credal set, a natural desideratum is that the resulting prediction set achieves conditional coverage of a nominal level \(1 - \alpha\). However, because the exact distribution \({\boldsymbol{p}}_i\) is unknown, this requirement must hold uniformly over all distributions contained in \({\mathcal{Q}}_i\).

Desideratum 1 (Conditional Coverage). For valid credal sets, the prediction sets should satisfy conditional coverage uniformly over the credal set — formally, \[\label{eq:desideratum:conditional} \forall {\boldsymbol{p}}\in {\mathcal{Q}}_{i}:\quad \operatorname{P}_{y \sim \mathrm{Categorical}({\boldsymbol{p}})}\big[y \in {\mathcal{C}}({\boldsymbol{x}}_{i})\big] \ge 1 - \alpha.\tag{10}\]

As mentioned before, credal set predictors, unlike probabilistic classifiers, are able to represent epistemic uncertainty. Prediction sets are meant to reflect the predictive uncertainty of the learner. Accordingly, a second natural desideratum is that the prediction sets deflate as epistemic uncertainty decreases. Although it is not straightforward to define a total order over arbitrary credal sets in terms of the amount of epistemic uncertainty they represent, this requirement can still be formalized under a partial order (subset) relationship: if one credal set is a subset of another, it reflects less epistemic uncertainty, and the resulting prediction set should be smaller or equal in size. Formally, the following desideratum should be achieved by any prediction set that is adaptive to epistemic uncertainty.

Desideratum 2 (Epistemic Adaptivity). Given two valid credal sets \({\mathcal{Q}}_i\) and \({\mathcal{Q}}_i'\) at point \({\boldsymbol{x}}_i\) such that \({\boldsymbol{p}}_i \in {\mathcal{Q}}_i \subseteq {\mathcal{Q}}_i'\), the prediction set constructed using \({\mathcal{Q}}_i\) ought to be smaller or equal in size to that constructed using \({\mathcal{Q}}_i'\).

We design a set predictor that satisfies the above desiderata while minimizing the set size as our objective. This leads to the design of the optimal Bernoulli prediction sets.

4.1.0.1 Optimal Bernoulli Prediction Sets.

Over the previously defined BPS framework (3), we aim to find \({\boldsymbol{b}}_i\)’s with the objective of finding the smallest possible (random) prediction set that satisfies both desiderata. Formally, for a given credal set \({\mathcal{Q}}_i = \mathrm{Convex}(\{{\boldsymbol{\pi}}_{i}^{(j)}\}_{j = 1}^m)\), we determine an inclusion probability vector \({\boldsymbol{b}}^\lambda_i\) as a solution to the following optimization problem: \[\label{eq:optimal95BPS} \begin{align} {\boldsymbol{b}}_i^\lambda = \mathop{\mathrm{arg\,min}}_{{\boldsymbol{b}}\in [0,1]^K } {\boldsymbol{b}}\cdot \boldsymbol{1} \quad \text{s.t.} \quad \forall j\in [m]:\quad {\boldsymbol{b}}\cdot {\boldsymbol{\pi}}_i^{(j)} \ge \lambda, \end{align}\tag{11}\] where \(\lambda\) is the threshold determining the required level of conditional coverage. In particular, to achieve \(1-\alpha\) conditional coverage, we set \(\lambda = 1-\alpha\) and refer to the resulting predictor as BPS\((1-\alpha)\).

It turns out that the optimization problem (11 ) is a linear program and can therefore be solved efficiently using standard solvers. In fact, it can be viewed as a multi-dimensional fractional knapsack problem. As a consequence of this linear structure, the solution \({\boldsymbol{b}}_i^\lambda\) contains at most \(\min(K,m)\) fractional components, i.e., entries \(b^\lambda_{ik} \in (0,1)\).

In the following, we show that the resulting prediction set \({\mathcal{C}}_{\mathrm{BPS}}({\boldsymbol{x}}_i)\) is the smallest set (in expectation) that conforms with the predefined desiderata when given access to a valid credal set.

Proposition 1. For any \(\alpha \in (0,1)\) and a given credal set \({\mathcal{Q}}_i = \mathrm{Convex}(\{{\boldsymbol{\pi}}_{i}^{(j)}\}_{j = 1}^m)\), the prediction set \({\mathcal{C}}_{\mathrm{BPS}}({\boldsymbol{x}}_i)\) in (5 ), constructed using \({\boldsymbol{b}}_i^{1-\alpha}\) from (11 ), is the smallest (possibly randomized) prediction set that satisfies \((1-\alpha)\) conditional coverage with respect to every distribution \({\boldsymbol{p}}\in {\mathcal{Q}}_i\).

All proofs are deferred to 8. Moreover, 2 is satisfied by construction: the smallest prediction set that guarantees conditional coverage for a given credal set does not expand as epistemic uncertainty decreases. Indeed, a smaller credal set induces fewer constraints in (11 ), and therefore, the optimal (expected) set size cannot increase (and may decrease).

Proposition 2. Consider two valid credal sets \({\mathcal{Q}}_i\) and \({\mathcal{Q}}_i'\) at point \({\boldsymbol{x}}_i\) such that \({\boldsymbol{p}}_i \in {\mathcal{Q}}_i \subseteq {\mathcal{Q}}_i'\). Let \({\boldsymbol{b}}_i^\lambda\) and \({\boldsymbol{b}}_i'^\lambda\) be the solutions to (11 ) corresponding to \({\mathcal{Q}}_i\) and \({\mathcal{Q}}_i'\), respectively. Then we have \({\boldsymbol{b}}_i^\lambda \cdot \boldsymbol{1} \;\le\; {\boldsymbol{b}}_i'^\lambda \cdot \boldsymbol{1}.\)

In 11, we provide toy examples that illustrate this property in a clear and intuitive manner. Another desirable property of the set predictor in 11 is that it recovers APS when the credal set is a singleton.

Proposition 3. For a fixed threshold \(\lambda\) and a singleton credal set \({\mathcal{Q}}_i = \{{\boldsymbol{\pi}}_i\}\), let \({\boldsymbol{b}}_i^\lambda\) be the solution of (11 ) with the single constraint given by \({\boldsymbol{\pi}}_i\). Then \({\boldsymbol{b}}_i^\lambda\) is equal to the Bernoulli inclusion vector of APS defined in (9 ) for the same \({\boldsymbol{\pi}}_i\) and the threshold \(\lambda\). Consequently, the resulting prediction sets constructed by BPS and APS are equivalent in expectation.

Table 1: Methods and guarantees across the three credal set settings.
Valid Credal Sets Partially Valid Credal Sets Credal Sets with Unknown Validity
\(\vp_i \in \gQ_i \;\; \forall\, \vx_i\) \(\Pr_{\vx_i}\!\left[\vp_i \in \gQ_i \right] \ge 1-\epsilon\) unknown validity
Set Predictor BPS\((1-\alpha)\) BPS\((1-\alpha)\) Calibrated BPS\((\lambda^\star)\)
Guarantee Type
\(\vb_i^{1-\alpha} \cdot \vp_i \ge 1-\alpha \;\; \forall\, \vx_i\) \(\Pr_{\vx_i}\!\left[\vb_i^{1-\alpha} \cdot \vp_i \ge 1-\alpha\right] \ge 1-\epsilon\) \(\Pr_{\gD_\dagger}\!\left[\vb_{n+1}^{\lambda^\star} \cdot \vp_{n+1} \ge 1-\alpha\right] \ge 1-\beta\)

4.2 Case II: Partially valid credal sets↩︎

We now consider the case where credal sets are not guaranteed to be valid for every input, but instead are valid with high probability — formally, \[\begin{align} \label{eq:partially95valid95credal} \operatorname{P}_{{\boldsymbol{x}}_i}\!\left[{\boldsymbol{p}}_i \in {\mathcal{Q}}_i \right] \ge 1-\epsilon \, . \end{align}\tag{12}\] From a frequentist perspective, this means that over a random draw of inputs, the associated credal sets are valid for at least a \(1-\epsilon\) fraction of cases. Such partially valid credal sets may arise, for instance, from conformalized credal set predictors [@javanmardi2024conformalized], where the credal sets satisfy a marginal CP guarantee of containing the label distribution with high probability.

In this setting, we again apply BPS\((1-\alpha)\) directly to \({\mathcal{Q}}_i\), without using additional CP calibration. As a consequence, the resulting prediction sets satisfy the following PAC-style conditional coverage guarantee: \[\begin{align} \label{eq:partially95valid95credal:guarantee} \operatorname{P}_{{\boldsymbol{x}}_i}\!\left[{\boldsymbol{b}}_i^{1-\alpha}\cdot {\boldsymbol{p}}_i \ge 1-\alpha \right] \ge 1-\epsilon. \end{align}\tag{13}\]

Intuitively, on at least a \((1-\epsilon)\) fraction of inputs, namely, those for which the credal sets are valid, the conditional coverage is at least at the desired \((1-\alpha)\) level.

Proposition 4. Suppose a credal set predictor outputs sets \({\mathcal{Q}}_i = \mathrm{Convex}(\{{\boldsymbol{\pi}}_i^{(j)}\}_{j=1}^m)\) satisfying \[\begin{align} \operatorname{P}_{{\boldsymbol{x}}_i}\left[{\boldsymbol{p}}_i \in {\mathcal{Q}}_i\right] \ge 1-\epsilon . \end{align}\] For any \(\alpha \in (0,1)\), let \({\mathcal{C}}_{\mathrm{BPS}}({\boldsymbol{x}}_i)\) be constructed as in (5 ) using the solution \({\boldsymbol{b}}_i^{1-\alpha}\) of (11 ). Then \[\begin{align} \operatorname{P}_{{\boldsymbol{x}}_i}\left[ \operatorname{P}\big(y_i \in {\mathcal{C}}_{\mathrm{BPS}}({\boldsymbol{x}}_i) \mid {\boldsymbol{x}}_i\big) \ge 1-\alpha \right] \ge 1-\epsilon . \end{align}\]

It is worth noting that the validity of the credal set \({\mathcal{Q}}_i\) is a sufficient condition for the prediction set \({\boldsymbol{b}}_i^\lambda\) in (11 ) to guarantee \(\lambda\) conditional coverage with respect to the true label distribution \({\boldsymbol{p}}_i\), but it is not necessary. In particular, even if \({\boldsymbol{p}}_i \notin {\mathcal{Q}}_i\), the resulting Bernoulli vector may still satisfy \({\boldsymbol{b}}_i^\lambda \cdot {\boldsymbol{p}}_i \ge \lambda\). That being said, the guarantee in (13 ) should typically be interpreted as a worst-case statement. In practice, the realized conditional coverage with respect to \({\boldsymbol{p}}_i\) may hold for a substantially larger fraction than \(1-\epsilon\).

So far, in both Case I (valid credal sets) and Case II (partially valid credal sets), the prediction sets are obtained directly by solving the optimization problem in (11 ). In these two settings, BPS\((1-\alpha)\) yields prediction sets that either satisfy conditional coverage for every input (Case I) or satisfy it with high probability (Case II), without requiring an additional conformal calibration step.

4.3 Case III: Credal Sets with Unknown Validity↩︎

We finally consider the most general setting, in which no validity assumption is imposed on the outputs of the credal set predictor. In this case, the optimization (11 ) alone does not provide any formal guarantee on the resulting conditional coverage. Therefore, in order to obtain a distribution-free guarantee, we resort to a conformal framework. Since the predictor in (11 ) is monotone in \(\lambda\) (i.e., the resulting sets inflate as \(\lambda\) increases), we adopt the conformal risk control framework, which calibrates \(\lambda\) to control a user-defined notion of risk.

As in the previous two cases, our goal is to obtain a conditional-type guarantee with respect to the true label distribution \({\boldsymbol{p}}_i\). To this end, we consider access to a holdout first-order calibration data set \({\mathcal{D}}_\mathrm{cal}^\mathrm{first} = \{({\boldsymbol{x}}_i, {\boldsymbol{p}}_i)\}_{i=1}^n\) that is exchangeable with the future test point \(({\boldsymbol{x}}_{n+1}, {\boldsymbol{p}}_{n+1})\). We define the risk as the indicator that the conditional coverage falls below the target level \(1-\alpha\), i.e., \[\begin{align} \label{eq:risk:satisfaction} {\mathcal{L}}({\boldsymbol{x}}_i, \lambda) := \mathbb{1}\!\left[{\boldsymbol{b}}_i^\lambda \cdot {\boldsymbol{p}}_i < 1-\alpha\right]. \end{align}\tag{14}\]

For the set predictor in (11 ), the calibration data \({\mathcal{D}}_\mathrm{cal}^\mathrm{first}\), and the risk defined in (14 ), CRC determines the threshold \(\lambda^\star\) as the solution to \[\label{eq:lambda95CP:satisfaction} \inf \left\{ \lambda : \sum_{i=1}^n \mathbb{1}\!\left[{\boldsymbol{b}}_i^\lambda \cdot {\boldsymbol{p}}_i \ge 1-\alpha\right] \ge \left\lceil (1-\beta)(n+1) \right\rceil \right\},\tag{15}\] which bounds the expected risk at the user-specified tolerance \(\beta \in [0,1]\). This translates into the guarantee that \[\begin{align} \label{eq:guarantee:unknown} \operatorname{P}_{{\mathcal{D}}_\dagger}\!\left[ {\boldsymbol{b}}_{n+1}^{\lambda^\star} \cdot {\boldsymbol{p}}_{n+1} \ge 1-\alpha \right] \geq 1-\beta, \end{align}\tag{16}\] where \({\mathcal{D}}_\dagger = {\mathcal{D}}_\mathrm{cal}^\mathrm{first} \cup \{({\boldsymbol{x}}_{n+1}, {\boldsymbol{p}}_{n+1})\}\). In our experiments, we refer to this approach as calibrated BPS with first-order data. 1 provides an overview of all three cases, the corresponding set predictors, and the guarantees they deliver.

Proposition 5. Let a credal set predictor output \({\mathcal{Q}}_i = \mathrm{Convex}(\{{\boldsymbol{\pi}}_i^{(j)}\}_{j=1}^m)\) without any validity assumption, and let \(\alpha,\beta \in (0,1)\) be arbitrary. Let \(\lambda^\star\) be defined as in (15 ) using the first-order calibration data \({\mathcal{D}}_\mathrm{cal}^\mathrm{first}\) that is exchangeable with the test point. Let \({\mathcal{C}}_{\mathrm{BPS}}({\boldsymbol{x}}_i)\) be constructed as in (5 ) using \({\boldsymbol{b}}_i^{\lambda^\star}\) from (11 ). Then the resulting prediction sets satisfy \[\begin{align} \operatorname{P}_{{\mathcal{D}}_\dagger}\!\left[ \operatorname{P}\big(y_{n+1} \in {\mathcal{C}}_{\mathrm{BPS}}({\boldsymbol{x}}_{n+1}) \mid {\boldsymbol{x}}_{n+1}\big) \ge 1 - \alpha \right] \ge 1-\beta . \end{align}\]

This is again a PAC-style guarantee, similar to the one obtained in the case of partially valid credal sets. However, in contrast to that setting, the parameter \(\beta\) is user specified and directly controls the tolerance for violations of the conditional coverage requirement. Moreover, since this is a conformal guarantee, it is essentially tight in finite samples: under exchangeability, the coverage probability is also upper bounded by \(1-\beta + \frac{2}{n+1}\), reflecting the usual sharpness of conformal bounds. 9 shows how these conditional guarantees translate into marginal ones.

4.3.0.1 Remark (calibration beyond BPS).

Although we instantiated the calibration mechanism with BPS, the conformalization step is not restricted to this particular set predictor. In principle, for any set predictor \({\mathcal{C}}_\lambda({\boldsymbol{x}}_i)\) parameterized by \(\lambda\), one may define the risk as the indicator that the conditional coverage falls below \(1-\alpha\). As long as this risk is non-increasing in \(\lambda\), conformal risk control can be applied to determine a calibrated \(\lambda^\star\) that yields the same distribution-free guarantee (see 15).

4.3.0.2 Remark (data requirements and the zero-order proxy).

The first-order data used in this case are required only for calibration and not for training. Credal set predictors are typically trained using standard zero-order data, and therefore, the calibration set does not need to be very large. However, when no first-order calibration data (or reliable approximations thereof) are available, one possible approach is to use the one-hot encoding \({\boldsymbol{e}}_{y_i}\) of the observed labels as a proxy for \({\boldsymbol{p}}_i\) and treat these as first-order observations within the same calibration procedure. This yields an approximate version of the guarantee (see 14). In our experiments, we refer to this variant as calibrated BPS with zero-order data, in contrast to the original calibrated BPS with first-order data.

5 Experiments↩︎

Figure 1: Histograms of the conditional coverage and (expected) set size of BPS(1-\alpha) under valid credal sets. Here, 1-\alpha = 0.9.

In this section, we evaluate the performance of our proposed BPS under different scenarios. First, we consider a setting in which valid credal sets are available. Since such a setup does not yet exist in practice, we simulate it synthetically. Next, we study a scenario in which the credal sets are only partially valid. In these two cases, we simply apply BPS\((1-\alpha)\) without using conformal prediction. Finally, we turn to the setting where the validity of the credal sets is unknown. In this case, we apply BPS together with the proposed calibration procedure. All implementations and experiments can be found on our GitHub repository. 2

5.0.0.1 Datasets.

For the partially valid and unknown-validity settings, we conduct experiments on three real-world datasets for which first-order data is available. These include CIFAR-10 [@krizhevsky2009learning], a 10-class image classification dataset, for which CIFAR-10H [@peterson2019human] provides label distributions over the test set; ChaosNLI [@nie2020what], a 3-class natural language inference dataset; and QualityMRI [@obuchowicz2020qualityMRI; @schmarje2022benchmark], a two-class medical image classification dataset. For all these datasets, we additionally use the corresponding zero-order data for evaluation purposes. Details regarding these datasets, the train–test–calibration splits, and information about the models (both the credal set predictors and the probabilistic classifiers) are provided in 12.

5.0.0.2 Metrics.

In all experiments, we consider three evaluation metrics. Since the main focus of the paper is conditional coverage, we report the conditional coverage satisfaction (Cond. Sat.), defined as the complement of the risk in (14 ). We also report the (expected) set size, as defined in (6 ), and the (expected) coverage of the realized label (Marg. Cvg.). All metrics are averaged over the test inputs.

5.1 Valid credal sets↩︎

To illustrate the performance of BPS on valid credal sets, we first generate \(n = 1000\) instances, each represented by a convex hull of \(m = 10\) randomly selected label distributions with \(K = 5\) classes. For each instance, we sample a random convex combination of the \(m\) distributions and treat it as the true label distribution. We then apply BPS\((1-\alpha)\) to each credal set and evaluate the conditional coverage and the set size accordingly. 1 shows that the resulting prediction sets satisfy the conditional coverage property for every instance.

5.2 Partially valid credal sets↩︎

Table 2: Performance of BPS\((1-\alpha)\) on the partially valid credal sets for CIFAR-10. Here \(1-\alpha = 0.9.\)
\(\epsilon\) Credal Cvg. Cond. Sat. Marg. Cvg. Set Size
0.10 0.90 \(\pm\) 0.01 0.97 \(\pm\) 0.00 1.00 \(\pm\) 0.00 6.55 \(\pm\) 0.23
0.20 0.80 \(\pm\) 0.01 0.93 \(\pm\) 0.01 0.99 \(\pm\) 0.00 1.72 \(\pm\) 0.43
0.30 0.70 \(\pm\) 0.01 0.84 \(\pm\) 0.01 0.95 \(\pm\) 0.01 1.18 \(\pm\) 0.02
Figure 2: Conditional coverage histograms of BPS(1-\alpha) and calibrated BPS with zero- and first-order data on credal sets with unknown validity across three real-world datasets. 1-\alpha = 0.9 and 1-\beta = 0.9.
Table 3: Performance comparison of BPS\((1-\alpha)\) and calibrated BPS with zero- and first-order data on credal sets with unknown validity across three real-world datasets. \(1-\alpha = 0.9\) and \(1-\beta = 0.9\).
CIFAR-10 ChaosNLI QualityMRI
2-4 (r)5-7 (r)8-10 Approach Cond. Sat. Marg. Cvg. Set Size Cond. Sat. Marg. Cvg. Set Size Cond. Sat. Marg. Cvg. Set Size
BPS \((1-\alpha)\) 0.52 \(\pm\) 0.00 0.90 \(\pm\) 0.00 1.09 \(\pm\) 0.00 0.61 \(\pm\) 0.01 0.89 \(\pm\) 0.01 2.00 \(\pm\) 0.02 0.33 \(\pm\) 0.05 0.81 \(\pm\) 0.02 1.36 \(\pm\) 0.04
Calibrated BPS with first-order 0.90 \(\pm\) 0.01 0.98 \(\pm\) 0.00 1.45 \(\pm\) 0.05 0.91 \(\pm\) 0.02 0.95 \(\pm\) 0.01 2.40 \(\pm\) 0.04 0.94 \(\pm\) 0.04 0.99 \(\pm\) 0.01 1.93 \(\pm\) 0.02
Calibrated BPS with zero-order 0.52 \(\pm\) 0.00 0.90 \(\pm\) 0.00 1.09 \(\pm\) 0.00 0.90 \(\pm\) 0.01 0.95 \(\pm\) 0.01 2.35 \(\pm\) 0.04 0.77 \(\pm\) 0.10 0.96 \(\pm\) 0.03 1.81 \(\pm\) 0.07

In order to obtain credal sets that are partially valid, we consider conformalized credal set predictors [@javanmardi2024conformalized]. To that end, we use a probabilistic classifier as the base learner together with a set of first-order calibration data \({\mathcal{D}}_\mathrm{cal}^\mathrm{first} = \{({\boldsymbol{x}}_i, {\boldsymbol{p}}_i)\}_{i = 1}^n\). On this data, we compute the total variation distance between the true label distribution \({\boldsymbol{p}}_i\) and the estimated one \({\boldsymbol{\pi}}_i\), forming the score set \({\mathcal{S}}_\text{TV} = \{\operatorname{TV}({\boldsymbol{\pi}}_i, {\boldsymbol{p}}_i)\}_{i=1}^{n}\). For any future test input \({\boldsymbol{x}}_{n+1}\), the conformalized credal set is then defined as \[\begin{align} {\mathcal{Q}}_{n+1} = \{ {\boldsymbol{q}}\in \triangle^K : \operatorname{TV}({\boldsymbol{\pi}}_{n+1}, {\boldsymbol{q}}) \leq {\mathbb{Q}}\left(1 - \epsilon;{\mathcal{S}}_\text{TV}\right) \}. \end{align}\] For every \(\epsilon \in (0,1)\), this credal set is guaranteed to cover the true label distribution with high probability, i.e., \[\begin{align} \operatorname{P}_{{\mathcal{D}}_\dagger}[{\boldsymbol{p}}_{n+1} \in {\mathcal{Q}}_{n+1}] \ge 1 - \epsilon. \end{align}\] In 1 in 10, we provide an analytical derivation of the vertices of the credal sets constructed in this manner. Given the credal sets defined as the convex hull of their vertices, we then apply BPS\((1-\alpha)\) on the test set. For this method, we randomly split the evaluation data into calibration and test subsets, repeat this procedure \(10\) times with different random seeds, and report the results averaged over these runs.

In 2, we show the performance of this method on CIFAR-10 for \(\epsilon \in \{0.1, 0.2, 0.3\}\). For this setting, we also report the coverage of the credal sets (Credal Cvg.), which matches the theoretical guarantee. As \(\epsilon\) increases, the credal sets shrink in general, which results in smaller prediction sets. Furthermore, it can be seen that the conditional coverage satisfaction is in general higher than \(1-\epsilon\), which is also expected, as explained in 4.2. This is mainly because prediction sets constructed from invalid credal sets may also satisfy conditional coverage. We have also applied the same approach to the other two datasets and provide the corresponding results in 4 in 13.

5.3 Credal sets with unknown validity↩︎

For this case, we consider the Credal Ensembling (CreEns) approach [@nguyen2025credal] as a credal set predictor, where the credal set is constructed as the convex hull of the softmax outputs of an ensemble of neural networks (see 12.1 for further details on the CreEns model). For each dataset, we randomly set aside a portion of the data for calibration and apply calibrated BPS with both zero- and first-order data. This random split into calibration and test sets is repeated \(10\) times with different random seeds; prediction sets are constructed in each run, and the reported results are averaged over these seeds. In addition, we consider BPS\((1-\alpha)\) (i.e., BPS without calibration at nominal level \(1-\alpha\)) as a baseline.

2 compares the conditional coverage over the test set for the three approaches on each dataset, and 3 provides the full performance comparison over the test sets for all three approaches and datasets. As expected, BPS calibrated with first-order data performs best, satisfying the desired conditional coverage for at least a \(1-\beta=0.9\) fraction of cases. In contrast, BPS\((1-\alpha)\) violates conditional satisfaction in all cases, although it produces the most efficient (smallest) prediction sets. Calibrated BPS with zero-order data improves over BPS\((1-\alpha)\) in terms of conditional coverage; in some cases, such as ChaosNLI, it performs comparably to BPS calibrated with first-order data. Overall, it lies between the other two methods with respect to both efficiency and conditional coverage.

The results in all three cases support our theoretical findings. In 14 and 15, we further investigate the effect of alternative calibration strategies—corresponding to different risk definitions—on these three datasets in the setting of credal sets with unknown validity. Moreover, since the guarantee in (16 ) can be achieved by any set predictor and is not restricted to BPS, we additionally examine the performance of the proposed calibration strategy when applied to alternative set predictors. 16 additionally evaluates all methods under distribution shift.

6 Conclusion↩︎

In this paper, we consider the problem of set prediction in a classification setting where the underlying model is a credal set predictor that outputs a set of label distributions for each input. We start with the case where the credal sets are valid, meaning the true label distribution lies within the credal set for every input. We propose a parametric set predictor, the Bernoulli prediction set (BPS), that outputs the smallest possible set guaranteeing conditional coverage at each input. When validity holds only with high probability over inputs, BPS can be applied to achieve a PAC-style conditional coverage guarantee; that is, with high probability, the achieved conditional coverage is at least the desired level. When the validity of the credal sets is unknown, BPS cannot provide guarantees on its own. For this case, we use first-order calibration data together with a risk function, defined as the indicator that conditional coverage is below the desired level, to calibrate BPS through the Conformal Risk Control (CRC) framework. This approach also leads to a PAC-style conditional coverage guarantee. In this case, the amount of violation of conditional coverage can be controlled by the user-specified error rate of CRC.

Alireza Javanmardi was supported by the Klaus Tschira Stiftung (project 00.019.2024). Willem Waegeman was supported by the Flemish Government under the Flanders AI Research program. The authors are thankful to Stefan Heid for his valuable insights on 1.

Appendix :1em

7 Related Work↩︎

7.0.0.1 Set prediction under epistemic uncertainty.

The connection between conformal prediction and epistemic uncertainty-aware predictors has recently attracted increasing attention. [@rossellini2024integrating] incorporate epistemic uncertainty into conformalized quantile regression to improve conditional coverage, while [@azizi2026clear] construct prediction sets by adaptively balancing epistemic and aleatoric uncertainty. Our work differs from these two as we focus on classification, and their regression-based approaches are not directly transferable. Furthermore, these methods often rely on heuristics that do not provide the same theoretical guarantees as our framework. [@karimi2024evidential] introduce a nonconformity score based on uncertainty estimates derived from evidential models, and [@cabezas2025epistemic] integrate epistemic uncertainty into conformal prediction by fitting a Bayesian model on top of nonconformity scores. What separates our work from these Bayesian and evidential approaches is that we study how epistemic uncertainty, represented explicitly via credal sets, can be incorporated into conformal prediction. Our focus is on providing finite-sample conditional coverage guarantees, whereas previous methods lack such formal properties in this setting. The problem of deriving prediction sets from credal sets has also been studied in the imprecise probability literature [@caprio2024credalbayesian]. However, such approaches typically do not provide finite-sample coverage guarantees without additional structural assumptions.

7.0.0.2 Availability of first-order data.

In practice, many datasets are labeled by human annotators, and in many cases, multiple annotators are involved. This approach is becoming increasingly common, with crowdsourcing tools becoming an integral component of dataset collection, making multiple annotations per data instance more accessible [@kovashka2016crowdsourcing; @sorokin2008utility]. Disagreement among annotators is also very common, especially in natural language tasks [@abercrombie2023consistency; @nie2020what] and computer vision [@beyer2020we; @peterson2019human; @schmarje2022benchmark]. This facilitates the availability of such data in practice. In our case, training the credal set predictor relies solely on standard zero-order data; first-order data is only required during the calibration step and need not be large. The number of calibration samples primarily affects the sharpness of the coverage distribution in conformal prediction, and in practice, tens to a few hundred such samples are often sufficient.

8 Proofs↩︎

8.0.0.1 1

Proof. We show that this set achieves at least \(1 - \alpha\) expected conditional coverage with respect to any \({\boldsymbol{p}}\in {\mathcal{Q}}_i\). Since \({\boldsymbol{p}}\) lies in the convex hull of \(\{{\boldsymbol{\pi}}_i^{(j)}\}_{j=1}^m\), we can write \({\boldsymbol{p}}= \sum_{j = 1}^m \eta_j {\boldsymbol{\pi}}_i^{(j)}\) for some \(\eta_j \in [0, 1]\) with \(\sum_{j = 1}^m \eta_j = 1\). It follows that \({\boldsymbol{b}}_i^{1 - \alpha} \cdot {\boldsymbol{p}}= \sum_{j = 1}^m \eta_j \, ({\boldsymbol{b}}_i^{1 - \alpha} \cdot {\boldsymbol{\pi}}_i^{(j)})\), and by definition, \({\boldsymbol{b}}_i^{1 - \alpha} \cdot {\boldsymbol{\pi}}_i^{(j)} \ge {1 - \alpha}\) for all \(j\). Then \[\begin{align} {\boldsymbol{b}}_i^{1 - \alpha} \cdot{\boldsymbol{p}}= \sum_{j = 1}^m \eta_j ({\boldsymbol{b}}_i^{1 - \alpha} \cdot {\boldsymbol{\pi}}_i^{(j)}) \ge {1 - \alpha}\sum_{j = 1}^m \eta_j = {1 - \alpha}. \end{align}\] The fact that it is the minimal set directly follows from the definition of 11 . ◻

8.0.0.2 2

Proof. Since \({\boldsymbol{p}}_i \in {\mathcal{Q}}_i \subseteq {\mathcal{Q}}_i'\), the solution to the optimization in 11 with \({\mathcal{Q}}'_i\) is also feasible for the same optimization with \({\mathcal{Q}}_i\). Therefore, \({\boldsymbol{b}}_i^\lambda \cdot \boldsymbol{1} \;\le\; {\boldsymbol{b}}_i'^\lambda \cdot \boldsymbol{1}\). ◻

8.0.0.3 3

Proof. For a singleton credal set \({\mathcal{Q}}_i = \{{\boldsymbol{\pi}}_i\}\), the optimization problem in 11 reduces to \[\begin{align} {\boldsymbol{b}}_i^\lambda = \mathop{\mathrm{arg\,min}}_{{\boldsymbol{b}}} \;{\boldsymbol{b}}\cdot \boldsymbol{1} \quad \text{s.t.} \quad {\boldsymbol{b}}\cdot {\boldsymbol{\pi}}_i \ge \lambda . \end{align}\] This is a fractional knapsack problem. Its optimal solution is obtained by sorting \({\boldsymbol{\pi}}_i\) in decreasing order and allocating inclusion probabilities to the corresponding labels greedily. Let \(\tilde{{\boldsymbol{\pi}}}_i\) denote the sorted version of \({\boldsymbol{\pi}}_i\) such that \(\tilde{\pi}_{i1} \ge \dots \ge \tilde{\pi}_{iK}\), and let \(L({\boldsymbol{\pi}}_i,\lambda) = \min \{ k \in [K] : \sum_{j=1}^{k} \tilde{\pi}_{ij} \ge \lambda \}\). Then the optimal vector in the sorted coordinate system is \((1,\dots,1, b_{iL({\boldsymbol{\pi}}_i,\lambda)}^\lambda, 0,\dots,0)\), where the first \(L({\boldsymbol{\pi}}_i,\lambda)-1\) entries are equal to \(1\), the entries after \(L({\boldsymbol{\pi}}_i,\lambda)\) are \(0\), and \[b_{iL({\boldsymbol{\pi}}_i,\lambda)}^\lambda = \frac{\lambda - \sum_{c=1}^{L({\boldsymbol{\pi}}_i,\lambda)-1} \tilde{\pi}_{ic}}{\tilde{\pi}_{iL({\boldsymbol{\pi}}_i,\lambda)}} .\] Reordering back to the original label indexing yields \({\boldsymbol{b}}_i^\lambda\), which satisfies \({\boldsymbol{b}}_i^\lambda\cdot {\boldsymbol{\pi}}_i = \lambda\).

This coincides exactly with the Bernoulli inclusion vector underlying APS in (9 ) for the same \({\boldsymbol{\pi}}_i\) and threshold \(\lambda\). In both cases, the top \(L({\boldsymbol{\pi}}_i,\lambda)-1\) labels are included deterministically, the \(L({\boldsymbol{\pi}}_i,\lambda)\)-th label is included with probability \(b_{iL({\boldsymbol{\pi}}_i,\lambda)}^\lambda\), and all remaining labels are excluded. Hence, the BPS and APS constructions induce the same inclusion probabilities and therefore yield equivalent prediction sets in expectation. ◻

8.0.0.4 4

Proof. On the event \({{\boldsymbol{p}}_i \in {\mathcal{Q}}_i}\), validity of the credal set implies \({\boldsymbol{b}}_i^{1-\alpha} \cdot {\boldsymbol{p}}_i \ge 1-\alpha\) by construction of BPS. Since this event occurs with probability at least \(1-\epsilon\), the result follows. ◻

8.0.0.5 5

Proof. By construction, \(\lambda^\star\) controls the empirical risk in (14 ). The result follows directly from the distribution-free guarantee of conformal risk control, which ensures that the expected risk of the test point is bounded by \(\beta\) under exchangeability. ◻

9 From Conditional to Marginal Coverage Guarantees↩︎

The conditional coverage guarantee directly implies a marginal coverage guarantee as well. In particular, if \({\boldsymbol{b}}_{i}^{1-\alpha} \cdot {\boldsymbol{p}}_{i} \ge 1-\alpha, \quad \forall {\boldsymbol{x}}_{i}\), then automatically \(\operatorname{P}\big[y_{n+1} \in {\mathcal{C}}_{\mathrm{BPS}}({\boldsymbol{x}}_{n+1})\big] \ge 1-\alpha\), where the probability is over the test point and the randomization of the set. However, in the PAC-style conditional coverage setting, the guarantee transfers to a marginal coverage guarantee of at least \((1-\delta)(1-\alpha)\), where \(\delta\) denotes the corresponding error rate (\(\delta = \epsilon\) under partially valid credal sets in 4.2, and \(\delta = \beta\) under credal sets with unknown validity in 4.3). We show this for Case III; the argument for Case II is identical, with the probability taken over the random draw of the input instead of \({\mathcal{D}}_\dagger\). Indeed, \[\begin{align} \operatorname{P}_{{\mathcal{D}}_\dagger}\big[y_{n+1} \in {\mathcal{C}}_{\mathrm{BPS}}({\boldsymbol{x}}_{n+1})\big] = \mathbb{E}_{{\mathcal{D}}_\dagger}\big[\operatorname{P}(y_{n+1} \in {\mathcal{C}}_{\mathrm{BPS}}({\boldsymbol{x}}_{n+1}) \mid {\boldsymbol{x}}_{n+1}) \big] = \mathbb{E}_{{\mathcal{D}}_\dagger}\big[{\boldsymbol{b}}_{n+1}^{\lambda^\star}\cdot {\boldsymbol{p}}_{n+1}\big] \ge (1-\beta)(1-\alpha) + \underbrace{\beta \cdot 0}_{\text{worst case}}. \end{align}\] In practice, however, we observe that the achieved marginal coverage under the PAC-style conditional guarantee is often substantially higher than this worst-case bound.

10 TV-Distance Neighborhood: A Specific Credal Set with Analytical Corner Points↩︎

In this section, we show that a credal set defined as the set of all label distributions in the simplex \(\triangle^K\) with total variation distance less than or equal to \(d\) from \({\boldsymbol{p}}\) can be analytically described by a set of \(K(K-1)\) corner points.

Theorem 1. The \(d\)-neighborhood of a distribution \({\boldsymbol{p}}\in \triangle^K\), i.e., the set of all distributions in \(\triangle^K\) with a total variation distance \(\leq d\), is a polytope defined by a finite number of corner points in \(\triangle^K\).

Proof. Let \(\bar{\triangle}^K \supset \triangle^K\) denote the set of all \({\boldsymbol{p}}= (p_1, \ldots, p_K) \in \mathbb{R}^K\) such that \(p_1 + \ldots + p_K = 1\) (i.e., also including negative entries). The set of all \({\boldsymbol{q}}\in \bar{\triangle}^K\) whose total variation distance from \({\boldsymbol{p}}\) is bounded by \(d\), i.e., \[N_d({\boldsymbol{p}}) := \left\{ {\boldsymbol{q}}\in \bar{\triangle}^K \, \vert \, \max_{A \subseteq [K]} \left| \sum_{k \in A} p_k - \sum_{k \in A} q_k \right| \leq d \right\} \, ,\] is given by the convex polytope \(C\) with corner points \({\boldsymbol{p}}^{i,j} = {\boldsymbol{p}}+ {\boldsymbol{h}}^{i,j}\), \(1 \leq i \neq j \leq K\), where the \(i^{th}\) entry in \({\boldsymbol{h}}^{i,j}\) is \(+d\), the \(j^{th}\) entry is \(-d\), and all other entries are 0. For the direction \(C \subset N_d({\boldsymbol{p}})\), note that any \({\boldsymbol{p}}^{i,j}\) is obviously in \(N_d({\boldsymbol{p}})\). Moreover, for \({\boldsymbol{q}}= \sum_{i,j} \alpha_{i,j} \, {\boldsymbol{p}}^{i,j}\), where \(\alpha_{i,j} \geq 0\) and \(\sum_{i,j} \alpha_{i,j} = 1\), and any \(A \subseteq [K]\), \[\begin{align} \sum_{k \in A} p_k - \sum_{k \in A} q_k & = \sum_{k \in A} p_k - \sum_{k \in A} \sum_{i,j} \alpha_{i,j} \, p^{i,j}_k \\ & = \sum_{k \in A} \sum_{i,j} \alpha_{i,j} \, (p_k - p^{i,j}_k ) \\ & = \sum_{i,j} \alpha_{i,j} \sum_{k \in A} \, (p_k - p^{i,j}_k ) \\ & \leq \max_{i,j} \sum_{k \in A} \, (p_k - p^{i,j}_k ) \\ & \leq d. \end{align}\] To show the direction \(N_d({\boldsymbol{p}}) \subset C\), consider any \({\boldsymbol{q}}\in N_d({\boldsymbol{p}})\) such that \({\boldsymbol{q}}\neq {\boldsymbol{p}}\). Let \(A \subseteq [K]\) be a (smallest) subset that determines the total variation distance between \({\boldsymbol{q}}\) and \({\boldsymbol{p}}\). Then either \(q_i > p_i\) for all \(i \in A\), or \(q_i < p_i\) for all \(i \in A\). Consider the first case (without loss of generality) and let \((\cdot)\) be a permutation of \([K]\) such that \(q_{(1)} - p_{(1)} \geq q_{(2)} - p_{(2)} \geq \ldots \geq q_{(K)} - p_{(K)}\). Then \(A = \{ (1), \ldots , (J) \}\) for some \(1 \leq J < K\) and \[\sum_{k \in [J]} q_{(k)} - p_{(k)} = d' \leq d \, .\] We can then write \(q_{(k)} = \sum_{i,j} \alpha_{i,j} \, p^{i,j}_{(k)}\) for suitably chosen \(\alpha_{i,j} \geq 0\) with \(\sum_{i,j} \alpha_{i,j} = 1\), which means that \({\boldsymbol{q}}\in C\). The \(\alpha_{i,j}\) can be specified in a constructive way by processing the entries in \({\boldsymbol{q}}\) one by one, starting with the \(k\) for which the difference \(|q_{(k)} - p_{(k)}|\) is smallest and proceeding to the larger ones.

Now, the \(d\)-neighborhood of \({\boldsymbol{p}}\) that we are looking for is given by the intersection \(C \cap \Delta^K\), i.e., by the intersection of two convex polytopes. Thus, it is itself again a convex polytope. ◻

11 Toy Examples Illustrating Epistemic Adaptivity↩︎

a
b

Figure 3: Adaptivity of BPS versus APS to epistemic uncertainty. For both examples, we set \(1-\alpha = 0.9\).. a — Example 1, b — Example 2

11.0.0.1 Example 1.

Consider the following toy example of a three-class classification problem, where \({\boldsymbol{x}}\) is a one-dimensional input. The data-generating mechanism is defined as follows:

  • If \({\boldsymbol{x}}_i \in [-1,0] \cup [3,4]\), then \(y_i\) belongs to class 1.

  • If \({\boldsymbol{x}}_i \in [1,2]\), then \(y_i\) belongs to class 2 or 3 with equal probability, i.e., \(\operatorname{P}(y_i=2 \mid {\boldsymbol{x}}_i)=\operatorname{P}(y_i=3 \mid {\boldsymbol{x}}_i)=0.5\).

In other regions of the input space, namely \([-2,-1]\), \([0,1]\), \([2,3]\), and \([4,5]\), no training data are observed. An ensemble of neural networks is trained on this data and treated as a credal set predictor. For inputs \({\boldsymbol{x}}_i \in [-2,5]\), prediction sets are constructed using BPS\((1-\alpha)\). For comparison, we also aggregate the ensemble by taking the mean of its predictive distributions, treat it as a single probabilistic classifier, and construct prediction sets using APS\((1-\alpha)\). As shown in 3 (a), in regions where sufficient training data are available, both set predictors behave similarly. However, in regions with no observed data, BPS reflects the increased epistemic uncertainty through larger prediction sets, whereas APS does not consistently account for this uncertainty.

11.0.0.2 Example 2.

Consider two credal sets as illustrated in 3 (b), where \({\mathcal{Q}}_2 \subset {\mathcal{Q}}_1\). As a consequence of 2 (epistemic adaptivity), the prediction set constructed by BPS for \({\mathcal{Q}}_1\) must be at least as large as the one constructed for \({\mathcal{Q}}_2\), since \({\mathcal{Q}}_1\) represents higher epistemic uncertainty. In this example, we also demonstrate that ignoring the credal set and instead working with the averaged predictor combined with APS does not satisfy this adaptivity property. Concretely, for \({\mathcal{Q}}_1\), the Bernoulli inclusion vector obtained by APS (applied to the mean predictor) is \([1,1,0]\), while BPS yields \([1, 0.91, 0.58]\). For \({\mathcal{Q}}_2\), APS produces \([1,1,0.23]\), whereas BPS results in \([1, 0.57, 0.71]\). The expected set size (i.e., the sum of inclusion probabilities) for BPS decreases from \(2.49\) to \(2.28\) when moving from \({\mathcal{Q}}_1\) to \({\mathcal{Q}}_2\), reflecting the reduction in epistemic uncertainty. In contrast, for APS, the expected set size increases from \(2\) to \(2.23\), violating epistemic adaptivity.

12 Experiments Details↩︎

12.1 Models↩︎

For the experiments on real-world datasets, we consider two credal set predictors: Credal Relative Likelihood (CreRL) [@lohr2025credal] and Credal Ensembling (CreEns) [@nguyen2025credal]. Both methods are based on an ensemble of neural networks. In all experiments, the number of ensemble members is fixed to \(m=20\). The CreRL framework considers a parameter \(\gamma\) (referred to as \(\alpha\) in the original paper; to avoid confusion with our error rate \(\alpha\), we denote it by \(\gamma\)). It constructs the credal set from the \(m\) ensemble members, where the relative likelihood of the \(i^\text{th}\) member is limited to \(\gamma + (i-1) \cdot \frac{1-\gamma}{m-1}, \forall i \in [m]\) by an early stopping strategy. The CreEns framework builds on standard ensemble training with \(m\) members. It first considers the mean predictor as a representative and computes the Euclidean distance of each of the \(m\) members to this representative. For a given \(\gamma\), it then removes a \(\gamma\) fraction of the ensemble members with the largest Euclidean distance from the representative. All training details follow [@lohr2025credal] and their GitHub repository3. In 4, we plot the coverage of the credal sets, defined as the convex hull of the \(m\) predictors constructed by these methods, across three datasets for various values of \(\gamma\). Note that the smaller the value of \(\gamma\), the larger the resulting credal sets, hence the higher the coverage.

For the experiments in 5.2, since we required a probabilistic classifier, we considered the average predictor of CreRL (\(\gamma = 1.0\)) ensemble as the probabilistic classifier. We choose \(\gamma = 1.0\) because in this setting the coverage of the credal set is not relevant; we only rely on the average predictor as a probabilistic classifier. For the experiments in 5.3, in order to balance credal coverage and set size, we used CreEns (\(\gamma = 0.4\)), resulting in an ensemble of size \(12\). Later, in 7, when reporting experiments with APS, we use the average predictor of this ensemble as the probabilistic classifier.

Figure 4: Credal sets coverage for different credal set predictors on the three real-world datasets.

12.2 Datasets↩︎

12.2.0.1 CIFAR-10.

The CIFAR-10 dataset [@krizhevsky2009learning] is an image classification dataset with 10 classes, containing 50K training and 10K test instances. A variant of this dataset, namely CIFAR-10H [@peterson2019human], provides multiple human annotations for each image in the CIFAR-10 test set. The human judgments for each image are aggregated into a categorical distribution over the classes, which serves as the oracle label distribution for that image. In all experiments with this dataset, the training data was used to train the models, while the test data was divided into \(20\%\) for calibration and \(80\%\) for evaluation. As a neural network, we use the PyTorch implementation of ResNet-18, similar in spirit to the setup of [@lohr2025credal].

12.2.0.2 ChaosNLI.

ChaosNLI [@nie2020what] is an English Natural Language Inference (NLI) dataset in which the task is to classify the textual alignment between a given premise–hypothesis pair into three classes: entailment, contradiction, and neutral. The instances are selected from the development sets of SNLI [@bowman2015large], MNLI [@williams2018broad], and AbductiveNLI [@bhagavatula2019abductive], focusing on examples with high disagreement among labels provided by human annotators. Each premise–hypothesis pair was then annotated by \(100\) independent humans under strict annotation guidelines, and their responses were aggregated to form the oracle label distribution. We combine the Chaos-SNLI and Chaos-MNLI subsets, resulting in a dataset of \(3113\) datapoints, of which \(80\%\) is used for model training, \(10\%\) for calibration, and \(10\%\) for evaluation purposes. The premise–hypothesis pairs are embedded in the same manner as in [@javanmardi2024conformalized], and a similar fully-connected neural network with \(4\) hidden layers was used as the base for the ensemble.

12.2.0.3 QualityMRI.

The QualityMRI dataset contains human magnetic resonance images (MRI) with varying levels of diagnostic quality [@obuchowicz2020qualityMRI]. Each image is evaluated independently by several radiologists, capturing variability in perceived image quality. For our purposes, the task is framed as a binary classification problem, where the aggregated radiologist annotations are interpreted as an oracle label distribution over the two classes [@schmarje2022benchmark]. The dataset is relatively small, comprising 310 instances in total. We use \(80\%\) of the data for training, \(10\%\) for calibration, and the remaining \(10\%\) for evaluation. On this data, we employ the ResNet-18 architecture from the PyTorch torchvision package without pretrained weights as a base for the ensemble.

13 Extension of Experiments with Partially Valid Credal Sets↩︎

In this section, we extend the results of 5.2 to the remaining two datasets, namely, ChaosNLI and QualityMRI. 4 confirms that what we observed for the case of CIFAR-10 also holds for the other two datasets. Specifically, the conditional coverage satisfaction is always greater than \(1-\epsilon\).

Table 4: Performance of BPS\((1-\alpha)\) on the partially valid credal sets for different datasets. Here \(1-\alpha = 0.9.\)
CIFAR-10 ChaosNLI QualityMRI
2-5 (r)6-9 (r)10-13 \(\epsilon\) Credal Cvg. Cond. Sat. Marg. Cvg. Set Size Credal Cvg. Cond. Sat. Marg. Cvg. Set Size Credal Cvg. Cond. Sat. Marg. Cvg. Set Size
0.10 0.90 \(\pm\) 0.01 0.97 \(\pm\) 0.00 1.00 \(\pm\) 0.00 6.55 \(\pm\) 0.23 0.89 \(\pm\) 0.02 0.98 \(\pm\) 0.01 0.92 \(\pm\) 0.00 2.69 \(\pm\) 0.00 0.90 \(\pm\) 0.08 1.00 \(\pm\) 0.00 0.90 \(\pm\) 0.00 1.80 \(\pm\) 0.00
0.20 0.80 \(\pm\) 0.01 0.93 \(\pm\) 0.01 0.99 \(\pm\) 0.00 1.72 \(\pm\) 0.43 0.79 \(\pm\) 0.03 0.95 \(\pm\) 0.01 0.93 \(\pm\) 0.00 2.67 \(\pm\) 0.00 0.79 \(\pm\) 0.08 1.00 \(\pm\) 0.00 0.90 \(\pm\) 0.00 1.80 \(\pm\) 0.00
0.30 0.70 \(\pm\) 0.01 0.84 \(\pm\) 0.01 0.95 \(\pm\) 0.01 1.18 \(\pm\) 0.02 0.70 \(\pm\) 0.04 0.92 \(\pm\) 0.01 0.94 \(\pm\) 0.00 2.63 \(\pm\) 0.01 0.71 \(\pm\) 0.10 1.00 \(\pm\) 0.00 0.90 \(\pm\) 0.00 1.80 \(\pm\) 0.00

14 Alternative Risk Functions for Calibration↩︎

In 4.3, when introducing our calibration approach, we specifically considered the risk in (14 ), namely the indicator that the conditional coverage falls below the target level \(1-\alpha\). We chose this risk in order to provide a PAC-style conditional coverage guarantee for our set predictor. However, CRC can be applied with arbitrary risk functions, leading to different types of guarantees. Recall that \({\mathcal{D}}_\mathrm{cal}^\mathrm{first} = \{({\boldsymbol{x}}_i, {\boldsymbol{p}}_i)\}_{i=1}^n\) denotes the first-order calibration data, exchangeable with the future test point, and \({\mathcal{D}}_\dagger = {\mathcal{D}}_\mathrm{cal}^\mathrm{first} \cup \{({\boldsymbol{x}}_{n+1}, {\boldsymbol{p}}_{n+1})\}\). Likewise, \({\mathcal{D}}_\mathrm{cal}^\mathrm{zero} = \{({\boldsymbol{x}}_i, y_i)\}_{i=1}^n\) denotes the zero-order calibration data, with \({\mathcal{D}}_+ = {\mathcal{D}}_\mathrm{cal}^\mathrm{zero} \cup \{({\boldsymbol{x}}_{n+1}, y_{n+1})\}\). When first-order calibration data are available, one may consider the conditional miscoverage risk \[{\mathcal{L}}({\boldsymbol{x}}_i, \lambda) = 1 - {\boldsymbol{b}}_i^\lambda \cdot {\boldsymbol{p}}_i.\] Alternatively, when only zero-order data are accessible, one may use the marginal miscoverage risk \[{\mathcal{L}}({\boldsymbol{x}}_i, \lambda) = 1 - {\boldsymbol{b}}_i^\lambda \cdot {\boldsymbol{e}}_{y_i},\] where \({\boldsymbol{e}}_{y_i}\) denotes the one-hot encoding of \(y_i\). This latter risk can be viewed as a soft extension of classical conformal prediction with miscoverage risk \(\mathbb{1}(y_i \notin {\mathcal{C}}({\boldsymbol{x}}_i))\) to the randomized set setting. In 5, we provide an overview of the different risk functions, the data they require, and the guarantees they deliver. In 7, we compare the performance of calibrated BPS under these risk formulations.

Table 5: Different risk functions, their calibration data requirements, and their guarantees.
Approach Name Risk \(\gL(\vx_i, \lambda)\) Calibration Data Guarantee
CondSatFirst \(\mathds{1}\left[\vb_i^\lambda \cdot \vp_i < 1-\alpha\right]\) first-order data \(\Pr_{\gD_\dagger}\left[\vb_{n+1}^{\lambda^\star} \cdot \vp_{n+1} \ge 1-\alpha\right] \geq 1-\beta\)
CondSatZero \(\mathds{1}\left[\vb_i^\lambda \cdot \ve_{y_i} < 1-\alpha\right]\) zero-order data \(\Pr_{\gD_+}\left[\vb_{n+1}^{\lambda^\star} \cdot \ve_{y_{n+1}} \ge 1-\alpha\right] \geq 1-\beta\)
MeanCondFirst \(1- \vb_i^\lambda \cdot \vp_{i}\) first-order data \(\mathbb{E}_{\gD_\dagger}\left[\vb_{n+1}^{\lambda^\star} \cdot \vp_{n+1} \right] \geq 1-\beta\)
MargZero \(1- \vb_i^\lambda \cdot \ve_{y_i}\) zero-order data \(\mathbb{E}_{\gD_+}\left[\vb_{n+1}^{\lambda^\star} \cdot \ve_{y_{n+1}} \right] \geq 1-\beta\)

15 Alternative Set Predictors↩︎

Figure 5: Histograms of the conditional coverage and (expected) set size of BPS(1-\alpha) and APS(1-\alpha) under valid credal sets. Here, 1-\alpha = 0.9.

While in our experiments we used BPS as a natural base set predictor built on top of a credal set predictor, one may ask whether alternative set predictors could be employed. To this end, recall that in the fully valid and partially valid credal set settings (4.1 and 4.2), we do not apply any conformal prediction framework. In these cases, BPS alone delivers the desired (exact or PAC-style) conditional coverage guarantee with respect to the true label distribution. Hence, it is not immediately clear what would be gained by replacing BPS with another set predictor.

However, for the case of credal sets with unknown validity (4.3), as we apply CRC to get the PAC-style conditional coverage guarantee, any other set predictor can be used together with the risk defined in (14 ) and the first-order calibration data to deliver the guarantee. For example, one could aggregate the credal set into a single representative distribution, for instance, by taking the mean over the \(m\) distributions defining the credal set, and treat it as a probabilistic classifier. On top of this averaged predictor, methods such as APS could then be applied. While this is a valid construction, it effectively collapses the credal set into a single distribution and therefore no longer explicitly represents epistemic uncertainty. As a consequence, even if such a method satisfies a similar coverage guarantee after calibration, the resulting prediction sets do not adapt to epistemic uncertainty in the same principled way as BPS derived directly from the credal set.

To further investigate this point, we compare the performance of BPS and APS in all three cases. For Cases I and II (valid and partially valid credal sets), we simply replace BPS\((1-\alpha)\) with APS\((1-\alpha)\), i.e., APS with the same nominal coverage level. 5 compares the conditional coverage and set sizes for the case of valid credal sets. It can be seen that, unlike BPS\((1-\alpha)\), APS\((1-\alpha)\) ignores the information contained in the credal sets and violates conditional coverage in a substantial fraction of cases, while producing more efficient (smaller) prediction sets. 6 reports the corresponding results for partially valid credal sets. Note that, in this setting, APS is applied to the mean of the ensemble, which is independent of \(\epsilon\); hence, unlike BPS, its results do not vary with \(\epsilon\), and we report a single row per dataset. A similar pattern emerges: compared to BPS\((1-\alpha)\) as reported in 4, APS\((1-\alpha)\) again violates the desired conditional coverage guarantee.

For the case of credal sets with unknown validity, the situation differs. As discussed in 4.3, our guarantee can be leveraged for any set predictor, including APS. In particular, calibrated APS can also attain the PAC-style conditional coverage guarantee. Nevertheless, BPS continues to explicitly exploit epistemic uncertainty through the credal set representation, whereas APS operates on a single aggregated distribution and ignores this structure. In 11, we illustrate this difference through toy examples. The full comparison of APS- and BPS-based predictors for this setup under different calibration strategies is given in 7.

15.0.0.1 Remark (APS-based set predictors).

We emphasize that although we refer to these methods as APS-based in our experiments, they should not be confused with the original APS approach from the literature [@romano2020classification]. The constructions considered here do not appear in prior work; rather, they correspond to our calibration strategies applied to APS as a base set predictor. Only APS\((1-\alpha)\) (APS without calibration) and APS with MargZero calibration (the standard conformal calibration) correspond to the original APS method; the remaining combinations are new.

Table 6: Performance of APS\((1-\alpha)\) on the partially valid credal sets for different datasets. Since APS operates on the mean predictor, which does not depend on \(\epsilon\), the results are identical for all values of \(\epsilon\). Here \(1-\alpha = 0.9.\)
Dataset Cond. Sat. Marg. Cvg. Set Size
CIFAR-10 0.53 \(\pm\) 0.00 0.90 \(\pm\) 0.00 1.05 \(\pm\) 0.00
ChaosNLI 0.56 \(\pm\) 0.03 0.89 \(\pm\) 0.01 1.89 \(\pm\) 0.02
QualityMRI 0.11 \(\pm\) 0.04 0.52 \(\pm\) 0.04 1.14 \(\pm\) 0.03
Table 7: Performance comparison of different set predictors using different calibration approaches on credal sets with unknown validity across three real-world datasets. \(1-\alpha = 0.9\) and \(1-\beta = 0.9\).
CIFAR-10 ChaosNLI QualityMRI
3-5 (r)6-8 (r)9-11 base Calibration Cond. Sat. Marg. Cvg. Set Size Cond. Sat. Marg. Cvg. Set Size Cond. Sat. Marg. Cvg. Set Size
BPS \((1-\alpha)\) 0.52 \(\pm\) 0.00 0.90 \(\pm\) 0.00 1.09 \(\pm\) 0.00 0.61 \(\pm\) 0.01 0.89 \(\pm\) 0.01 2.00 \(\pm\) 0.02 0.33 \(\pm\) 0.05 0.81 \(\pm\) 0.02 1.36 \(\pm\) 0.04
CondSatFirst 0.90 \(\pm\) 0.01 0.98 \(\pm\) 0.00 1.45 \(\pm\) 0.05 0.91 \(\pm\) 0.02 0.95 \(\pm\) 0.01 2.40 \(\pm\) 0.04 0.94 \(\pm\) 0.04 0.99 \(\pm\) 0.01 1.93 \(\pm\) 0.02
CondSatZero 0.52 \(\pm\) 0.00 0.90 \(\pm\) 0.00 1.09 \(\pm\) 0.00 0.90 \(\pm\) 0.01 0.95 \(\pm\) 0.01 2.35 \(\pm\) 0.04 0.77 \(\pm\) 0.10 0.96 \(\pm\) 0.03 1.81 \(\pm\) 0.07
MeanCondFirst 0.75 \(\pm\) 0.02 0.93 \(\pm\) 0.00 1.17 \(\pm\) 0.01 0.70 \(\pm\) 0.03 0.90 \(\pm\) 0.01 2.08 \(\pm\) 0.03 0.83 \(\pm\) 0.05 0.97 \(\pm\) 0.01 1.85 \(\pm\) 0.04
MargZero 0.34 \(\pm\) 0.17 0.90 \(\pm\) 0.00 1.09 \(\pm\) 0.01 0.71 \(\pm\) 0.05 0.91 \(\pm\) 0.02 2.09 \(\pm\) 0.05 0.66 \(\pm\) 0.09 0.93 \(\pm\) 0.03 1.71 \(\pm\) 0.07
APS \((1-\alpha)\) 0.48 \(\pm\) 0.00 0.89 \(\pm\) 0.00 0.99 \(\pm\) 0.00 0.44 \(\pm\) 0.02 0.84 \(\pm\) 0.01 1.77 \(\pm\) 0.01 0.17 \(\pm\) 0.06 0.76 \(\pm\) 0.03 1.24 \(\pm\) 0.04
CondSatFirst 0.90 \(\pm\) 0.01 0.99 \(\pm\) 0.00 1.40 \(\pm\) 0.07 0.91 \(\pm\) 0.01 0.95 \(\pm\) 0.01 2.39 \(\pm\) 0.03 0.94 \(\pm\) 0.03 0.99 \(\pm\) 0.01 1.93 \(\pm\) 0.02
CondSatZero 0.48 \(\pm\) 0.00 0.89 \(\pm\) 0.00 0.99 \(\pm\) 0.00 0.89 \(\pm\) 0.02 0.94 \(\pm\) 0.01 2.31 \(\pm\) 0.04 0.73 \(\pm\) 0.12 0.96 \(\pm\) 0.03 1.80 \(\pm\) 0.07
MeanCondFirst 0.80 \(\pm\) 0.01 0.93 \(\pm\) 0.00 1.08 \(\pm\) 0.01 0.74 \(\pm\) 0.03 0.90 \(\pm\) 0.01 2.03 \(\pm\) 0.03 0.83 \(\pm\) 0.05 0.97 \(\pm\) 0.02 1.85 \(\pm\) 0.03
MargZero 0.56 \(\pm\) 0.09 0.90 \(\pm\) 0.00 1.01 \(\pm\) 0.01 0.75 \(\pm\) 0.03 0.91 \(\pm\) 0.01 2.06 \(\pm\) 0.05 0.63 \(\pm\) 0.11 0.93 \(\pm\) 0.03 1.70 \(\pm\) 0.09

15.0.0.2 Remark (comparison of two conformalization strategies).

Conformalized credal set predictors [@javanmardi2024conformalized] (as explained in 5.2) take any probabilistic classifier together with a set of first-order calibration data and turn it into a credal set predictor that guarantees the true label distribution lies in the credal set with a user-specified probability, hence yielding a partially valid credal set predictor. In 4.3, we also showed that, given the risk defined in (14 ) and first-order calibration data, our method can instead transform a probabilistic classifier directly into a conformal set predictor with a PAC-style conditional coverage guarantee.

A comparison between these two approaches can be seen in our results: 4 (BPS\((1-\alpha)\) with \(\epsilon = 0.1\)) can be compared with 7 (APS with CondSatFirst calibration). It can be observed that the second approach, direct conformalization for conditional coverage, yields more efficient (smaller) prediction sets, while the first approach, first constructing conformalized credal sets and then applying optimal BPS with nominal \(1-\alpha\), results in larger sets. This is mainly because prediction sets constructed from invalid credal sets may still satisfy conditional coverage, so enforcing credal validity first can be unnecessarily conservative.

16 Experiments on Out-of-Distribution Data↩︎

A domain where epistemic uncertainty arises is when dealing with out-of-distribution (OOD) data for prediction, where data points come from a distribution that deviates from the original training distribution. In such cases, incorporating epistemic uncertainty into set prediction is even more important. To that end, we consider an experimental setup using CIFAR-10-C [@hendrycks2019robustness], a corrupted version of CIFAR-10 that is often used to evaluate OOD robustness. Here, as the corruption type, we choose Gaussian noise with severity levels from 1 to 5.

Similar to the in-distribution setting, we apply calibration (if any) solely on in-distribution data. During testing, we use the credal set predictor to provide predictions for OOD input data. 8 compares the performance of different set predictors under three severity levels: 1, 3, and 5. As the severity increases, the level of corruption also increases, and thus it is expected that the credal sets become larger. This is reflected in the set size of the BPS-based approaches, as they are adaptive to epistemic uncertainty. Furthermore, as expected, BPS outperforms APS in the majority of cases, both with and without calibration, in terms of conditional coverage satisfaction, by incorporating epistemic uncertainty while producing larger sets.

Table 8: Performance comparison of different set predictors using various calibration approaches on credal sets with unknown validity on CIFAR-10-C (Gaussian noise corruption across different severity levels). \(1-\alpha = 0.9\) and \(1-\beta = 0.9\).
Severity 1 Severity 3 Severity 5
3-5 (r)6-8 (r)9-11 base Calibration Cond. Sat. Marg. Cvg. Set Size Cond. Sat. Marg. Cvg. Set Size Cond. Sat. Marg. Cvg. Set Size
BPS \((1-\alpha)\) 0.61 \(\pm\) 0.00 0.87 \(\pm\) 0.00 1.63 \(\pm\) 0.01 0.43 \(\pm\) 0.00 0.60 \(\pm\) 0.00 2.08 \(\pm\) 0.01 0.32 \(\pm\) 0.00 0.48 \(\pm\) 0.00 2.11 \(\pm\) 0.01
CondSatFirst 0.90 \(\pm\) 0.01 0.96 \(\pm\) 0.00 2.59 \(\pm\) 0.13 0.68 \(\pm\) 0.02 0.77 \(\pm\) 0.02 3.52 \(\pm\) 0.21 0.57 \(\pm\) 0.02 0.67 \(\pm\) 0.02 3.57 \(\pm\) 0.20
CondSatZero 0.61 \(\pm\) 0.00 0.87 \(\pm\) 0.00 1.62 \(\pm\) 0.01 0.43 \(\pm\) 0.00 0.60 \(\pm\) 0.00 2.08 \(\pm\) 0.01 0.32 \(\pm\) 0.00 0.48 \(\pm\) 0.00 2.10 \(\pm\) 0.01
MeanCondFirst 0.78 \(\pm\) 0.01 0.90 \(\pm\) 0.00 1.81 \(\pm\) 0.02 0.52 \(\pm\) 0.01 0.65 \(\pm\) 0.01 2.36 \(\pm\) 0.03 0.40 \(\pm\) 0.01 0.53 \(\pm\) 0.01 2.39 \(\pm\) 0.03
MargZero 0.51 \(\pm\) 0.09 0.87 \(\pm\) 0.00 1.62 \(\pm\) 0.01 0.40 \(\pm\) 0.03 0.60 \(\pm\) 0.01 2.08 \(\pm\) 0.02 0.31 \(\pm\) 0.02 0.48 \(\pm\) 0.00 2.10 \(\pm\) 0.02
APS \((1-\alpha)\) 0.54 \(\pm\) 0.00 0.82 \(\pm\) 0.00 1.26 \(\pm\) 0.00 0.35 \(\pm\) 0.00 0.49 \(\pm\) 0.00 1.48 \(\pm\) 0.01 0.25 \(\pm\) 0.00 0.36 \(\pm\) 0.00 1.45 \(\pm\) 0.01
CondSatFirst 0.90 \(\pm\) 0.01 0.96 \(\pm\) 0.01 2.46 \(\pm\) 0.21 0.68 \(\pm\) 0.03 0.75 \(\pm\) 0.03 3.32 \(\pm\) 0.33 0.57 \(\pm\) 0.04 0.64 \(\pm\) 0.03 3.30 \(\pm\) 0.32
CondSatZero 0.54 \(\pm\) 0.00 0.82 \(\pm\) 0.00 1.26 \(\pm\) 0.00 0.35 \(\pm\) 0.00 0.49 \(\pm\) 0.00 1.48 \(\pm\) 0.01 0.25 \(\pm\) 0.00 0.36 \(\pm\) 0.00 1.45 \(\pm\) 0.01
MeanCondFirst 0.78 \(\pm\) 0.01 0.88 \(\pm\) 0.01 1.48 \(\pm\) 0.02 0.47 \(\pm\) 0.01 0.57 \(\pm\) 0.01 1.81 \(\pm\) 0.04 0.35 \(\pm\) 0.01 0.43 \(\pm\) 0.01 1.79 \(\pm\) 0.04
MargZero 0.60 \(\pm\) 0.06 0.84 \(\pm\) 0.01 1.31 \(\pm\) 0.02 0.39 \(\pm\) 0.02 0.51 \(\pm\) 0.01 1.56 \(\pm\) 0.02 0.28 \(\pm\) 0.01 0.38 \(\pm\) 0.01 1.53 \(\pm\) 0.02

  1. Throughout the paper, “\(\cdot\)” between two vectors denotes the inner product; between scalars, it denotes ordinary multiplication.↩︎

  2. The link to the code: https://github.com/alireza-javanmardi/conformal-BPS↩︎

  3. https://github.com/timoverse/credal-prediction-relative-likelihood↩︎