Introduction
Deep Neural Networks (DNNs) are notoriously "overconfident." In safety-critical domains like autonomous driving or medical diagnosis, a model that predicts with 99% certainty on unfamiliar data is a liability. While Deep Ensembles and Bayesian Neural Networks (BNNs) offer solutions, they often face a trade-off between computational efficiency and local uncertainty estimation.
In the paper "Mixtures of Laplace Approximations for Improved Post-Hoc Uncertainty in Deep Learning," Eschenhagen et al. propose MoLA, a method that bridges this gap. MoLA provides a fast, post-hoc way to combine the global mode-seeking strengths of ensembles with the local uncertainty capture of Laplace approximations.
The MoLA Framework: Combining Global and Local Uncertainty
Standard DNNs are point estimators. Deep Ensembles improve upon this by training multiple models from different initializations, effectively finding multiple "modes" or valleys in the loss landscape. This captures global uncertainty—where models disagree, uncertainty is high. However, each individual model remains a point estimate, often overconfident in its local neighborhood.
Conversely, the Laplace Approximation fits a Gaussian distribution around a single mode to capture local uncertainty. While theoretically sound, single-mode Laplace approximations often fail to capture the complex, multi-modal nature of the posterior distribution and are frequently outperformed by ensembles.
MoLA (Mixtures of Laplace Approximations) treats the ensemble as a set of means for a Gaussian Mixture Model (GMM). By fitting a Laplace approximation to each ensemble member, MoLA captures both the broad disagreement between models and the local "wiggle room" around each prediction.
Methodology
The implementation of MoLA is designed for practical scalability and ease of use:
- Pre-trained Ensemble: The process begins with $K$ pre-trained DNNs (which can be obtained through standard ensemble training).
- Last-Layer Laplace (LLLA): To maintain efficiency, the authors apply the Laplace approximation only to the weights of the final layer, treating earlier layers as fixed feature extractors. This makes the method "post-hoc," as it can be applied to existing models without full retraining.
- Mixture Construction: The individual Gaussian posteriors from each ensemble member are combined into a GMM.
- Efficient Inference: To avoid the high cost of Monte Carlo sampling, the authors utilize the Multi-class Probit Approximation (MPA), enabling closed-form, high-speed predictive calculations.
Experimental Results
The authors evaluated MoLA across a variety of benchmarks, including in-distribution performance (CIFAR-10, ImageNet), robustness to dataset shift (Corrupted CIFAR-10), and out-of-distribution (OOD) detection (SVHN, LSUN).
Calibration and Robustness
A key metric for uncertainty is the Expected Calibration Error (ECE). As shown in the results, MoLA significantly improves calibration under dataset corruption compared to standard ensembles (DE) and single-model Bayesian methods (LLLA). It consistently achieves higher Log-Likelihood and lower ECE across various levels of corruption severity.
Out-of-Distribution Detection
MoLA excels at "knowing what it doesn't know." In OOD tasks, such as identifying SVHN digits after being trained on CIFAR-10, MoLA achieved an AUROC of 96.2%, surpassing the 95.4% achieved by standard Deep Ensembles. This improvement is supported by a theoretical guarantee: for ReLU networks, MoLA’s confidence naturally decays to maximum uncertainty as inputs move far from the training distribution.
Conclusion
MoLA represents a significant step forward in making deep learning models more reliable. By providing a lightweight, post-hoc upgrade to existing ensembles, it offers the benefits of Bayesian inference without the typical computational hurdles. Its scalability to large-scale datasets like ImageNet makes it a viable tool for real-world deployment in uncertainty-aware systems.
Summary updated