On the Practicality of Deterministic Epistemic Uncertainty

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

In the pursuit of safe and reliable artificial intelligence, a model's ability to quantify its own uncertainty—specifically "epistemic uncertainty"—is as critical as its predictive accuracy. While Bayesian Neural Networks (BNNs) and Deep Ensembles are currently the gold standards for this task, their high computational overhead often precludes their use in real-time, safety-critical applications like autonomous driving.

Deterministic Uncertainty Methods (DUMs) have emerged as a promising alternative, aiming to provide BNN-quality uncertainty estimates in a single, efficient forward pass. However, a recent comprehensive study by researchers at ETH Zurich, TU Munich, and Google Research investigates whether these methods are truly ready for practical deployment, particularly when faced with the complexities of real-world data shifts.

Taxonomy of Deterministic Uncertainty

To evaluate the landscape of DUMs, the authors first establish a taxonomy based on two primary axes: the method of representation regularization and the approach to uncertainty estimation.

Taxonomy of Deterministic Uncertainty Methods (DUMs) categorized by regularization strategy and uncertainty estimation approach.
  • Regularization Strategies: DUMs typically employ either distance awareness (e.g., using Spectral Normalization to ensure latent space distances correspond to input distances) or informative representations (e.g., using reconstruction or contrastive losses to ensure the model retains salient input details).
  • Uncertainty Estimation: These methods then derive uncertainty scores using either generative approaches (fitting density models like Gaussian Mixture Models to latent features) or discriminative approaches (deriving uncertainty from predictive outputs, such as Gaussian Processes).

The Challenge of Distributional Shift

While DUMs have shown success in simple Out-of-Distribution (OOD) detection tasks on toy datasets, their performance under continuous distributional shifts—such as changing weather conditions in autonomous driving—remains a significant hurdle. The study evaluates these models using CIFAR-10/100-C (synthetic corruptions) and a realistic CARLA-C dataset, which simulates environmental shifts in a high-fidelity driving simulator.

The Calibration Gap

A primary finding of the research is the "calibration gap." While many DUMs excel at binary OOD detection (identifying data completely foreign to the training set), they struggle to maintain calibration as data gradually shifts. Ideally, as a model's accuracy decreases due to environmental noise or corruption, its uncertainty score should increase proportionally.

Performance metrics (Accuracy, AUROC, and rAULC) across increasing levels of corruption severity for various DUMs and baselines.

As illustrated in the performance trends, most DUMs exhibit a sharp decline in calibration (measured by rAULC) as corruption severity increases. This suggests that the density of features in a model's latent space does not reliably correlate with the likelihood of a correct final prediction under shift.

Key Findings and Standout Methods

  1. SNGP as a Robust Baseline: Among the DUMs tested, the Spectral-normalized Neural Gaussian Process (SNGP) proved to be the most robust, consistently outperforming other deterministic methods and even simple softmax entropy in terms of calibration.
  2. Baselines Still Lead: Despite the efficiency of DUMs, traditional Deep Ensembles and MC Dropout remain the superior choices for maintaining calibration under shift, albeit at a higher computational cost.
  3. Scalability Issues: In complex tasks like semantic segmentation on CARLA-C, generative DUMs (such as DDU) often performed worse than simple baseline models, highlighting the difficulty of scaling latent-density approaches to high-dimensional outputs.

Conclusion

The research concludes that while DUMs offer significant efficiency gains, they are not yet a drop-in replacement for Bayesian methods in safety-critical scenarios. The inability of current DUMs to account for "weight uncertainty" appears to be a fundamental limitation. Future work must focus on incorporating efficient Bayesian approximations into the deterministic framework to bridge the gap between efficiency and reliability.

Summary updated

BibTeX
@inproceedings{postels2022practicality,
  author = {Janis Postels and Mattia Segù and Tao Sun 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