arXiv:2610.19074cs.LGOct 2026

Manuscript Offprint

arXiv:2610.19074

Theoretical and Practical Advances in Hierarchical Bayesian Deep Learning Methodology

Neil K. Chada, Simon Cotter, Kody J. H. Law, Xinzhu Liang

Abstract

Reliable uncertainty quantification remains an important challenge in AI. Hierarchical Bayesian methods provide a principled framework for this by representing unknown quantities through posterior distributions. Joint inference of neural-network parameters and prior hyperparameters is challenging for conventional Markov chain Monte Carlo (MCMC) methods due to strong dependencies. In this work, we introduce the multilevel particle marginal Metropolis-Hastings (MLPMMH) method, which combines pseudo-marginal inference for the hyperparameters with coupled sequential Monte Carlo (SMC) across hierarchy of network-width truncations for conditional parameter inference. The hierarchy is induced by a trace-class neural network (TNN) prior with width-dependent decay, motivated empirically by the compressible structure observed in trained neural-network parameters. Under standard multilevel coupling assumptions, we establish that MLPMMH achieves mean-square error (MSE) O(ε2)\mathcal{O}(\varepsilon^{2}) at expected computational cost O(ε−2)\mathcal{O}(\varepsilon^{-2}), and verify the predicted rate on a Bayesian regression problem. To address larger-scale applications, we further introduce S-MLPMMH, a practical approximation that replaces the exact sampling components with a PCA-based hierarchy and scalable Bayesian Monte Carlo. Experiments on MNIST demonstrate competitive predictive performance and uncertainty quantification while exploiting the parallel structure of the approximation. Software has been made publicly available at https://github.com/submission-code-anon/mlpmmh-anon.

1 Introduction

The focus of this work is on the design of Bayesian statistical algorithms for efficiently performing hierarchical Bayesian deep learning [Papamarkou et al., 2022, 2024, BDL-Consortium, 2026]. In this context, one is interested in estimating the posterior distribution of the joint parameter θ×μ∈Θ×S\theta \times \mu \in \Theta \times S, where we have access to data D∈D\mathcal{D} \in \mathbb{D}. Then the joint posterior, via Bayes' Theorem, is expressed as

π(θ,μ∣D)=π(D∣θ,μ)πˉ(θ∣μ)π0(μ)Z(D)∝π(D,θ∣μ)π0(μ),\pi(\theta,\mu|\mathcal{D})=\frac{\pi(\mathcal{D}|\theta,\mu)\bar{\pi}(\theta|\mu)\pi_{0}(\mu)}{Z(\mathcal{D})}\propto\pi(\mathcal{D},\theta|\mu)\pi_{0}(\mu),

where Z(D)Z(\mathcal{D}) is a normalizing constant, π(D∣θ,μ)\pi(\mathcal{D}|\theta,\mu) is the data-likelihood, πˉ(θ)\bar{\pi}(\theta) is the prior distribution for parameter and π0(μ)\pi_0(\mu) is the prior distribution for hyperparameter. Prior distributions, in general, allow us to represent an initial belief of the posterior, providing some level of flexibility.

*Department of Mathematics, City University of Hong Kong, Hong Kong SAR. neilchada123@gmail.com

†^{\dagger}School of Mathematics, University of Manchester, UK. simon.cotter@manchester.ac.uk

‡^{\ddagger}School of Mathematics, University of Manchester, UK. kody.law@manchester.ac.uk

§^{§}School of Mathematics, University of Manchester, UK. xinzhu.liang@postgrad.manchester.ac.uk

However, this hierarchical structure can hinder generic Markov chain Monte Carlo (MCMC) inference, even for powerful Bayesian methodologies such as HMC [Neal et al., 2011, Betancourt and Girolami, 2015]. Strong correlations between hyperparameters and parameters often make estimating the joint posterior difficult, leading to pathological behaviour. The pseudo-marginal approach is a general class of MCMC algorithms that target the marginal posterior ( ∫Θπ(D,dθ∣μ)π0(μ)\int_{\Theta} \pi(\mathcal{D}, d\theta|\mu) \pi_0(\mu)) by replacing the intractable marginal likelihood ( ∫Θπ(D,dθ∣μ)\int_{\Theta} \pi(\mathcal{D}, d\theta|\mu)) of the hyperparameters with an unbiased stochastic estimator [Andrieu and Roberts, 2009]. An important sub-class is known as particle MCMC [Andrieu et al., 2010, Golightley and Wilkinson, 2011], which uses particle filters to build the unbiased distribution estimators inside a pseudo-marginal scheme. We will leverage the particle marginal Metropolis-Hasting (PMMH) method here.

Although Sequential Monte Carlo (SMC) methods are well suited for sampling in high dimensional settings, they still suffer from the curse of dimensionality, which limits their efficiency. To mitigate this, Multilevel Monte Carlo (MLMC) [Heinrich, 2001, Giles, 2008, 2015] has been introduced to achieve canonical computational complexity, 1/MSE. Recent work has applied MLMC in the context of statistical inference Beskos et al. [2017, 2018], Chada et al. [2021], Cotter et al. [2022] and machine learning [Chada et al., 2025, Fujisawa and Sato, 2021, Gerstner et al., 2021, O. Lye et al., 2021, Shi and Cornish, 2021]. In this paper, we leverage MLMC techniques in the context of trace-class neural networks (TNN) for prior modeling [Sell and Singh, 2020] following a similar approach as in Chada et al. [2025]. The seminal work by Jasra et al. [2018] applied the particle marginal Metropolis–Hastings scheme to parameter estimation for particle filter algorithms for parameter estimation in discretely observed continuous time state space models. The present work applies a similar principle to the case of joint parameter and hyper-parameter estimation in static BNN models with TNN prior architectures by simulating from an approximate coupling of the parameter conditional distributions at coarse and fine scales and correcting the increments a posteriori with importance weights.

References (89)