Reliable uncertainty estimates in deep learning with efficient Metropolis-Hastings algorithms
Matthias Schmal, Patrick Mäder
Technische Universität Ilmenau
Key points
From the paper's conclusion- We study two ways to incorporate computationally light-weight Metropolis-Hastings acceptance steps into deep neural networks and stochastic gradient Hamiltonian Monte Carlo.
Abstract
Approaching problems with data-driven models often requires reliable uncertainty estimates. Bayesian neural networks can offer these for deep learning models. Without the knowledge to set informative prior distributions, sampling methods such as Hamiltonian Monte Carlo are a robust choice. However, these come with prohibitive computational costs. We study two ways to incorporate computationally light-weight Metropolis-Hastings acceptance steps into deep neural networks and stochastic gradient Hamiltonian Monte Carlo. The first method proposes noisy acceptance steps computed on batched training samples rather than the entire set during the simulation of the stochastic dynamics accepting a small minima preserving bias. The second method sacrifices bias-free sampling of Hamiltonian Monte Carlo in favor of stochastic gradient driven trajectories. While the first is analytically plausible, the second is inspired by the Hamiltonian ensemble concept. Prediction accuracy is improved by up to 5.8% over deterministic and by up to 4.3% over Bayesian approaches while still guaranteeing calibration of the predictions. We observe that sampling methods facilitate model predictions with merely a third of the ensemble while maintaining prediction accuracy. In conclusion, the methods combine efficiency and regularization of stochastic gradients, showing strong performance despite the sampling bias.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Theoretical and Practical Advances in Hierarchical Bayesian Deep Learning MethodologyarXiv · 2026
- Faster Hamiltonian Monte Carlo by learning leapfrog scale: an offline randomized solution.Statistics and computing · 2026
- When Has a Bayesian Neural Network Sampled Enough? Adaptive Inference Time with Statistical GuaranteesarXiv · 2026
- Amortised Inference through One-Step Implicit SamplingarXiv · 2026
- Posterior sampling by source-space MCMC via prior-based few-step transport mapsarXiv · 2026
- Calibrating your confidence requires thinking of all the ways you could be wrongarXiv · 2026