Introduction
Deep Ensembles (DE) have become a standard for uncertainty estimation in machine learning due to their simplicity and empirical performance. By training multiple neural networks with different initializations and averaging their predictions, practitioners can obtain a measure of predictive uncertainty. However, this uncertainty is often heuristic rather than principled. This paper introduces DE-GP, a framework that transforms standard ensembles into a principled Bayesian framework by treating ensemble members as basis functions for a Gaussian Process (GP).
The Problem of Uncertainty Collapse
A significant theoretical weakness of standard Deep Ensembles is that their uncertainty relies on random disagreement between models. This disagreement is not explicitly managed and can "collapse" when models converge to nearly identical solutions. This is particularly evident in linear models or very deep architectures where the loss surface might lead different initializations to the same global minimum, resulting in overconfidence.
As shown in the figure above, standard ensembles (DE and rDE) fail to provide meaningful uncertainty in the linear case (0 hidden layers), whereas the Gaussian Process approach maintains a diverse set of functional hypotheses.
The DE-GP Framework
To address these issues, the authors propose training the ensemble using Functional Variational Inference (fVI). Instead of independent training, the entire ensemble is optimized together using a functional Evidence Lower Bound (fELBO).
- Ensemble as a GP Posterior: The ensemble members are viewed as samples from an approximate GP posterior. The mean and empirical covariance of these functions define the posterior.
- Diversity via KL Divergence: The objective function includes a Kullback–Leibler (KL) divergence term in function space. This term explicitly penalizes the collapse of ensemble members, forcing them to remain diverse in regions with sparse data.
- Function Space Regularization: By operating in function space rather than weight space, DE-GP avoids the high-dimensional complexities typically associated with Bayesian Neural Networks (BNNs).
Results and Efficiency
The DE-GP method was evaluated across regression, image classification (CIFAR-10/100), and out-of-distribution (OOD) detection tasks. Key findings include:
- Improved Calibration: DE-GP significantly reduces Expected Calibration Error (ECE), ensuring that model confidence aligns with actual accuracy.
- Robust OOD Detection: The method is far more effective at signaling uncertainty when encountering data from different distributions (e.g., MNIST vs. Fashion-MNIST).
- Computational Efficiency: A common criticism of Bayesian methods is their high computational cost. However, DE-GP remains highly efficient.
As illustrated in the training speed comparison, while DE-GP is slightly slower than standard DE due to the joint optimization term, it remains significantly faster than many alternative Bayesian approaches like rDE, making it viable for production use.
Conclusion
DE-GP successfully bridges the gap between the practical utility of Deep Ensembles and the theoretical rigor of Gaussian Processes. By enforcing diversity through a functional variational objective, it eliminates the risk of uncertainty collapse and provides more reliable predictions for safety-critical applications. While it introduces some constraints on parallel training, the gains in robustness and calibration make it a compelling alternative to standard ensemble methods.
Summary updated