Logo Logo
FAQ
Contact
Switch language to German
Advances in Markov chain Monte Carlo for Bayesian deep learning for uncertainty quantification at scale
Advances in Markov chain Monte Carlo for Bayesian deep learning for uncertainty quantification at scale
Bayesian neural networks (BNNs) provide a principled framework for epistemic uncertainty quantification in deep learning. Therein posterior inference is commonly approached through optimization-based approximations such as variational inference and the Laplace approximation, which scale well but rely on distributional assumptions that constrain the approximation. Sampling-based inference, in particular Markov chain Monte Carlo (MCMC), avoids such assumptions and is asymptotically consistent but has been considered difficult to apply at the scale of modern deep learning. This thesis is concerned with understanding and enabling the sampling of generic deep neural networks at scale. The investigation begins with [C1], which combines theoretical considerations and an extensive empirical study to identify the disconnected geometry of high-probability regions, rather than the local efficiency of individual samplers, as the dominant obstacle on BNN posteriors. Warmstarting multiple chains from independently optimized solutions is shown to restore feasibility, giving rise to the framework of Bayesian deep ensembles (BDEs) that bridges deep ensembles and multi-chain MCMC. [C2] develops an efficient full-batch instantiation through Microcanonical Langevin Ensembles (MILE), combining BDE-style warmstarts with a microcanonical Langevin Monte Carlo sampler adapted to BNNs. MILE achieves substantial speedups over established alternatives while maintaining or improving predictive performance and uncertainty quantification, with [C6] providing a highly accessible and efficient implementation. The resulting sampling capability is used in [C3] to study how overparameterization and weight-space priors jointly shape the sampling-induced posterior approximation. Further, transferring results from optimization to the Bayesian regime, layer balancedness, weight distribution on equal-probability manifolds, and prior conformity are identified as central structural phenomena, indicating that simple isotropic Gaussian priors provide a meaningful encoding of weight distributions in the overparameterized regime. Building on this foundation, [C4] presents the first systematic study of microcanonical dynamics under stochastic gradients, removing the full-batch requirement that had restricted MILE to moderately sized data. A novel theoretical analysis identifies a fundamental bias arising from anisotropic mini-batch gradient noise, motivating a principled preconditioning scheme. Additionally, a complementary adaptive tuner exploits energy-variance to automate step-size selection. Together, this work introduces a new class of stochastic microcanonical Langevin ensemble samplers without explicit noise-injection for large-scale Bayesian inference that scales BDE-based inference to architectures with millions of parameters like Vision Transformers, with improved robustness to hyperparameter choices. Finally, the thesis examines the broader trajectory of the field [C5], gathering evidence that sampling-based inference is on the verge of superseding optimization-based alternatives for BNNs and identifying remaining challenges around exploration, posterior sample distillation, and tooling. Further contributions refine specific stages of the BDE pipeline: [C7] introduces an anytime-valid stopping rule based on E-values that terminates BDE sampling once it improved sufficiently on an optimized baseline, [C8] shows that curvature estimates from adaptive optimizers can serve as preconditioners for the subsequent sampling phase at negligible cost, and [C9] develops warmstarting strategies for MCMC in BNNs based on performance predictors and adaptive termination criteria. Together, these contributions advance the practical feasibility, effectiveness, and understanding of sampling-based Bayesian deep learning.
Not available
Sommer, Emanuel
2026
English
Universitätsbibliothek der Ludwig-Maximilians-Universität München
Sommer, Emanuel (2026): Advances in Markov chain Monte Carlo for Bayesian deep learning for uncertainty quantification at scale. Dissertation, LMU München: Faculty of Mathematics, Computer Science and Statistics
[thumbnail of Sommer_Emanuel.pdf]
Preview
PDF
Sommer_Emanuel.pdf

3MB

Abstract

Bayesian neural networks (BNNs) provide a principled framework for epistemic uncertainty quantification in deep learning. Therein posterior inference is commonly approached through optimization-based approximations such as variational inference and the Laplace approximation, which scale well but rely on distributional assumptions that constrain the approximation. Sampling-based inference, in particular Markov chain Monte Carlo (MCMC), avoids such assumptions and is asymptotically consistent but has been considered difficult to apply at the scale of modern deep learning. This thesis is concerned with understanding and enabling the sampling of generic deep neural networks at scale. The investigation begins with [C1], which combines theoretical considerations and an extensive empirical study to identify the disconnected geometry of high-probability regions, rather than the local efficiency of individual samplers, as the dominant obstacle on BNN posteriors. Warmstarting multiple chains from independently optimized solutions is shown to restore feasibility, giving rise to the framework of Bayesian deep ensembles (BDEs) that bridges deep ensembles and multi-chain MCMC. [C2] develops an efficient full-batch instantiation through Microcanonical Langevin Ensembles (MILE), combining BDE-style warmstarts with a microcanonical Langevin Monte Carlo sampler adapted to BNNs. MILE achieves substantial speedups over established alternatives while maintaining or improving predictive performance and uncertainty quantification, with [C6] providing a highly accessible and efficient implementation. The resulting sampling capability is used in [C3] to study how overparameterization and weight-space priors jointly shape the sampling-induced posterior approximation. Further, transferring results from optimization to the Bayesian regime, layer balancedness, weight distribution on equal-probability manifolds, and prior conformity are identified as central structural phenomena, indicating that simple isotropic Gaussian priors provide a meaningful encoding of weight distributions in the overparameterized regime. Building on this foundation, [C4] presents the first systematic study of microcanonical dynamics under stochastic gradients, removing the full-batch requirement that had restricted MILE to moderately sized data. A novel theoretical analysis identifies a fundamental bias arising from anisotropic mini-batch gradient noise, motivating a principled preconditioning scheme. Additionally, a complementary adaptive tuner exploits energy-variance to automate step-size selection. Together, this work introduces a new class of stochastic microcanonical Langevin ensemble samplers without explicit noise-injection for large-scale Bayesian inference that scales BDE-based inference to architectures with millions of parameters like Vision Transformers, with improved robustness to hyperparameter choices. Finally, the thesis examines the broader trajectory of the field [C5], gathering evidence that sampling-based inference is on the verge of superseding optimization-based alternatives for BNNs and identifying remaining challenges around exploration, posterior sample distillation, and tooling. Further contributions refine specific stages of the BDE pipeline: [C7] introduces an anytime-valid stopping rule based on E-values that terminates BDE sampling once it improved sufficiently on an optimized baseline, [C8] shows that curvature estimates from adaptive optimizers can serve as preconditioners for the subsequent sampling phase at negligible cost, and [C9] develops warmstarting strategies for MCMC in BNNs based on performance predictors and adaptive termination criteria. Together, these contributions advance the practical feasibility, effectiveness, and understanding of sampling-based Bayesian deep learning.