The surrogate Gibbs-posterior of a corrected stochastic MALA: Towards uncertainty quantification for neural networks

Sebastian Bieringer, Gregor Kasieczka, Maximilian F. Steffen, Mathias Trabs
10/13/2023
stat.MLcs.LGmath.ST

Official code: sbieringer/csMALA (0 stars, last commit 2025-03-13).

Abstract

MALA is a popular gradient-based Markov chain Monte Carlo method to access the Gibbs-posterior distribution. Stochastic MALA (sMALA) scales to large data sets, but changes the target distribution from the Gibbs-posterior to a surrogate posterior which only exploits a reduced sample size. We introduce a corrected stochastic MALA (csMALA) with a simple correction term for which distance between the resulting surrogate posterior and the original Gibbs-posterior decreases in the full sample size while retaining scalability. In a nonparametric regression model, we prove a PAC-Bayes oracle inequality for the surrogate posterior. Uncertainties can be quantified by sampling from the surrogate posterior. Focusing on Bayesian neural networks, we analyze the diameter and coverage of credible balls for shallow neural networks and we show optimal contraction rates for deep neural networks. Our credibility result is independent of the correction and can also be applied to the standard Gibbs-posterior. A simulation study in a high-dimensional parameter space demonstrates that an estimator drawn from csMALA based on its surrogate Gibbs-posterior indeed exhibits these advantages in practice.

View on arXivView PDF

Code Implementations(1)

"Statistical guarantees for stochastic Metropolis-Hastings"

01Python, Jupyter NotebookOct 11, 20231 years ago
bayesian-deep-learningmetropolis-hastings-algorithm

Similar Papers

Cite this paper

@article{bieringer2023surrogate,
  title  = {The surrogate Gibbs-posterior of a corrected stochastic MALA: Towards uncertainty quantification for neural networks},
  author = {Sebastian Bieringer and Gregor Kasieczka and Maximilian F. Steffen and Mathias Trabs},
  year   = {2023},
  eprint = {2310.09335},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.09335v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.09335.svg)](https://codeofpaper.com/paper/2310.09335)

Discussion