Abstract
Due to the growing adoption of deep neural networks in many fields of science and engineering, modeling and estimating their uncertainties has become of primary importance. Despite the growing literature about uncertainty quantification in deep learning, the quality of the uncertainty estimates remains an open question. In this work, we assess for the first time the performance of several approximation methods for Bayesian neural networks on regression tasks by evaluating the quality of the confidence regions with several coverage metrics. The selected algorithms are also compared in terms of predictivity, kernelized Stein discrepancy and maximum mean discrepancy with respect to a reference posterior in both weight and function space. Our findings show that (i) some algorithms have excellent predictive performance but tend to largely over or underestimate uncertainties (ii) it is possible to achieve good accuracy and a given target coverage with finely tuned hyperparameters and (iii) the promising kernel Stein discrepancy cannot be exclusively relied on to assess the posterior approximation. As a by-product of this benchmark, we also compute and visualize the similarity of all algorithms and corresponding hyperparameters: interestingly we identify a few clusters of algorithms with similar behavior in weight space, giving new insights on how they explore the posterior distribution.
Introduction
Deep neural networks (DNNs) are increasingly deployed in safety-critical domains, yet they often exhibit overconfidence in their predictions. Bayesian Neural Networks (BNNs) provide a theoretical framework for uncertainty quantification by treating weights as probability distributions. However, since the exact posterior is intractable, researchers rely on various approximations. This study provides a rigorous benchmark of 14 such approximation methods, evaluating their ability to capture the "true" posterior—defined by Hamiltonian Monte Carlo (HMC) samples—and their predictive reliability.
Methodology
The benchmark evaluates four categories of algorithms:
- Stochastic Gradient MCMC (SGMCMC): Including SGLD, SGHMC, and variance-reduced versions (CV, SVRG).
- Gaussian Approximations: SWAG and Laplace Approximation (LA-KFAC).
- Variational/Heuristic Methods: MC-Dropout.
- Deep Ensembles: A frequentist approach often used as a baseline.
Performance is measured using predictive accuracy ($Q^2$), Marginal and Conditional Coverage (MCP/CCP) to assess if confidence intervals are well-calibrated, and distance metrics like Maximum Mean Discrepancy (MMD) to compare approximations against the HMC gold standard.
The Accuracy-Uncertainty Paradox
A central finding of this work is that high predictive accuracy does not imply reliable uncertainty estimates. Some methods, like SWAG, achieve excellent $Q^2$ scores but fail to reach target coverage levels, often producing intervals that are too narrow. Conversely, the Laplace approximation tends to be overly conservative, significantly overestimating uncertainty.
As shown in Figure 1, while many methods maintain high $Q^2$ (blue lines) across noise levels, their coverage (red and green lines) varies wildly. Deep Ensembles and SGMCMC-SVRG emerge as the most balanced performers, maintaining both accuracy and coverage more consistently than others.
Algorithmic Clustering in Weight Space
By visualizing the similarities between algorithms using Multi-Dimensional Scaling (MDS) on weight-space distances, the authors identified distinct clusters. Interestingly, certain SGMCMC variants like SVRG behave similarly to Deep Ensembles, suggesting a shared mechanism for posterior exploration that contributes to their robust performance.
Figure 6 illustrates these relationships, highlighting that while some methods stay close to the HMC reference (black circle), others explore very different regions of the parameter space.
Conclusion
This benchmark reveals that common metrics like Kernelized Stein Discrepancy (KSD) can be misleading and that the choice of BNN approximation involves significant trade-offs between accuracy and uncertainty quality. Deep Ensembles remain a formidable baseline, often outperforming more complex Bayesian methods. Future research should prioritize methods that guarantee coverage, such as conformal prediction, rather than relying solely on internal posterior approximations.
Summary updated