Deep Ensembles for Epistemic Uncertainty: A Frequentist Perspective

Anchit Jain, Stephen BatesNeurIPS 2026

TL;DR

Deep ensembles—training the same neural network multiple times with different random seeds—are shockingly good at telling us when a model is out of its depth, yet we have lacked a solid frequentist explanation for why this ad-hoc trick works. By building a mathematical bridge between Bayesian uncertainty and classical bootstrapping, the authors show that algorithmic randomness (like weight initialization and data shuffling) actually dwarfs the uncertainty from finite data sampling. Deep ensembles succeed simply because they capture this dominant, chaotic chunk of uncertainty.

What Problem Does This Paper Address?

When deploying machine learning in the wild, knowing why a model is uncertain matters. Is the task inherently noisy (aleatoric uncertainty, like predicting a coin flip), or did the model just not see enough data in this region (epistemic uncertainty)? High epistemic uncertainty tells us that collecting more data will actually help.

In Bayesian statistics, the gold-standard measure for epistemic uncertainty is Mutual Information (MI) between the target label and the model parameters. Unfortunately, computing exact Bayesian posteriors for massive neural networks is computationally intractable. Practitioners bypass this by using deep ensembles: train $B$ identical networks on the exact same dataset, varying only the random seed (initial weights, SGD batch shuffling), and look at how much their predictions disagree. Deep ensembles work brilliantly in practice, but from a frequentist perspective—where uncertainty is supposed to come from redrawing data, not re-rolling random seeds—their success is a theoretical mystery.

Methods

To connect Bayesian MI to frequentist deep ensembles, the authors construct a three-step theoretical bridge:

  1. Asymptotic Expansion of MI: They derive a mathematical expansion showing that as dataset size $n$ grows, Bayesian MI is governed by the frequentist Fisher information (which measures parameter variance) divided by the true outcome probabilities.
  2. A Bootstrap Estimator: Using this connection, they build a frequentist bootstrap estimator for MI. Instead of standard resampling (which drops data points), they reweight the dataset using a symmetric Dirichlet distribution so the network still sees every training example, and prove this estimator is asymptotically identical to true Bayesian MI.
Bayesian inference vs. Bootstrap estimation on a toy logistic regression problem, showing nearly identical posterior predictions and epistemic uncertainty curves.
  1. Uncertainty Decomposition: Because neural network training is stochastic, a bootstrapped model's prediction depends on both the resampled dataset and the random training seed. The authors algebraically split their bootstrap MI estimator into two clean, additive pieces: data resampling uncertainty ($I_b^{\text{resampling}}$) and training seed randomness ($I_b^{\text{seeds}}$). Crucially, standard deep ensembles compute the exact same formula as $I_b^{\text{seeds}}$, just on the un-bootstrapped dataset.

Datasets

The authors evaluate their decomposition across four standard classification benchmarks chosen to span different domains, scales, and training regimes (no new datasets are introduced):

  • CIFAR-10: 50,000 natural images (10 classes), training ResNet-18 from scratch.
  • ImageNet: 1.28M natural images (1,000 classes), training ResNet-18 from scratch.
  • ISIC 2016 Skin Lesion: 900 medical images (2 classes), using transfer learning (training a 2-layer MLP on frozen ResNet-50 features).
  • AG News: 120,000 news articles (4 classes), fine-tuning a 14.5M-parameter TinyBERT transformer.
  • (Exploratory) MNIST is also used for a proof-of-concept experiment with LeNet-5.

Key Insights and Ideas

  • Algorithmic chaos beats data scarcity: In classical statistics, optimization is deterministic, so all epistemic uncertainty comes from having a finite sample of data. In deep learning, the randomness injected by weight initialization and mini-batch shuffling creates far more prediction variance than resampling the dataset itself.
  • Bigger ensembles vs. more data: Because training stochasticity dominates epistemic uncertainty, if your goal is purely to reduce prediction uncertainty right now, training a larger ensemble to average out optimization noise may be more fruitful than collecting slightly more training data.
  • Epistemic uncertainty cares about ground-truth certainty: Their asymptotic formula reveals that MI isn't just model variance; it scales inversely with ground-truth noise. If a model's parameter predictions are shaky, and the true underlying event is deterministic (near 0 or 1 probability), epistemic uncertainty spikes—matching the intuition that learning the true parameters will drastically reduce our confusion.

Key Results

Across all four tasks, training randomness ($I_b^{\text{seeds}}$) consistently dominates data sampling variability ($I_b^{\text{resampling}}$), and deep ensembles closely track that dominant seed component:

  • Training randomness dominates: Regressing data-resampling uncertainty against seed uncertainty yields slopes well below 1 across the board: 0.11 on CIFAR-10 (meaning data variability is just 11% the size of seed variability!), 0.30 on ImageNet, 0.37 on AG News, and 0.66 on the tiny 900-image ISIC dataset.
  • Deep ensembles nail the seed component: Comparing standard deep ensembles to the bootstrapped seed uncertainty yields regression slopes near unity (0.98 on CIFAR-10, 0.92 on ImageNet, 0.88 on AG News, 0.84 on ISIC) and massive Spearman rank correlations ($\rho$ between 0.94 and 0.97). Because downstream tasks like out-of-distribution detection rely on the ranking of uncertain points, a ~0.95 rank correlation explains why deep ensembles perform so reliably.
Scatter plot on ImageNet showing strong linear agreement (slope 0.92) and rank correlation (0.94) between deep ensemble uncertainty and bootstrapped seed uncertainty.

Limitations and Future Work

  • Theoretical Assumptions vs. Deep Learning Reality: The mathematical proofs rely on asymptotic limits ($n \to \infty$), well-specified models, and identifiable parameters (via the Bernstein-von Mises theorem). Modern overparameterized neural networks famously violate parameter identifiability, weakening the strict theoretical link in low-data regimes.
  • Data Attribution for "Uncertainty Attribution": The authors test using influence functions (which estimate how reweighting a data point shifts predictions) to approximate bootstrap MI from a single trained LeNet-5 model. While correlated with Monte Carlo Dropout ($\rho = 0.79$), the estimates were 10x smaller because a single model misses training seed randomness. Still, this opens the door to identifying which specific training points are driving a model's uncertainty.
  • Plug-in Laplace Estimators: Because their asymptotic formula links MI directly to the inverse Fisher information, practitioners could use modern, lightweight Laplace approximations to plug the Hessian of the loss directly into the formula—estimating epistemic uncertainty without ever sampling or training multiple networks.

Summary updated

Abstract

Decomposing prediction uncertainty into aleatoric (irreducible) and epistemic (reducible) components is critical for the reliable deployment of machine learning systems. While the mutual information between the response variable and model parameters is a principled measure for epistemic uncertainty, it requires access to the parameter posterior, which is computationally challenging to approximate. Consequently, practitioners often rely on probabilistic predictions from deep ensembles to quantify uncertainty, which have demonstrated strong empirical performance. However, a theoretical understanding of their success from a frequentist perspective remains limited. We address this gap by first considering a bootstrap-based estimator for epistemic uncertainty, which we prove is asymptotically correct. Next, we connect deep ensembles to the bootstrap estimator by decomposing it into data variability and training stochasticity; specifically, we show that deep ensembles capture the training stochasticity component. Through empirical studies, we show that this stochasticity component constitutes the majority of epistemic uncertainty, thereby explaining the effectiveness of deep ensembles.
BibTeX
@inproceedings{jain2026deep,
  author = {Anchit Jain and Stephen Bates},
  title = {{Deep Ensembles for Epistemic Uncertainty: A Frequentist Perspective}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=9FW7gD5kYf},
}
Figure