Abstract
Ensembles of independently trained neural networks are a state-of-the-art approach to estimate predictive uncertainty in Deep Learning, and can be interpreted as an approximation of the posterior distribution via a mixture of delta functions. The training of ensembles relies on non-convexity of the loss landscape and random initialization of their individual members, making the resulting posterior approximation uncontrolled. This paper proposes a novel and principled method to tackle this limitation, minimizing an $f$-divergence between the true posterior and a kernel density estimator (KDE) in a function space. We analyze this objective from a combinatorial point of view, and show that it is submodular with respect to mixture components for any $f$. Subsequently, we consider the problem of greedy ensemble construction. From the marginal gain on the negative $f$-divergence, which quantifies an improvement in posterior approximation yielded by adding a new component into the KDE, we derive a novel diversity term for ensemble methods. The performance of our approach is demonstrated on computer vision out-of-distribution detection benchmarks in a range of architectures trained on multiple datasets.
Introduction
Deep Learning models are notoriously overconfident, often making "confidently wrong" predictions on out-of-distribution (OOD) data. Deep Ensembles (DE)—training multiple models from different random initializations—are currently the gold standard for estimating uncertainty. However, standard DE is often "uncontrolled," relying on the non-convexity of the loss landscape and random luck to find diverse models. From a Bayesian perspective, an ensemble should ideally represent the posterior distribution of functions. Standard ensembles tend to be "mode-seeking," huddling around a few high-probability solutions, rather than "mean-seeking," which would cover the full spread of likely solutions. This work replaces random initialization with a mathematically grounded greedy selection process to ensure the ensemble effectively covers the function space.
Methodology
The authors reframe ensemble construction as a subset selection problem from a ground set of all possible neural networks.
Submodularity and Greedy Construction
The paper proves that minimizing the $f$-divergence between the true posterior and a Kernel Density Estimator (KDE) of the ensemble is a submodular maximization problem. Submodularity implies a "law of diminishing returns": adding a new model provides less marginal benefit as the ensemble becomes more diverse. This property allows for a greedy construction algorithm with theoretical guarantees.
Diversity in Function Space
Instead of training models independently, the authors derive a novel diversity regularization term. When training the $k$-th model, a "repulsive" force pushes its predictions away from the existing $k-1$ members in function space. Since comparing neural networks in function space is computationally difficult, a sampling-based heuristic is used, evaluating models on a "weighting distribution" of synthetic data points around the training data.
Theoretical Insights
The derived diversity term is a direct consequence of minimizing the reverse KL-divergence between the ensemble and the true posterior. By regularizing in function space rather than weight space, the method targets the predictive behavior that matters most for uncertainty estimation.
Experimental Results
The "Greedy" approach was evaluated on computer vision benchmarks including MNIST, CIFAR-10, CIFAR-100, and SVHN, using architectures like ResNet and WideResNet.
- OOD Detection: On CIFAR-100 with ResNet164, the Greedy ensemble achieved an AUC of 0.88, significantly outperforming the 0.79 achieved by standard Deep Ensembles.
- False Positive Rate: The FPR95 dropped from 0.15 to 0.12 on CIFAR-10 with WideResNet.
- Accuracy and Calibration: The added diversity did not sacrifice predictive accuracy and, in some cases, improved calibration (Expected Calibration Error).
- Uncertainty Estimation: On toy datasets, the Greedy ensemble maintained high uncertainty far from the training data, whereas standard ensembles were only uncertain near decision boundaries.
Conclusion
This paper provides a principled framework for building deep ensembles by bridging combinatorial optimization and Bayesian inference. While the sequential nature of the greedy algorithm increases training time by approximately 1.75x to 1.9x, the gains in OOD detection and posterior coverage are substantial. Future work will explore more efficient ways to generate the weighting distribution and scale the approach to larger datasets like ImageNet.
Summary updated