Deep ensembles estimate predictive uncertainty by training neural networks of the same architecture from different random initializations and mixing their predictive distributions into a single prediction. Lakshminarayanan et al. proposed the method in 2017 as a way to estimate uncertainty without Bayesian inference.
Even when accurate, neural networks are poor at expressing how much they should trust their own predictions, and they tend to be overconfident. Representative approaches to uncertainty are Bayesian neural networks, which place probability distributions on the weights (such as Bayes by Backprop), and MC dropout. Bayesian neural networks, however, require substantial changes to the training procedure and are computationally heavy.
Deep ensembles can be used with almost no change to ordinary training. The paper proposes a combination of three ingredients.
- Train with a proper scoring rule: For regression, the network outputs a variance as well as a mean, and the negative log-likelihood (NLL) is used as the loss.
- Smooth the predictive distribution with adversarial training: Inputs generated by FGSM are also used for training (optional).
- Form an ensemble: networks are trained independently of each other, and their predictions are averaged.
As an analogy, it is like asking people who studied separately to solve the same problem. On familiar problems their answers agree, but on unfamiliar ones they diverge. How much they diverge is the uncertainty.

