Second-Order Uncertainty Quantification: A Distance-Based Approach

Yusuf Sale, Viktor Bengs, Michele Caprio, Eyke Hüllermeier

Overview

Quantifying predictive uncertainty in machine learning using second-order distributions—distributions over probability distributions—has become increasingly popular for safety-critical applications. However, standard information-theoretic measures like mutual information have recently been shown to possess significant theoretical flaws. This paper proposes a novel, mathematically rigorous framework that treats uncertainty quantification as a geometric problem, measuring the Wasserstein distance between a model's prediction and a theoretical state of "zero uncertainty."

The Problem: Flaws in Information-Theoretic Measures

In safety-critical machine learning, knowing what a model doesn't know is just as important as the prediction itself. Researchers typically divide uncertainty into two camps:

  • Aleatoric Uncertainty (AU): Inherent data noise or randomness in the environment.
  • Epistemic Uncertainty (EU): Model ignorance or lack of knowledge, which can theoretically be reduced with more data.

To capture both, modern methods like Evidential Deep Learning output second-order distributions (e.g., a Dirichlet distribution over class probabilities).

Progression of prediction types from deterministic to second-order distributions, illustrating how aleatoric (AU) and epistemic (EU) uncertainties are captured.

Historically, the ML community has used information-theoretic measures to quantify these uncertainties: Shannon entropy for Total Uncertainty (TU), conditional entropy for AU, and mutual information for EU. However, recent critiques have shown these default measures fail basic theoretical sanity checks. For example, if you shift a second-order distribution across the probability simplex without changing its shape, its epistemic uncertainty should intuitively remain the same. Yet, under mutual information, the measured uncertainty changes. This paper addresses this fundamental flaw by establishing a strict set of axioms that uncertainty measures must obey.

A Distance-Based Geometric Framework

To resolve these theoretical inconsistencies, the authors introduce a distance-based framework for uncertainty quantification. Instead of relying on entropy, they frame uncertainty as a geometric question: "How far do we need to move our predicted distribution to reach a state of absolute certainty?"

  1. Axiomatic Foundation: The authors define nine formal axioms (A0-A8) that any valid uncertainty measure should satisfy. For instance, a "mean-preserving spread"—making a distribution wider without changing its center—must strictly increase epistemic uncertainty.
  2. Reference Sets: They define mathematical "reference sets" representing states of zero uncertainty:
  3. Total Uncertainty (TU) Reference: Absolute certainty (e.g., 100% confidence in a single specific class, with no variance).
  4. Aleatoric Uncertainty (AU) Reference: Distributions with zero data noise (mixtures of absolute certainties).
  5. Epistemic Uncertainty (EU) Reference: Distributions with zero model ignorance (a single, fixed first-order probability distribution).
  6. Wasserstein Instantiation: The uncertainty of a prediction is defined as its minimum distance to these reference sets. The authors instantiate this using the Wasserstein distance (Earth Mover's Distance), which naturally quantifies the "effort" required to transform the predicted distribution into a perfectly certain one.

Key Insights and Results

By framing uncertainty as an Optimal Transport problem, the authors bypass the theoretical traps of information theory. Measuring "how much probability mass needs to be moved" aligns perfectly with human intuitions about uncertainty. Crucially, the authors demonstrate that their Wasserstein-based EU measure perfectly preserves epistemic uncertainty when a distribution is shifted across the probability simplex, directly fixing the glaring location-shift bug found in mutual information-based approaches.

A Dirichlet distribution on a probability simplex with its corresponding Total (TU), Aleatoric (AU), and Epistemic (EU) uncertainty values calculated using the proposed framework.

A major hurdle for new theoretical frameworks is computational feasibility, as Optimal Transport often suffers from the curse of dimensionality. However, the authors show that for Dirichlet distributions—the gold standard in Evidential Deep Learning—their distance-based measures are highly tractable:

  • TU has a direct, closed-form analytical solution based on the mean of the Dirichlet distribution.
  • AU can be highly efficiently estimated using simple Monte Carlo sampling.
  • EU is reduced to a unique, convex 1D constrained optimization problem. Using a simple iterative search, it takes at most 30 iterations to find the exact solution within a $10^{-10}$ error margin.

Limitations and Future Work

As a theoretical machine learning paper, the authors validate their framework using synthetic numerical simulations rather than standard empirical datasets (like CIFAR or ImageNet). While the mathematical foundations are sound and all nine proposed axioms are proven to be satisfied, a systematic experimental comparison in the context of actual Evidential Deep Learning models (e.g., evaluating out-of-distribution detection on image data) is left for future work. Additionally, while the framework is instantiated with the Wasserstein distance, future research could explore other probability metrics to see if they offer different computational or practical advantages while still satisfying the axioms.

Summary updated

BibTeX
@inproceedings{sale2024second,
  author = {Yusuf Sale and Viktor Bengs and Michele Caprio and Eyke Hüllermeier},
  title = {{Second-Order Uncertainty Quantification: A Distance-Based Approach}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=VJjjNrUi8j},
}
Figure