Skip to main content
QUICK REVIEW

[Paper Review] Uncertainty Baselines: Benchmarks for Uncertainty & Robustness in Deep Learning

Zachary Nado, Neil Band|arXiv (Cornell University)|Jun 7, 2021
Adversarial Robustness in Machine LearningComputer Science5 citations
TL;DR

This paper introduces Uncertainty Baselines, a comprehensive library providing high-quality, reproducible implementations of 19 state-of-the-art deep learning methods across 9 diverse tasks, including image, tabular, and text benchmarks. It enables standardized evaluation of uncertainty and robustness via unified pipelines, model checkpoints, and leaderboards, significantly lowering barriers to benchmarking and method comparison in deep learning.

ABSTRACT

High-quality estimates of uncertainty and robustness are crucial for numerous real-world applications, especially for deep learning which underlies many deployed ML systems. The ability to compare techniques for improving these estimates is therefore very important for research and practice alike. Yet, competitive comparisons of methods are often lacking due to a range of reasons, including: compute availability for extensive tuning, incorporation of sufficiently many baselines, and concrete documentation for reproducibility. In this paper we introduce Uncertainty Baselines: high-quality implementations of standard and state-of-the-art deep learning methods on a variety of tasks. As of this writing, the collection spans 19 methods across 9 tasks, each with at least 5 metrics. Each baseline is a self-contained experiment pipeline with easily reusable and extendable components. Our goal is to provide immediate starting points for experimentation with new methods or applications. Additionally we provide model checkpoints, experiment outputs as Python notebooks, and leaderboards for comparing results. Code available at https://github.com/google/uncertainty-baselines.

Motivation & Objective

  • To address the lack of standardized, reproducible baselines for evaluating uncertainty and robustness in deep learning models.
  • To reduce barriers to comparing new methods by providing well-documented, self-contained, and extensible code implementations.
  • To unify diverse uncertainty estimation techniques—such as Bayesian neural networks, Monte Carlo dropout, and ensemble methods—across multiple real-world and standard benchmarks.
  • To improve reproducibility and fair comparison by offering consistent hyperparameter tuning, evaluation metrics, and shared experiment outputs.
  • To serve as a community-driven foundation for future research by enabling rapid adaptation and extension of baselines across different tasks and modalities.

Proposed method

  • The library implements end-to-end experiment pipelines for each method, abstracting dataset loading, model architecture, training, and evaluation into modular, reusable components.
  • Each baseline includes a choice of base models (e.g., Wide ResNet, ResNet-50, BERT), training datasets (e.g., CIFAR, ImageNet, Diabetic Retinopathy), and evaluation metrics (accuracy, calibration error, selective prediction, inference latency).
  • Standardized training protocols are used, including Nesterov momentum for image models and AdamW for text models, with consistent learning rate schedules and data preprocessing (e.g., random crops, flips, normalization).
  • Hyperparameter tuning is performed via quasirandom search with two rounds: a broad initial search followed by a focused refinement, using validation AUC as the selection metric.
  • The library supports both TensorFlow and PyTorch backends, with deterministic preprocessing using stateless random operations for reproducibility.
  • All results, model checkpoints, and experiment outputs are published as Jupyter notebooks and hosted on GitHub, enabling full reproducibility and community extension.

Experimental results

Research questions

  • RQ1How can uncertainty and robustness in deep learning be evaluated consistently across diverse tasks and models?
  • RQ2What is the relative performance of modern uncertainty estimation methods (e.g., MC-Dropout, SNGP, Bayesian neural networks) across image, tabular, and text benchmarks?
  • RQ3To what extent do standard baselines outperform more complex methods when properly tuned?
  • RQ4How can reproducibility and fair comparison be improved in uncertainty research through shared, well-documented codebases?
  • RQ5Can a unified, community-maintained library significantly reduce the effort required to benchmark new uncertainty methods?

Key findings

  • The Uncertainty Baselines library provides 83 distinct baselines across 9 tasks, covering 19 uncertainty estimation methods including Bayesian neural networks, Monte Carlo dropout, ensembles, and modern approaches like SNGP and Hyper-BatchEnsemble.
  • For the Diabetic Retinopathy benchmark, hyperparameter tuning via quasirandom search led to improved validation AUC, with final models retrained on combined train+validation sets for optimal performance.
  • The library enables consistent evaluation using 5+ metrics per baseline, including predictive accuracy, calibration error, selective prediction, and inference latency.
  • Model checkpoints, experiment outputs, and Jupyter notebooks are publicly available, ensuring full reproducibility and facilitating rapid adaptation for new research.
  • The library unifies previously isolated benchmarks (e.g., from Riquelme et al., 2018; Hendrycks & Dietterich, 2019) into a single, scalable, and well-tested codebase with active maintenance.
  • By standardizing training protocols, data preprocessing, and evaluation, the library enables fairer and more reliable comparisons across methods than previously possible with ad hoc implementations.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.