Training, Architecture, and Prior for Deterministic Uncertainty Methods

Bertrand Charpentier, Chenxiang Zhang, Stephan Günnemann

Abstract

Accurate and efficient uncertainty estimation is crucial for building reliable Machine Learning (ML) models in safety-critical domains. Deterministic Uncertainty Methods (DUMs) offer a promising approach by providing calibrated uncertainty estimates in a single forward pass. This paper investigates critical design choices in DUMs, revealing that performance is highly sensitive to training schemes—specifically the decoupling of learning rates—and architecture expressiveness. Conversely, the choice of priors has a minimal impact. We also highlight the trade-offs involved in using constraints to prevent feature collapse, which can improve out-of-distribution (OOD) detection at the cost of generalization.

Introduction

In applications like autonomous driving or medical diagnosis, models must quantify their confidence. Traditional Bayesian methods like Ensembles or MC Dropout are computationally expensive because they require multiple forward passes. DUMs provide an efficient alternative but require a deeper understanding of their optimization and architectural requirements. This study systematically explores three pillars of DUM design: training optimization, architectural structure, and prior assumptions.

Methodology

The study evaluates two state-of-the-art DUMs: Natural Posterior Network (NatPN), which utilizes density estimation in latent space, and Deterministic Uncertainty Estimator (DUE), which employs Deep Gaussian Processes with inducing points. Evaluation is conducted across standard benchmarks (MNIST, CIFAR-10/100, Camelyon) and various OOD datasets (SVHN, CelebA, and shifted versions of ID data) to test both calibration and detection capabilities.

Key Insights: Training and Optimization

A central finding is that the "core" encoder and the "uncertainty head" possess distinct training dynamics. Performance improves significantly when these components use decoupled learning rates, allowing the encoder and the uncertainty estimator to optimize at different speeds.

Heatmaps showing the impact of varying learning rates for the core architecture versus the uncertainty head on accuracy, Brier score, and OOD detection.

Furthermore, the choice of training schema is vital. The authors compared joint training (optimizing both components simultaneously) against sequential training. Empirical results consistently show that joint training is superior for both predictive accuracy and uncertainty calibration.

Comparison of training schemas for NatPN and DUE, demonstrating that joint training generally yields superior accuracy and calibration.

Architecture and the Feature Collapse Trade-off

Architecture expressiveness is the primary driver of uncertainty quality. Modern backbones like Swin Transformers and EfficientNetV2 consistently outperform older ResNet architectures, suggesting that high-quality embeddings are fundamental for reliable uncertainty estimation.

However, preventing "feature collapse"—where the model loses information in the latent space—presents a challenge. While regularization constraints (e.g., bi-Lipschitz layers) can enhance OOD detection, they often create a trade-off, degrading the model's ability to generalize to natural data shifts (OOD generalization).

The Role of Priors and Pretraining

Contrary to traditional Bayesian models where the prior is a critical design choice, the specific choice of "prior" in DUMs (such as the kernel type in DUE) has a negligible effect on final performance. In contrast, pretraining on large-scale datasets like ImageNet is essential, drastically improving calibration metrics like the Brier Score across all tested models.

Conclusion

This investigation clarifies the design space for DUMs. To maximize performance, practitioners should prioritize joint training with decoupled learning rates and utilize expressive, pretrained backbones. Future research must address the remaining tension between OOD detection and generalization to ensure DUMs are robust for real-world deployment.

Summary updated

BibTeX
@inproceedings{charpentier2023training,
  author = {Bertrand Charpentier and Chenxiang Zhang and Stephan Günnemann},
  title = {{Training, Architecture, and Prior for Deterministic Uncertainty Methods}},
  booktitle = {Trustworthy ML @ ICLR},
  year = {2023},
  url = {https://openreview.net/forum?id=iYA80086YH},
}
Figure