Abstract
The field of uncertainty and robustness in deep learning suffers from a reproducibility crisis due to inconsistent hyperparameter tuning and evaluation protocols. We present Uncertainty Baselines, a high-quality open-source library containing standardized implementations of 19 state-of-the-art methods across 9 diverse tasks. By providing a unified ecosystem with heavily tuned baselines, this work enables researchers to conduct rigorous comparisons and accelerate genuine algorithmic progress.
Introduction
Reliable uncertainty estimation and robustness to distribution shift are essential for the safe deployment of deep learning models. However, evaluating progress in these areas is challenging. Researchers often report results using disparate codebases, varying hyperparameter optimization strategies, and inconsistent metrics. This "Wild West" scenario frequently leads to "strawman" comparisons, where a new method appears superior only because the baseline was poorly tuned. Uncertainty Baselines addresses this by establishing a level playing field for the community.
Methods
The library is designed as a standardized ecosystem rather than a single algorithm. Key features include:
- Modular Design: Pipelines are self-contained, allowing researchers to easily swap models or datasets while maintaining consistent training logic.
- Framework Agnosticism: Support for TensorFlow, JAX, and PyTorch ensures broad accessibility across the research community.
- Standardized Evaluation: Integration with the "Robustness Metrics" suite provides comprehensive evaluation of accuracy, calibration (e.g., Expected Calibration Error), and performance under dataset shift.
- Optimized Performance: Implementations are tuned for modern hardware, including Google Cloud TPUs.
The collection includes 19 methods, from classic techniques like MC-Dropout and Deep Ensembles to modern approaches such as BatchEnsemble, MIMO, and SNGP (Spectral-normalized Neural Gaussian Process).
Datasets and Tasks
The benchmarks cover 9 tasks across multiple modalities to ensure broad applicability:
- Computer Vision: CIFAR-10/100 and ImageNet, including robustness variants like ImageNet-C (corruptions) and ImageNet-A (adversarial examples).
- Medical Imaging: Diabetic Retinopathy Detection, a critical real-world safety-sensitive application.
- Natural Language Processing: CLINC Intent Detection and Wikipedia Toxicity identification.
- Tabular Data: Standard UCI benchmarks.
Key Insights and Results
A central tenet of this work is that rigorous tuning is a primary research contribution. By providing "best-case" hyperparameters, the authors prevent unfair dismissals of existing methods. The library currently hosts 83 distinct baselines.
On ImageNet, comparisons across multiple test sets (ImageNet, -C, -A, and -V2) reveal significant trade-offs between accuracy and calibration. While many models achieve high accuracy, their ability to accurately represent their own uncertainty (calibration) varies significantly. Furthermore, the baselines facilitate "deferred prediction" workflows, where models can opt to defer low-confidence samples to human experts, enhancing overall system reliability.
Conclusion and Future Work
Uncertainty Baselines provides the necessary infrastructure—including code, model checkpoints, and dashboards—to resolve the reproducibility crisis in robustness research. While currently leaning toward the TensorFlow ecosystem, future efforts will focus on expanding JAX and PyTorch support and incorporating more diverse tasks like object detection and reinforcement learning. The goal is to establish a community-driven standard for benchmarking uncertainty in deep learning.
Summary updated