On the Practicality of Deterministic Epistemic Uncertainty

Janis Postels, Mattia Segù, Tao Sun, Luca Daniel Sieber, Luc Van Gool, Fisher Yu, Federico Tombari

On the Practicality of Deterministic Epistemic Uncertainty

Deterministic Uncertainty Methods (DUMs) have recently emerged as a fast, single-pass alternative to computationally expensive Bayesian Neural Networks for estimating model confidence. However, a critical catch remains: while DUMs excel at spotting completely "out-of-distribution" (OOD) data, they are often poorly calibrated under the gradual distributional shifts seen in the real world. In some cases, they perform worse than a simple baseline.

The Problem: Overconfidence and the Need for Calibration

Deep learning models are notoriously overconfident, even when making incorrect predictions. This is a major safety concern for high-stakes applications like autonomous driving or medical diagnosis. To mitigate this, researchers measure epistemic uncertainty—the uncertainty arising from a lack of knowledge or unseen data.

The "gold standard" for estimating epistemic uncertainty is Bayesian Neural Networks (BNNs), but they are computationally heavy because they require multiple passes through the model. Deterministic Uncertainty Methods (DUMs) were designed to provide this uncertainty in a single, efficient forward pass.

However, most DUM research has focused heavily on OOD detection (identifying data that is completely alien to the training set). This paper asks a more practical question: Are DUMs actually calibrated? Does their uncertainty correlate with their likelihood of making a mistake when the data undergoes gradual, continuous shifts (e.g., driving in worsening rain or changing light)?

A Taxonomy of DUMs

To organize the growing field of DUMs, the authors propose a taxonomy based on two main design choices:

  1. Counteracting Feature Collapse: Standard models often "collapse" different inputs into the same internal representation. DUMs prevent this through Distance Awareness (ensuring internal distances reflect input distances) or Informative Representations (forcing the model to retain more detail about the input).
  2. Uncertainty Estimation: How the model calculates the uncertainty score—either through Discriminative means (distances to class centers) or Generative means (fitting a density model like a Gaussian Mixture Model to internal features).
Taxonomy of DUMs grouping methods by regularization and estimation strategy.

The paper evaluates these methods using standard metrics like AUROC and a new metric called Relative Area Under the Lift Curve (rAULC), which measures how well uncertainty scores can rank predictions from "most likely correct" to "most likely wrong."

Experimental Setup

The study goes beyond toy problems, testing on both image classification (CIFAR-10/100 and their corrupted versions, CIFAR-C) and semantic segmentation. For pixel-level tasks, they use Cityscapes and introduce a new benchmark, CARLA-C. Generated from the CARLA simulator, CARLA-C features continuous shifts in weather (rain intensity) and time-of-day (sun altitude), providing a rigorous test for real-world practicality.

Key Insights and Results

  • OOD Detection $\neq$ Calibration: A model can be excellent at flagging a picture of a cat as "unknown" while being dangerously overconfident about a blurry car in the rain. Most DUMs fall into this trap.
  • The "Feature Space" Blind Spot: Methods that rely purely on distances in the internal feature space (like DDU or MIR) tend to have the worst calibration. They ignore the actual predictive distribution of the model, failing to capture ambiguities that lead to errors.
  • SNGP is the Standout: Spectral-normalized Neural Gaussian Process (SNGP) was the only DUM that consistently outperformed simple softmax entropy. Its success likely stems from integrating uncertainty directly into the output layer using a Gaussian Process.
  • Sensitivity to Tuning: For many DUMs, there isn't a clear relationship between how hard you regularize the model and how good the resulting uncertainty is. This makes them difficult to deploy in practice.
  • Poor Performance on Realistic Shifts: On the CARLA-C dataset, some DUMs showed negative calibration, meaning their uncertainty scores were actually misleading.
Results on CARLA-C showing that while accuracy drops for all models as conditions worsen, most DUMs fail to provide better-calibrated uncertainty than a simple baseline.

Conclusion and Future Work

While DUMs can scale to complex tasks like semantic segmentation, their performance advantage over a vanilla network is marginal or non-existent in shifted environments. The authors note that current DUMs often rely on $L_2$ (Euclidean) distance in feature space, which may not be a meaningful way to measure "difference" for complex image data. Furthermore, several methods suffered from training instabilities when scaled to 100 classes or dense prediction tasks.

For DUMs to be truly practical, future research must move beyond simple OOD detection and focus on tying feature-space representations more closely to the model's actual predictive performance. Until then, if safety and calibration are priorities, the computational cost of Bayesian Ensembles remains a necessary evil.

Summary updated

BibTeX
@inproceedings{postels2022practicality,
  author = {Janis Postels and Mattia Segù and Tao Sun and Luca Daniel Sieber and Luc Van Gool and Fisher Yu and Federico Tombari},
  title = {{On the Practicality of Deterministic Epistemic Uncertainty}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=Ms2PeGWZtTs},
}
Figure