                                                         On Information-Theoretic Measures of
                                                                Predictive Uncertainty


                                             Kajetan Schweighofer∗1 Lukas Aichberger∗1 Mykyta Ielanskyi1 Sepp Hochreiter1,2
                                                    1
                                                        ELLIS Unit, LIT AI Lab, Institute for Machine Learning, JKU Linz, Austria
                                                                            2
arXiv:2410.10786v1 [cs.LG] 14 Oct 2024




                                                                              NXAI GmbH, Linz, Austria
                                                                                  * Joint first authors
                                                        {schweighofer, aichberger, ielanskyi, hochreit}@ml.jku.at



                                                                                       Abstract
                                                  Reliable estimation of predictive uncertainty is crucial for machine learning appli-
                                                  cations, particularly in high-stakes scenarios where hedging against risks is essen-
                                                  tial. Despite its significance, a consensus on the correct measurement of predictive
                                                  uncertainty remains elusive. In this work, we return to first principles to develop a
                                                  fundamental framework of information-theoretic predictive uncertainty measures.
                                                  Our proposed framework categorizes predictive uncertainty measures according
                                                  to two factors: (I) The predicting model (II) The approximation of the true pre-
                                                  dictive distribution. Examining all possible combinations of these two factors, we
                                                  derive a set of predictive uncertainty measures that includes both known and newly
                                                  introduced ones. We empirically evaluate these measures in typical uncertainty
                                                  estimation settings, such as misclassification detection, selective prediction, and
                                                  out-of-distribution detection. The results show that no single measure is univer-
                                                  sal, but the effectiveness depends on the specific setting. Thus, our work provides
                                                  clarity about the suitability of predictive uncertainty measures by clarifying their
                                                  implicit assumptions and relationships.


                                         1   Introduction
                                         Integrating machine learning models into high-stakes scenarios, such as autonomous driving or
                                         managing critical healthcare systems, introduces substantial risks. To hedge against these risks, we
                                         need to quantify the uncertainty associated with each prediction to prevent models from making
                                         decisions that carry both significant risk and uncertainty. In such cases, it is better to defer uncertain
                                         decisions to human experts or opt for a safer, though potentially less advantageous, alternative decision.
                                         Consequently, it is vital to employ reliable measures of predictive uncertainty and provide estimates for
                                         them when implementing machine learning models for decision making in high-stakes applications.
                                         The entropy of the posterior predictive distribution has become the standard information-theoretic
                                         measure to assess predictive uncertainty [Houlsby et al., 2011, Gal, 2016, Depeweg et al., 2018, Smith
                                         and Gal, 2018, Mukhoti et al., 2023]. Despite its widespread use, this measure has drawn criticism
                                         [Malinin and Gales, 2021, Wimmer et al., 2023], prompting the proposal of alternative information-
                                         theoretic measures [Malinin and Gales, 2021, Schweighofer et al., 2023b,a, Kotelevskii and Panov,
                                         2024, Hofman et al., 2024b]. The relationship between those measures is still not well understood,
                                         although their similarities suggest that they are special cases of a more fundamental formulation.
                                         We show that all these measures are approximations of the same measure, the cross-entropy between
                                         the predicting model and the true model. The predicting model is the one used to predict during
                                         inference, while the true model generated the dataset. However, since we do not know the true model,
                                         this fundamental measure is intractable to compute. Therefore, we consider different assumptions
                                         about the predicting model and how the true model is approximated. This gives rise to our proposed
framework to categorize information-theoretic measures of predictive uncertainty. Our framework
includes existing measures, introduces new ones, and clarifies the relationship between these measures.
Moreover, our empirical analysis reveals that the effectiveness of different measures varies depending
on the task and the posterior sampling method used. In sum, our contributions are as follows:
1. We introduce a unifying framework to categorize measures of predictive uncertainty according to
   assumptions about the predicting model and how the true model is approximated. This framework
   not only encompasses existing measures but also suggests new ones and clarifies their relationship.
2. We derive our framework from first principles, based on the cross-entropy between the predicting
   model and the true model as the fundamental yet intractable measure of predictive uncertainty.
3. We empirically evaluate these measures across various typical uncertainty estimation tasks and
   show that their effectiveness depends on the setting and the posterior sampling method used.

2     Quantifying Predictive Uncertainty
We consider the canonical classification setting with inputs x ∈ RD and targets y ∈ Y, where Y is
the set of all K possible targets. The dataset D is given, sampled i.i.d according to the data generating
distribution. We consider deep neural networks as a class of probabilistic models that map an input
                                                                                         PK
x to the K − 1 dimensional probability simplex ∆K−1 = {θ ∈ RK | θk ≥ 0 ∀k, k=1 θk = 1}.
This mapping is defined as fw : RD → ∆K−1 for a model with parameters w. The output of this
mapping defines the distribution parameters of a categorical distribution, in the following referred to
as the model’s predictive distribution p(y | x, w) = Cat(y; fw (x)) = Cat(y; θ).
The predictive distribution of a probabilistic model represents the uncertainty inherent in its predic-
tions. When the probability mass is uniformly distributed across all possible outcomes, it denotes
complete uncertainty about the prediction, whereas concentration on a single class indicates com-
plete certainty. If we have access to the true data-generating model, denoted by parameters w∗ ,
the predictive distribution p(y | x, w∗ ) captures the inherent and irreducible uncertainty in the pre-
diction, often referred to as aleatoric uncertainty (AU) [Gal, 2016, Kendall and Gal, 2017]. This
assumes that the chosen model class can accurately represent the true predictive distribution, thus
p(y | x) = p(y | x, w∗ ), which is a common and often necessary assumption [Hüllermeier and
Waegeman, 2021]. The information-theoretic entropy H(·) [Shannon, 1948] of the true predictive
distribution is a natural and universally accepted measure of AU, defined as
                                          XK
                 H(p(y | x, w∗ )) := −        p(y = k | x, w∗ ) log p(y = k | x, w∗ ) .             (1)
                                         k=1
However, we generally don’t know the true model and have to choose parameters w out of all possible
ones. Consequently, uncertainty arises due to the lack of knowledge about the true parameters of the
model. This is called epistemic uncertainty (EU) [Apostolakis, 1990, Helton, 1993, 1997, Gal, 2016].
An effective measure of predictive uncertainty should be consistent with Eq. (1) and capture both AU
and EU, usually assumed to sum up to a total uncertainty (TU).

2.1   Current Standard Measure: Entropy of the Posterior Predictive Distribution

Given a dataset D and prior p(w) on the model parameters, Bayes’ theorem yields the posterior
distribution p(w | D). The posterior distribution denotes the probability that the parameters w match
the true parameters w∗ of the model that generated the dataset D. Instead of committing to a single
model, the posterior distribution allows marginalizing over all possible models, which is known as
Bayesian model averaging. This gives rise to the posterior predictive distribution
                               p(y | x, D) = Ep(w|D) [p(y | x, w)] .                                 (2)
The entropy of the posterior predictive distribution is the currently most widely accepted approach to
measure predictive uncertainty [Houlsby et al., 2011, Gal, 2016, Depeweg et al., 2018, Smith and Gal,
2018, Hüllermeier and Waegeman, 2021, Mukhoti et al., 2023]. According to a well-known result
from information theory [Cover and Thomas, 2006], this entropy can be additively decomposed into
the conditional entropy and the mutual information I between y and w:
                H(p(y | x, D)) = Ep(w|D) [H(p(y | x, w))] + I(p(y, w | x, D)) .                      (3)
                |    {z      }   |         {z           }   |       {z      }
                       TU                        AU                         EU



                                                   2
Furthermore, Eq. (3) is equivalent to a decomposition of expected cross-entropy CE(· ; ·) into
conditional entropy and expected KL-divergence KL(· ∥ ·) [Schweighofer et al., 2023b,a]:
                           TU
       z                 }|                  {
       Ep(w|D) [CE(p(y | x, w) ; p(y | x, D))]                                                        (4)
                  = Ep(w|D) [H(p(y | x, w))] + Ep(w|D) [KL(p(y | x, w) ∥ p(y | x, D))] .
                    |         {z           }   |                 {z                  }
                                 AU                                      EU

If the parameters of the true model are known, EU vanishes and Eq. (3) as well as Eq. (4) simplify
to Eq. (1), thus are consistent with it. However, the entropy of the posterior predictive distribution
has been found to be inadequate for specific scenarios, such as autoregressive predictions [Malinin
and Gales, 2021] or for a given predicting model [Schweighofer et al., 2023b] and was criticised
on grounds of not fulfulling certain expected theoretical properties [Wimmer et al., 2023]. In
response, alternative information-theoretic measures have been introduced [Malinin and Gales, 2021,
Schweighofer et al., 2023b,a, Kotelevskii and Panov, 2024, Hofman et al., 2024b]. Although the
relationship between these measures is not well understood, their structure similar to Eq. (4) suggests
a connection between them. We next propose a fundamental, though generally intractable, predictive
uncertainty measure, where all of these measures are special cases under specific assumptions.

2.2   Our Proposed Measure: Cross-Entropy between Selected and True Predictive Distribution

An effective measure of TU should be consistent with Eq. (1) and should incorporate EU. Considering
this, we propose to measure predictive uncertainty with the cross-entropy between the predictive
distributions of a selected predicting model and the true model. Let p(y | x, ·) be the predictive
distribution of any selected model for some new input x, which we will refer to as predicting model.
We will examine different cases for the predicting model later; for now, it suffices to consider it to be
a specific model with parameters w. The cross-entropy between the predictive distributions of the
predicting model and the true model is given by
                                               K
                                               X
                                    ∗
       CE(p(y | x, ·) ; p(y | x, w )) := −           p(y = k | x, ·) log p(y = k | x, w∗ )            (5)
       |             {z             }
                      TU                       k=1

                                         = H(p(y | x, ·)) + KL(p(y | x, ·) ∥ p(y | x, w∗ )) .
                                           |    {z      }   |             {z              }
                                                  AU                           EU

If the predictive distribution of the predicting model is equal to the predictive distribution of the
true model, the EU is zero by definition and Eq. (5) simplifies to Eq. (1). Thus, as expected, if the
parameters of the true model are known, the EU vanishes. Eq. (5) is a fundamental, though generally
intractable, measure of predictive uncertainty. To obtain tractable measures, assumptions about the
predicting model and about how to approximate the true model are necessary. This gives rise to
our framework, which we introduce in detail in Sec. 3. Notably, the opposite order of arguments in
Eq. (5) leads to the same framework, but differs in the interpretation of AU and EU. Details on this
alternative are given in Sec. A.5 in the appendix, our interpretation of AU and EU is as follows.
Interpretation of AU and EU. An important distinction compared to previous work is in our
interpretation of AU and EU, which aligns with the understanding of Apostolakis [1990], Helton
[1993, 1997] as follows. The AU is not generally understood as a property of the true predictive
distribution, but of the selected predicting model used to make a prediction. Thus, it is the uncertainty
that arises due to predicting with the selected probabilistic model. The EU is defined as the additional
uncertainty due to predicting with the selected predicting model instead of the true model. Thus, it is
the additional uncertainty that arises due to selecting a model from the given model class.

3     Proposed Framework of Predictive Uncertainty Measures
Our proposed measure of predictive uncertainty (Eq. (5)) allows for different assumptions about (I)
the selected predicting model and (II) how to approximate the true model. We consider three different
assumptions for each, resulting in nine distinct measures of predictive uncertainty within our proposed
framework. An overview of all measures is given in Tab. 1, summarizing the total uncertainties (TU),
as well as their respective aleatoric uncertainties (AU) and epistemic uncertainties (EU).


                                                     3
Table 1: Our proposed framework of information-theoretic measures of predictive uncertainty.
Each measure denotes a different approximation of the fundamental measure given by Eq. (5) for
different assumptions about the predicting model and how the true model is approximated. For
brevity, we define pw := p(y | x, w), pD := p(y | x, D), and Ew := Ep(w|D) (the same for w̃).
Expressions with the same cell coloring are equivalent to each other. For each measure, TU additively
decomposes into AU and EU by CE(p ; q) = H(p) + KL(p ∥ q).

                                        Approximation of the true predictive distribution
       Predicting model
                                    (1) w̃                (2) Ew̃             (3) w̃ ∼ p(w̃ | D)
      (A) w                     CE(pw ; pw̃ )          CE(pw ; pD )           Ew̃ [CE(pw ; pw̃ )]
 TU




      (B) Ew                    CE(pD ; pw̃ )          CE(pD ; pD )           Ew̃ [CE(pD ; pw̃ )]
      (C) w ∼ p(w | D) Ew [CE(pw ; pw̃ )] Ew [CE(pw ; pD )] Ew [ Ew̃ [CE(pw ; pw̃ )]]

      (A) w                         H(pw )                 H(pw )                    H(pw )
 AU




      (B) Ew                        H(pD )                 H(pD )                    H(pD )
      (C) w ∼ p(w | D)           Ew [H(pw )]            Ew [H(pw )]               Ew [H(pw )]

      (A) w                                 KL(pw ∥ pD )
                                KL(pw ∥ pw̃ )                 Ew̃ [KL(pw ∥ pw̃ )]
                                                      :0
 EU




                                                      
                                                      
      (B) Ew             KL(pD ∥ pw̃ )      KL(pD ∥ pD )      Ew̃ [KL(pD ∥ pw̃ )]
                                                  
                                             
      (C) w ∼ p(w | D) Ew [KL(pw ∥ pw̃ )] Ew [KL(pw ∥ pD )] Ew [ Ew̃ [KL(pw ∥ pw̃ )]]

(A,B,C): Predicting Model

One can make different choices about the model used during inference for predicting the class of a
new input. The most obvious choice of a predicting model is (A) a pre-selected given model with
parameters w. This is the standard case in machine learning, where model parameters are selected,
e.g. by maximizing the likelihood on the training dataset or downloaded from a model hub.
Another widely used method is (B) the Bayesian model average (c.f. Eq. (2)). Here, instead of
predicting with a single model, the predictive distribution is marginalized over all possible models
according to their posterior probability. In practice, exact marginalization is often intractable and
therefore approximated by posterior sampling.
Finally, it is possible to (C) consider every possible model as the predicting model, weighted by their
posterior probabilities. This might seem counterintuitive, as it means that the predicting model is
not fixed but is sampled anew for each prediction. Nevertheless, the AU of the resulting uncertainty
measures, Ep(w|D) [H(p(y | x, w))], is the best approximation of the AU under the true model for a
given posterior distribution. However, as pointed out by Wimmer et al. [2023], it is neither a lower nor
an upper bound on the AU under the true model and is highly dependent on the posterior distribution.

(1,2,3): Approximation of the True Predictive Distribution

One can also make different choices about how to approximate the true data-generating model.
The simplest but probably biased choice to approximate the true predictive distribution is (1) the
predictive distribution under a single given model with parameters w̃. Although this might be a poor
approximation, it might be the only feasible choice in specific settings. For example, it is used in
speculative decoding [Stern et al., 2018, Leviathan et al., 2023], where a small model is used to predict
and whose predictive distribution is compared against a large model that serves as the ground truth.
Another possibility is to use (2) the posterior predictive distribution. Although intuitively appealing,
Schweighofer et al. [2023a] criticized this as there is no guarantee that these distributions coincide,
even for a perfect estimate of the posterior predictive distribution. Furthermore, there are degenerate
cases where the posterior predictive distribution can’t be represented by any model with non-vanishing
posterior probability. However, it is often a well performing approximation empirically for expressive
models such as neural networks. Moreover, (2) is the only option that guarantees finite EU and TU.


                                                   4
Finally, perhaps the most intuitive solution is to consider (3) all possible models according to their
posterior probability. Any model could be the true model according to its posterior distribution.
Therefore, we should consider the mismatch between the predictive distribution of the selected
predicting model and all other models, weighted by their posterior probability.

3.1   Relationships between Measures

Importantly, the AU of the uncertainty measures depend only on the predicting model and do not
depend on the approximation of the true predictive distribution. Thus, they are the same for cases
(1), (2) and (3). Furthermore, the AU of case (B) is an upper bound of the AU of case (C),
i.e. H(p(y | x, D)) ≥ Ep(w|D) [H(p(y | x, w))], which directly follows from Eq. (3) as the mutual
information is non-negative.
Due to the linearity in the first argument of the cross-entropy, the TU for cases (B) and (C) are equal.
Furthermore, as already discussed, the AU for cases (B) and (C) differ by the mutual information
Ep(w|D) [KL(p(y | x, w) ∥ p(y | x, D))]. Therefore, the EU for cases (B) and (C) also differ by this
factor. This is trivial to see for cases (B2) and (C2), where the EU of case (B2) cancels to zero and
the EU of case (C2) is the mutual information. For cases (B3) and (C3), this was already mentioned
by [Malinin and Gales, 2021] and a proof was given by [Schweighofer et al., 2023a], which we include
for completeness in Sec. A.1 in the appendix, together with a version for cases (B1) and (C1).

3.2   Categorization of Previously Known Measures

The standard measure (Eq. (4)) introduced by Houlsby et al. [2011] and popularized, for instance,
by Gal [2016], Depeweg et al. [2018], Smith and Gal [2018] is the measure (C2). In the context of
autoregressive predictions, Malinin and Gales [2021] introduced measure (B3), due to the feasibility
of a Monte Carlo (MC) approximation compared to the standard measure (C2). Schweighofer et al.
[2023b] introduced measure (A3) together with a posterior sampling algorithm that is explicitly
taylored to this measure. Schweighofer et al. [2023a] introduced measure (C3) as an improvement
over the standard measure (C2) for certain settings. Hofman et al. [2024b] also derived measure
(C3) for the logarithmic strictly proper scoring rule (log score). Furthermore, Kotelevskii and Panov
[2024] discussed measures (B2), (B3), (C2) and (C3) as Bayesian approximations under the log
score. Our work thus generalizes and gives a new perspective on those measures.


4     Related Work

Measures of predictive uncertainty. The currently most widely used information-theoretic measure
of predictive uncertainty is the entropy of the posterior predictive distribution (Eq.(3)). In Sec. (3.2),
we discuss the relationship of previous work based on this measure and our proposed framework.
However, there are also other measures of predictive uncertainty, not based on information-theoretic
quantities. Depeweg et al. [2018] introduced variance-based measures, based on the law of total
variance. This perspective was recently developed further for specific settings [Duan et al., 2024,
Sale et al., 2023b]. Furthermore, Sale et al. [2024b] introduced label-wise measures of predictive
uncertainty, formulating both information-theoretic and variance-based measures. Another idea
recently proposed by Sale et al. [2024a] is quantifying uncertainty through distances to reference
(second-order) distributions (for TU, AU, and EU) denoting complete certainty. Thus, the higher the
distance from the reference distribution, the more uncertain the prediction. All measures discussed
so far operate on a distributional representation of uncertainty. Orthogonal to that, there are also
set-based approaches [Hüllermeier et al., 2022, Sale et al., 2023a, Hofman et al., 2024a].
Posterior sampling methods. All measures proposed by our framework, except (A1), contain
a posterior expectation. Those are generally approximated by sampling models according to the
posterior distribution. An obvious choice are MCMC algorithms, for example HMC [Neal, 1995,
Neal et al., 2011], recently scaled to modern neural network architectures [Izmailov et al., 2021].
Approximate variants using stochastic gradients are also available [Welling and Teh, 2011, Chen
et al., 2014, Zhang et al., 2020]. Furthermore, it is possible to learn a simpler variational distribution
that approximates the posterior distribution. Widely known examples are the mean-field approach of
Blundell et al. [2015] or MC Dropout [Gal and Ghahramani, 2016]. Another approach is the Laplace
approximation [MacKay, 1992] around a maximum a posteriori (MAP) model [Ritter et al., 2018,


                                                    5
Daxberger et al., 2021]. A commonly used approximation to the Bayesian ideal are Deep Ensembles
[Lakshminarayanan et al., 2017], which despite their algorithmic simplicity are widely recognized
to provide high-quality samples [Wilson and Izmailov, 2020, Izmailov et al., 2021]. Furthermore,
Schweighofer et al. [2023b] introduced adversarial models to explicitly search for models with a large
contribution to approximating expectations of the EU for case (3). For a more extensive overview,
see, e.g. Gawlikowski et al. [2023] or Papamarkou et al. [2024].

5   Experiments
In this section, we evaluate the performance of the proposed measures across various experimental sce-
narios that leverage uncertainty, including tasks like misclassification detection, selective prediction,
and out-of-distribution (OOD) detection. In addition, we assess the impact of various posterior sam-
pling methods, which is a crucial factor in real-world applications. We do not intend to identify the op-
timal measure for a specific task or posterior sampling method; all of them can be evaluated, and the
best chosen in practice. Our primary aim is to deepen the understanding of our proposed framework.
Datasets. Our experiments are performed on the CIFAR10/100 [Krizhevsky and Hinton, 2009],
SVHN [Netzer et al., 2011], Tiny-ImageNet (TIN) [Le and Yang, 2015] and LSUN [Yu et al., 2015]
datasets. For TIN, we resize the inputs to 32x32 to match the other datasets. We train models on all
datasets except LSUN, which is used solely as an OOD dataset.
Models and training. We used three different model architectures for our experiments: ResNet-18
[He et al., 2016], DenseNet-169 [Huang et al., 2017] and RegNet-Y 800MF [Radosavovic et al., 2020].
Individual models were trained for 100 epochs using SGD with momentum of 0.9 with a batch size of
256 and an initial learning rate of 1e-2. Furthermore, a standard combination of linear (from factor 1
to 0.1) and cosine annealing schedulers was used. The main paper’s results are for ResNet-18. Results
for two other architectures, found in Sec. B.4 of the appendix, are consistent with the main findings.
Predictive uncertainty measures. We consider all measures proposed by our framework, c.f. Tab. 1.
For example, the (total) measure (A1) is referred to as “TU (A1)” with its aleatoric component as
“AU (A)” and its epistemic component as “EU (A1)”. Here, “AU (A)” is used instead of “AU (A1)”
to emphasize the independence from the approximation of the true predictive distribution. Also, we
group equivalent TU measures. For example TU (B1) and TU (C1) are merged to “TU (B/C1)”.
Posterior sampling methods. We consider three methods to sample models according to the posterior
p(w | D), Deep Ensembles (DE) [Lakshminarayanan et al., 2017], Laplace Approximation (LA)
[MacKay, 1992] on the last layer with Kronecker-factored approximate curvature [Ritter et al., 2018]
using the implementation of Daxberger et al. [2021] and MC Dropout (MCD) [Gal and Ghahramani,
2016]. Those samples are used to approximate posterior expectations. For example, the posterior
predictive distribution given by Eq. (2) is approximated by
                                          N
                                      1 X
                     p(y | x, D) ≈          p(y | x, wn ) ,       wn ∼ p(w | D)                      (6)
                                      N n=1

with N samples. Posterior expectations within the proposed measures are approximated in the same
way. We provide formulas for the MC approximations for all measures (TU, AU and EU) in Sec. A.2
in the appendix. For all three methods, we sample 10 models for the MC approximations of the
uncertainty measures. Measures based on a single model (combinations with (A) and (1)) use the
first member of the ensemble for DE, the maximum a posteriori (MAP) model for LA, and the model
without dropout activated for MCD.
There is a distinction between multi- and single-basin poste-
rior sampling techniques [Wilson and Izmailov, 2020], some-
times also referred to as multi- and single-mode approaches
[Hoffmann and Elster, 2021]. We refer to them as global and
local posterior sampling techniques for simplicity. In this
categorization, DE is a global method, while LA and MCD
are local methods [Fort et al., 2019]. We hypothesize that dif-
ferent methods for posterior sampling have a strong impact
on which uncertainty measure performs well empirically, es-
                                                                Figure 1: Posterior sampling methods.
pecially given whether they are global or local methods.


                                                   6
                            CIFAR10                              CIFAR100                                                           CIFAR10                                                    CIFAR100
                                                   1.6                      Single model                                                                                                                                   DE
           0.30                                                             Posterior samples                                                                           103
                                                   1.4                                                      103                                                                                                            LA
                                                                            Average model




                                                                                                Frequency
           0.25                                                                                                                                                         102                                                MCD
                                                   1.2

NLL
           0.20                                    1.0                                                      101                                                         101
           0.15                                    0.8                                                                                                                  100
                              SVHN                                  TIN                                                              SVHN                                                            TIN
                                                   3.0
           0.18                                                                                                                                                         103
                                                                                                            103




                                                                                                Frequency
           0.16                                    2.5                                                                                                                  102
NLL




           0.14                                    2.0                                                                                                                  101
                                                                                                            101
           0.12                                                                                                                                                         100
                   DE          LA            MCD         DE         LA                MCD                         0.0   0.2        0.4     0.6        0.8         1.0         0.0   0.2        0.4         0.6     0.8         1.0
                         Sampling Method                      Sampling Method                                                 Aleatoric Uncertainty                                       Aleatoric Uncertainty
                        Negative Log-Likelihoods (NLLs)                                                                                       AU (C)/ log(|Y|)
                             CIFAR10                             CIFAR100                                                           CIFAR10                                                    CIFAR100
                                                                            Single model                                                                                                                                   DE
                                                                            Posterior samples               103                                                         103                                                LA
              94                                   75                       Average model




                                                                                                Frequency
                                                                                                                                                                                                                           MCD
   Accuracy




                                                                                                                                                                        102
              92                                   70
                                                                                                            101                                                         101
                                                   65                                                                                                                   100
                              SVHN                                  TIN                                                              SVHN                                                            TIN
           97.0                                    60                                                                                                                   103
                                                                                                            103




                                                                                                Frequency
           96.5
Accuracy




                                                   55                                                                                                                   102
           96.0                                    50                                                                                                                   101
                                                                                                            101
           95.5                                    45                                                                                                                   100
                   DE          LA            MCD         DE         LA                MCD                         0.0   0.1         0.2       0.3           0.4               0.0   0.1         0.2          0.3         0.4
                         Sampling Method                      Sampling Method                                             Epistemic Uncertainty                                       Epistemic Uncertainty
                                           Accuracies                                                                                       EU (C2)/ log(|Y|)
 Figure 2: Comparison of posterior sampling methods. Results are obtained on the test split of
 the respective dataset. We compare the NLLs and accuracies for different models obtained through
 DE, LA and MCD. Similarly, the normalized AU (C) and the normalized EU (C2) are shown per
 sampling method. All three methods yield similar results for CIFAR10 and SVHN, but differ greatly
 on CIFAR100 and TIN. Models sampled using LA have higher NLL and lower accuracy. Furthermore,
 they lead to higher EU and lack predictions with very low AU. Additionally, the average model does
 not improve over the single model in terms of NLL and accuracy for those two datasets. The results
 in the two left plots show single models, posterior samples and average models of five independent
 runs, those in the two right plots show uncertainties for a single run.

 5.1               Characteristics of Posterior Samples

To better understand the performance of different posterior sampling methods, we examine the
characteristics of their sampled models. The results in Fig. 2 show that these methods perform
differently across datasets. For the global sampling method DE, the average model consistently
outperforms individual sampled models with a lower negative log-likelihood (NLL) and higher
accuracy across all datasets. In contrast, for local sampling methods LA and MCD, individual
sampled models exhibit higher NLL than both the single model and the average model. Additionally,
the accuracy of individual sampled models is lower than that of the single model. Specifically, for
MCD, the single model’s accuracy is comparable to the average model, while for LA, the single
model’s accuracy exceeds that of the average model.
We further analyze the predictive uncertainties estimated by different posterior sampling methods
using measure (C2), which incorporates posterior samples and is upper-bounded. To ensure compa-
rability across datasets, we normalize the uncertainties by the maximal predictive uncertainty TU
(C2), equal to the entropy of the uniform distribution log(|Y|). The results in the two right plots in
Fig. 2 show that these methods yield similar distributions of uncertainties for CIFAR10 and SVHN.
However, for CIFAR100 and TIN, DE exhibits many more datapoints with very low EU and AU.

 5.2               Misclassification Detection

We sampled models on the CIFAR10/100, SVHN and TIN datasets using DE, LA and MCD and
obtain predictions on the respective test datasets. This was done with (i) the single model, (ii) the
average model and (iii) some model according to the posterior distribution to investigate the impact
of aligning the measure of uncertainty with the predicting model - (A) for (i), (B) for (ii) and (C)
for (iii). The single model for (i) is a random but fixed model for DE, the MAP model for LA, and
the model without dropout for MCD. The average model for (ii) is defined by Eq. (6), averaging over


                                                                                                7
                            Single Model Predicts - Overall                                                Single Model Predicts - Overall                                                Single Model Predicts - Overall
        91                                                                             88                                                                             90

        90                                                                             86                                                                             88
                                                                                       84                                                                             86




AUROC




                                                                               AUROC




                                                                                                                                                              AUROC
        89
                                                                                       82                                                                             84
        88                                                                             80
                                                                                                                                                                      82
        87                                                                             78
                                                                                                                                                                      80
             A1 A2 A3 B/C1B/C2B/C3    A   B    C     A1 A2 A3 B1 B3 C1 C2 C3                A1 A2 A3 B/C1B/C2B/C3    A   B    C     A1 A2 A3 B1 B3 C1 C2 C3                A1 A2 A3 B/C1B/C2B/C3    A   B    C     A1 A2 A3 B1 B3 C1 C2 C3
                      TU                  AU                          EU                             TU                  AU                          EU                             TU                  AU                          EU

                     (i) single model - DE                                                          (i) single model - LA                                                        (i) single model - MCD
                           Average Model Predicts - Overall                                               Average Model Predicts - Overall                                               Average Model Predicts - Overall
        89                                                                             88
        88                                                                                                                                                            88
                                                                                       86
        87                                                                                                                                                            86
                                                                                       84
AUROC




                                                                               AUROC




                                                                                                                                                              AUROC
        86                                                                             82                                                                             84
        85                                                                             80                                                                             82
        84                                                                             78                                                                             80
             A1 A2 A3 B/C1B/C2B/C3    A   B    C     A1 A2 A3 B1 B3 C1 C2 C3                A1 A2 A3 B/C1B/C2B/C3    A   B    C     A1 A2 A3 B1 B3 C1 C2 C3                A1 A2 A3 B/C1B/C2B/C3    A   B    C     A1 A2 A3 B1 B3 C1 C2 C3
                      TU                  AU                          EU                             TU                  AU                          EU                             TU                  AU                          EU

                  (ii) average model - DE                                                        (ii) average model - LA                                                      (ii) average model - MCD
                    Model according to Posterior Predicts - Overall                                Model according to Posterior Predicts - Overall                                Model according to Posterior Predicts - Overall
                                                                                       90
                                                                                                                                                                      90
        90                                                                             88
        89                                                                                                                                                            88
                                                                                       86
AUROC




                                                                               AUROC




                                                                                                                                                              AUROC
        88                                                                                                                                                            86
                                                                                       84
        87
                                                                                       82                                                                             84
        86
                                                                                       80                                                                             82
             A1 A2 A3 B/C1B/C2B/C3    A   B    C     A1 A2 A3 B1 B3 C1 C2 C3                A1 A2 A3 B/C1B/C2B/C3    A   B    C     A1 A2 A3 B1 B3 C1 C2 C3                A1 A2 A3 B/C1B/C2B/C3    A   B    C     A1 A2 A3 B1 B3 C1 C2 C3
                      TU                  AU                          EU                             TU                  AU                          EU                             TU                  AU                          EU

         (iii) according to posterior - DE                                              (iii) according to posterior - LA                                         (iii) according to posterior - MCD
Figure 3: Misclassification detection under different predicting models. AUROC for distinguish-
ing correct from incorrect predictions under different predicting models, using the different proposed
measures of uncertainty as score. The global method DE performs best for EU (A3) when predicting
with the single model. Otherwise it performs best for TU (B/C3). The local methods LA and MCD
perform best for TU (A2) and TU (A3) no matter the predicting model. AUROCs are averages over
all datasets with statistics over five independent runs.

all sampled models. For (iii), one model from the sampled models was randomly selected for each
prediction. Note that (iii) does not make much sense in practice, as individual models are performing
worse than the average model in terms of accuracy for all considered methods, the same as a single
model for DE and worse than the single model for LA and MCD (see Fig. 2). We compare the AUROC
for distinguishing between correctly and incorrectly predicted datapoints for the different proposed
measures of predictive uncertainty as scoring functions. Alternative measures commonly used to
evaluate misclassification such as AUPR or FPR@TPR95 were also considered. Those induced the
same ordering of uncertainty measures, thus we report the AUROC throughout all experiments.
The results are given in Fig. 3. We average over the four considered datasets and report means and
standard deviations over five independent runs. The results for individual datasets are reported in
Fig. 10 - Fig. 12 in the appendix. For detecting the misclassification of (i) the single model, EU
(A3) performs best. However, when predicting with (ii) the average or (iii) a model according to the
posterior, TU (B/C3) performs best. For the local method LA, TU (A3) performs best regardless of
the predicting model. The same effect is observed for MCD, yet TU (A2) slightly outperforms TU
(A3) in this case. We hypothesize that this effect occurs because the local methods fail to provide
high-quality samples for some of the datasets, leading to a high variance of posterior estimates and
thus low performance. In sum, we find that TU (A2) and TU (A3) perform well for local posterior
sampling methods regardless of the predicting model, but for global posterior sampling methods
aligning the measure according to the predicting model makes a strong difference.

 5.3              Selective Prediction

Another commonly considered task is selective prediction, where the model’s predictions are limited
to a specific subset, and its performance is evaluated on that subset. The setup in this experiment
is identical to the misclassification setup. We evaluated the accuracy for a subset of predictions of
(i) the single model, (ii) the average model, and (iii) a model according to the posterior distribution.
Subsets between 50% of the most certain datapoints and the entire dataset were considered. The
area under the accuracy retention curve (AUARC) was used as performance measure to compare the
efficacy of uncertainty measures to provide a ranking to select those subsets.
We focus on (i) the single model and (ii) the average model using DE with the results given in Fig. 4.
Additional results are provided in Sec. B.2 in the appendix. The results show a similar picture as for
misclassification detection, where the optimal measure depends on the model used for prediction. For
(i) the single model, TU (A3) performs best, while for (ii) the average model, TU (B/C3) performs
best. Again, the best measures are those aligned to the predicting model.


                                                                                                                          8
                                                                     Single Model Predicts - Overall
           95.0                                                                             DE
           92.5
           90.0                                                                                                            EU
Accuracy                                                                                                              A1 (87.30±. 08)
           87.5              TU                                                                                       A2 (88.11±. 07)
                        A1 (87.96±. 10)                                                                               A3 (88.23±. 11)
                        A2 (88.10±. 10)                                                                               B1 (86.58±. 10)
           85.0         A3 (88.24±. 11)                                    AU                                         B3 (87.60±. 11)
                        B/C1 (88.07±. 09)                             A (87.50±. 11)                                  C1 (87.31±. 10)
           82.5         B/C2 (88.12±. 09)                             B (88.12±. 09)                                  C2 (88.12±. 11)
                        B/C3 (88.22±. 09)                             C (87.95±. 08)                                  C3 (87.85±. 11)
           80.0         Random (79.67±. 10)                           Random (79.67±. 10)                             Random (79.67±. 10)
                                                                 Average Model Predicts - Overall
              96 50          60         70    80   90   100     50         60         70         80   90   100   50        60         70    80   90   100
                                                              Percentage of samplesDEselected for prediction
              94
              92                                                                                                           EU
                                                                                                                      A1 (88.63±. 04)
   Accuracy




              90             TU                                                                                       A2 (89.15±. 05)
                        A1 (89.28±. 06)                                                                               A3 (89.17±. 09)
              88        A2 (89.52±. 08)                                                                               B1 (88.73±. 03)
                        A3 (89.46±. 08)                                    AU                                         B3 (89.52±. 05)
              86        B/C1 (90.17±. 05)                             A (89.20±. 08)                                  C1 (89.36±. 04)
                        B/C2 (90.23±. 05)                             B (90.23±. 05)                                  C2 (90.07±. 06)
              84        B/C3 (90.30±. 05)                             C (90.11±. 06)                                  C3 (89.78±. 06)
                        Random (83.02±. 08)                           Random (83.02±. 08)                             Random (83.02±. 08)

                   50        60         70    80   90   100     50         60         70         80   90   100   50        60         70    80   90   100
                                                              Percentage of samples selected for prediction
  Figure 4: Selective prediction for single and average model for DE. Accuracies per fraction of
  datapoints (i) the single model (top row), (ii) the average model (bottom row) predicts on, as well as
  area under the accuracy retention curve (tabulated in legend) using different predictive uncertainty
  measures as score. Accuracies are averaged over all datasets with statistics over five independent runs.

  5.4              OOD Detection

  We sampled models on CIFAR10/100, SVHN and TIN using DE, LA and MCD. Therefore, we use
  the respective test dataset as in-distribution (ID) datasets and the test datasets for the others, as well
  as LSUN, as OOD datasets. OOD detection does not involve a prediction by the model. Thus, it
  is not possible to align the uncertainty measure with the predicting model, as in misclassification
  detection and selective prediction. We compare the AUROC for distinguishing between ID and OOD
  datapoints for each measure within our framework as a scoring function. Alternative commonly
  used measures such as the AUPR and the FPR@TPR95 were also considered. However, since they
  induced the same ordering of measures, we report the AUROC for all OOD detection experiments.
  The results are shown in Fig. 5. We observe that throughout all measures, TU and AU perform much
  better than EU, which is contrary to assumptions commonly formulated in the literature [Mukhoti
  et al., 2023, Kotelevskii and Panov, 2024]. However, this might depend on the datasets. For example,
  with MCD, the EU perform best on the pairs TIN/CIFAR10 and TIN/CIFAR100, see Fig. 16 in the
  appendix. We hypothesize that the strong performance of the AU is due to the low levels of noise in
  the considered datasets. Furthermore, for the local method LA, all measures and their AU perform
  equally well. For DE and MCD, TU (B/C2) and TU (B/C3) perform best.

  5.5              Additional Experiments

  Our experiments aim to investigate the performance of the proposed framework on a wide range of
  tasks. Due to space limitations, we moved the following additional experiments to the appendix:
  We investigated the performance of the provided measures for detecting distribution shifts on CI-
  FAR10 using the CIFAR10-C [Hendrycks and Dietterich, 2019] dataset. This is a conceptually simi-
  lar task to OOD detection, as our results provided in Sec. B.5 confirm. We observe that for smaller
  shifts, the EU perform much better than the others; for larger shifts, this effect vanishes.
  Furthermore, we investigated the efficacy of our measures for detecting adversarial examples under
  FGSM [Goodfellow et al., 2015] and PGD [Madry et al., 2018] attacks. We do not intend to claim
  any level of adversarial robustness to these attacks, but use them as a tool to understand the behaviour
  of our measures. The results are discussed in Sec. B.6.
  Finally, we conducted active learning experiments on MNIST [Lecun et al., 1998] and FMNIST [Xiao
  et al., 2017] using DE and MCD as posterior sampling methods for a small convolutional neural
  network. Prior work [Gal et al., 2017, Mukhoti et al., 2023] suggests that the optimal acquisition


                                                                                       9
                                     Overall                                                                     Overall                                                                     Overall
                                                                                    84
        86                                                                                                                                                      84
                                                                                    82




AUROC




                                                                            AUROC




                                                                                                                                                        AUROC
        84                                                                          80                                                                          82
                                                                                    78
        82                                                                                                                                                      80
                                                                                    76
             A1 A2 A3 B/C1B/C2B/C3   A   B    C   A1 A2 A3 B1 B3 C1 C2 C3                A1 A2 A3 B/C1B/C2B/C3   A   B    C   A1 A2 A3 B1 B3 C1 C2 C3                A1 A2 A3 B/C1B/C2B/C3   A   B    C   A1 A2 A3 B1 B3 C1 C2 C3
                      TU                 AU                 EU                                    TU                 AU                 EU                                    TU                 AU                 EU

                                         DE                                                                          LA                                                                      MCD
 Figure 5: OOD detection. AUROC for distinguishing between ID and OOD datapoints using the
 different proposed measures of uncertainty as score. For the local method LA, all TUs and their AUs
 perform equally well, for DE and MCD, TU (B/C2) and TU (B/C3) perform best. AUROCs are
 averaged over all ID / OOD combinations with statistics over five independent runs.

 function is a measure of EU. Our results indicate, that a good acquisition function must capture the
 mutual information between y and w faithfully rather than the EU as defined by our framework. The
 results and an in-depth discussion are given in Sec. B.7.

 6              Conclusion
We have proposed a framework that categorizes measures of predictive uncertainty according to
assumptions about the predicting model and how the true model is approximated. Our framework has
been derived from first principles, based on the cross-entropy between the predicting model and the
true model (Eq. (5)). Most importantly, it clarifies the relationships between information-theoretic
measures of predictive uncertainty and uncovers their implicit assumptions. Our empirical evaluation
shows that the effectiveness of the different measures depends on the task and the posterior sampling
method used. As there is no best-performing measure under all conditions, it is crucial to not consider
only a single one to benchmark posterior sampling methods for uncertainty quantification.
Our proposed framework for estimating predictive uncertainty requires an approximation of posterior
expectations through samples. In practice, obtaining samples is generally expensive, even though
many improvements in efficiency have already been made. To avoid this issue, deterministic methods
have been proposed, which require only a single forward pass. The most prominent directions are
evidential models [Sensoy et al., 2018, Amini et al., 2020], prior networks [Malinin and Gales,
2018], as well as feature distance / density based models [Bradshaw et al., 2017, Liu et al., 2020,
Van Amersfoort et al., 2020, Mukhoti et al., 2023]. Those methods use different predictive uncertainty
measures than those discussed here. Future work should study their relation, which is unclear so far.
The framework presented in this work considers individual predictions. However, there is currently
a lot of interest around autoregressive predictions, especially for large language models. For such
models, uncertainty estimation has been considered as a way to detect hallucinations [Xiao and Wang,
2021]. Extending the framework presented in this work to autoregressive predictions comes with
a set of challenges [Malinin and Gales, 2021, Kuhn et al., 2023, Aichberger et al., 2024, Farquhar
et al., 2024], such as the necessity to sample output sequences to obtain entropy estimates, output
sequences of varying length, and semantic equivalences between output sequences. We believe that
tackling those issues is an important direction for future work.

 Acknowledgements
We thank Andreas Kirsch for constructive feedback on this work. The ELLIS Unit Linz, the LIT
AI Lab, the Institute for Machine Learning, are supported by the Federal State Upper Austria. We
thank the projects Medical Cognitive Computing Center (MC3), INCONTROL-RL (FFG-881064),
PRIMAL (FFG-873979), S3AI (FFG-872172), DL for GranularFlow (FFG-871302), EPILEPSIA
(FFG-892171), AIRI FG 9-N (FWF-36284, FWF-36235), AI4GreenHeatingGrids (FFG- 899943),
INTEGRATE (FFG-892418), ELISE (H2020-ICT-2019-3 ID: 951847), Stars4Waters (HORIZON-
CL6-2021-CLIMATE-01-01). We thank NXAI GmbH, Audi.JKU Deep Learning Center, TGW
LOGISTICS GROUP GMBH, Silicon Austria Labs (SAL), FILL Gesellschaft mbH, Anyline GmbH,
Google, ZF Friedrichshafen AG, Robert Bosch GmbH, UCB Biopharma SRL, Merck Healthcare
KGaA, Verbund AG, GLS (Univ. Waterloo), Software Competence Center Hagenberg GmbH,
Borealis AG, TÜV Austria, Frauscher Sensonic, TRUMPF and the NVIDIA Corporation.




                                                                                                                     10
References
Lukas Aichberger, Kajetan Schweighofer, Mykyta Ielanskyi, and Sepp Hochreiter. Semantically
  diverse language generation for uncertainty estimation in language models. arXiv, 2406.04306,
  2024.

Alexander Amini, Wilko Schwarting, Ava Soleimany, and Daniela Rus. Deep evidential regression.
  In H. Larochelle, M. Ranzato, R. Hadsell, M.F. Balcan, and H. Lin, editors, Advances in Neural
  Information Processing Systems, volume 33, pages 14927–14937. Curran Associates, Inc., 2020.

George Apostolakis. The concept of probability in safety assessments of technological systems.
  Science, 250(4986):1359–1364, 1990.

Charles Blundell, Julien Cornebise, Koray Kavukcuoglu, and Daan Wierstra. Weight uncertainty in
  neural network. In Francis Bach and David Blei, editors, Proceedings of the 32nd International
  Conference on Machine Learning, volume 37 of Proceedings of Machine Learning Research, pages
  1613–1622, Lille, France, 07–09 Jul 2015. PMLR.

John Bradshaw, Alexander G. de G. Matthews, and Zoubin Ghahramani. Adversarial examples,
  uncertainty, and transfer testing robustness in gaussian process hybrid deep networks. arXiv,
  1707.02476, 2017.

Tianqi Chen, Emily Fox, and Carlos Guestrin. Stochastic gradient hamiltonian monte carlo. In Eric P.
  Xing and Tony Jebara, editors, Proceedings of the 31st International Conference on Machine
  Learning, volume 32 of Proceedings of Machine Learning Research, pages 1683–1691, Bejing,
  China, 22–24 Jun 2014. PMLR.

Thomas M. Cover and Joy A. Thomas. Elements of Information Theory (Wiley Series in Telecommu-
  nications and Signal Processing). Wiley-Interscience, USA, 2006. ISBN 0471241954.

Erik Daxberger, Agustinus Kristiadi, Alexander Immer, Runa Eschenhagen, Matthias Bauer, and
  Philipp Hennig. Laplace redux - effortless bayesian deep learning. In M. Ranzato, A. Beygelzimer,
  Y. Dauphin, P.S. Liang, and J. Wortman Vaughan, editors, Advances in Neural Information
  Processing Systems, volume 34, pages 20089–20103. Curran Associates, Inc., 2021.

Stefan Depeweg, Jose-Miguel Hernandez-Lobato, Finale Doshi-Velez, and Steffen Udluft. Decompo-
  sition of uncertainty in Bayesian deep learning for efficient and risk-sensitive learning. In Jennifer
  Dy and Andreas Krause, editors, Proceedings of the 35th International Conference on Machine
  Learning, volume 80 of Proceedings of Machine Learning Research, pages 1184–1193. PMLR,
  10–15 Jul 2018.

Ruxiao Duan, Brian Caffo, Harrison X. Bai, Haris I. Sair, and Craig Jones. Evidential uncertainty
  quantification: A variance-based perspective. In Proceedings of the IEEE/CVF Winter Conference
  on Applications of Computer Vision (WACV), pages 2132–2141, January 2024.

Sebastian Farquhar, Jannik Kossen, Lorenz Kuhn, and Yarin Gal. Detecting hallucinations in large
  language models using semantic entropy. Nature, 630(8017):625–630, 2024.

Stanislav Fort, Huiyi Hu, and Balaji Lakshminarayanan. Deep ensembles: A loss landscape perspec-
  tive. arXiv, 1912.02757, 2019.

Yarin Gal. Uncertainty in deep learning. PhD thesis, University of Cambridge, 2016.

Yarin Gal and Zoubin Ghahramani. Dropout as a bayesian approximation: Representing model uncer-
  tainty in deep learning. In Maria Florina Balcan and Kilian Q. Weinberger, editors, Proceedings of
  The 33rd International Conference on Machine Learning, volume 48 of Proceedings of Machine
  Learning Research, pages 1050–1059, New York, New York, USA, 20–22 Jun 2016. PMLR.

Yarin Gal, Riashat Islam, and Zoubin Ghahramani. Deep Bayesian active learning with image data.
  In Doina Precup and Yee Whye Teh, editors, Proceedings of the 34th International Conference on
  Machine Learning, volume 70 of Proceedings of Machine Learning Research, pages 1183–1192.
  PMLR, 06–11 Aug 2017.


                                                  11
Jakob Gawlikowski, Cedrique Rovile Njieutcheu Tassi, Mohsin Ali, Jongseok Lee, Matthias Humt,
  Jianxiang Feng, Anna Kruspe, Rudolph Triebel, Peter Jung, Ribana Roscher, Muhammad Shahzad,
  Wen Yang, Richard Bamler, and Xiao Xiang Zhu. A survey of uncertainty in deep neural networks.
  Artificial Intelligence Review, 56(1):1513–1589, Oct 2023.

Ian Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial
  examples. In International Conference on Learning Representations, 2015.

Sebastian Gruber and Florian Buettner. Uncertainty estimates of predictions via a general bias-
  variance decomposition. In Francisco Ruiz, Jennifer Dy, and Jan-Willem van de Meent, editors,
  Proceedings of The 26th International Conference on Artificial Intelligence and Statistics, volume
  206 of Proceedings of Machine Learning Research, pages 11331–11354. PMLR, 25–27 Apr 2023.

Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image
  recognition. In 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR),
  pages 770–778, 2016.

Jon C. Helton. Risk, uncertainty in risk, and the EPA release limits for radioactive waste disposal.
  Nuclear Technology, 101(1):18–39, 1993. ISSN 0029-5450, 1943-7471.

Jon C. Helton. Uncertainty and sensitivity analysis in the presence of stochastic and subjective
  uncertainty. Journal of Statistical Computation and Simulation, 57(1-4):3–76, 1997.

Dan Hendrycks and Thomas Dietterich. Benchmarking neural network robustness to common corrup-
  tions and perturbations. Proceedings of the International Conference on Learning Representations,
  2019.

Lara Hoffmann and Clemens Elster. Deep ensembles from a bayesian perspective. arXiv, 2105.13283,
  2021.

Paul Hofman, Yusuf Sale, and Eyke Hüllermeier. Quantifying aleatoric and epistemic uncertainty:
  A credal approach. In ICML 2024 Workshop on Structured Probabilistic Inference & Generative
  Modeling, 2024a.

Paul Hofman, Yusuf Sale, and Eyke Hüllermeier. Quantifying aleatoric and epistemic uncertainty
  with proper scoring rules. arXiv, 2404.12215, 2024b.

Neil Houlsby, Ferenc Huszár, Zoubin Ghahramani, and Máté Lengyel. Bayesian active learning for
  classification and preference learning. arXiv, 1112.5745, 2011.

Gao Huang, Zhuang Liu, Laurens van der Maaten, and Kilian Q. Weinberger. Densely connected
  convolutional networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern
  Recognition (CVPR), July 2017.

Eyke Hüllermeier and Willem Waegeman. Aleatoric and epistemic uncertainty in machine learning:
  An introduction to concepts and methods. Machine Learning, 110:457–506, 2021.

Eyke Hüllermeier, Sébastien Destercke, and Mohammad Hossein Shaker. Quantification of credal
  uncertainty in machine learning: A critical analysis and empirical comparison. In James Cussens
  and Kun Zhang, editors, Proceedings of the Thirty-Eighth Conference on Uncertainty in Artificial
  Intelligence, volume 180 of Proceedings of Machine Learning Research, pages 548–557. PMLR,
  01–05 Aug 2022.

Pavel Izmailov, Sharad Vikram, Matthew D Hoffman, and Andrew Gordon Gordon Wilson. What are
  bayesian neural network posteriors really like? In Marina Meila and Tong Zhang, editors, Proceed-
  ings of the 38th International Conference on Machine Learning, volume 139 of Proceedings of
  Machine Learning Research, pages 4629–4640. PMLR, 18–24 Jul 2021.

Alex Kendall and Yarin Gal. What uncertainties do we need in bayesian deep learning for computer
  vision? In I. Guyon, U. Von Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and
  R. Garnett, editors, Advances in Neural Information Processing Systems, volume 30. Curran
  Associates, Inc., 2017.


                                                12
Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International
  Conference on Learning Representations (ICLR), 2015.
Nikita Kotelevskii and Maxim Panov. Predictive uncertainty quantification via risk decompositions
  for strictly proper scoring rules. arXiv, 2402.10727, 2024.
Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images.
  University of Toronto, 2009.
Lorenz Kuhn, Yarin Gal, and Sebastian Farquhar. Semantic uncertainty: Linguistic invariances for
  uncertainty estimation in natural language generation. In The Eleventh International Conference
  on Learning Representations, 2023.
Salem Lahlou, Moksh Jain, Hadi Nekoei, Victor I Butoi, Paul Bertin, Jarrid Rector-Brooks, Maksym
  Korablyov, and Yoshua Bengio. DEUP: Direct epistemic uncertainty prediction. Transactions on
  Machine Learning Research, 2023. ISSN 2835-8856.
Balaji Lakshminarayanan, Alexander Pritzel, and Charles Blundell. Simple and scalable predictive
  uncertainty estimation using deep ensembles. In I. Guyon, U. Von Luxburg, S. Bengio, H. Wallach,
  R. Fergus, S. Vishwanathan, and R. Garnett, editors, Advances in Neural Information Processing
  Systems, volume 30. Curran Associates, Inc., 2017.
Ya Le and Xuan Yang. Tiny imagenet visual recognition challenge. CS 231N, 2015.
Y. Lecun, L. Bottou, Y. Bengio, and P. Haffner. Gradient-based learning applied to document
  recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998.
Yaniv Leviathan, Matan Kalman, and Yossi Matias. Fast inference from transformers via speculative
  decoding. In Andreas Krause, Emma Brunskill, Kyunghyun Cho, Barbara Engelhardt, Sivan Sabato,
  and Jonathan Scarlett, editors, Proceedings of the 40th International Conference on Machine
  Learning, volume 202 of Proceedings of Machine Learning Research, pages 19274–19286. PMLR,
  23–29 Jul 2023.
Jeremiah Liu, Zi Lin, Shreyas Padhy, Dustin Tran, Tania Bedrax Weiss, and Balaji Lakshminarayanan.
   Simple and principled uncertainty estimation with deterministic deep learning via distance aware-
   ness. In H. Larochelle, M. Ranzato, R. Hadsell, M.F. Balcan, and H. Lin, editors, Advances in Neu-
   ral Information Processing Systems, volume 33, pages 7498–7512. Curran Associates, Inc., 2020.
David J. C. MacKay. A Practical Bayesian Framework for Backpropagation Networks. Neural
  Computation, 4(3):448–472, 05 1992. ISSN 0899-7667.
Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu.
  Towards deep learning models resistant to adversarial attacks. In International Conference on
  Learning Representations, 2018.
Andrey Malinin and Mark Gales. Predictive uncertainty estimation via prior networks. In S. Bengio,
  H. Wallach, H. Larochelle, K. Grauman, N. Cesa-Bianchi, and R. Garnett, editors, Advances in
  Neural Information Processing Systems, volume 31. Curran Associates, Inc., 2018.
Andrey Malinin and Mark Gales. Uncertainty estimation in autoregressive structured prediction. In
  International Conference on Learning Representations, 2021.
Jishnu Mukhoti, Andreas Kirsch, Joost van Amersfoort, Philip H.S. Torr, and Yarin Gal. Deep
   deterministic uncertainty: A new simple baseline. In Proceedings of the IEEE/CVF Conference on
   Computer Vision and Pattern Recognition (CVPR), pages 24384–24394, June 2023.
Radford M. Neal. Bayesian Learning for Neural Networks. PhD thesis, University of Toronto, 1995.
Radford M Neal et al. Mcmc using hamiltonian dynamics. Handbook of markov chain monte carlo,
  2(11):2, 2011.
Yuval Netzer, Tao Wang, Adam Coates, Alessandro Bissacco, Baolin Wu, Andrew Y Ng, et al.
  Reading digits in natural images with unsupervised feature learning. NIPS workshop on deep
  learning and unsupervised feature learning, 2011.


                                                 13
Theodore Papamarkou, Maria Skoularidou, Konstantina Palla, Laurence Aitchison, Julyan Arbel,
  David Dunson, Maurizio Filippone, Vincent Fortuin, Philipp Hennig, José Miguel Hernández-
  Lobato, Aliaksandr Hubin, Alexander Immer, Theofanis Karaletsos, Mohammad Emtiyaz Khan,
  Agustinus Kristiadi, Yingzhen Li, Stephan Mandt, Christopher Nemeth, Michael A Osborne, Tim
  G. J. Rudner, David Rügamer, Yee Whye Teh, Max Welling, Andrew Gordon Wilson, and Ruqi
  Zhang. Position: Bayesian deep learning is needed in the age of large-scale AI. In Forty-first
  International Conference on Machine Learning, 2024.
Ilija Radosavovic, Raj Prateek Kosaraju, Ross Girshick, Kaiming He, and Piotr Dollar. Designing
   network design spaces. In Proceedings of the IEEE/CVF Conference on Computer Vision and
   Pattern Recognition (CVPR), June 2020.
Hippolyt Ritter, Aleksandar Botev, and David Barber. A scalable laplace approximation for neural
  networks. In International Conference on Learning Representations, 2018.
Yusuf Sale, Michele Caprio, and Eyke Höllermeier. Is the volume of a credal set a good measure
  for epistemic uncertainty? In Robin J. Evans and Ilya Shpitser, editors, Proceedings of the Thirty-
  Ninth Conference on Uncertainty in Artificial Intelligence, volume 216 of Proceedings of Machine
  Learning Research, pages 1795–1804. PMLR, 31 Jul–04 Aug 2023a.
Yusuf Sale, Paul Hofman, Lisa Wimmer, Eyke Hüllermeier, and Thomas Nagler. Second-order
  uncertainty quantification: Variance-based measures. arXiv, 2401.00276, 2023b.
Yusuf Sale, Viktor Bengs, Michele Caprio, and Eyke Hüllermeier. Second-order uncertainty quantifi-
  cation: A distance-based approach. In Forty-first International Conference on Machine Learning
  (ICML), 2024a.
Yusuf Sale, Paul Hofman, Timo Löhr, Lisa Wimmer, Thomas Nagler, and Eyke Hüllermeier. Label-
  wise aleatoric and epistemic uncertainty quantification. arXiv, 2406.02354, 2024b.
Aydin Sarraf and Yimin Nie. Rgan: Rényi generative adversarial network. SN Computer Science, 2,
  02 2021.
Kajetan Schweighofer, Lukas Aichberger, Mykyta Ielanskyi, and Sepp Hochreiter. Introducing an
  improved information-theoretic measure of predictive uncertainty. arXiv, 2311.08309, 2023a.
Kajetan Schweighofer, Lukas Aichberger, Mykyta Ielanskyi, Günter Klambauer, and Sepp Hochreiter.
  Quantification of uncertainty with adversarial models. In A. Oh, T. Naumann, A. Globerson,
  K. Saenko, M. Hardt, and S. Levine, editors, Advances in Neural Information Processing Systems,
  volume 36, pages 19446–19484. Curran Associates, Inc., 2023b.
Murat Sensoy, Lance Kaplan, and Melih Kandemir. Evidential deep learning to quantify classification
 uncertainty. In S. Bengio, H. Wallach, H. Larochelle, K. Grauman, N. Cesa-Bianchi, and R. Garnett,
 editors, Advances in Neural Information Processing Systems, volume 31. Curran Associates, Inc.,
 2018.
Claude Elwood Shannon. A mathematical theory of communication. The Bell system technical
  journal, 27(3):379–423, 1948.
Lewis Smith and Yarin Gal. Understanding measures of uncertainty for adversarial example detection.
  In A. Globerson and R. Silva, editors, Proceedings of the Thirty-Fourth Conference on Uncertainty
  in Artificial Intelligence, pages 560–569. AUAI Press, 2018.
Mitchell Stern, Noam Shazeer, and Jakob Uszkoreit. Blockwise parallel decoding for deep autore-
 gressive models. In S. Bengio, H. Wallach, H. Larochelle, K. Grauman, N. Cesa-Bianchi, and
 R. Garnett, editors, Advances in Neural Information Processing Systems, volume 31. Curran Asso-
 ciates, Inc., 2018.
Ferenc Cole Thierrin, Fady Alajaji, and Tamás Linder. Rényi cross-entropy measures for common
  distributions and processes with memory. Entropy, 24(10), 2022. ISSN 1099-4300.
Francisco J. Valverde-Albacete and Carmen Peláez-Moreno. The case for shifting the rényi entropy.
  Entropy, 21(1), 2019. ISSN 1099-4300.


                                                 14
Joost Van Amersfoort, Lewis Smith, Yee Whye Teh, and Yarin Gal. Uncertainty estimation using a
  single deep deterministic neural network. In Hal Daumé III and Aarti Singh, editors, Proceedings
  of the 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine
  Learning Research, pages 9690–9700. PMLR, 13–18 Jul 2020.
Tim van Erven and Peter Harremos. Rényi divergence and kullback-leibler divergence. IEEE
  Transactions on Information Theory, 60(7):3797–3820, 2014.
Max Welling and Yee Whye Teh. Bayesian learning via stochastic gradient langevin dynamics.
 In Proceedings of the 28th International Conference on International Conference on Machine
 Learning, ICML’11, page 681–688, Madison, WI, USA, 2011. Omnipress. ISBN 9781450306195.
Andrew G Wilson and Pavel Izmailov. Bayesian deep learning and a probabilistic perspective of gen-
  eralization. In H. Larochelle, M. Ranzato, R. Hadsell, M.F. Balcan, and H. Lin, editors, Advances
  in Neural Information Processing Systems, volume 33, pages 4697–4708. Curran Associates, Inc.,
  2020.
Lisa Wimmer, Yusuf Sale, Paul Hofman, Bernd Bischl, and Eyke Hüllermeier. Quantifying aleatoric
  and epistemic uncertainty in machine learning: Are conditional entropy and mutual information
  appropriate measures? In Uncertainty in Artificial Intelligence, pages 2282–2292. PMLR, 2023.
Han Xiao, Kashif Rasul, and Roland Vollgraf. Fashion-mnist: a novel image dataset for benchmarking
  machine learning algorithms. arXiv, 1708.07747, 2017.
Yijun Xiao and William Yang Wang. On hallucination and predictive uncertainty in conditional
  language generation. In Paola Merlo, Jorg Tiedemann, and Reut Tsarfaty, editors, Proceedings of
  the 16th Conference of the European Chapter of the Association for Computational Linguistics:
  Main Volume. Association for Computational Linguistics, 2021.
Fisher Yu, Yinda Zhang, Shuran Song, Ari Seff, and Jianxiong Xiao. Lsun: Construction of a large-
  scale image dataset using deep learning with humans in the loop. arXiv preprint arXiv:1506.03365,
  2015.
Ruqi Zhang, Chunyuan Li, Jianyi Zhang, Changyou Chen, and Andrew Gordon Wilson. Cyclical
  stochastic gradient mcmc for bayesian deep learning. In International Conference on Learning
  Representations, 2020.




                                                15
A     Technical Details
A.1   Relationships between Epistemic Components

Schweighofer et al. [2023a] proved the relationship that the sum of the EU of C2 and B3 is equivalent
to the EU of C3. For completeness, we provide a version of the proof as follows:

              EU (C2) - Mutual Information                           EU (B3)
    z                  }|                   {     z                   }|                     {
    Ep(w|D) [KL(p(y | x, w) ∥ p(y | x, D))] + Ep(w̃|D) [KL(p(y | x, D) ∥ p(y | x, w̃))]               (7)
                                                                                          
                                   p(y | x, w)                                     p(y | x, D)
      = Ep(w|D) Ep(y|x,w) log                       + Ep(w̃|D) Ep(y|x,D) log                          (8)
                                   p(y | x, D)                                     p(y | x, w̃)
                                                                                
      = Ep(w|D) Ep(y|x,w) [log p(y | x, w)] − Ep(y|x,w) [log p(y | x, D)] +                           (9)
                                                                               
         Ep(w̃|D) Ep(y|x,D) [log p(y | x, D)] − Ep(y|x,D) [log p(y | x, w̃)]
                                              
                                                                     ((| (   ((
      = Ep(w|D) Ep(y|x,w) [log p(y | x, w)] − Ep(y|x,D)   ( (      (p(y
                                                                [log
                                                                (         x, D)] +                   (10)
                                                       (
                                ((                 (                           
         Ep(y|x,D)
                (  [log
                   (  ( ((| (
                        p(y   x, D)] −  E p(w̃|D)   Ep(y|x,D) [log p(y | x, w̃)]
         ( (  (                               
      = Ep(w|D) Ep(y|x,w) [log p(y | x, w)] −                                                        (11)
                                                       
         Ep(w̃|D) Ep(w|D) Ep(y|x,w) [log p(y | x, w̃)]
                                                       
      = Ep(w|D) Ep(w̃|D) Ep(y|x,w) [log p(y | x, w)] −                                               (12)
                                                       
         Ep(w|D) Ep(w̃|D) Ep(y|x,w) [log p(y | x, w̃)]
                                                        
                                              p(y | x, w)
      = Ep(w|D) Ep(w̃|D) Ep(y|x,w) log                                                               (13)
                                              p(y | x, w̃)
                                                              
      = Ep(w|D) Ep(w̃|D) [KL(p(y | x, w) ∥ p(y | x, w̃))] ,                                          (14)
         |                        {z                           }
                                      EU (C3)

which is what we wanted to show. The step from (9) to (10) is due to additivity and linearity of
expectations. The step from (11) to (12) is due to the fact that we can insert the expectation Ep(w̃|D)
in the first term as it does not depend on w̃ and due to the fact that p(w̃ | D) = p(w | D).

Furthermore, a similar proof can be constructed for EU (C1) = EU (C2) + EU (B1) as follows:

                EU (C2) - Mutual Information                     EU (B1)
      z                 }|                  {   z            }|              {
      Ep(w|D) [KL(p(y | x, w) ∥ p(y | x, D))] + KL(p(y | x, D) ∥ p(y | x, w̃))                       (15)
                                                                           
                                   p(y | x, w)                     p(y | x, D)
        = Ep(w|D) Ep(y|x,w) log                   + Ep(y|x,D) log                                    (16)
                                   p(y | x, D)                     p(y | x, w̃)
                                                                          
        = Ep(w|D) Ep(y|x,w) [log p(y | x, w)] − Ep(y|x,w) [log p(y | x, D)] +                        (17)
          Ep(y|x,D) [log p(y | x, D)] − Ep(y|x,D) [log p(y | x, w̃)]
                                              
                                                                      ((| ( ((
        = Ep(w|D) Ep(y|x,w) [log p(y | x, w)] − Ep(y|x,D) (  (  (   (p(y
                                                                 [log     x, D)] +                   (18)
                                                      ( (
                         ((| (   ((
          Ep(y|x,D)
                 (  [log
                    (  (p(y    x, D)] −  E p(y|x,D) [log p(y | x, w̃)]
          (((                                                                    
        = Ep(w|D) Ep(y|x,w) [log p(y | x, w)] − Ep(w|D) Ep(y|x,w) [log p(y | x, w̃)]                 (19)
                                               
                                    p(y | x, w)
        = Ep(w|D) Ep(y|x,w) log                                                                      (20)
                                    p(y | x, w̃)
        = Ep(w|D) [KL(p(y | x, w) ∥ p(y | x, w̃))] ,                                                 (21)
          |                   {z                    }
                                 EU (C1)

which is what we wanted to show. Again, the step from (17) to (18) is due to additivity and linearity
of expectations. The linearity property is used to get to (19), after which elementary algebra leads to


                                                  16
the result.

In the same fashion, it is possible to construct a proof for EU (C2) = EU (C2) + EU (B2). However,
as we know that EU (B2) = 0, this is trivial.

A.2   Monte Carlo Approximations

The measures we proposed through our framework, except for measure (A1), incorporate posterior
expectations Ep(w|D) [·]. These are generally intractable to calculate exactly and are thus approxi-
mated through samples drawn from the distribution - a Monte Carlo approximation of the expectation.
In this section we provide those approximations explicitly and discuss efficient ways to implement
them, utilizing relationships between individual measures.
We assume that the posterior p(w | D) models to predict are drawn from and the posterior p(w̃ | D)
approximations of the true model are drawn from are the same. However, in practice it is generally
the case that models for averaging are selected based on their accuracy on a validation set, or more
generally that they are selected in a way optimal for predicting well. When sampling potential true
models that are likely under the data, the functional diversity of samples is often of concern, e.g. as
done with the sampling algorithm in Schweighofer et al. [2023b]. This can be seen as either having
different posteriors due to different priors or having different algorithms to obtain samples from the
same posterior. However, if the samples are not the same, many of the relationships in Sec. 3.1 are no
longer valid, thus also the coloring in Tab. 1. The provided implementation is able to handle both the
case where different samples are used for the MC approximation as well as the case where the same
samples are used and thus more efficient computation of TU (C3) and EU (C3) is possible. The MC
approximations for a single set of samples {wn }N   n=1 from p(w | D) = p(w̃ | D) are given by
TU (A2):
              CE(p(y | x, w) ; p(y | x, D)) = CE(p(y | x, w) ; Ew̃ [p(y | x, w̃)])                (22)
                                                  N
                                               1  X
                       ≈ CE(p(y | x, w) ;            p(y | x, wn )),      wn ∼ p(w | D)
                                               N n=1

TU (A3):
                  Ew̃ [CE(p(y | x, w) ; p(y | x, w̃))]                                            (23)
                               N
                           1   X
                       ≈         CE(p(y | x, w) ; p(y | x, wn )),         wn ∼ p(w | D)
                           N n=1

TU (B/C1):
              CE(p(y | x, D) ; p(y | x, w̃)) = Ew [CE(p(y | x, w) ; p(y | x, w̃))]                (24)
                               N
                           1   X
                       ≈         CE(p(y | x, wn ) ; p(y | x, w̃)),        wn ∼ p(w | D)
                           N n=1

TU (B/C2):
          CE(p(y | x, D) ; p(y | x, D)) = Ew [CE(p(y | x, w) ; Ew̃ [p(y | x, w̃)])]               (25)
                           N                           N
                       1   X                    1      X
                   ≈         CE(p(y | x, wn ) ;       p(y | x, wn )),           wn ∼ p(w | D)
                       N n=1                    N n=1

TU (B/C3):
      Ew̃ [CE((p(y | x, D) ; p(y | x, w̃))] = Ew [Ew̃ [CE(p(y | x, w) ; p(y | x, w̃))]]           (26)
                                 N
                               N X
                       1       X
              ≈                           CE(p(y | x, wn ) ; p(y | x, wn′ )),     wn ∼ p(w | D)
                   N (N − 1) n=1 ′
                                   n =1



                                                      17
AU (B):
                         H(p(y | x, D)) = H(Ew [p(y | x, w)])                                    (27)
                                         N
                                     1 X
                              ≈ H(         p(y | x, wn )),      wn ∼ p(w | D)
                                     N n=1

AU (C):
                                               N
                                           1 X
               Ew [H(p(y | x, w))] ≈             H(p(y | x, wn )),       wn ∼ p(w | D)           (28)
                                           N n=1

EU (A2):
           KL(p(y | x, w) ∥ p(y | x, D)) = KL(p(y | x, w) ∥ Ew̃ [p(y | x, w̃)])                  (29)
                                                N
                                             1  X
                    ≈ KL(p(y | x, w) ∥             p(y | x, wn )),      wn ∼ p(w | D)
                                             N n=1

EU (A3):
               Ew̃ [KL(p(y | x, w) ∥ p(y | x, w̃))]                                              (30)
                            N
                          1 X
                     ≈          KL(p(y | x, w) ∥ p(y | x, wn )),        wn ∼ p(w | D)
                          N n=1

EU (B1):
           KL(p(y | x, D) ∥ p(y | x, w̃)) = KL(Ew [p(y | x, w)] ∥ p(y | x, w̃))                  (31)
                                 N
                             1   X
                    ≈ KL(          p(y | x, wn ) ∥ p(y | x, w̃)),      wn ∼ p(w | D)
                             N n=1

EU (B3):
    Ew̃ [KL(p(y | x, D) ∥ p(y | x, w̃))] = Ew̃ [KL(Ew [p(y | x, w)] ∥ p(y | x, w̃))]             (32)
                   N             N
                1  X      1      X
           ≈          KL(       p(y | x, wn ) ∥ p(y | x, wn )),          wn ∼ p(w | D)
                N n=1     N n=1

EU (C1):
               Ew [KL(p(y | x, w) ∥ p(y | x, w̃))]                                               (33)
                             N
                          1 X
                     ≈          KL(p(y | x, wn ) ∥ p(y | x, w)),        wn ∼ p(w | D)
                          N n=1

EU (C2):
      Ew [KL(p(y | x, w) ∥ p(y | x, D))] = Ew [KL(p(y | x, w) ∥ Ew̃ [p(y | x, w̃)])]             (34)
                      N                        N
                   1 X                      1 X
               ≈         KL(p(y | x, wn ) ∥       p(y | x, wn )),             wn ∼ p(w | D)
                   N n=1                    N n=1

EU (C3):
    Ew [Ew̃ [KL(p(y | x, w) ∥ p(y | x, w̃))]]                                                    (35)
                               N
                             N X
                    1        X
           ≈                            KL(p(y | x, wn ) ∥ p(y | x, wn′ )),      wn ∼ p(w | D)
                N (N − 1) n=1 ′
                                 n =1


                                                    18
A.3   Generalization to Renyi Cross-Entropy

In this section we review the Rényi cross-entropy which is a generalization of the cross-entropy
discussed in the main paper. This allows to directly transfer our proposed measure of predictive
uncertainty in Eq. (5) and the framework we introduced based on it (overview in Tab. 1) to other
instances of Rényi cross-entropies.
Let us start with the Rényi entropy, which was proposed as a generalization of the Shannon entropy,
in that for the limit of the Rényi parameter α → 1 the Rényi entropy becomes the Shannon entropy.
For two discrete distributions p and q on the same support Y it is defined as
                                                 1        X
                                      Hα (p) =        log    pαi                               (36)
                                                1−α        i

Similarly, the Rényi divergence is a generalization of the Kullback-Leibler (KL) divergence, in that
for the limit of the Rényi parameter α → 1 the Rényi divergence becomes the KL divergence. It is
defined as
                                                 1        X
                                                                  1−α
                               Dα (p || q) =         log     pαi qi                             (37)
                                               α−1         i

Note that there are also versions of both for continuous distributions, basically exchanging the sum
with an integral. However, the resulting Rényi differential entropy shares the same deficiencies as the
Shannon differential entropy.
What is left is defining the Rényi cross-entropy. Motivated by the additive decomposition of Shannon
cross-entropy into the entropy and KL divergence, Sarraf and Nie [2021] proposed to define the Rényi
cross-entropy as
                               CEα (p ; q) := Hα (p) + Dα (p || q)                                (38)
Multiple closed form solutions for different values of α are already known for the Rényi entropy
and divergence, making this a very simple solution. Furthermore, Valverde-Albacete and Peláez-
Moreno [2019] introduced a closed form solution, which has been simplified to the following form
by Thierrin et al. [2022]:
                                                 1       X
                             CEα (p ; q) :=          log    pi qiα−1                         (39)
                                              1−α         i

Furthermore, Thierrin et al. [2022] proposes closed form solutions for this form of the Rényi
differential cross-entropy for various continuous distributions.
In the following we stick to the definition of the Rényi cross-entropy by Sarraf and Nie [2021]
(Eq. (38)) and state the respective entropy and divergence for special cases of α. By defining the
arbitrary discrete distributions as p := p(y | x, ·) and q := p(y | x, w∗ ) each value of α yields
a variant our proposed measure of predictive uncertainty (Eq. (5)), giving rise to variants of our
proposed framework.
α = 0: The measure of entropy is called the Hartley or max-entropy, which is the cardinality of
possible events Y. It is given by
                                         H0 (p) := log |Y| .                                      (40)
The divergence is called max-divergence and is given by
                                D0 (p || q) := − log Q({i : pi > 0}) .                            (41)

α = 12 : The measure of entropy is referred to as Bhattacharyya-entropy. It is given by
                                                       X√
                                     H 12 (p) := 2 log      pi .                                  (42)
                                                        i

The divergence is called Bhattacharyya-divergence (minus twice the logarithm of the Bhattacharyya
coefficient) and is given by
                                                         X√
                                 D 21 (p || q) := −2 log    pi qi .                           (43)
                                                            i



                                                  19
α = 1: This case is the well known Shannon-entropy, given by
                                                   X
                                H1 (p) = H(p) := −     pi log pi .                                  (44)
                                                         i

The divergence is known as Kullback-Leibler divergence, given by
                                                      X           pi
                           D1 (p || q) = KL(p ∥ q) :=      pi log    .                              (45)
                                                        i
                                                                  qi

α = 2: This case is called the collision entropy, which is closely related to the index of coincidence.
It is given by
                                                       X
                                       H2 (p) := − log      p2i .                                  (46)
                                                          i

The corresponding divergence is based upon the chi-square divergence
                                       N
                                             !               N
                                                                            !
                                      X  p2i                X   (pi − qi )2
                  D2 (p || q) := log           = log 1 +                      .                     (47)
                                          q
                                      i=1 i                 i=1
                                                                    qi

α = ∞: The entropy is known as the min-entropy. It is given by
                                      H∞ (p) := − log max pi .                                      (48)
                                                             i

The divergence
                                                                  pi
                                      D∞ (p || q) := log sup         .                              (49)
                                                              i   qi

Notes. Realizations of Renyi entropy satisfy the inequalities
                                 H0 (p) ≥ H1 (p) ≥ H2 (p) ≥ H∞ (p)                                  (50)
Also Theorem 7 in van Erven and Harremos [2014] states that Renyi divergences are continuous in
the order of α.

A.4   Generalization to other Strictly Proper Scoring Rules

Another perspective on our measure of uncertainty (Eq. (5)) was recently proposed by Kotelevskii
and Panov [2024] and Hofman et al. [2024b]. They consider the zero-one, Brier, and Spherical
score in addition to the log-score, which is the cross-entropy upon which the information-theoretic
measures we discussed in the main paper are based (c.f. Eq. (5)). For the zero-one score, the resulting
framework of measures is given in Tab. 2, for the Brier score in Tab. 3 and for the spherical score it is
given in Tab. 4.

A.5   Alternative Measure

The reverse order of the arguments for the cross-entropy in Eq. (5), that is, CE(p(y | x, w∗ ) ; p(y |
x, ·)), gives rise to an alternative measure that is consistent with Eq. (1). This measure, also known
as “pointwise risk” under the log score at an input (point) x, has been considered as a measure
of predictive uncertainty [Gruber and Buettner, 2023, Lahlou et al., 2023, Kotelevskii and Panov,
2024, Hofman et al., 2024b]. However, we argue that our proposed measure (Eq. (5)) is more
meaningful. Our measure considers the uncertainty inherent to predicting with the selected model,
plus the uncertainty due to any potential mismatch with the true model. The alternative measure
considers the uncertainty inherent to predicting with the true model, plus the uncertainty due to any
potential mismatch with the selected model. However, we generally don’t know the true model, thus
can’t actually use it to predict and have to resort to an approximation of the true model anyways.
Noteworthy, the alternative measure gives rise to essentially the same framework due to its symmetry.


                                                   20
Table 2: Our proposed framework applied under the zero-one score. Each measure denotes a
different instantiation of our proposed measure given by Eq. (5), but using the zero-one score instead
of the cross-entropy (log score) for different assumptions about the predicting model and how the true
model is approximated. For brevity, we define pw := p(y | x, w), pD := p(y | x, D), Ew := Ep(w|D)
(the same for w̃) and p• (pb◦ ) := p(y = argmax p(y | x, ◦) | x, •). Expressions with the same cell
coloring are equivalent to each other. Each measure of TU additively decomposes into AU and EU.

                                                           Approximation of true predictive distribution
         Predicting model
                                           (1) w̃                            (2) Ew̃                      (3) w̃ ∼ p(w̃ | D)

       (A) w                         1 − pw (pc
                                              w̃ )                      1 − pw (pc
                                                                                 D)                        Ew̃ [1 − pw (pc
                                                                                                                         w̃ )]
 TU




       (B) Ew                            1 − pD (pc
                                                  w̃ )                   1 − pD (pc
                                                                                  D)                       Ew̃ [1 − pD (pc
                                                                                                                         w̃ )]


       (C) w ∼ p(w | D)           Ew [1 − pw (pc
                                               w̃ )]                 Ew [1 − pw (pc
                                                                                  D )]                Ew [ Ew̃ [1 − pw (pc
                                                                                                                         w̃ )]]


       (A) w                         1 − max pw                         1 − max pw                              1 − max pw
 AU




       (B) Ew                        1 − max pD                         1 − max pD                              1 − max pD

       (C) w ∼ p(w | D)           1 − Ew [max pw ]                   1 − Ew [max pw ]                      1 − Ew [max pw ]

       (A) w                     max pw − pw (pc
                                               w̃ )                 max pw − pw (pc
                                                                                  D)                  Ew̃ [max pw − pw (pc
                                                                                                                         w̃ )]
                                                                                 :0
 EU




                                                                               
       (B) Ew                    max pD − pD (pc
                                               w̃ )                max p
                                                                        D−    D)
                                                                           pD (pc                     Ew̃ [max pD − pD (pc
                                                                                                                         w̃ )]
                                                                   
       (C) w ∼ p(w | D)        Ew [max pw − pw (pc
                                                 w̃ )]          Ew [max pw − pw (pc
                                                                                  D )]             Ew [ Ew̃ [max pw − pw (pc
                                                                                                                           w̃ )]]




Table 3: Our proposed framework applied under the Brier score. Each measure denotes a different
instantiation of our proposed measure given by Eq. (5), but using the Brier score instead of the cross-
entropy (log score) for different assumptions about the predicting model and how the true model is
approximated. For brevity, we define pw := p(y | x, w), pD := p(y | x, D), and Ew := Ep(w|D)
                                                              q
                                                                PK                     2
(the same for w̃). The 2-norm is defined as ∥p(y | x, •)∥2 :=      k=1 p(y = k | x, •) . Expressions
with the same cell coloring are equivalent to each other. Each measure of TU additively decomposes
into AU and EU.

                                                          Approximation of true predictive distribution
       Predicting model
                                     (1) w̃                              (2) Ew̃                          (3) w̃ ∼ p(w̃ | D)

                                     2                2                  2                 2
                                                                                                   Ew̃ 1 − ∥pw ∥22 + ∥pw − pw̃ ∥22
                                                                                                                                  
      (A) w                 1 − ∥pw ∥ + ∥pw − pw̃ ∥
                                     2                2
                                                               1 − ∥pw ∥ + ∥pw − pD ∥
                                                                         2                 2
                                                                                               0
 TU




      (B) Ew                         2
                            1 − ∥pD ∥ + ∥pD − pw̃ ∥  2                           
                                                                                  :
                                                               1 − ∥pD ∥22 + ∥pD − pD ∥22          Ew̃ 1 − ∥pD ∥22 + ∥pD − pw̃ ∥22
                                                                                                                                  
                                     2               2                        
      (C) w ∼ p(w | D) Ew 1 − ∥pw ∥22 + ∥pw − pw̃ ∥22 Ew 1 − ∥pw ∥22 + ∥pw − pD ∥22 Ew Ew̃ 1 − ∥pw ∥22 + ∥pw − pw̃ ∥22
                                                                                                                 


      (A) w                        1 − ∥pw ∥22                         1 − ∥pw ∥22                              1 − ∥pw ∥22
 AU




      (B) Ew                       1 − ∥pD ∥22                         1 − ∥pD ∥22                              1 − ∥pD ∥22

                                Ew 1 − ∥pw ∥22                      Ew 1 − ∥pw ∥22                         Ew 1 − ∥pw ∥22
                                                                                                                     
      (C) w ∼ p(w | D)


                                  ∥pw − pw̃ ∥22                        ∥pw − pD ∥22                        Ew̃ ∥pw − pw̃ ∥22
                                                                                                                            
      (A) w
                                                                                       0
 EU




      (B) Ew                      ∥pD − pw̃ ∥22                        ∥p −
                                                                              :
                                                                              
                                                                              
                                                                            p ∥    2
                                                                                                           Ew̃ ∥pD − pw̃ ∥22
                                                                                                                            
                                                                         D     D   2
                                                                       
                               Ew ∥pw − pw̃ ∥22                    Ew ∥pw − pD ∥22                             Ew̃ ∥pw − pw̃ ∥22
                                                                                                                           
      (C) w ∼ p(w | D)                                                                                Ew




                                                                  21
Table 4: Our proposed framework applied under the spherical score. Each measure denotes a
different instantiation of our proposed measure given by Eq. (5), but using the spherical score instead
of the cross-entropy (log score) for different assumptions about the predicting model and how the
true model is approximated. For brevity, we define pw := p(y | x, w),qpD := p(y | x, D), and
                                                                              PK                      2
Ew := Ep(w|D) (the same for w̃). The 2-norm is defined as ∥p• ∥2 :=              k=1 p(y = k | x, •) .
                                                           PK
Furthermore, the scalar product is defined as ⟨p• , p◦ ⟩ := k=1 p(y = k | x, •) · p(y = k | x, ◦).
Expressions with the same cell coloring are equivalent to each other. Each measure of TU additively
decomposes into AU and EU.

                                                      Approximation of true predictive distribution
       Predicting model
                                  (1) w̃                            (2) Ew̃                    (3) w̃ ∼ p(w̃ | D)
                                                                                                  h             i
                                    ⟨pw ,pw̃ ⟩                         ⟨pw ,pD ⟩                       ⟨p ,p ⟩
      (A) w                    1−    ∥pw̃ ∥2
                                                                  1−    ∥pD ∥2
                                                                                               Ew̃ 1 − ∥pw ∥w̃
                                                                                                           w̃ 2
 TU




                                                                                                   h            i
                                    ⟨p ,p ⟩                            ⟨p ,p ⟩                          ⟨p ,p ⟩
      (B) Ew                  1 − ∥pD ∥w̃                       1 − ∥pD ∥D                     Ew̃ 1 − ∥pD ∥w̃
                                     w̃ 2                              D 2                                 w̃ 2
                               h            i                    h            i                 h    h            ii
                                    ⟨p ,p ⟩                           ⟨p ,p ⟩                             ⟨p ,p ⟩
      (C) w ∼ p(w | D)      Ew 1 − ∥pw ∥w̃                    Ew 1 − ∥pw ∥D                  Ew Ew̃ 1 − ∥pw ∥w̃
                                           w̃    2                           D     2                               w̃   2



      (A) w                    1 − ∥pw ∥2                         1 − ∥pw ∥2                          1 − ∥pw ∥2
 AU




      (B) Ew                    1 − ∥pD ∥2                        1 − ∥pD ∥2                          1 − ∥pD ∥2

      (C) w ∼ p(w | D)       Ew [1 − ∥pw ∥2 ]                  Ew [1 − ∥pw ∥2 ]                 Ew [1 − ∥pw ∥2 ]
                                                                                                h                 i
                                       ⟨pw ,pw̃ ⟩                         ⟨pw ,pD ⟩                       ⟨p ,p ⟩
      (A) w                 ∥pw ∥2 −    ∥pw̃ ∥2
                                                               ∥pw ∥2 −    ∥pD ∥2
                                                                                             Ew̃ ∥pw ∥2 − ∥pw ∥w̃
                                                                                                             w̃ 2
                                                                                  :0
 EU




                                       ⟨p ,p ⟩                            ⟨p ,p ⟩             h
                                                                                                          ⟨p ,p ⟩
                                                                                                                  i
      (B) Ew                ∥pD ∥2 − ∥pD ∥w̃                 ∥p   2−
                                                                D ∥
                                                                      D
                                                                     ∥p   D
                                                                                             Ew̃ ∥pD ∥2 − ∥pD ∥w̃
                                        w̃ 2                            D ∥2                                 w̃ 2
                             h                 i             h                i             h    h                 ii
                                       ⟨p ,p ⟩                         ⟨p ,p ⟩                              ⟨p ,p ⟩
      (C) w ∼ p(w | D)    Ew ∥pw ∥2 − ∥pw ∥w̃              Ew ∥pw ∥2 − ∥pw ∥D              Ew Ew̃ ∥pw ∥2 − ∥pw ∥w̃
                                                 w̃   2                            D   2                                w̃   2




A.6   Regression

For a probabilistic regression model, e.g. under a Gaussian assumption, the distribution parameters
are estimated, i.e. mean and variance for the Gaussian predictive distribution. The model is then
trained by minimizing the negative log-likelihood under the training dataset.
Many works follow Depeweg et al. [2018] and utilize a variance decomposition for uncertainty
quantification, where the AU is the expected variance and the EU is the variance of means, where
expectation and variance are over the model posterior. However, Depeweg et al. [2018] also consider
the uncertainty measure given by Eq. (3), using differential entropies for the continuous predictive
distributions. The same can be done in order to adapt our framework in Tab. 1 for continuous
predictive distributions.
Nevertheless, there are two important drawbacks one need to consider when doing this. First,
differential entropy can be unbounded, depending on the nature of the predictive distribution. For
the example of a Gaussian, it can be between −∞ and ∞. In addition, it is not invariant to a change
of variables, making it a relative rather than an absolute measure. Second, the posterior predictive
distribution as defined in Eq. (2) is generally a mixture of individual distributions, unlike in the
discrete case. This makes MC approximations of the resulting measures more involved.




                                                            22
    B                       Additional Experiments
   In this section, we provide additional empirical results of our evaluation of the proposed framework
   of uncertainty measures.
   The code to reproduce our experiments is available at https://github.com/ml-jku/uncertainty-measures.

    B.1                         Illustrative Example

    Here, we provide an illustrative synthetic example often discussed in the literature [Wimmer et al.,
    2023, Schweighofer et al., 2023a, Sale et al., 2023b]. We consider a predictor defined as a Bernoulli
    distribution leading to the predictive distribution p(y | θ). Thus, there is no model involved for
    mapping from the input space to the Bernoulli parameter. The only free parameter is the Bernoulli
    parameter. Therefore, the posterior distribution is defined as p(θ | D) = p(D | θ)p(θ)/p(D). To
    examplify our framework, we consider a Beta posterior distribution Beta(θ; 2, 3). The true Bernoulli
    parameter θ∗ is not known.
    Results are shown in Fig. 6, depicting what is considered as predicting model (green) and what is
    compared to as approximation of the true model. The green line for measures (A1/2/3) and the
    violet line for measures (A/B/C1) were chosen arbitrarily, but different to the expected Bernoulli
    parameter to exemplify the differences between measures.

                      2 A1                          TU: 1.20     A2                           TU: 0.85     A3                     TU: 0.99
                                                    AU: 0.72                                  AU: 0.72                            AU: 0.72
                                                    EU: 0.48                                  EU: 0.13                            EU: 0.26
                      1

                      0
Probability Density




                      2 B1                          TU: 1.09     B2                           TU: 0.97     B3                     TU: 1.13
                                                    AU: 0.97                                  AU: 0.97                            AU: 0.97
                                                    EU: 0.12                                  EU: 0.00                            EU: 0.16
                      1

                      0
                      2 C1                          TU: 1.09     C2                           TU: 0.97     C3                     TU: 1.13
                                                    AU: 0.84                                  AU: 0.84                            AU: 0.84
                                                    EU: 0.25                                  EU: 0.13                            EU: 0.29
                      1

                      0
                          0.0     0.2   0.4   0.6   0.8    1.0 0.0    0.2    0.4    0.6       0.8    1.0 0.0    0.2   0.4   0.6   0.8    1.0
                                                                        Bernoulli Parameter

    Figure 6: Uncertainty measures given by the predicting model and the approximation of the true
    model. We consider the posterior distribution Beta(θ; 2, 3), shaded in gray.


    B.2                         Selective Prediction

   We provide the additional results for selective prediction as discussed in the main paper.
   The results for predicting under a single model are shown in Fig. 7. We observe, that the best measure
   for DE and LA is TU (A3), as well as TU (A2) in the case of MCD. Overall, measures that consider
   the single model as predicting model perform well throughout comparing within TU, AU and EU.
   Again, EU (A2) performs surprisingly bad for LA as posterior sampling method. For the local
   methods LA and MCD, AU (A) is better than AU (B) and AU (C), which is not the case for DE.
   The additional results for predicting under the average model with MCD are shown in Fig. 8. Overall,
   the results are very similar to the other local posterior sampling method LA provided in Fig. 4.
   However, TU (A2) is the best measure for MCD, while it is TU (A3) for LA. For the global posterior
   sampling method DE however, TU (B/C3) performs best.
    Finally, the results for predicting under a model according to the posterior are given in Fig. 9. The
    results are very similar to the results under the average model in Fig. 4 and Fig. 8. However, the
    difference between the different AU measures for LA and MCD is extremely tight. This is also the
    case for the TU measures, yet to a lesser extent.




                                                                              23
                                                                     Single Model Predicts - Overall
           95.0                                                                             DE
           92.5
           90.0                                                                                                            EU
                                                                                                                      A1 (87.30±. 08)
Accuracy




           87.5              TU                                                                                       A2 (88.11±. 07)
                        A1 (87.96±. 10)                                                                               A3 (88.23±. 11)
                        A2 (88.10±. 10)                                                                               B1 (86.58±. 10)
           85.0         A3 (88.24±. 11)                                    AU                                         B3 (87.60±. 11)
                        B/C1 (88.07±. 09)                             A (87.50±. 11)                                  C1 (87.31±. 10)
           82.5         B/C2 (88.12±. 09)                             B (88.12±. 09)                                  C2 (88.12±. 11)
                        B/C3 (88.22±. 09)                             C (87.95±. 08)                                  C3 (87.85±. 11)
           80.0         Random (79.67±. 10)                           Random (79.67±. 10)                             Random (79.67±. 10)

                   50        60         70    80   90   100     50 Single
                                                                       60 Model
                                                                             70 Predicts
                                                                                    80 - Overall
                                                                                          90    100              50        60         70    80   90   100
              94                                              Percentage of samplesLAselected for prediction
              92
              90
                                                                                                                           EU
              88                                                                                                      A1 (85.70±. 22)
   Accuracy




                             TU                                                                                       A2 (83.65±. 20)
              86        A1 (87.27±. 17)                                                                               A3 (86.72±. 18)
                        A2 (87.51±. 14)                                                                               B1 (84.94±. 23)
              84        A3 (87.59±. 15)                                    AU                                         B3 (85.47±. 20)
                        B/C1 (86.96±. 18)                             A (87.53±. 14)                                  C1 (85.61±. 22)
              82        B/C2 (87.15±. 15)                             B (87.15±. 15)                                  C2 (86.54±. 17)
                        B/C3 (87.18±. 16)                             C (87.03±. 14)                                  C3 (85.94±. 18)
              80        Random (79.72±. 13)                           Random (79.72±. 13)                             Random (79.72±. 13)

                   50        60         70    80   90   100     50 Single
                                                                       60 Model
                                                                             70 Predicts
                                                                                    80 - Overall
                                                                                          90    100              50        60         70    80   90   100
                                                              Percentage of samples
                                                                                 MCDselected for prediction
           92.5
           90.0
                                                                                                                           EU
           87.5                                                                                                       A1 (84.72±. 05)
Accuracy




                             TU                                                                                       A2 (84.57±. 08)
                        A1 (86.53±. 06)                                                                               A3 (85.86±. 09)
           85.0         A2 (87.15±. 07)                                                                               B1 (83.78±. 06)
                        A3 (87.11±. 07)                                    AU                                         B3 (84.30±. 09)
           82.5         B/C1 (86.24±. 05)                             A (86.97±. 07)                                  C1 (84.51±. 05)
                        B/C2 (86.56±. 06)                             B (86.56±. 06)                                  C2 (85.40±. 07)
           80.0         B/C3 (86.42±. 06)                             C (86.53±. 06)                                  C3 (84.76±. 08)
                        Random (78.75±. 09)                           Random (78.75±. 09)                             Random (78.75±. 09)

                   50        60         70    80   90   100     50         60         70         80   90   100   50        60         70    80   90   100
                                                              Percentage of samples selected for prediction
  Figure 7: Selective prediction results under (i) a single model. Accuracies per fraction of datapoints
  a single model predicts on, as well as area under the accuracy retention curve (tabulated in legend)
  using different proposed measures of uncertainty as score. Uncertainty measures are approximated by
  DE (top row), LA (middle row) and MCD (bottom row) as posterior sampling method. Accuracies are
  averaged over all datasets. Means and standard deviations are calculated using five independent runs.




                                                                                      24
                                                                 Average Model Predicts - Overall
              96
                                                                                           DE
              94
              92                                                                                                          EU
                                                                                                                     A1 (88.63±. 04)
   Accuracy




              90             TU                                                                                      A2 (89.15±. 05)
                        A1 (89.28±. 06)                                                                              A3 (89.17±. 09)
              88        A2 (89.52±. 08)                                                                              B1 (88.73±. 03)
                        A3 (89.46±. 08)                                   AU                                         B3 (89.52±. 05)
              86        B/C1 (90.17±. 05)                            A (89.20±. 08)                                  C1 (89.36±. 04)
                        B/C2 (90.23±. 05)                            B (90.23±. 05)                                  C2 (90.07±. 06)
              84        B/C3 (90.30±. 05)                            C (90.11±. 06)                                  C3 (89.78±. 06)
                        Random (83.02±. 08)                          Random (83.02±. 08)                             Random (83.02±. 08)

                   50        60         70    80   90   100     50Average
                                                                       60 Model   80 - 90
                                                                            70 Predicts Overall100              50        60         70    80   90   100
                                                              Percentage of samplesLAselected for prediction
           92.5
           90.0
                                                                                                                          EU
                                                                                                                     A1 (85.51±. 25)
Accuracy




           87.5              TU                                                                                      A2 (83.47±. 20)
                        A1 (87.09±. 21)                                                                              A3 (86.60±. 19)
           85.0         A2 (87.34±. 17)                                                                              B1 (84.70±. 26)
                        A3 (87.44±. 18)                                   AU                                         B3 (85.28±. 22)
           82.5         B/C1 (86.77±. 22)                            A (87.35±. 17)                                  C1 (85.40±. 25)
                        B/C2 (86.96±. 18)                            B (86.96±. 18)                                  C2 (86.37±. 19)
                        B/C3 (87.00±. 19)                            C (86.83±. 17)                                  C3 (85.76±. 21)
           80.0         Random (79.36±. 16)                          Random (79.36±. 16)                             Random (79.36±. 16)

                   50        60         70    80   90   100     50Average
                                                                       60 Model   80 - 90
                                                                            70 Predicts Overall100              50        60         70    80   90   100
                                                              Percentage of samples
                                                                                 MCDselected for prediction
           92.5
           90.0
                                                                                                                          EU
                                                                                                                     A1 (85.02±. 10)
Accuracy




           87.5              TU                                                                                      A2 (84.90±. 06)
                        A1 (86.79±. 05)                                                                              A3 (86.11±. 05)
           85.0         A2 (87.42±. 05)                                                                              B1 (84.17±. 07)
                        A3 (87.35±. 05)                                   AU                                         B3 (84.68±. 04)
           82.5         B/C1 (86.63±. 07)                            A (87.24±. 06)                                  C1 (84.88±. 06)
                        B/C2 (86.97±. 04)                            B (86.97±. 04)                                  C2 (85.77±. 05)
                        B/C3 (86.81±. 04)                            C (86.94±. 05)                                  C3 (85.13±. 04)
           80.0         Random (79.30±. 07)                          Random (79.30±. 07)                             Random (79.30±. 07)

                   50        60         70    80   90   100     50        60         70         80   90   100   50        60         70    80   90   100
                                                              Percentage of samples selected for prediction
  Figure 8: Selective prediction results under (ii) the average model. Accuracies per fraction of
  datapoints the average model predicts on, as well as area under the accuracy retention curve (tabulated
  in legend) using different proposed measures of uncertainty as score. Uncertainty measures are
  approximated by DE (top row), LA (middle row) and MCD (bottom row) as posterior sampling
  method. Accuracies are averaged over all datasets. Means and standard deviations are calculated
  using five independent runs.




                                                                                     25
                                                               Model according to posterior predicts - Overall
           95.0                                                                                    DE
           92.5
           90.0                                                                                                                   EU
Accuracy                                                                                                                     A1 (87.06±. 07)
                                TU                                                                                           A2 (87.67±. 07)
           87.5            A1 (87.74±. 08)                                                                                   A3 (87.73±. 06)
                           A2 (88.00±. 06)                                                                                   B1 (87.20±. 12)
           85.0            A3 (87.96±. 07)                                       AU                                          B3 (88.22±. 08)
                           B/C1 (88.74±. 09)                                A (87.61±. 06)                                   C1 (87.94±. 11)
           82.5            B/C2 (88.79±. 08)                                B (88.79±. 08)                                   C2 (88.75±. 06)
                           B/C3 (88.90±. 07)                                C (88.63±. 08)                                   C3 (88.48±. 07)
                           Random (80.53±. 06)                              Random (80.53±. 06)                              Random (80.53±. 06)
           80.0
                     50         60         70      80    90    Model50according
                                                                           60 to70posterior
                                                               100                     80 predicts
                                                                                             90 -100
                                                                                                   Overall
                                                                                                       50                         60         70    80   90   100
           92.5                                                   Percentage of samplesLAselected for prediction
           90.0
           87.5                                                                                                                   EU
                                                                                                                             A1 (83.38±. 20)
Accuracy




           85.0                 TU                                                                                           A2 (81.63±. 12)
                           A1 (84.93±. 15)                                                                                   A3 (84.69±. 14)
           82.5            A2 (85.15±. 11)                                                                                   B1 (82.69±. 23)
                           A3 (85.26±. 13)                                       AU                                          B3 (83.39±. 16)
           80.0            B/C1 (84.77±. 17)                                A (85.10±. 12)                                   C1 (83.47±. 22)
                           B/C2 (84.86±. 11)                                B (84.86±. 11)                                   C2 (84.53±. 14)
                           B/C3 (84.99±. 13)                                C (84.66±. 11)                                   C3 (83.91±. 15)
           77.5            Random (76.56±. 08)                              Random (76.56±. 08)                              Random (76.56±. 08)

                     50         60         70      80    90     Model50according
                                                               100                     80 predicts
                                                                           60 to70posterior 90     - Overall
                                                                                                   100  50                        60         70    80   90   100
              92.5                                                                      selected for prediction
                                                                  Percentage of samplesMCD
              90.0
              87.5                                                                                                                 EU
                                                                                                                             A1 (82.94±. 13)
   Accuracy




              85.0                TU                                                                                         A2 (83.03±. 11)
                             A1 (84.64±. 08)                                                                                 A3 (84.29±. 09)
              82.5           A2 (85.22±. 07)                                                                                 B1 (82.14±. 10)
                             A3 (85.21±. 08)                                      AU                                         B3 (82.94±. 06)
              80.0           B/C1 (84.61±. 07)                               A (84.93±. 07)                                  C1 (82.98±. 08)
                             B/C2 (84.88±. 05)                               B (84.88±. 05)                                  C2 (84.00±. 07)
              77.5           B/C3 (84.81±. 05)                               C (84.78±. 05)                                  C3 (83.39±. 07)
                             Random (76.36±. 12)                             Random (76.36±. 12)                             Random (76.36±. 12)

                      50          60         70     80    90   100     50         60         70         80   90   100   50        60         70    80   90   100
                                                                     Percentage of samples selected for prediction
  Figure 9: Selective prediction results under (iii) a model according to the posterior. Accuracies
  per fraction of datapoints a model drawn according to the posterior predicts on, as well as area under
  the accuracy retention curve (tabulated in legend) using different proposed measures of uncertainty as
  score. Uncertainty measures are approximated by DE (top row), LA (middle row) and MCD (bottom
  row) as posterior sampling method. Accuracies are averaged over all datasets. Means and standard
  deviations are calculated using five independent runs.


  B.3                Detailed Results

  The results for misclassification detection and OOD detection in the main paper show aggregate
  performances over multiple datasets to provide more robust conclusions about the performance of
  individual measures of uncertainty. In this section we provide individual results for completeness.

  Misclassification detection. The detailed results for misclassification detection are given in Fig. 10
  for a single predicting model, in Fig. 11 for the average predicting model as well as in Fig. 12 for
  predicting with a model according to the posterior. Although there are nuanced differences between
  datasets, conclusions translate very well between them for a given posterior sampling method.

  OOD detection The detailed results for OOD detection for CIFAR10 as ID dataset are given in
  Fig. 13, for CIFAR100 as ID dataset in Fig. 14, for SVHN as ID dataset in Fig. 15 and for TIN
  as ID dataset in Fig. 16. We observe the highest variability of experiments for TIN as ID dataset,
  where there is high variability for both the OOD dataset as well as for the posterior sampling method
  used. For the other ID datasets, the main variability comes from the posterior sampling methods and
  different OOD datasets lead to very similar results.




                                                                                            26
                            Single Model Predicts - CIFAR10                                                  Single Model Predicts - CIFAR10                                                       Single Model Predicts - CIFAR10
        95                                                                             92
                                                                                                                                                                            92
        94
                                                                                       90

AUROC




                                                                               AUROC




                                                                                                                                                                    AUROC
        93                                                                                                                                                                  90
        92                                                                             88
                                                                                                                                                                            88
        91
             A1 A2 A3 B/C1B/C2B/C3     A   B    C    A1 A2 A3 B1 B3 C1 C2 C3                  A1 A2 A3 B/C1B/C2B/C3      A    B    C   A1 A2 A3 B1 B3 C1 C2 C3                     A1 A2 A3 B/C1B/C2B/C3      A    B    C   A1 A2 A3 B1 B3 C1 C2 C3
                      TU                   AU                  EU                                      TU                     AU                  EU                                        TU                     AU                  EU

                            CIFAR10 - DE                                                                      CIFAR10 - LA                                                                        CIFAR10 - MCD
                           Single Model Predicts - CIFAR100                                                   Single Model Predicts - CIFAR100                                                    Single Model Predicts - CIFAR100
        88                                                                               85                                                                               87.5
                                                                                                                                                                          85.0
                                                                                         80
        86                                                                                                                                                                82.5
AUROC




                                                                                 AUROC




                                                                                                                                                                  AUROC
                                                                                         75                                                                               80.0
        84
                                                                                         70                                                                               77.5
                                                                                                                                                                          75.0
             A1 A2 A3 B/C1B/C2B/C3     A   B    C    A1 A2 A3 B1 B3 C1 C2 C3                   A1 A2 A3 B/C1B/C2B/C3      A    B   C    A1 A2 A3 B1 B3 C1 C2 C3                    A1 A2 A3 B/C1B/C2B/C3      A    B    C   A1 A2 A3 B1 B3 C1 C2 C3
                      TU                   AU                  EU                                       TU                    AU                  EU                                        TU                     AU                  EU

                           CIFAR100 - DE                                                                     CIFAR100 - LA                                                                    CIFAR100 - MCD
                             Single Model Predicts - SVHN                                                      Single Model Predicts - SVHN                                                         Single Model Predicts - SVHN
        94                                                                                                                                                                  93
                                                                                       90
        93                                                                                                                                                                  92
                                                                                       89
        92                                                                                                                                                                  91
AUROC




                                                                               AUROC




                                                                                                                                                                    AUROC
        91                                                                             88
                                                                                                                                                                            90
        90                                                                             87
                                                                                                                                                                            89
        89                                                                             86
             A1 A2 A3 B/C1B/C2B/C3     A   B    C    A1 A2 A3 B1 B3 C1 C2 C3                  A1 A2 A3 B/C1B/C2B/C3      A    B    C   A1 A2 A3 B1 B3 C1 C2 C3                     A1 A2 A3 B/C1B/C2B/C3      A    B    C   A1 A2 A3 B1 B3 C1 C2 C3
                      TU                   AU                  EU                                      TU                     AU                  EU                                        TU                     AU                  EU

                               SVHN - DE                                                                         SVHN - LA                                                                          SVHN - MCD
                              Single Model Predicts - TIN                                                        Single Model Predicts - TIN                                                          Single Model Predicts - TIN
                                                                                         85                                                                                   85
        86
                                                                                         80                                                                                   80
        84
AUROC




                                                                                 AUROC




                                                                                                                                                                      AUROC
                                                                                         75                                                                                   75
        82
        80                                                                               70
                                                                                                                                                                              70
             A1 A2 A3 B/C1B/C2B/C3     A   B    C    A1 A2 A3 B1 B3 C1 C2 C3                   A1 A2 A3 B/C1B/C2B/C3      A    B   C    A1 A2 A3 B1 B3 C1 C2 C3                     A1 A2 A3 B/C1B/C2B/C3      A    B   C    A1 A2 A3 B1 B3 C1 C2 C3
                      TU                   AU                  EU                                       TU                    AU                  EU                                         TU                    AU                  EU

                                  TIN - DE                                                                          TIN - LA                                                                           TIN - MCD
 Figure 10: Misclassification detection results under (i) single predicting model. AUROC for
 distinguishing between correctly and incorrectly predicted datapoints under a single predicting model,
 using the different proposed measures of uncertainty as score. Means and standard deviations are
 calculated using five independent runs.



                           Average Model Predicts - CIFAR10                                                  Average Model Predicts - CIFAR10                                                     Average Model Predicts - CIFAR10
        94
                                                                                       92
                                                                                                                                                                            92
        92
AUROC




                                                                               AUROC




                                                                                                                                                                    AUROC




                                                                                       90
                                                                                                                                                                            90
        90
                                                                                       88
                                                                                                                                                                            88

             A1 A2 A3 B/C1B/C2B/C3     A   B    C    A1 A2 A3 B1 B3 C1 C2 C3                  A1 A2 A3 B/C1B/C2B/C3      A    B    C   A1 A2 A3 B1 B3 C1 C2 C3                     A1 A2 A3 B/C1B/C2B/C3      A    B    C   A1 A2 A3 B1 B3 C1 C2 C3
                      TU                   AU                  EU                                      TU                     AU                  EU                                        TU                     AU                  EU

                            CIFAR10 - DE                                                                      CIFAR10 - LA                                                                        CIFAR10 - MCD
                           Average Model Predicts - CIFAR100                                                 Average Model Predicts - CIFAR100                                                    Average Model Predicts - CIFAR100
        86                                                                                                                                                                87.5
                                                                                         85
                                                                                                                                                                          85.0
        84                                                                               80                                                                               82.5
AUROC




                                                                                 AUROC




                                                                                                                                                                  AUROC




                                                                                         75                                                                               80.0
        82
                                                                                                                                                                          77.5
                                                                                         70
                                                                                                                                                                          75.0
             A1 A2 A3 B/C1B/C2B/C3     A   B    C    A1 A2 A3 B1 B3 C1 C2 C3                   A1 A2 A3 B/C1B/C2B/C3      A    B   C    A1 A2 A3 B1 B3 C1 C2 C3                    A1 A2 A3 B/C1B/C2B/C3      A    B    C   A1 A2 A3 B1 B3 C1 C2 C3
                      TU                   AU                  EU                                       TU                    AU                  EU                                        TU                     AU                  EU

                           CIFAR100 - DE                                                                     CIFAR100 - LA                                                                    CIFAR100 - MCD
                            Average Model Predicts - SVHN                                                     Average Model Predicts - SVHN                                                        Average Model Predicts - SVHN
        92                                                                                                                                                                  93
                                                                                       90
                                                                                                                                                                            92
        90                                                                             89
                                                                                                                                                                            91
AUROC




                                                                               AUROC




                                                                                                                                                                    AUROC




                                                                                       88
        88                                                                                                                                                                  90
                                                                                       87                                                                                   89
        86                                                                             86
             A1 A2 A3 B/C1B/C2B/C3     A   B    C    A1 A2 A3 B1 B3 C1 C2 C3                  A1 A2 A3 B/C1B/C2B/C3      A    B    C   A1 A2 A3 B1 B3 C1 C2 C3                     A1 A2 A3 B/C1B/C2B/C3      A    B    C   A1 A2 A3 B1 B3 C1 C2 C3
                      TU                   AU                  EU                                      TU                     AU                  EU                                        TU                     AU                  EU

                               SVHN - DE                                                                         SVHN - LA                                                                          SVHN - MCD
                             Average Model Predicts - TIN                                                       Average Model Predicts - TIN                                                         Average Model Predicts - TIN
        84                                                                               85
        82                                                                               80                                                                                   80
AUROC




                                                                                 AUROC




                                                                                                                                                                      AUROC




        80                                                                                                                                                                    75
                                                                                         75
        78
                                                                                         70                                                                                   70
        76
             A1 A2 A3 B/C1B/C2B/C3     A   B    C    A1 A2 A3 B1 B3 C1 C2 C3                   A1 A2 A3 B/C1B/C2B/C3      A    B   C    A1 A2 A3 B1 B3 C1 C2 C3                     A1 A2 A3 B/C1B/C2B/C3      A    B   C    A1 A2 A3 B1 B3 C1 C2 C3
                      TU                   AU                  EU                                       TU                    AU                  EU                                         TU                    AU                  EU

                                  TIN - DE                                                                          TIN - LA                                                                           TIN - MCD
 Figure 11: Misclassification detection results under (ii) average predicting model. AUROC for
 distinguishing between correctly and incorrectly predicted datapoints under the average predicting
 model, using the different proposed measures of uncertainty as score. Means and standard deviations
 are calculated using five independent runs.




                                                                                                                              27
                    Model according to Posterior Predicts - CIFAR10                                  Model according to Posterior Predicts - CIFAR10                                   Model according to Posterior Predicts - CIFAR10
                                                                                                                                                                         94
        94                                                                             92
                                                                                                                                                                         92
AUROC




                                                                               AUROC




                                                                                                                                                                 AUROC
        92                                                                             90
                                                                                                                                                                         90
        90                                                                             88
                                                                                                                                                                         88
             A1 A2 A3 B/C1B/C2B/C3     A   B    C    A1 A2 A3 B1 B3 C1 C2 C3                  A1 A2 A3 B/C1B/C2B/C3     A    B    C   A1 A2 A3 B1 B3 C1 C2 C3                   A1 A2 A3 B/C1B/C2B/C3     A    B    C   A1 A2 A3 B1 B3 C1 C2 C3
                      TU                   AU                       EU                                 TU                    AU                       EU                                 TU                    AU                       EU

                            CIFAR10 - DE                                                                     CIFAR10 - LA                                                                      CIFAR10 - MCD
                   Model according to Posterior Predicts - CIFAR100                                  Model according to Posterior Predicts - CIFAR100                                 Model according to Posterior Predicts - CIFAR100
        88                                                                                                                                                               88
                                                                                         85                                                                              86
        86
                                                                                                                                                                         84
AUROC




                                                                                 AUROC




                                                                                                                                                                 AUROC
                                                                                         80
                                                                                                                                                                         82
        84
                                                                                                                                                                         80
                                                                                         75
        82                                                                                                                                                               78
             A1 A2 A3 B/C1B/C2B/C3     A   B    C    A1 A2 A3 B1 B3 C1 C2 C3                   A1 A2 A3 B/C1B/C2B/C3     A    B   C    A1 A2 A3 B1 B3 C1 C2 C3                  A1 A2 A3 B/C1B/C2B/C3     A    B    C   A1 A2 A3 B1 B3 C1 C2 C3
                      TU                   AU                       EU                                  TU                   AU                       EU                                 TU                    AU                       EU

                           CIFAR100 - DE                                                                     CIFAR100 - LA                                                                 CIFAR100 - MCD
                     Model according to Posterior Predicts - SVHN                                     Model according to Posterior Predicts - SVHN                       94
                                                                                                                                                                                        Model according to Posterior Predicts - SVHN
                                                                                       90
        92                                                                                                                                                               93
                                                                                       89
                                                                                                                                                                         92
AUROC




                                                                               AUROC




                                                                                                                                                                 AUROC


        90                                                                             88                                                                                91
                                                                                       87                                                                                90
        88
                                                                                       86
             A1 A2 A3 B/C1B/C2B/C3     A   B    C    A1 A2 A3 B1 B3 C1 C2 C3                  A1 A2 A3 B/C1B/C2B/C3     A    B    C   A1 A2 A3 B1 B3 C1 C2 C3                   A1 A2 A3 B/C1B/C2B/C3     A    B    C   A1 A2 A3 B1 B3 C1 C2 C3
                      TU                   AU                       EU                                 TU                    AU                       EU                                 TU                    AU                       EU

                               SVHN - DE                                                                        SVHN - LA                                                                       SVHN - MCD
                      Model according to Posterior Predicts - TIN                                       Model according to Posterior Predicts - TIN                                       Model according to Posterior Predicts - TIN
        86                                                                                                                                                                 85
                                                                                         85
        84                                                                                                                                                                 80
AUROC




                                                                                 AUROC




                                                                                                                                                                   AUROC




                                                                                         80
        82
                                                                                                                                                                           75
        80                                                                               75

             A1 A2 A3 B/C1B/C2B/C3     A   B    C    A1 A2 A3 B1 B3 C1 C2 C3                   A1 A2 A3 B/C1B/C2B/C3     A    B   C    A1 A2 A3 B1 B3 C1 C2 C3                   A1 A2 A3 B/C1B/C2B/C3     A    B   C    A1 A2 A3 B1 B3 C1 C2 C3
                      TU                   AU                       EU                                  TU                   AU                       EU                                  TU                   AU                       EU

                                  TIN - DE                                                                         TIN - LA                                                                       TIN - MCD
Figure 12: Misclassification detection results under (iii) a model according to the posterior.
AUROC for distinguishing between correctly and incorrectly predicted datapoints under a model
according to the posterior, using the different proposed measures of uncertainty as score. Means and
standard deviations are calculated using five independent runs.




                                                                                                                             28
                                  CIFAR10 vs CIFAR100                                      87
                                                                                                                     CIFAR10 vs CIFAR100                                                              CIFAR10 vs CIFAR100
                                                                                                                                                                              89
          90
                                                                                           86                                                                                 88
          89                                                                                                                                                                  87
  AUROC




                                                                                   AUROC




                                                                                                                                                                      AUROC
                                                                                           85
          88                                                                                                                                                                  86
                                                                                           84
          87                                                                                                                                                                  85
          86                                                                               83                                                                                 84
               A1 A2 A3 B/C1B/C2B/C3      A   B    C     A1 A2 A3 B1 B3 C1 C2 C3                  A1 A2 A3 B/C1B/C2B/C3      A    B    C    A1 A2 A3 B1 B3 C1 C2 C3                A1 A2 A3 B/C1B/C2B/C3      A   B    C     A1 A2 A3 B1 B3 C1 C2 C3
                        TU                    AU                   EU                                      TU                     AU                  EU                                    TU                    AU                   EU

                CIFAR10 / CIFAR100 - DE                                                            CIFAR10 / CIFAR100 - LA                                                         CIFAR10 / CIFAR100 - MCD
                                       CIFAR10 vs SVHN                                                                    CIFAR10 vs SVHN                                                                  CIFAR10 vs SVHN
        95.0                                                                               92                                                                                 92
        92.5
                                                                                           90                                                                                 90
        90.0
AUROC




                                                                                   AUROC




                                                                                                                                                                      AUROC
        87.5                                                                               88                                                                                 88
        85.0                                                                               86                                                                                 86
        82.5                                                                                                                                                                  84
               A1 A2 A3 B/C1B/C2B/C3      A   B    C     A1 A2 A3 B1 B3 C1 C2 C3                  A1 A2 A3 B/C1B/C2B/C3      A    B    C    A1 A2 A3 B1 B3 C1 C2 C3                A1 A2 A3 B/C1B/C2B/C3      A   B    C     A1 A2 A3 B1 B3 C1 C2 C3
                        TU                    AU                   EU                                      TU                     AU                  EU                                    TU                    AU                   EU

                    CIFAR10 / SVHN - DE                                                                CIFAR10 / SVHN - LA                                                            CIFAR10 / SVHN - MCD
                                        CIFAR10 vs TIN                                                                     CIFAR10 vs TIN                                                                   CIFAR10 vs TIN
                                                                                             86                                                                               88
          89
                                                                                                                                                                              87
          88                                                                                 85
  AUROC




                                                                                     AUROC




                                                                                                                                                                      AUROC
                                                                                                                                                                              86
          87                                                                                 84                                                                               85
          86                                                                                 83                                                                               84
               A1 A2 A3 B/C1B/C2B/C3      A   B    C     A1 A2 A3 B1 B3 C1 C2 C3                   A1 A2 A3 B/C1B/C2B/C3      A    B   C    A1 A2 A3 B1 B3 C1 C2 C3                A1 A2 A3 B/C1B/C2B/C3      A   B    C     A1 A2 A3 B1 B3 C1 C2 C3
                        TU                    AU                   EU                                       TU                    AU                  EU                                    TU                    AU                   EU

                       CIFAR10 / TIN - DE                                                                 CIFAR10 / TIN - LA                                                             CIFAR10 / TIN - MCD
                                       CIFAR10 vs LSUN                                                                    CIFAR10 vs LSUN                                                                  CIFAR10 vs LSUN
                                                                                           93                                                                                 92
          95
                                                                                           92
          94                                                                                                                                                                  90
                                                                                           91
  AUROC




                                                                                   AUROC




                                                                                                                                                                      AUROC
          93                                                                                                                                                                  88
                                                                                           90
          92
                                                                                           89                                                                                 86
          91
                                                                                           88
               A1 A2 A3 B/C1B/C2B/C3      A   B    C     A1 A2 A3 B1 B3 C1 C2 C3                  A1 A2 A3 B/C1B/C2B/C3      A    B    C    A1 A2 A3 B1 B3 C1 C2 C3                A1 A2 A3 B/C1B/C2B/C3      A   B    C     A1 A2 A3 B1 B3 C1 C2 C3
                        TU                    AU                   EU                                      TU                     AU                  EU                                    TU                    AU                   EU

                     CIFAR10 / LSUN - DE                                                                CIFAR10 / LSUN - LA                                                           CIFAR10 / LSUN - MCD
   Figure 13: OOD detection results for CIFAR10. AUROC for distinguishing between ID and
   OOD datapoints using the different proposed measures of uncertainty as score. Means and standard
   deviations are calculated using five independent runs.




                                  CIFAR10 vs CIFAR100                                      87
                                                                                                                     CIFAR10 vs CIFAR100                                                              CIFAR10 vs CIFAR100
                                                                                                                                                                              89
          90
                                                                                           86                                                                                 88
          89                                                                                                                                                                  87
  AUROC




                                                                                   AUROC




                                                                                                                                                                      AUROC




                                                                                           85
          88                                                                                                                                                                  86
                                                                                           84
          87                                                                                                                                                                  85
          86                                                                               83                                                                                 84
               A1 A2 A3 B/C1B/C2B/C3      A   B    C     A1 A2 A3 B1 B3 C1 C2 C3                  A1 A2 A3 B/C1B/C2B/C3      A    B    C    A1 A2 A3 B1 B3 C1 C2 C3                A1 A2 A3 B/C1B/C2B/C3      A   B    C     A1 A2 A3 B1 B3 C1 C2 C3
                        TU                    AU                   EU                                      TU                     AU                  EU                                    TU                    AU                   EU

                CIFAR100 / CIFAR10 - DE                                                            CIFAR100 / CIFAR10 - LA                                                         CIFAR100 / CIFAR10 - MCD
                                       CIFAR10 vs SVHN                                                                    CIFAR10 vs SVHN                                                                  CIFAR10 vs SVHN
        95.0                                                                               92                                                                                 92
        92.5
                                                                                           90                                                                                 90
        90.0
AUROC




                                                                                   AUROC




                                                                                                                                                                      AUROC




        87.5                                                                               88                                                                                 88
        85.0                                                                               86                                                                                 86
        82.5                                                                                                                                                                  84
               A1 A2 A3 B/C1B/C2B/C3      A   B    C     A1 A2 A3 B1 B3 C1 C2 C3                  A1 A2 A3 B/C1B/C2B/C3      A    B    C    A1 A2 A3 B1 B3 C1 C2 C3                A1 A2 A3 B/C1B/C2B/C3      A   B    C     A1 A2 A3 B1 B3 C1 C2 C3
                        TU                    AU                   EU                                      TU                     AU                  EU                                    TU                    AU                   EU

                   CIFAR100 / SVHN - DE                                                               CIFAR100 / SVHN - LA                                                           CIFAR100 / SVHN - MCD
                                        CIFAR10 vs TIN                                                                     CIFAR10 vs TIN                                                                   CIFAR10 vs TIN
                                                                                             86                                                                               88
          89
                                                                                                                                                                              87
          88                                                                                 85
  AUROC




                                                                                     AUROC




                                                                                                                                                                      AUROC




                                                                                                                                                                              86
          87                                                                                 84                                                                               85
          86                                                                                 83                                                                               84
               A1 A2 A3 B/C1B/C2B/C3      A   B    C     A1 A2 A3 B1 B3 C1 C2 C3                   A1 A2 A3 B/C1B/C2B/C3      A    B   C    A1 A2 A3 B1 B3 C1 C2 C3                A1 A2 A3 B/C1B/C2B/C3      A   B    C     A1 A2 A3 B1 B3 C1 C2 C3
                        TU                    AU                   EU                                       TU                    AU                  EU                                    TU                    AU                   EU

                      CIFAR100 / TIN - DE                                                                CIFAR100 / TIN - LA                                                           CIFAR100 / TIN - MCD
                                       CIFAR10 vs LSUN                                                                    CIFAR10 vs LSUN                                                                  CIFAR10 vs LSUN
                                                                                           93                                                                                 92
          95
                                                                                           92
          94                                                                                                                                                                  90
                                                                                           91
  AUROC




                                                                                   AUROC




                                                                                                                                                                      AUROC




          93                                                                                                                                                                  88
                                                                                           90
          92
                                                                                           89                                                                                 86
          91
                                                                                           88
               A1 A2 A3 B/C1B/C2B/C3      A   B    C     A1 A2 A3 B1 B3 C1 C2 C3                  A1 A2 A3 B/C1B/C2B/C3      A    B    C    A1 A2 A3 B1 B3 C1 C2 C3                A1 A2 A3 B/C1B/C2B/C3      A   B    C     A1 A2 A3 B1 B3 C1 C2 C3
                        TU                    AU                   EU                                      TU                     AU                  EU                                    TU                    AU                   EU

                   CIFAR100 / LSUN - DE                                                               CIFAR100 / LSUN - LA                                                           CIFAR100 / LSUN - MCD
   Figure 14: OOD detection results for CIFAR100. AUROC for distinguishing between ID and
   OOD datapoints using the different proposed measures of uncertainty as score. Means and standard
   deviations are calculated using five independent runs.




                                                                                                                                  29
                                     SVHN vs CIFAR10                                                                    SVHN vs CIFAR10                                                                    SVHN vs CIFAR10
        98
        97                                                                                 94
                                                                                                                                                                              97
        96                                                                                 93
AUROC




                                                                                   AUROC




                                                                                                                                                                      AUROC
        95                                                                                 92                                                                                 96
        94                                                                                 91                                                                                 95
        93                                                                                 90
             A1 A2 A3 B/C1B/C2B/C3      A   B    C     A1 A2 A3 B1 B3 C1 C2 C3                  A1 A2 A3 B/C1B/C2B/C3      A   B    C     A1 A2 A3 B1 B3 C1 C2 C3                   A1 A2 A3 B/C1B/C2B/C3      A    B   C    A1 A2 A3 B1 B3 C1 C2 C3
                      TU                    AU                   EU                                      TU                    AU                   EU                                       TU                    AU                  EU

                  SVHN / CIFAR10 - DE                                                                SVHN / CIFAR10 - LA                                                              SVHN / CIFAR10 - MCD
                                 SVHN vs CIFAR100                                                                   SVHN vs CIFAR100                                                                   SVHN vs CIFAR100
        97                                                                                 94
                                                                                                                                                                            97
        96                                                                                 93
                                                                                                                                                                            96
AUROC




                                                                                   AUROC




                                                                                                                                                                    AUROC
        95                                                                                 92
        94                                                                                 91                                                                               95
        93                                                                                 90
                                                                                                                                                                            94
             A1 A2 A3 B/C1B/C2B/C3      A   B    C     A1 A2 A3 B1 B3 C1 C2 C3                  A1 A2 A3 B/C1B/C2B/C3      A   B    C     A1 A2 A3 B1 B3 C1 C2 C3                  A1 A2 A3 B/C1B/C2B/C3      A    B    C    A1 A2 A3 B1 B3 C1 C2 C3
                      TU                    AU                   EU                                      TU                    AU                   EU                                      TU                     AU                  EU

                 SVHN / CIFAR100 - DE                                                               SVHN / CIFAR100 - LA                                                             SVHN / CIFAR100 - MCD
                                       SVHN vs TIN                                                                        SVHN vs TIN                                                                        SVHN vs TIN
        98                                                                                 95                                                                               98
        97                                                                                 94                                                                               97
        96                                                                                 93
AUROC




                                                                                   AUROC




                                                                                                                                                                    AUROC
                                                                                                                                                                            96
        95                                                                                 92
        94                                                                                 91                                                                               95
        93                                                                                 90                                                                               94
             A1 A2 A3 B/C1B/C2B/C3      A   B    C     A1 A2 A3 B1 B3 C1 C2 C3                  A1 A2 A3 B/C1B/C2B/C3      A   B    C     A1 A2 A3 B1 B3 C1 C2 C3                  A1 A2 A3 B/C1B/C2B/C3      A    B    C    A1 A2 A3 B1 B3 C1 C2 C3
                      TU                    AU                   EU                                      TU                    AU                   EU                                      TU                     AU                  EU

                           SVHN / TIN - DE                                                                    SVHN / TIN - LA                                                               SVHN / TIN - MCD
                                      SVHN vs LSUN                                                                       SVHN vs LSUN                                                                        SVHN vs LSUN
        98                                                                                                                                                                    98
                                                                                           94
        96                                                                                                                                                                    97
AUROC




                                                                                   AUROC




                                                                                                                                                                      AUROC
                                                                                           92
        94                                                                                                                                                                    96
                                                                                           90
                                                                                                                                                                              95
        92
             A1 A2 A3 B/C1B/C2B/C3      A   B    C     A1 A2 A3 B1 B3 C1 C2 C3                  A1 A2 A3 B/C1B/C2B/C3      A   B    C     A1 A2 A3 B1 B3 C1 C2 C3                   A1 A2 A3 B/C1B/C2B/C3      A    B   C    A1 A2 A3 B1 B3 C1 C2 C3
                      TU                    AU                   EU                                      TU                    AU                   EU                                       TU                    AU                  EU

                      SVHN / LSUN - DE                                                                   SVHN / LSUN - LA                                                                SVHN / LSUN - MCD
 Figure 15: OOD detection results for SVHN. AUROC for distinguishing between ID and OOD
 datapoints using the different proposed measures of uncertainty as score. Means and standard
 deviations are calculated using five independent runs.




                                      TIN vs CIFAR10                                                                     TIN vs CIFAR10                                                                     TIN vs CIFAR10
                                                                                                                                                                            64
        68                                                                                 65
                                                                                                                                                                            63
        66
AUROC




                                                                                   AUROC




                                                                                                                                                                    AUROC




                                                                                           60                                                                               62
        64
                                                                                                                                                                            61
        62                                                                                 55
                                                                                                                                                                            60
             A1 A2 A3 B/C1B/C2B/C3      A   B    C     A1 A2 A3 B1 B3 C1 C2 C3                  A1 A2 A3 B/C1B/C2B/C3      A   B    C     A1 A2 A3 B1 B3 C1 C2 C3                  A1 A2 A3 B/C1B/C2B/C3      A    B    C    A1 A2 A3 B1 B3 C1 C2 C3
                      TU                    AU                   EU                                      TU                    AU                   EU                                      TU                     AU                  EU

                     TIN / CIFAR10 - DE                                                                 TIN / CIFAR10 - LA                                                               TIN / CIFAR10 - MCD
                                     TIN vs CIFAR100                                                                    TIN vs CIFAR100                                                                    TIN vs CIFAR100
        70                                                                               67.5                                                                               65
        68                                                                               65.0                                                                               64
                                                                                         62.5                                                                               63
AUROC




                                                                                 AUROC




                                                                                                                                                                    AUROC




        66
                                                                                         60.0                                                                               62
        64
                                                                                         57.5                                                                               61
        62                                                                               55.0
             A1 A2 A3 B/C1B/C2B/C3      A   B    C     A1 A2 A3 B1 B3 C1 C2 C3                  A1 A2 A3 B/C1B/C2B/C3      A   B    C     A1 A2 A3 B1 B3 C1 C2 C3                  A1 A2 A3 B/C1B/C2B/C3      A    B    C    A1 A2 A3 B1 B3 C1 C2 C3
                      TU                    AU                   EU                                      TU                    AU                   EU                                      TU                     AU                  EU

                    TIN / CIFAR100 - DE                                                                TIN / CIFAR100 - LA                                                             TIN / CIFAR100 - MCD
                                       TIN vs SVHN                                                                        TIN vs SVHN                                                                        TIN vs SVHN
        85                                                                                 85
        80                                                                                 80                                                                               80
AUROC




                                                                                   AUROC




                                                                                                                                                                    AUROC




        75                                                                                 75
        70                                                                                                                                                                  70
                                                                                           70
        65                                                                                 65                                                                               60
             A1 A2 A3 B/C1B/C2B/C3      A   B    C     A1 A2 A3 B1 B3 C1 C2 C3                  A1 A2 A3 B/C1B/C2B/C3      A   B    C     A1 A2 A3 B1 B3 C1 C2 C3                  A1 A2 A3 B/C1B/C2B/C3      A    B    C    A1 A2 A3 B1 B3 C1 C2 C3
                      TU                    AU                   EU                                      TU                    AU                   EU                                      TU                     AU                  EU

                           TIN / SVHN - DE                                                                    TIN / SVHN - LA                                                               TIN / SVHN - MCD
                                       TIN vs LSUN                                                                        TIN vs LSUN                                                                         TIN vs LSUN
        90                                                                                 85
        85                                                                                 80                                                                                 80
        80                                                                                 75
AUROC




                                                                                   AUROC




                                                                                                                                                                      AUROC




                                                                                           70                                                                                 75
        75
                                                                                           65
        70                                                                                                                                                                    70
                                                                                           60
             A1 A2 A3 B/C1B/C2B/C3      A   B    C     A1 A2 A3 B1 B3 C1 C2 C3                  A1 A2 A3 B/C1B/C2B/C3      A   B    C     A1 A2 A3 B1 B3 C1 C2 C3                   A1 A2 A3 B/C1B/C2B/C3      A    B   C    A1 A2 A3 B1 B3 C1 C2 C3
                      TU                    AU                   EU                                      TU                    AU                   EU                                       TU                    AU                  EU

                           TIN / LSUN - DE                                                                    TIN / LSUN - LA                                                               TIN / LSUN - MCD
 Figure 16: OOD detection results for TIN. AUROC for distinguishing between ID and OOD
 datapoints using the different proposed measures of uncertainty as score. Means and standard
 deviations are calculated using five independent runs.




                                                                                                                               30
 B.4                   Different Network Architecture

We want to assess the influence of the network architecture on the ranking of the results. To that
end, we also trained DEs of DenseNet169 and RegNet-Y 800MF, using the same training recipe as
for ResNet-18 described in Sec. 5. A comparison of the sampled models is given in Fig. 17. We
observe, that ResNet-18 performs a bit better than the two other models, with RegNet-Y 800MF
being the worst models in terms of NLL and accuracies. In terms of AU and EU, we observe only
minor differences in the upper tails of the distributions for CIFAR100 and TIN. For CIFAR10 and
SVHN, we observe no differences. Next, we analyze the influence of the network architecture on the
misclassification and OOD detection tasks.

 Misclassification detection. The results for misclassification detection using DEs with different
 model architectures are given in Fig. 18. We observe no major differences for different models (per
 column) under a given predicting model (per row).

 OOD detection. The results for OOD detection using DEs with different model architectures are
 given in Fig. 19. We observe that the AU (C) is the best measure for DenseNet-169 and RegNet-Y
 800MF, while it is AU (B) which is equivalent to TU (B/C2) for ResNet-18. However, the general
 trends are the same across all architectures.




                                      CIFAR10                                                CIFAR100                                                           CIFAR10                                              CIFAR100
              0.4                                                             Single model                                                                                                                                             ResNet-18
                                                                    1.4       Posterior samples                                                                                               103                                      DenseNet-169
                                                                              Average model
                                                                                                                                        103
                                                                                                                            Frequency




                                                                                                                                                                                                                                       RegNet-Y
              0.3                                                   1.2                                                                                                                       102
    NLL




                                                                    1.0                                                                 101                                                   101
              0.2
                                                                    0.8                                                                                                                       100
                                       SVHN                                                       TIN                                                            SVHN                                                      TIN
           0.200                                                   2.50                                                                                                                       103
                                                                                                                                        103
                                                                                                                            Frequency




           0.175                                                   2.25                                                                                                                       102
NLL




           0.150                                                   2.00                                                                                                                       101
                                                                                                                                        101
           0.125                                                   1.75
                                                                                                                                                                                              100
                    ResNet-18       DenseNet-169        RegNet-Y           ResNet-18       DenseNet-169         RegNet-Y                      0.0   0.2        0.4     0.6        0.8   1.0         0.0   0.2        0.4         0.6     0.8     1.0
                                Network Architecture                                   Network Architecture                                               Aleatoric Uncertainty                                 Aleatoric Uncertainty
                                                          NLLs                                                                                                            AU (C)/ log(|Y|)
                                      CIFAR10                                               CIFAR100                                                            CIFAR10                                              CIFAR100
                                                                                                        Single model                                                                                                                   ResNet-18
              94                                                   75
                                                                                                        Posterior samples               103                                                   103                                      DenseNet-169
                                                                                                        Average model
                                                                                                                            Frequency




                                                                                                                                                                                                                                       RegNet-Y
   Accuracy




                                                                                                                                                                                              102
              92                                                   70
                                                                                                                                        101                                                   101
              90                                                   65
                                       SVHN                                                       TIN                                                            SVHN                                                      TIN
           97.0                                                    60                                                                                                                         103
                                                                                                                                        103
                                                                                                                            Frequency
Accuracy




           96.5                                                                                                                                                                               102
                                                                   55
           96.0                                                                                                                                                                               101
                                                                                                                                        101
                                                                   50
                                                                                                                                                                                              100
                    ResNet-18      DenseNet-169         RegNet-Y          ResNet-18       DenseNet-169          RegNet-Y                      0.0   0.1        0.2     0.3        0.4   0.5         0.0   0.1        0.2         0.3     0.4     0.5
                                Network Architecture                                   Network Architecture                                           Epistemic Uncertainty                                 Epistemic Uncertainty
                                                       Accuracies                                                                                                       EU (C2)/ log(|Y|)
 Figure 17: Comparison of network architectures. Results are obtained on the test split of the
 respective dataset. We compare the NLLs and accuracies for different models obtained through
 DEs on ResNet-18, DenseNet-169 and RegNet-Y 800MF. The single model is randomly selected
 among all sampled models. We depict all models sampled in five independent runs. Furthermore, the
 normalized AU (C) and the normalized EU (C2) are given per sampling method. All three network
 architectures lead to similar results on all considered datasets.




                                                                                                                            31
                            Single Model Predicts - Overall                                                Single Model Predicts - Overall                            91
                                                                                                                                                                                          Single Model Predicts - Overall
        91                                                                             91
        90                                                                             90                                                                             90
                                                                                       89                                                                             89
AUROC




                                                                               AUROC




                                                                                                                                                              AUROC
        89
                                                                                       88                                                                             88
        88
                                                                                       87                                                                             87
        87
             A1 A2 A3 B/C1B/C2B/C3    A   B    C     A1 A2 A3 B1 B3 C1 C2 C3                A1 A2 A3 B/C1B/C2B/C3    A   B    C     A1 A2 A3 B1 B3 C1 C2 C3                A1 A2 A3 B/C1B/C2B/C3    A   B    C     A1 A2 A3 B1 B3 C1 C2 C3
                      TU                  AU                          EU                             TU                  AU                          EU                             TU                  AU                          EU

                 (i) single model - ResNet                                                   (i) single model - DenseNet                                                       (i) single model - RegNet
                           Average Model Predicts - Overall                                               Average Model Predicts - Overall                                               Average Model Predicts - Overall
        89                                                                                                                                                            88
        88                                                                             88
                                                                                                                                                                      87
        87                                                                                                                                                            86
                                                                                       86
AUROC




                                                                               AUROC




                                                                                                                                                              AUROC
        86                                                                                                                                                            85
        85                                                                             84                                                                             84
        84                                                                                                                                                            83
             A1 A2 A3 B/C1B/C2B/C3    A   B    C     A1 A2 A3 B1 B3 C1 C2 C3                A1 A2 A3 B/C1B/C2B/C3    A   B    C     A1 A2 A3 B1 B3 C1 C2 C3                A1 A2 A3 B/C1B/C2B/C3    A   B    C     A1 A2 A3 B1 B3 C1 C2 C3
                      TU                  AU                          EU                             TU                  AU                          EU                             TU                  AU                          EU

              (ii) average model - ResNet                                                   (ii) average model - DenseNet                                                   (ii) average model - RegNet
                    Model according to Posterior Predicts - Overall                                Model according to Posterior Predicts - Overall                                Model according to Posterior Predicts - Overall
                                                                                                                                                                      90
        90                                                                             90
        89                                                                             88                                                                             88
AUROC




                                                                               AUROC




                                                                                                                                                              AUROC
        88
        87                                                                             86                                                                             86
        86
                                                                                       84
             A1 A2 A3 B/C1B/C2B/C3    A   B    C     A1 A2 A3 B1 B3 C1 C2 C3                A1 A2 A3 B/C1B/C2B/C3    A   B    C     A1 A2 A3 B1 B3 C1 C2 C3                A1 A2 A3 B/C1B/C2B/C3    A   B    C     A1 A2 A3 B1 B3 C1 C2 C3
                      TU                  AU                          EU                             TU                  AU                          EU                             TU                  AU                          EU

 (iii) according to posterior - ResNet (iii) acc. to posterior - DenseNet (iii) according to posterior - RegNet
 Figure 18: Misclassification detection results for DE with different model architectures and
 under different predicting models. AUROC for distinguishing between correctly and incorrectly
 predicted samples under different predicting models, using the different proposed measures of
 uncertainty as score. Means and standard deviations are calculated using five independent runs.




                                       Overall                                                                        Overall                                                                        Overall
                                                                                       86
        86                                                                                                                                                            84
                                                                                       84
AUROC




                                                                               AUROC




                                                                                                                                                              AUROC




        84                                                                             82                                                                             82

        82                                                                             80                                                                             80

             A1 A2 A3 B/C1B/C2B/C3    A   B    C     A1 A2 A3 B1 B3 C1 C2 C3                A1 A2 A3 B/C1B/C2B/C3    A   B    C     A1 A2 A3 B1 B3 C1 C2 C3                A1 A2 A3 B/C1B/C2B/C3    A   B    C     A1 A2 A3 B1 B3 C1 C2 C3
                      TU                  AU                          EU                             TU                  AU                          EU                             TU                  AU                          EU

                                ResNet-18                                                                  DenseNet-169                                                                  RegNet-Y 800MF
 Figure 19: OOD detection results for DE with different model architectures. AUROC for
 distinguishing between ID and OOD datapoints using the different proposed measures of uncertainty
 as score. AUROCs are averaged over all ID / OOD combinations. Means and standard deviations are
 calculated using five independent runs.




                                                                                                                         32
 B.5         Distribution Shift Detection

Next we want to assess the behavior of our framework of measures to detect varying levels of
distribution shift. In this experiment, DE, LA and MCD are applied to CIFAR10 as training dataset.
We use CIFAR10-C [Hendrycks and Dietterich, 2019] which contains corrupted versions of the test
dataset of CIFAR10 to assess the performance of detecting distribution shifts. Therefore, we utilize
the uncertainty as score to calculate the AUROC of distinguishing between the clean test dataset
and the corrupted versions. We also investigated the AUPR and FPR@TPR95 as alternative metrics,
which lead to equivalent conclusions. We utilized the 15 main corruptions and excluded the four
additional corruptions intended for hyperparameter tuning by the authors of the dataset. Results
are averages over all 15 corruptions. However, all corruptions are available in 5 different levels of
severity, which we distinguish in our experiments.
 The results in Fig. 20 show the AUROC of distinguishing between the clean and corrupted versions
 of the test dataset (y-axis) for different posterior sampling methods (rows), for different uncertainty
 measures (columns) under different corruption severities (x-axis). Furthermore, the inset shows a
 comparison akin to those done for OOD detection for the highest severity corrupted datapoints. We
 observe similar trends to those observed for the OOD detection experiments, which is not surprising
 given the similar nature of those experiments. However, comparing the best performing measure
 of uncertainty under DE for different severities shows, that EU is more effective than AU or TU at
 intermediate severities, but become equally effective for the highest severity. For LA, TU and AU
 measures all perform very similar across all severities. For MCD, we observe similar trends as for
 DE, albeit less pronounced.

                                                                      Overall
                 TU                                      AU                DE                            EU
        80        A1                                          A                                           A1
                  A2                                          B                                           A2
        75        A3                                          C                                           A3
                  B/C1                                                                                    B1
AUROC




        70        B/C2                                                                                    B3
                  B/C3                                                                                    C1
                                      Severity - 5                                    Severity - 5        C2                Severity - 5
        65                       82                                              82                       C3           82
        60                       80                                              80                                    80
                                 78                                              78                                    78
        55                                                            Overall
             1           2   3        4          5   1            2        3          4          5   1         2   3        4          5
                 TU                                      AU           Severity
                                                                        LA                               EU
        75        A1                                          A                                           A1
                  A2                                          B                                           A2
                  A3                                          C                                           A3
        70        B/C1                                                                                    B1
AUROC




                  B/C2                                                                                    B3
        65        B/C3                                                                                    C1
                                      Severity - 5                                    Severity - 5        C2                Severity - 5
                                 78                                              78                       C3           78
        60
                                 76                                              76                                    76
        55
                                                                      Overall
             1           2   3        4          5   1            2        3          4          5   1         2   3        4          5
                 TU                                      AU            MCD
                                                                      Severity                           EU
        75        A1                                          A                                           A1
                  A2                                          B                                           A2
                  A3                                          C                                           A3
        70        B/C1                                                                                    B1
AUROC




                  B/C2                                                                                    B3
        65        B/C3                                                                                    C1
                                      Severity - 5                                    Severity - 5        C2                Severity - 5
                                 78                                              78                       C3           78
        60
                                 76                                              76                                    76
        55                       74                                              74                                    74
             1           2   3        4          5   1            2        3          4          5   1         2   3        4          5
                                                                      Severity
 Figure 20: Distribution shift detection on CIFAR10-C. AUROC for distinguishing between clean
 and corrupted test datapoints, using the different proposed measures of uncertainty as score, under
 posterior sampling methods DE, LA and MCD. Black dashed line shows the maximum AUROC over
 all measures per severity. Insets show a comparison auf AUROCs uncer different uncertainty measures
 for the highest severity. Means and standard deviations are calculated using five independent runs.



                                                                      33
  B.6                   Adversarial Example Detection

 We want to investigate the effect of adversarially created inputs on the uncertainty estimates. Through-
 out this experiments, we consider adversarial attacks on the single network. However, it would also
 be possible to attack the average model, albeit more computationally expensive. As adversarial ex-
 amples are known to transfer well between models of similar architecture [Goodfellow et al., 2015],
 results for attacking the average model are expected to be relatively similar to those presented here.
 We consider two different adversarial attacks, FGSM [Goodfellow et al., 2015] and PGD under infinity
 norm perturbation [Madry et al., 2018]. For our experiments, we only consider the subset of the
 test datasets that are predicted correctly. This we refer to as the original dataset. Then we apply the
 adversarial attacks the datapoints in the original dataset and select those datapoints where the model
 was successfully fooled to predict incorrectly. This we refer to as the adversarial dataset. We utilize
 the different uncertainty scores to calculate the AUROC of distinguishing between the original and
 the adversarial dataset, akin to the OOD detection experiments reported in the main paper. We also
 investigated the AUPR and FPR@TPR95 as alternative metrics, which lead to equivalent conclusions.

  FGSM. We start with the results obtained through the FGSM attack with ϵ = 8/255. Histograms
  of the AU (A), the entropy of the predictive distribution of the single attacked model and the AU (B),
  the entropy of the predictive distribution under the average model, are shown in Fig. 21 for DE, in
  Fig. 22 for LA and in Fig. 23 for MCD. For all methods, we observe a shift towards higher AUs for
  the adversarial datapoints compared to the original datapoints. This effect is strongest for the global
  posterior sampling method DE, which is expected. Furthermore, the shift appears more pronounced
  for AU (B), which makes sense as the adversarial examples have been obtained with the single model.
 The main results are shown in Fig. 24, denoting the AUROC of distinguishing between the original
 and the adversarial datapoints using the different measures of uncertainty as score. We observe
 qualitatively very similar results to the OOD detection experiments, in that TU and AU measures for
 cases (B) and (C) are the most effective. The same we observe for MCD, albeit less pronounced
 than for DE. For LA, all TU and AU measures perform basically on par. Surprisingly, EU measures
 underperform for adversarial example detection, irrespective of the posterior sampling method.


                                                                                                Original                                                                                                       Original
            103                                                                                 Adversarial                 103                                                                                Adversarial
Frequency




                                                                                                                Frequency




            102                                                                                                             102

            101                                                                                                             101

            100                                                                                                             100
                  0.0     0.2     0.4     0.6       0.8   1.0   0.0   0.2     0.4     0.6        0.8     1.0                      0.0   0.2     0.4     0.6       0.8    1.0   0.0   0.2     0.4     0.6        0.8     1.0
                                AU (A) / log(| |)                           AU (B) / log(| |)                                                 AU (A) / log(| |)                            AU (B) / log(| |)
                                                    CIFAR10                                                                                                       CIFAR100
                                                                                                Original                                                                                                       Original
            103                                                                                 Adversarial                 103                                                                                Adversarial
Frequency




                                                                                                                Frequency




            102                                                                                                             102

            101                                                                                                             101

            100                                                                                                             100
                  0.0     0.2     0.4     0.6       0.8   1.0   0.0   0.2     0.4     0.6        0.8     1.0                      0.0   0.2     0.4     0.6       0.8    1.0   0.0   0.2     0.4     0.6        0.8     1.0
                                AU (A) / log(| |)                           AU (B) / log(| |)                                                 AU (A) / log(| |)                            AU (B) / log(| |)
                                                      SVHN                                                                                                              TIN
  Figure 21: Histogram of AU (A) and AU (B) for original and adversarial datapoints obtained
  through applying FGSM, using DE. AUs are normalized with log(|Y|) to be more comparable
  across datasets with different number of classes.




                                                                                                               34
                                                                                                                Original                                                                                                                           Original
            103                                                                                                 Adversarial                        103                                                                                             Adversarial
Frequency




                                                                                                                                       Frequency
            102                                                                                                                                    102

            101                                                                                                                                    101

            100                                                                                                                                    100
                  0.0        0.2     0.4           0.6   0.8    1.0     0.0   0.2       0.4          0.6         0.8     1.0                             0.0   0.2     0.4      0.6          0.8         1.0   0.0       0.2       0.4   0.6        0.8     1.0
                                   AU (A) / log(| |)                                AU (B) / log(| |)                                                                AU (A) / log(| |)                                         AU (B) / log(| |)
                                                         CIFAR10                                                                                                                            CIFAR100
                                                                                                                Original                                                                                                                           Original
            103                                                                                                 Adversarial                        103                                                                                             Adversarial
Frequency




                                                                                                                                       Frequency
            102                                                                                                                                    102

            101                                                                                                                                    101

            100                                                                                                                                    100
                  0.0        0.2     0.4           0.6   0.8    1.0     0.0   0.2       0.4          0.6         0.8     1.0                             0.0   0.2     0.4      0.6          0.8         1.0   0.0       0.2       0.4   0.6        0.8     1.0
                                   AU (A) / log(| |)                                AU (B) / log(| |)                                                                AU (A) / log(| |)                                         AU (B) / log(| |)
                                                           SVHN                                                                                                                                    TIN
  Figure 22: Histogram of AU (A) and AU (B) for original and adversarial datapoints obtained
  through applying FGSM, using LA. AUs are normalized with log(|Y|) to be more comparable
  across datasets with different number of classes.




                                                                                                                Original                                                                                                                           Original
            103                                                                                                 Adversarial                        103                                                                                             Adversarial
Frequency




                                                                                                                                       Frequency




            102                                                                                                                                    102

            101                                                                                                                                    101

            100                                                                                                                                    100
                  0.0        0.2     0.4           0.6   0.8    1.0     0.0   0.2       0.4          0.6         0.8     1.0                             0.0   0.2     0.4      0.6          0.8         1.0   0.0       0.2       0.4   0.6        0.8     1.0
                                   AU (A) / log(| |)                                AU (B) / log(| |)                                                                AU (A) / log(| |)                                         AU (B) / log(| |)
                                                         CIFAR10                                                                                                                            CIFAR100
                                                                                                                Original                                                                                                                           Original
            103                                                                                                 Adversarial                        103                                                                                             Adversarial
Frequency




                                                                                                                                       Frequency




            102                                                                                                                                    102

            101                                                                                                                                    101

            100                                                                                                                                    100
                  0.0        0.2     0.4           0.6   0.8    1.0     0.0   0.2       0.4          0.6         0.8     1.0                             0.0   0.2     0.4      0.6          0.8         1.0   0.0       0.2       0.4   0.6        0.8     1.0
                                   AU (A) / log(| |)                                AU (B) / log(| |)                                                                AU (A) / log(| |)                                         AU (B) / log(| |)
                                                           SVHN                                                                                                                                    TIN
  Figure 23: Histogram of AU (A) and AU (B) for original and adversarial datapoints obtained
  through applying FGSM, using MCD. AUs are normalized with log(|Y|) to be more comparable
  across datasets with different number of classes.




                                           Overall                                                                            Overall                                                                                Overall
        92
                                                                                            85                                                                                        84
        90
                                                                                                                                                                                      82
                                                                                            80
AUROC




                                                                                    AUROC




                                                                                                                                                                              AUROC




        88                                                                                                                                                                            80
        86                                                                                  75                                                                                        78
        84                                                                                  70                                                                                        76
              A1 A2 A3 B/C1B/C2B/C3        A   B     C   A1 A2 A3 B1 B3 C1 C2 C3                 A1 A2 A3 B/C1B/C2B/C3        A   B       C         A1 A2 A3 B1 B3 C1 C2 C3                A1 A2 A3 B/C1B/C2B/C3     A    B    C    A1 A2 A3 B1 B3 C1 C2 C3
                        TU                     AU                  EU                                      TU                     AU                           EU                                   TU                   AU                    EU


                                               DE                                                                              LA                                                                                    MCD
  Figure 24: Adversarial example detection (FGSM). Means and standard deviations are calculated
  using five independent runs.




                                                                                                                                  35
 PGD. Next, we conduct the same investigation using the L∞ -PGD attack with ϵ = 8/255. His-
 tograms of the AU (A), the entropy of the predictive distribution of the single attacked model and the
 AU (B), the entropy of the predictive distribution under the average model, are shown in Fig. 25 for
 DE, in Fig. 26 for LA and in Fig. 27 for MCD. For all methods, we observe a shift towards lower AUs
 for the adversarial datapoints compared to the original datapoints. The only exception is for AU (B)
 under DE, where adversarial datapoints exhibit slightly higher values than the original datapoints.
 The results are given in Fig. 28, denoting the AUROC of distinguishing between the original and the
 adversarial datapoints using the different measures of uncertainty as score. For DE we observe that
 all measures except TU (A1) and AU (A) perform better than random. The very bad performance of
 AU (A) stems from the fact that adversarial datapoints exhibit lower uncertainties than the original
 datapoints (c.f. Fig. 25). The local posterior sampling methods LA and MCD exhibit worse than
 random performance for all considered measures of uncertainty. However, contrary to the experiments
 with PGD, measures of EU perform best.
 The two experiments for adversarial example detection were conducted under the assumption that
 adversarial datapoints should exhibit higher uncertainty than the original datapoints. Finally, we
 investigate a special variant of our experiments with L∞ -PGD adversarial examples, where we
 assume that adversarial datapoints exhibit lower uncertainty than the original datapoints. The results
 are shown in Fig. 29. We observe, that using AU (A) leads to the best results for all three posterior
 sampling methods. However this results do not help to attain a mechanism for adversarial robustness,
 as we leverage additional side information that the single model was fooled into being very confident
 about the adversarial examples. Attackers could add constraints on the deviation between the AU
 (A) under the original and the adversarial datapoint in an improved version of the L∞ -PGD attack,
 rendering this detection mechanism useless.



            104                                                                               Original                    104                                                                                Original
                                                                                              Adversarial                                                                                                    Adversarial
            103                                                                                                           103
Frequency




                                                                                                              Frequency




            102                                                                                                           102
            101                                                                                                           101
            100                                                                                                           100
                  0.0   0.2     0.4     0.6       0.8   1.0   0.0   0.2     0.4     0.6        0.8     1.0                      0.0   0.2     0.4     0.6       0.8    1.0   0.0   0.2     0.4     0.6        0.8     1.0
                              AU (A) / log(| |)                           AU (B) / log(| |)                                                 AU (A) / log(| |)                            AU (B) / log(| |)
                                                  CIFAR10                                                                                                       CIFAR100
            104                                                                               Original                    104
                                                                                                                                                                                                             Original
                                                                                              Adversarial                                                                                                    Adversarial
            103                                                                                                           103
Frequency




                                                                                                              Frequency




            102                                                                                                           102
            101                                                                                                           101
            100                                                                                                           100
                  0.0   0.2     0.4     0.6       0.8   1.0   0.0   0.2     0.4     0.6        0.8     1.0                      0.0   0.2     0.4     0.6       0.8    1.0   0.0   0.2     0.4     0.6        0.8     1.0
                              AU (A) / log(| |)                           AU (B) / log(| |)                                                 AU (A) / log(| |)                            AU (B) / log(| |)
                                                    SVHN                                                                                                              TIN
  Figure 25: Histogram of AU (A) and AU (B) for original and adversarial datapoints obtained
  through applying L∞ -PGD, using DE. AUs are normalized with log(|Y|) to be more comparable
  across datasets with different number of classes.




                                                                                                             36
            104                                                                                                         Original                         104                                                                                              Original
                                                                                                                        Adversarial                                                                                                                       Adversarial
            103                                                                                                                                          103


Frequency




                                                                                                                                             Frequency
            102                                                                                                                                          102
            101                                                                                                                                          101
            100                                                                                                                                          100
                    0.0        0.2     0.4             0.6   0.8    1.0        0.0   0.2            0.4      0.6         0.8     1.0                           0.0   0.2     0.4      0.6            0.8      1.0    0.0        0.2       0.4    0.6        0.8    1.0
                                     AU (A) / log(| |)                                      AU (B) / log(| |)                                                              AU (A) / log(| |)                                          AU (B) / log(| |)
                                                             CIFAR10                                                                                                                                CIFAR100
            104                                                                                                         Original                         104
                                                                                                                                                                                                                                                          Original
                                                                                                                        Adversarial                                                                                                                       Adversarial
            103                                                                                                                                          103
Frequency




                                                                                                                                             Frequency
            102                                                                                                                                          102
            101                                                                                                                                          101
            100                                                                                                                                          100
                    0.0        0.2     0.4             0.6   0.8    1.0        0.0   0.2            0.4      0.6         0.8     1.0                           0.0   0.2     0.4      0.6            0.8      1.0    0.0        0.2       0.4    0.6        0.8    1.0
                                     AU (A) / log(| |)                                      AU (B) / log(| |)                                                              AU (A) / log(| |)                                          AU (B) / log(| |)
                                                               SVHN                                                                                                                                        TIN
  Figure 26: Histogram of AU (A) and AU (B) for original and adversarial datapoints obtained
  through applying L∞ -PGD, using LA. AUs are normalized with log(|Y|) to be more comparable
  across datasets with different number of classes.

            104                                                                                                         Original                         104                                                                                              Original
                                                                                                                        Adversarial                                                                                                                       Adversarial
            103                                                                                                                                          103
Frequency




                                                                                                                                             Frequency
            102                                                                                                                                          102
            101                                                                                                                                          101
            100                                                                                                                                          100
                    0.0        0.2     0.4             0.6   0.8    1.0        0.0   0.2            0.4      0.6         0.8     1.0                           0.0   0.2     0.4      0.6            0.8      1.0    0.0        0.2       0.4    0.6        0.8    1.0
                                     AU (A) / log(| |)                                      AU (B) / log(| |)                                                              AU (A) / log(| |)                                          AU (B) / log(| |)
                                                             CIFAR10                                                                                                                                CIFAR100
            104                                                                                                         Original                         104
                                                                                                                                                                                                                                                          Original
                                                                                                                        Adversarial                                                                                                                       Adversarial
            103                                                                                                                                          103
Frequency




                                                                                                                                             Frequency




            102                                                                                                                                          102
            101                                                                                                                                          101
            100                                                                                                                                          100
                    0.0        0.2     0.4             0.6   0.8    1.0        0.0   0.2            0.4      0.6         0.8     1.0                           0.0   0.2     0.4      0.6            0.8      1.0    0.0        0.2       0.4    0.6        0.8    1.0
                                     AU (A) / log(| |)                                      AU (B) / log(| |)                                                              AU (A) / log(| |)                                          AU (B) / log(| |)
                                                               SVHN                                                                                                                                        TIN
  Figure 27: Histogram of AU (A) and AU (B) for original and adversarial datapoints obtained
  through applying L∞ -PGD, using MCD. AUs are normalized with log(|Y|) to be more comparable
  across datasets with different number of classes.

                                             Overall                                               16
                                                                                                                                      Overall                                                                               Overall
                                                                                                                                                                                            22.5
        60                                                                                         14
                                                                                                                                                                                            20.0
AUROC




                                                                                           AUROC




                                                                                                                                                                                    AUROC




        40                                                                                         12
                                                                                                                                                                                            17.5
                                                                                                   10
        20                                                                                                                                                                                  15.0
                                                                                                    8                                                                                       12.5
                 A1 A2 A3 B/C1B/C2B/C3       A     B     C   A1 A2 A3 B1 B3 C1 C2 C3                    A1 A2 A3 B/C1B/C2B/C3     A     B     C           A1 A2 A3 B1 B3 C1 C2 C3                   A1 A2 A3 B/C1B/C2B/C3   A     B   C     A1 A2 A3 B1 B3 C1 C2 C3
                          TU                      AU                   EU                                          TU                   AU                           EU                                      TU                  AU                       EU


                                                 DE                                                                                    LA                                                                                   MCD
  Figure 28: Adversarial example detection (L∞ -PGD). Means and standard deviations are calculated
  using five independent runs.
                                                 Overall                                           82
                                                                                                                                      Overall                                                                               Overall
                                                                                                                                                                                               74
            80                                                                                     81
                                                                                                   80                                                                                          73
            75
   AUROC




                                                                                           AUROC




                                                                                                                                                                                       AUROC




                                                                                                   79                                                                                          72
            70
                                                                                                   78
                                                                                                   77                                                                                          71
            65
                  A1 A2 A3 B/C1B/C2B/C3      A     B     C   A1 A2 A3 B1 B3 C1 C2 C3                    A1 A2 A3 B/C1B/C2B/C3     A     B     C           A1 A2 A3 B1 B3 C1 C2 C3                   A1 A2 A3 B/C1B/C2B/C3   A    B    C     A1 A2 A3 B1 B3 C1 C2 C3
                           TU                      AU                     EU                                       TU                   AU                           EU                                      TU                  AU                    EU


                                                 DE                                                                                    LA                                                                                   MCD
  Figure 29: Adversarial example detection (L∞ -PGD), switching clean and adversarial dataset.
  Means and standard deviations are calculated using five independent runs.


                                                                                                                                       37
 B.7              Active Learning

 Finally, we investigated the proposed framework of uncertainty measures on active learning tasks.
 We conducted experiments on the MNIST and FMNIST datasets. A small CNN (5x5 conv [1 to 6
 channels], 2x2 max-pool, 5x5 conv [6 to 12 channels], 2x2 max-pool, two linear layers with hidden
 size 32 and a final output linear layer; ReLU activations after each max-pool and linear layer except
 the last as well as dropout with dropout between linear layers) was utilized. For DE, the dropout
 rate was set to zero, for MCD it was set to 0.2 for experiments on both datasets. Training of the
 models utilized the Adam optimizer [Kingma and Ba, 2015] for 50 epochs with a learning rate of
 1e-3, a batch size of 32 and l2 weight decay of 1e-4. Early stopping was performed on the official
 validation split of the respective datasets, the evaluation of the performance per step was conducted
 on the official test splits. Note that even though the size of the training dataset increases each step, the
 effective size, thus the number of gradient steps per epoch, was kept constant at 1000 for the MNIST
 and 1600 for the FMNIST experiments. For DE, we obtain 5 posterior samples (ensemble members),
 for MCD we obtain 50 posterior samples. The average over those samples, the approximated posterior
 predictive, was used to calculate the accuracies for each acquisition step, as well as for selecting the
 next datapoints to add to the training dataset from the pool dataset.

 MNIST. We started with 20 datapoints in the training dataset and the remaining 49,980 datapoints
 in the pool dataset. Those 20 datapoints were balanced, such that two datapoints from each class
 were contained. Each iteration, the five samples with the highest uncertainty are transferred from
 the pool dataset to the training dataset. We considered TU, AU and EU for measures (B2), (B3),
 (C2) and (C3) as acquisition functions, as well as random selection as a baseline. We did not
 investigate measures (A1), (A2), (A3), (B1) and (C1) due to the long runtimes of the experiments,
 but would expect them to perform worse than the considered ones in light of the other experiments
 we conducted. An interesting situation could be the EU (A1) however, when training a single model
 on the dataset in the current iteration and compare the model from the previous iteration. Future work
 should investigate this setting, e.g. in transfer learning settings.
 The results are given in Fig. 30. We observe, that for both DE as well as MCD, EU (C2), the
 mutual information, leads to the best performance at the final iteration, as well as performs very
 well throughout all iterations. Interestingly, we find TU (B/C2) which is identical to AU (B) to be
 equally well performing for both cases. The same is found for TU (B/C3). Interestingly, the EU
 (B3) and EU (C3) are the worst performing acquisition functions for both DE and MCD, contrary
 to the sentiment that estimators of EU should perform best in this task. Similarly surprising, AU
 (C), performs very good as acquisition function for DE. It is the worst acquisition function though
 for MCD. The random sampling baseline is also extremely effective until around a training dataset
 size of around 100 samples, more effective than any of the considered uncertainty measures. We
 hypothesize, that until a certain dataset size, models sampled from the posterior are not specified
 enough and provide too little signal of what datapoints to add next, which would be interesting to
 investigate in more details in future experiments.
                           Active learning: Deep Ensemble                                                Active learning: MC dropout
           0.95                                                                              0.95
           0.90                                                                              0.90
           0.85                                                                              0.85
           0.80                                                                              0.80
Accuracy




                                                                                  Accuracy




           0.75                                                  TU (B/C2)                   0.75                                            TU (B/C2)
                             0.950                               / AU (B)                                                                    / AU (B)
           0.70              0.925
                                                                 TU (B/C3)                   0.70        0.925                               TU (B/C3)
                                                                 AU (C)                                  0.900
                                                                                                                                             AU (C)
           0.65              0.900                               EU (B3)                     0.65                                            EU (B3)
                             0.875                               EU (C2)                                 0.875                               EU (C2)
           0.60                                                  EU (C3)                     0.60                                            EU (C3)
                             0.850                                                                       0.850
                                     260 270 280 290 300         Random                      0.55                260 270 280 290 300         Random
           0.55
                      50     100         150     200       250        300                           50   100         150     200       250        300
                                      Dataset size                                                                Dataset size
                                      DE                                                                         MCD
 Figure 30: Active learning results on MNIST. TU, AU and EU for measures (B2), (B3), (C2) and
 (C3) were considered as acquisition functions. The accuracy is those of the average model. Means
 and standard deviations are calculated using five independent runs.



                                                                             38
 FMNIST. We started with 1000 datapoints in the training dataset and the remaining 49,000 data-
 points in the pool dataset. Those 1000 datapoints were balanced, such that 100 datapoints from each
 class were contained. Each iteration, the 15 samples with the highest uncertainty are transferred from
 the pool dataset to the training dataset. As for the MNIST experiment, we considered TU, AU and
 EU for measures (B2), (B3), (C2) and (C3) as acquisition functions, as well as random selection
 as a baseline.
 The results are provided in Fig. 31. For MCD, we do not see a clear trend of outperforming the
 random acquisition baseline with any uncertainty measure. For DE, we again observe that EU (C2),
 the mutual information, leads to very good performance throughout all acquisition steps. Also, TU
 (B/C2) which is identical to AU (B) and AU (C) perform very good. Again, EU (B3) and EU (C3)
 are the worst performing acquisition functions, especially towards the final steps. This seemingly
 similar task to MNIST proved to be surprisingly difficult for an active learning pipeline, potentially
 due to the higher difficulty of the task where class boundaries are known to be much harder to learn.

                                   Active learning: Deep Ensemble                                                             Active learning: MC dropout
           0.845
                   0.845                                                                            0.82    0.81
                   0.840
           0.840                                                                                            0.80
                   0.835                                                                            0.81
                   0.830                                                                                    0.79
           0.835
                                                                                                    0.80
Accuracy




                                                                                         Accuracy
                   0.825
                           1520 1540 1560 1580 1600                                                                1520 1540 1560 1580 1600
           0.830                                                        TU (B/C2)                                                                               TU (B/C2)
                                                                        / AU (B)                                                                                / AU (B)
           0.825                                                        TU (B/C3)                   0.79                                                        TU (B/C3)
                                                                        AU (C)                                                                                  AU (C)
           0.820                                                        EU (B3)                                                                                 EU (B3)
                                                                        EU (C2)                     0.78                                                        EU (C2)
           0.815                                                        EU (C3)                                                                                 EU (C3)
                                                                        Random                      0.77                                                        Random
                   1000       1100      1200      1300        1400   1500    1600                          1000        1100     1200      1300        1400   1500    1600
                                               Dataset size                                                                            Dataset size
                                             DE                                                                                     MCD
 Figure 31: Active learning results on FMNIST. TU, AU and EU for measures (B2), (B3), (C2)
 and (C3) were considered as acquisition functions. The accuracy is those of the average model.
 Means and standard deviations are calculated using five independent runs.




                                                                                    39
