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) at expected computational cost O(ε−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, where we have access to data D∈D. Then the joint posterior, via Bayes' Theorem, is expressed as
where Z(D) is a normalizing constant, π(D∣θ,μ) is the data-likelihood, πˉ(θ) is the prior distribution for parameter and π0(μ) 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
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(μ)) by replacing the intractable marginal likelihood ( ∫Θπ(D,dθ∣μ)) 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.
1.1 Contributions
The contributions of this work are summarized as follows:
• Algorithmic contribution. We introduce a multilevel particle marginal Metropolis-Hastings (MLPMMH) scheme for BNN which builds increment estimators from approximate couplings of parameter conditional targets at successive resolutions simulated with SMC samplers, within the PMMH method for joint estimation of hyperparameters. These increment estimators are combined to build an MLMC estimator.
• Theoretical guarantees. Under standard multilevel coupling assumptions and the trace-class prior, we prove a convergence theorem (Theorem 4.1):
MSE=O(COST−1).
• Practical Approximation algorithm. A practically applicable approximation is introduced, where each increment is estimated from an ensemble of SBMC estimators Liang et al. [2025], each conditional on a hyper-parameter simulated from a Laplace approximation of the marginal. This is referred to as S-MLPMMH.
• Empirical validation. (i) A toy Bayesian regression problem shows the expected MSE–COST convergence rate and illustrates increment variance and mean decay across levels. (ii) Strong performance of S-MLPMMH is demonstrated on the MNIST image classification problem.
(iii) Power-law decay with rank of weights and biases from MAP training of Bayesian neural networks empirically supports the use of the TNN prior. (iv) Several MLSMC variants for the inner parameter inference are compared in the appendix, including their computational cost-accuracy behavior.
1.2 Outline
The outline of this document is as follows. In Section 2, we introduce the model formulation, trace-class neural network prior, and associated multilevel structure. We then move to Section 3, introducing our MLPMMH methodology for joint parameter and hyperparameter estimation and the practical S-MLPMMH approximation. Related theory, including the MSE–computational-cost convergence result for MLPMMH, is provided in Section 4. In Section 5, we numerically test MLPMMH to verify our theory, motivate and validate the TNN width-decay structure, and apply the S-MLPMMH approximation on MNIST classification. Finally, we summarize our findings in Section 6. Additional background on SMC and several existing and novel MLSMC methods for parameter estimation is provided in Appendix B, together with supporting theory, numerical experiments, and proofs.
Figure 1: Diagram of the MLPMMH program. A technical diagram of the hierarchical TNN model itself is provided in Figure 4 in the Appendix.
2 Model Formulation
Suppose we have data D=((x1,y1),...,(xN,yN)), N∈N, where xi∈X⊆Rn are inputs associated to output labels yi∈Y⊆Rm. We want to infer the joint state of parameter θ∈Θ⊆Rdθ and the hyperparameter μ∈S⊆Rdμ based on the data D within a deep neural network (DNN) model g:X×Θ×S→Rm where g(x,θ,μ)=(g1(x,θ,μ),...,gm(x,θ,μ)).
2.1 Trace-class neural network priors
These TNN priors have also been introduced and well-established in the Chada et al. [2025], and here we followed a similar procedure: for d=1,…,D, the associated weights and bias ( θ) are defined as
The model, presented in Figure 4, is constructed based on the pushforward of a countably infinite Gaussian random variable that has a specified weight decay in the width direction (which can similarly be applied to depth). This instils a clear inductive bias—analogous to choosing a kernel to specify the smoothness of a Gaussian process (GP) while remaining fundamentally different. These priors converge strongly, while GPNN typically converge only weakly, so that it allows us to apply the MLMC methodology. Since the hyperparameter s is a tricky one, whose value determines the strong convergence rate in the MLMC methodology, we will set it to be a constant value here. We then can let the hyperparameter be μ=(σA,σb), and a suitable prior could be the 2-dimensional log-normal distribution.
2.2 Multilevel Structure
Given the level l∈N, for simplicity, we assume D is fixed and let the NN width is the same for all layer other than the input and the output, i.e. nd=nl=2l for d∈{1,...,D−1}, n0=n and nD=m. The corresponding vector of parameters is denoted by θl:=((A1l,b1l),...,(ADl,bDl)) which is in the parameter space Θl={Rnl×n×Rnl}⊗{Rnl×nl×Rnl}⊗D−2⊗{Rm×nl×Rm} and the prior is πˉl(θl).
Here, we introduce the canonical truncation map Tl:Θl→Θl−1. Given a fine-level parameter θl∈Θl, we write θl−1=Tl(θl) for the corresponding coarse-level parameter obtained by setting: Aij,dl=Aij,dl−1 and bi,dl=bi,dl−1 for i,j∈1,…,nl−1 and d∈{2,…,D}; a similar assignment is to be adopted for (A1l,b1l) and (ADl,bDl).
Then, we denote the DNN output by gl(x,θl,μ). Using the same output map Ψ at every level, we define the quantity of interest by φl(x,θl,μ):=(Ψ∘gl)(x,θl,μ)=Ψ(gl(x,θl,μ)). The posterior distribution of the parameter θl conditioned on μ is
πl(θl∣μ)∝Ll(θl∣μ)πˉl(θl)
πl(θ∣μ)=Zlfl(θ∣μ), where fl(θl∣μ)=Ll(θl∣μ)πˉl(θl) and Zl=∫Θlfldθ. Then we construct the approximate coupling, Πl, as follows
1Although the hyperparameter μ does not enter the forward map explicitly once θ is fixed, we retain the notation g(x,θ,μ) to emphasize that θ is distributed according to a prior parameterized by μ. Thus, conditionally on θ, g(x,θ,μ)=g(x,θ), while the distribution of the network output depends on μ through the prior on θ.
where we choose the joint likelihood, Ll(θl,θl−1∣μ), as the maximum coupling
Ll(θl,θl−1∣μ)=max{Ll(θl∣μ),Ll−1(θl−1∣μ)},
and the coupling of the prior distribution Πˉl is
Πˉl(dθl,dθl−1)=πˉl(dθl)δTl(θl)(dθl−1).
3 Hierarchical Bayesian Estimation of Neural Networks with Trace-Class Priors
In this section, we provide and present our primary contribution, which is our methodology for hierarchical Bayesian estimation of the hyperparameter. This will be based on particle Markov chain Monte Carlo, specifically the particle marginal Metropolis-Hastings method [Chada et al., 2021, Jasra et al., 2018]. We review this method [Jasra et al., 2018] and design it in such a way related to our framework and trace-class neural network priors. Further details of related algorithms are provided in the supplementary material.
3.1 MLPMMH
Now, we embed the MLSMC sampler in Algorithm 3 inside the PMMH method to estimate the marginal likelihood, which gives the multilevel pseudo-marginal Metropolis-Hastings (MLPMMH) method. In the context of Bayesian neural networks, we infer the prior standard-deviation hyperparameters governing the weights and biases of the TNNs model with log-normal priors. Due to the multilevel setup, the joint posterior distribution at each level l is given by
Algorithm 1 MLPMMH for level l [Jasra et al., 2018]
1: Simulate μ0∼π0 and run Algorithm 3 for level l with N and μ0, it outputs (F0,l,θ^0,l).
2: Define p0,lN(μ0)=N1∑i=1NF0,l(θ^0,li,θ^0,l−1i∣μ0) and w0,li=∑i=1NF0,l(θ^0,li,θ^0,l−1i∣μ0)F0,l(θ^0,li,θ^0,l−1i∣μ0).
3: Resample: Select I0,l1∼{w0,l1,...,w0,lN}, and let θ0,l=θ^0,lI0,l1.
4: for k=1,...,Ml do
5: Propose μ^k∼Q(⋅,μk−1). Run Algorithm 3 for level l with N and μ^k, and output {θ^k,li,θ^k,l−1i,fk,li(θ^k,li),fk,l−1i(θ^k,l−1i),Fk,li}i=1N.
6: Define pk,lN(μ^k)=N1∑i=1NFk,l(θ^k,li,θ^k,l−1i∣μ^k) and
12: Define μk,l=μk. Store θk,l,θk,l−1,fl−1(θk,l−1∣μk,l)=πˉl−1(θk,l−1)Ll−1(θk,l−1∣μk,l),
fl(θk,l∣μk,l)=πˉl(θk,l)Ll(θk,l∣μk,l) and Fl(θk,l,θk,l−1∣μk,l).
Parallization. The MLPMMH estimator also admits several levels of parallelization. First, the level-wise PMMH estimators can be run independently for different (l). Second, within each PMMH iteration, the SMC estimator used to estimate the level-dependent normalizing constant can exploit particle-level parallelism. Thus the main available parallelism is across levels and across SMC particles. The PMMH chain itself remains sequential in the iteration index (k), although independent chains or independent repetitions may be run in parallel.
3.2 S-MLPMMH
Inspired by the SBMC framework in Liang et al. [2025], we introduce a practical SBMC-based approximation of MLPMMH designed to reduce its serial computational cost, called S-MLPMMH. The original MLPMMH method uses an outer serial PMMH chain to sample the hyperparameter, and each outer proposal requires running an inner MLSMC estimator. To obtain a scalable practical version, we replace the serial outer PMMH chain with a Laplace-based SBMC approximation to the hyperparameter posterior, centered at an empirical-Bayes MAP estimate. We also replace the inner MLSMC sampler by a MAP-centered SBMC sampler.
Specifically, at each level l, we consider the transformed hyperparameter η=logμ and construct a local Laplace approximation centered at a level-dependent MAP estimate ηl,MAP. The outer hyperparameter samples are independently drawn as
ηk,l∼N(ηl,MAP,Vl,η),μk,l=exp(ηk,l),
for k=1,…,Ml, where Vl,η is obtained from the local curvature of the empirical-Bayes objective.
For each sampled hyperparameter μk,l, we then construct an inner MAP-centered SBMC sampler. In particular, we compute the corresponding MAP estimate θl,MAP and construct a new inner prior centered at this estimate,
π^l=N(θl,MAP,sθμk,l2l).
The MAP estimate is recomputed for each hyperparameter sample μk,l.
This practical version preserves the multilevel correction structure of MLPMMH while reducing both the serial outer cost and the cost of inner sampling. Moreover, due to the parallelizability of the SBMC framework, the outer hyperparameter samples and their corresponding inner SBMC computations can be processed independently and therefore in parallel. Note, however, that S-MLPMMH does not constitute an exact pseudo-marginal sampler for the original joint posterior, and the theoretical results for MLPMMH in Section 4 do not directly apply to this practical approximation. Further details of the empirical-Bayes, Laplace, and MAP-centered SBMC construction are provided in Appendix D.
4 Theoretical results
The short section is devoted to our main theoretical contribution, which is an MSE bound with our MLPMMH result. It is requires several important additional results, which are provided in Appendix E and proven in Appendix H.
4.1 Main results
Theorem 4.1. Let us assume Assumptions E.1, E.3 and E.2 with β>γ. Then, for suitable φ:Θ×S→R, there exists a C<+∞ such that for any ε>0 one can choose (L={Lmin,Lmax},{Ml}l=LminLmax) such that
E[(φ^LMLPMMH−π(φ))2]≤Cε2,
and expected COST(φ^LMLPMMH)≤Cε−2, i.e. the canonical rate. The estimator is defined in equation (3.1).
Proof. The proof sees Appendix H.1.
Whereas, the computational cost of PMMH to achieve the MSE= O(ε2) is O(ε−2−γ/α). It implies that PMMH will often suffer from the curse of dimensionality since the ratio αγ will increase as the dimension becomes high.
5 Numerical Experiments
In this section, we provide numerical experiments through our MLPMMH scheme, using TNN neural networks. We will not only verify our complexity rate (through Theorem 4.1) but also justify the choice of the TNN prior. That will be done by checking its weight decay in the width limit. Experiments will be conducted on a Bayesian regression and MNIST classification problem while providing a comparison with other methods.
5.1 Numerical justification for MLPMMH
5.1.1 Synthetic regression dataset
Generate Ntr=100 data points, yi, followed F.1 at level l=7 using xi=2+0.5⋅νi∈R10, where νi∼N(0,I10) for i=1,…,100. Evaluation is then applied on one fixed test point x=[2,2,…,2]∈R10.
In the section, we numerically verified the rate decay in Assumption E.2 and convergence rate in Theorem 4.1 on the synthetic regression example using the Bayesian TNN model. The number of neural layers is D = 3, the input neural network width is then set to n = 10, and the output neural network width is set to m = 1. The TNN prior uses a rate decay of s = 2, the MCMC process in MLPMMH takes 50 burn-in samples and adaptive step size, and the HMC kernel is applied with 10 mutation steps, one leapfrog step and adaptive step size in the MLSMC. The hyperparameter prior is the LogNormal distribution with the location parameter as -0.125 and scale parameter as 0.5.
A regularity test, similar to MLSMC, is conducted to estimate the decay of bias and variance for normalized estimator differences between levels under the posterior distribution. The results are shown in Figure 7, supporting the decay rate assumed in Assumption E.2 for the convergence analysis. Again, starting from level l = 4, the decay of biases and weights aligns with the expected rate, where the bias decay (weak convergence) is bounded by α=β/2 and the strong convergence rate is β=2s−1=3 with s = 2.
Taking Lmin=4 as the starting level, the convergence test for the MLPMMH is presented in Figure 2, i.e. MSE=O(COST−1). Given a target accuracy level ε, we can follow a similar procedure using the mean and variance decay to compute the maximum level Lmax and the number of samples per level Ml in the MLPMMH as in Section G.1, and set the N=100 samples in the MLSMC for estimating the marginal distribution. The reference solution is computed at accuracy ε=8×10−4 using MLPMMH.
Figure 2: Complexity test for MLPMMH on Bayesian regression model: We use 10 realizations to compute the MSE for each experiment and plot the rate of convergence w.r.t computation costs. The regression coefficient is -0.9.
5.2 Empirical verification of TNN prior structure
To numerically validate the TNN prior, we conduct a series of controlled MAP training experiments on the MNIST dataset.
A key issue in interpreting width-dependent decay is the exchangeability of hidden units. For NoReg and weight-decay, the ordering of hidden units is arbitrary: the same network function can often be represented after permuting the hidden-unit indices. Therefore, a trained network may contain a low-effective-width or compressible structure even if this structure is not aligned with the original width ordering. For this reason we use a rank-wise diagnostic, which sorts learned weight magnitudes and tests whether compressibility is present at all. This informs the width-decay that can be non-intrusively imposed when we break the exchangeability.
We sort the absolute weights in each layer in descending order and plot ∣w∣ against rank on log-log axes, as shown in Figure 3. Since this sorting removes the original width indices, the figure should be interpreted as a compressibility diagnostic rather than as direct evidence of index-wise TNN structure. The NoReg and weight-decay models already show clear decay in sorted weight magnitudes, suggesting that trained neural networks naturally concentrate much of their mass in a relatively small number of effective directions. The width-decay model preserves a comparable leading-rank structure while inducing a stronger decay in the tail, especially in the hidden layers. This suggests that the TNN prior is not imposing an unrelated structure from scratch; rather, it makes an already present compressibility structure explicit and ordered.
Figure 3: Rank-wise decay of learned weight magnitudes for s = 2.0 and σA=σb=1.0. For each layer, the absolute values of the learned weights are sorted in descending order and plotted against rank on log-log axes.
Finally, Table 1 shows that width-decay achieves performance comparable to NoReg and weight-decay for moderate choices of the decay parameter s. In particular, for s≤4, width-decay maintains similar accuracy, NLL, Brier score, and ECE relative to the two baselines. This indicates that introducing the TNN ordering does not substantially compromise predictive performance within a reasonable range of decay strengths. However, very large values such as s = 10.0 lead to numerical instability and poor performance, suggesting that overly aggressive width decay should be avoided. Since the appropriate value of s is problem-dependent, we discuss its practical choice further in the MLPMMH experiments below.
Overall, these experiments suggest that the TNN width-decay structure is empirically compatible with effective neural network training. The rank-wise diagnostic shows that trained networks already exhibit substantial compressibility, while the index-wise diagnostic shows that width-decay turns this compressibility into an ordered, truncation-friendly structure. This provides empirical support for using the TNN prior as a structural prior in the MLPMMH construction.
Method
NoReg
Weight-decay
Width-decay
0.5
1.0
2.0
4.0
10.0
Acc (%)
97.92±0.23
97.73±0.06
97.82±0.14
97.82±0.28
97.65±0.15
97.07±0.13
89.28±1.05
NLL
0.106±0.015
0.110±0.005
0.108±0.005
0.112±0.012
0.105±0.011
0.105±0.005
0.374±0.042
Brier
0.035±0.004
0.038±0.001
0.036±0.002
0.036±0.004
0.038±0.002
0.045±0.002
0.161±0.016
ECE
0.014±0.002
0.015±0.000
0.014±0.001
0.015±0.002
0.015±0.001
0.008±0.001
0.027±0.004
Table 1: Metrics for three methods evaluated on the MNIST dataset: MLE, standard weight decay regularization, and TNN width-decay regularization are used for training on the MNIST training dataset with PyTorch default initialization and testing on the MNIST test dataset. TNN width-decay regularization with fixed σ=1 and varying decay parameter s. Results are averaged over 5 replicates, with error bar given by one standard deviation.
Lmax
Ml
Ttotal (s)
Tparallel (s)
FLOPs (TFLOP)
Acc. (%)
NLL
Brier
ECE
2
[7]
635.08
9.07
0.32
83.51±0.05
0.470±0.000
0.239±0.000
0.023±0.001
3
[13, 5]
1633.67
10.26
1.29
91.71±0.07
0.568±0.005
0.126±0.000
0.020±0.000
4
[30, 13, 5]
4240.72
10.47
4.53
95.34±0.10
0.376±0.002
0.079±0.001
0.024±0.001
5
[77, 33, 14, 6]
11259.92
9.41
14.65
97.06±0.05
0.241±0.001
0.057±0.000
0.035±0.001
6
[200, 87, 37, 16, 7]
29716.96
9.43
44.32
97.33±0.04
0.204±0.003
0.051±0.000
0.035±0.000
7
[527, 229, 99, 43, 18, 8]
79113.25
9.46
129.12
97.54±0.02
0.204±0.003
0.049±0.000
0.036±0.000
Table 2: Metrics for S-MLPMMH on the MNIST dataset: The starting level is K=2. The reported metrics include accuracy, NLL, Brier score, ECE, total wall-clock runtime Ttotal, pseudo-parallel runtime Tparallel, and estimated FLOPs for different choices of Lmax. The QOI is the predictive probability. Results are averaged over 3 replicates, with error bar gives by one standard deviation.
5.3 Practical application of MLPMMH
The original MLPMMH algorithm targets the joint posterior of the hyperparameters and model parameters by combining an outer pseudo-marginal Markov chain with an inner multilevel SMC estimator. Although this provides a principled approach to inference under strong parameter-hyperparameter dependence, it is computationally expensive: each outer proposal requires a complete inner MLSMC run, while the outer Markov chain remains sequential. These features make the method difficult to scale to large datasets and high-dimensional feature spaces. We therefore introduce practical modifications and evaluate the resulting approximation on the full MNIST dataset, using 60000 training and 10000 test images.
5.3.1 Feature matrix from the pre-trained LeNet NN
We first pre-train the full LeNet architecture on the first Ntr MNIST images using plain supervised learning. The network comprises two Conv → ReLU → MaxPool blocks followed by three fully-connected layers, the latter regularized with 50% dropout. All parameters are optimized for 100 epochs with cross-entropy loss and the Adam optimiser (initial learning rate 10−3, halved every 10 epochs). Once training is complete, the parameters in the LeNet NN are fixed, i.e. a frozen LeNet NN. The output of the second MaxPool layer is then flattened into a 256-dimensional feature vector, and these vectors are collected for all Ntr training images. The resulting Ntr×256 matrix of features is the feature matrix used for the subsequent Bayesian analysis.
5.3.2 PCA hierarchy and multilevel coupling
To obtain the TNN-style (isotropic) weight-decay and the nested sequence of models required for the multilevel scheme, we apply Principal Component Analysis (PCA) to the Ntr×256 training-feature matrix and express both training and test features in this basis. At level l, the input layer width is set to n0=2l, i.e. we keep only the first 2l principal components (PCs). Followed the coupling construction introduced above, level l−1 uses the first 2l−1 PCs from the level l, i.e. the fine and coarse likelihoods share their leading coordinates, yielding the strong correlation that drives multilevel variance reduction. The prior, πˉl, for the parameter in single Bayesian logistic-regression layer is the Gaussian prior now, i.e. N(0,σA2Im×n0) and N(0,σb2Im×1) where μ=(σA,σb)=(σ,σ). The hyperparameter prior, π0, is the Log-Normal distribution. In our implementation, we set E[μ]=28/212, Var(μ)=0.25E[μ]2. So, this gives the location parameter as -2.54 and scale parameter as 0.47.
5.3.3 Results
We then apply the practical S-MLPMMH approximation introduced in Section 3.2, using the PCA hierarchy described above to construct the multilevel estimators.
Table 2 reports the results for the practical MLPMMH method as the computational budget increases. In these experiments, Lmax is increased gradually, together with the corresponding number of outer SBMC samples Ml at each level l. The runtime is reported in two forms: the total wall-clock runtime Ttotal and the pseudo-parallel runtime Tparallel. In our implementation, the independent outer SBMC samples could be run in parallel, and the inner SBMC samples within each outer SBMC sample could also be parallelized. Therefore, we estimate the parallel runtime as Tparallel=maxlNMlTl, where Tl denotes the total runtime at level l, N is the number of inner SBMC samples, and Ml is the number of outer SBMC samples at level l. We also report the estimated floating-point cost in TFLOPs.
With dl=2l for l=2,…,7, the level-dependent Bayesian models are relatively small, and the idealized parallel runtime is therefore nearly constant across levels. The estimated FLOPs, however, increase with Lmax, as expected from the theoretical sample allocation. Consequently, this experiment is not well suited to demonstrating level-dependent wall-clock savings, although it illustrates the predictive behaviour of the practical multilevel approximation as the maximum level increases. The ECE remains low for Lmax≤4 but increases from Lmax=5 onward. To investigate this behaviour, we also compute the signed calibration gap, defined as Gap=Ntest1∑i=1Ntest(acci−confi). The gap is consistently positive across the considered values of Lmax, indicating that the model is, on average, under-confident. This suggests conservative uncertainty estimates, which is a positive sign for reliability and robustness.
6 Conclusion
This paper develops and applies a Bayesian method for joint parameter and hyperparameter estimation for neural networks. The methodology builds on multilevel Monte Carlo particle Metropolis methods. and a particular neural network prior. The prior structure is based on a trace-class neural network, which imposes decay in the width direction and enjoys strong convergence. We provide a theoretical complexity result relating MSE to computational cost, along with numerical
2Here 28=256 is the full feature dimension. The choice E[μ]=2/256 uses the He/Kaiming standard-deviation scale as a convenient dimension-dependent reference value.
verification. Numerical experiments were conducted on both a Bayesian linear regression problem and on the MNIST data set for classification. Our results demonstrate the effectiveness of our proposed method, both in terms the model prior and the algorithm used for posterior inference. For the former, we compared our network architecture to that of standard training, and training where there is no regularization. For moderate values of the decay parameter s, width-decay regularization achieves predictive accuracy and NLL comparable to the unregularized and standard weight-decay baselines, whereas excessively strong decay degrades predictive performance. Separately, the synthetic regression experiments support the predicted multilevel regularity and the canonical MSE-cost rate for the proposed MLPMMH method. We also presented an SBMC-based multilevel approximation using frozen LeNet features and a PCA hierarchy. Since this practical variant replaces both the outer PMMH chain and the inner MLSMC sampler, it should be viewed as a scalable approximation rather than a direct verification of the exact MLPMMH.
Acknowledgements
NKC is supported by an EPSRC-UKRI AI for Net Zero Grant: “Enabling CO2 Capture And Storage Projects Using AI”, (grant EP/Y006143/1). NKC is also supported by a City University of Hong Kong Start-up Grant, project number 7200809, and a RGC-ECS Grant, project number 21300826. KJHL and XL gratefully acknowledge the support of IBM and EPSRC in the form of an Industrial Case Doctoral Studentship Award.
References
Devanshu Agrawal, Theodore Papamarkou, and Jacob Hinkle. Wide neural networks with bottle-necks are deep gaussian processes. The Journal of Machine Learning Research, 21(1):7056–7121, 2020.
Christophe Andrieu and Gareth O Roberts. The pseudo-marginal approach for efficient Monte Carlo computations. 2009.
Christophe Andrieu, Arnaud Doucet, and Roman Holenstein. Particle Markov chain Monte Carlo methods. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 72(3):269–342, 2010.
Alexandros Beskos, Ajay Jasra, Kody J. H. Law, Raul Tempone, and Yan Zhou. Multilevel sequential Monte Carlo samplers. Stochastic Processes and their Applications, 127(5):1417–1440, 2017.
Alexandros Beskos, Ajay Jasra, Kody J. H. Law, Youssef Marzouk, and Yan Zhou. Multilevel sequential Monte Carlo with dimension-independent likelihood-informed proposals. SIAM/ASA Journal on Uncertainty Quantification, 6(2):762–786, 2018.
Michael Betancourt and Mark Girolami. Hamiltonian monte carlo for hierarchical models. Current trends in Bayesian methodology with applications, 79(30):2–4, 2015.
Neil K. Chada, Benedict Leimkuhler, Daniel Paulin, and Peter A. Whalley. Unbiased kinetic langevin monte carlo with inexact gradients. arXiv preprint arXiv:2311.05025.
Neil K Chada, Jordan Franks, Ajay Jasra, Kody J Law, and Matti Vihola. Unbiased inference for discretely observed hidden markov model diffusions. SIAM/ASA Journal on Uncertainty Quantification, 9(2):763–787, 2021.
Neil K. Chada, Ajay Jasra, Kody J. H. Law, and Sumeetpal S. Singh. Bayesian deep learning with multilevel trace-class neural networks. SIAM Journal on Mathematics of Data Science, 7(3):1210–1240, 2025.
Youngmin Cho and Lawrence Saul. Kernel methods for deep learning. Advances in neural information processing systems, 22, 2009.
Simon L Cotter, Gareth O Roberts, Andrew M Stuart, and David White. Mcmc methods for functions: modifying old algorithms to make them faster. 2013.
Simon L Cotter, Kody JH Law, Xinzhu Liang, and Shangda Yang. A randomized Multi-index sequential Monte Carlo method. arXiv preprint arXiv:2210.15390, 2022.
Pierre Del Moral, Arnaud Doucet, and Ajay Jasra. Sequential Monte Carlo samplers. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 68(3):411–436, 2006.
Masahiro Fujisawa and Issei Sato. Multilevel Monte Carlo variational inference. J. Mach. Learn. Res., 22:1–44, 2021.
Thomas Gerstner, Bastian Harrach, Daniel Roth, and Martin Simon. Multilevel Monte Carlo learning. Preprint, 2021.
Charles J Geyer. Practical markov chain monte carlo. Statistical science, pages 473–483, 1992.
Mike B. Giles. Multilevel Monte Carlo path simulation. Op. Res., 56:607–617, 2008.
Mike B. Giles. Multilevel Monte Carlo methods. Acta Numerica, 24:259, 2015.
Andrew Golightley and Darren Wilkinson. Bayesian parameter inference for stochastic biochemical network models using particle Markov chain Monte Carlo. Interface Focus, 1:807–820, 2011.
Stefan Heinrich. Multilevel Monte Carlo methods. In International Conference on Large-Scale Scientific Computing, pages 58–67. Springer, 2001.
Ajay Jasra, Kengo Kamatani, Kody JH Law, and Yan Zhou. Multilevel particle filters. SIAM Journal on Numerical Analysis, 55(6):3068–3096, 2017.
Ajay Jasra, Kengo Kamatani, Kody J. H. Law, and Yan Zhou. Bayesian static parameter estimation for partially observed diffusions via multilevel Monte Carlo. SIAM Journal on Scientific Computing, 40(2):A887–A902, 2018.
Kody J. H. Law, Neil Walton, Shangda Yang, and Ajay Jasra. Multi-index Sequential Monte Carlo ratio estimators for bayesian inverse problems. arXiv preprint arXiv:2203.05351, 2022.
Kody JH Law. Proposals which speed up function-space mcmc. Journal of Computational and Applied Mathematics, 262:127–138, 2014.
Jaehoon Lee, Yasaman Bahri, Roman Novak, et al. Deep neural networks as gaussian processes. International Conference on Learning Representations, 2018.
Xinzhu Liang, Joseph M Lukens, Sanjaya Lohani, Brian T Kirby, Thomas A Searles, Xin Qiu, and Kody JH Law. Scalable bayesian monte carlo: fast uncertainty estimation beyond deep ensembles. arXiv preprint arXiv:2505.13585, 2025.
Gabriel Lord, Catherine E. Powell, and Tony Shardlow. An Introduction to Computational Stochastic PDEs. Cambridge Texts in Applied Mathematics, 2014.
Pierre Del Moral, Ajay Jasra, Kody J. H. Law, and Yan Zhou. Multilevel sequential Monte Carlo samplers for normalizing constants. ACM Transactions on Modeling and Computer Simulation (TOMACS), 27(3):1–22, 2017.
Radford M. Neal. Bayesian Learning for Neural Networks. Springer Science & Business Media, 2012.
Radford M Neal et al. Mcmc using hamiltonian dynamics. Handbook of markov chain monte carlo, 2(11):2, 2011.
Kjetil O. Lye, Siddhartha Mishra, and Roberto Molinaro. A multi-level procedure for enhancing accuracy of machine learning algorithms. Euro. Journal of Applied Mathematics, 32(3):436–46, 2021.
Theodore Papamarkou, Jacob Hinkle, Todd Young, and David Womble. Challenges in Markov chain Monte Carlo for bayesian neural networks. Statistical Science, 37(3):435–442, 2022.
Theodore Papamarkou, Maria Skoularidou, Konstantina Palla, Laurence Aitchison, Julyan Arbel, David Dunson, Maurizio Filippone, Vincent Fortuin, Philipp Hennig, José Miguel Hernández-Lobato, Aliaksandr Hubin, Alexander Immer, Theofanis Karaletsos, Mohammad Emtiyaz Khan, Agustinus Kristiadi, Yingzhen Li, Stephan Mandt, Christopher Nemeth, Michael A Osborne, Tim G. J. Rudner, David Rügamer, Yee Whye Teh, Max Welling, Andrew Gordon Wilson, and Ruqi Zhang. Position: Bayesian deep learning is needed in the age of large-scale AI. In Forty-first International Conference on Machine Learning, 2024. URL https://openreview.net/forum?id=PrmxFWI1Fr.
Daniel Paulin, Peter A. Whalley, Neil K. Chada, and Benedict Leimkuhler. Sampling from bayesian neural network posteriors with symmetric minibatch splitting langevin dynamics. Proceedings of The 28th International Conference on Artificial Intelligence and Statistics, PMLR, 258:5014–5022, 2025.
Christian P Robert, George Casella, and George Casella. Monte Carlo statistical methods, volume 2. Springer, 1999.
Torben Sell and Sumeetpal S. Singh. Dimension-robust function space mcmc with neural network priors. Preprint, 2020.
Yuyang Shi and Rob Cornish. On multilevel Monte Carlo unbiased gradient estimation for deep latent variable models. Proceedings of The 24th International Conference on Artificial Intelligence and Statistics, PMLR, 130:3925–3933, 2021.
A Model Formulation
In this section, we present and review our model setup for the paper. This includes a review of our Bayesian posterior distribution of interest, while discussing this in the context of deep neural networks. Related to this, we also discuss our prior, which is based on trace-class neural networks.
A.1 Model Formulation
We now define the deep neural network model as follows. Let D∈N, (n0,...,nD)∈ND+1 with n0=n for the input layer and nD=m with output layer. Let weights be Ad∈Rnd×nd−1 and biases be bd∈Rnd for d∈{1,...,D}, we denote θ:=((A1,b1),...,(AD,bD))∈Θ=⊗d=1D{Rnd×nd−1×Rnd} and μ is the hyperparameter related to θ. The layer is defined by
where σk(z):=(ν(z1),...,ν(zk))T with ReLU activation ν(z)=max{0,z}.
In order to infer the parameter θ and hyperparameter μ, we establish the Bayesian model of the DNNs, which is called Bayesian DNNs. Given a proper prior πˉ on Θ and a prior π0 on μ, the joint posterior distribution of the Bayesian DNNs [Chada et al., 2025, Neal, 2012] can be computed up to a constant of proportionality
π(θ)∝L(θ,μ)πˉ(θ∣μ)π0(μ),(A.1)
where L(θ,μ) is the joint likelihood on Θ×S.
Define the quantity of interest through a map Ψ applied to the output. That is,
φ(x,θ,μ):=(Ψ∘g)(x,θ,μ)=Ψ(g(x,θ,μ)).
We then aim to compute the posterior expectation of the quantity of interest,
π(φ):=Eπ[φ].(A.2)
A.2 Trace-class neural network priors
The neural network priors on θ, the weights and bias, we consider are the trace class neural networks, first proposed by Sell and Singh [2020]. These priors were introduced to mimic Gaussian priors π0∼N(0,C), for function-space inverse problems, where a common way to simulate Gaussian random fields is to use the Karhunen-Loève expansion
θ=j∈Z+∑λjξjΦj,ξj∼N(0,I),(A.3)
where (λj,Φj)j∈Z+ are the associated eigenbasis of the covariance function C, and {ξj}j∈Z+ is Gaussian white noise. For a detail description of the derivation and its application to stochastic numerical problems, we refer the reader to Lord et al. [2014]. An issue that can arise with using (A.3) is that using such priors do not scale well with high-dimensional problems. This acts as the initial motivation for trace-class neural network (TNN) priors, where the work of Sell and Singh [2020] provided a justification for such priors.
The hyperparameters σA,σb,s significantly influence the inductive bias of the prior, and should be tuned for optimal performance. TNN priors are not based on the Gaussian processes, which have been popular in a variety of Bayesian-related tasks. Recent literature has understood GP Neural Networks (GPNNs) in the context of width and depth limits of neural networks [Cho and Saul, 2009, Agrawal et al., 2020, Lee et al., 2018].
Figure 4: Trace class neural network architecture.
B State-of-the-Art Estimation Methods for Bayesian Neural Networks
In the context of the Bayesian neural network with fixed hyperparameters μ and s, the parameter estimation methods introduced here can be utilized for computing the marginal distribution of θ conditional on the hyperparameter μ.
B.1 Sequential Monte Carlo estimator
First, we look at the sequential Monte Carlo (SMC) estimator [Beskos et al., 2018, Del Moral et al., 2006]. Consider the conditioned posterior distribution, π(θ∣μ), in (A.1) with the fixed hyperparameters, we define the target distribution as π(θ∣μ)=f(θ∣μ)/Z, where Z=∫Θf(θ∣μ)dθ and f(θ∣μ):=L(θ∣μ)πˉ(θ). Given a quantity of interest φ:Θ→R, for simplicity, we define
f(φ∣μ):=∫Θφ(θ∣μ)f(θ∣μ)dθ=f(1)π(φ∣μ),
where f(1)=∫Θf(θ∣μ)dθ=Z. So that the conditional target distribution is π(φ)=f(1)f(φ).
Define h1,...,hJ−1 by hj=fj+1/fj, where f1=πˉ,fJ=f=Lπˉ, and define πj=fj/Zj where Zj=∫Θfjdθ. For j=2,...,J, we let fj define in a annealing scheme:
fj=f11−λjfJλj=L(θ)λjπˉ(θ),
where 0=λ1<λ2<⋯<λJ=1 and λj will be chosen adaptively according to the effective sample size (ESS), see Example B.1.
Example B.1 (Adaptive tempering). In order to keep a sufficient diversity of sample population, we let the effective sample size be at least ESSmin=N/2 at each tempering λj−1 and use it to compute the next tempering λj. For jth tempering, we have weight samples {wj−1k,θj−1k}k=1N, then the ESS is computed by
ESS=∑k=1N(wj−1k)21,
where wj−1k=L(θj−1k)λj−λj−1/∑k=1NL(θj−1k)λj−λj−1. Let Δλ=λj−λj−1, the effective sample size can be presented as a function of Δλ, ESS(Δλ). Using suitable root finding method, one can find Δλ∗ such that ESS(Δλ∗)=ESSmin, then set the next tempering λj=λj−1+Δλ∗.
6: Resample: Select Iji∼{wj1,...,wjN} and let \hat{\theta}_j^i = \theta_{j-1}^I_j.
7: Mutate: Draw θji∼Mj(θ^ji,⋅).
8: end for
9: end for
Now let Mj for j=2,…,J be Markov transition kernels such that (πjMj)(dθ)=πj(dθ), analogous to any suitable MCMC kernel [Geyer, 1992, Robert et al., 1999, Cotter et al., 2013, Law, 2014]. This operation must sufficiently decorrelate the samples, and as such, we typically define the MCMC kernels Mj by a suitable number of steps of some basic MCMC kernel, where it may or may not be 1.
One can observe that
πj(hj)=Zj1∫fj(θ)fj+1(θ)fj(θ)dθ=ZjZj+1.
Since we let πJ=π be the target distribution and Z1=1, the normalization constant of π is given by
Z=Z1j=1∏J−1πj(hj)=j=1∏J−1πj(hj).
From Algorithm 2, we can define the following estimators:
Hence, the sequential Monte Carlo estimator for estimating the expectation of the quantity of interest is given by
φ^SMC:=πN(φ)=fN(1)fN(φ).(B.2)
B.2 Novel Multilevel sequential Monte Carlo estimators
Integrating a multilevel scheme into the single SMC estimator further decreases the variance in the estimator, yielding particularly more gains in high-dimensional settings. In this section, we restate three multilevel Monte Carlo methods: MLSMC [Law et al., 2022], randomized MLSMC [Cotter et al., 2022] ratio estimators, and the original serial MLSMC [Chada et al., 2025].
B.2.1 Multilevel Structure
There are two fundamentally different ways used here to couple across levels: the “top-down” construction and the “bottom-up”.
"top-down": one starts with a fine-level sample at level l and then constructs its coarse analogue at level l - 1, typically by truncating parameters in the data, inputs, or network width (as in (randomized) MLSMC estimators).
"bottom-up": one first samples a coarse-level parameter θl−1∈Θl−1, and then extends or propagates it to a fine-level parameter θl∈Θl. This direction is used later for the serial MLSMC estimator.
In what follows, unless otherwise stated, the approximate coupling Πˉl refers to the top-down truncation coupling.
Paralleization. This distinction also affects the available parallelization. In the "top-down" construction in (randomized) MLSMC, the estimators at different levels can be run independently, and within each level the SMC particles can be propagated and evaluated in parallel between resampling steps. By contrast, the "bottom-up" construction in serial MLSMC has a stronger dependence across levels, since the fine-level sample is obtained by propagating information from the previous coarse level. Hence this construction is generally less parallel across levels, although particle-wise operations and independent replications can still be parallelized.
Approximate Coupling. At each level l, we intend to simulate a pair of samples (θli,θl−1i) follows (θli,θl−1i)∼Πl(θl,θl−1∣μ), where Πl(θl,θl−1∣μ) is the exact coupling distribution such that
However, it is not a trivial approach to compute the exact coupling; instead, we introduce the approximate coupling technique. Following the same procedure in rewriting the posterior distribution at the single level in SMC, we have
There are two fundamentally different ways used here to couple across levels. The first runs “top-down”: one starts with a fine-level sample at level l and then constructs its coarse analogue at level l - 1, typically by truncating parameters in the data, inputs, or network width (as in (randomized) MLSMC estimators). The second runs “bottom-up”: one begins with a coarse-level sample at level l - 1 and serially propagates it to level l (as in the serial MLSMC estimator).
Since the data x is the same and the hyperparameters are fixed, we omit the x and μ in the notations below.
B.2.2 Multilevel sequential Monte Carlo estimators
Given a starting level Lmin≥1 and a maximum level Lmax≥Lmin, the approximation of the expectation (A.2) is given by
where θli are i.i.d. samples at each level l, Nl is the number of samples at level l and φLmin−1:=0.
Here, we use the sequential Monte Carlo sampler, stated in Algorithm 2, to sample from the approximate coupling distribution at each level, shown in Algorithm 3. We now define intermediate distributions based on the coupling distribution, Fl, Ll and Πˉl. Define Hl,1,...,Hl,J−1 by Hl,j=Fl,j+1/Fl,j where Fl,j=LlλjΠˉl with 0=λ1<λ2<⋯<λJ=13. And let Ml,j for j=1,...,J be such that (Πl,jMl,j)(dθ)=Πl,j(dθ).
Self-normalized estimator The trivial strategy for constructing the MLSMC estimator is to first normalized itself at each level and then compute the telescope sum. Then, the MLSMC
3Use the same adaptive tempering technique as in the SMC estimator shown in Example B.1
Algorithm 3 Sequential Monte Carlo [Giles, 2008, 2015] sampler for coupled estimation at level l
1: Simulate θl,1i∼πˉl for i=1,…,Nl and set θl−1,1i=Tl(θl,1i).
2: Set Zl,1Nl=1
3: Compute the likelihoods Ll,1(θl,1i),Ll−1,1(θl−1,1i)
4: Store the approximate coupling
Fl,1(θl,1i,θl−1,1i)=Πˉl(θl,1i,θl−1,1i)
5: for j=2,…,J do
6: Store Zl,jNl=Zl,j−1NlNl1∑p=1NlHl,j−1(θl,j−1p)
7: for i=1,…,Nl do
8: Define wl,ji=∑p=1NlHl,j−1(θl,j−1p)Hl,j−1(θl,j−1i)
9: Resample: Select Il,ji∼{wl,j1,…,wl,jNl}, and set θ^l,ji=θl,j−1Il,ji,θ^l−1,ji=θl−1,j−1Il,ji.
10: Mutate: Draw θl,ji∼Ml,j(θ^l,ji,⋅) and set θl−1,ji=Tl(θl,ji).
11: Compute the likelihoods Ll,j(θl,ji) and Ll−1,j(θl−1,ji).
12: Store the approximate coupling
13: where Ll(θl,ji,θl−1,ji)=max{Ll,j(θl,ji),Ll−1,j(θl−1,ji)}
14: end for
15: end for
16: Define θli=θl,Ji,θl−1i=θl−1,Ji. Store fl(θli)=πˉl(θli)Ll,J(θli),fl−1(θl−1i)=πˉl−1(θl−1i)Ll−1,J(θl−1i), and Fl(θli,θl−1i)=Fl,J(θl,Ji,θl−1,Ji).
It is worth noting that when computing the likelihoods in practice, it may occur computationally small number that the computer will recognize as 0. However, the computer can store a much smaller number if one takes the logarithm of it. So, here we store and run with the log-likelihood instead of the likelihood and take the exponential of it when needed. For the small number of IS weights, we work with the log-likelihood for unnormalized weights and modify it with a constant.
The practical settings for the MLSMC estimators are shown in Appendix G.1.
B.2.3 Randomized multilevel sequential Monte Carlo ratio estimator
In randomized method, give a starting level Lmin as before, and instead of giving a maximum level Lmax in advance, we choose the sample of levels randomly from a distribution from numbers larger or equal than Lmin. Let p be a probability measure on P={l∈N:l≥Lmin}, where pl:=p(l). We simulate N i.i.d samples li∼p and define the number of samples at level l by Nl=#{i:li=l} for any l∈P. Then, the posterior is
where Zmin is added here to prevent an unexpected computational small number.
The practical settings for the rMLSMC estimator are shown in Appendix G.2.
B.2.4 Serial multilevel sequential Monte Carlo estimator
Algorithm 4 Serial Sequential Monte Carlo sampler
1: Simulate θ0i∼πˉ0 for i=1,...,N0
2: for l=Lmin,...,Lmax do
3: Give θl−1i for i=1,...,Nl−1 from previous level l−1
4: Simulate only the new/missing dofs for the next level (l) from the prior sample, with θli∣θl−1i∼πˉl for i=1,...,Nl
5: Compute and store the likelihood Ll(θli)
6: for i=1,...,Nl do
7: Define wl,ji=Ll−1(θl−1i)Ll(θli)
8: Resample: Select Ili∼{wl1,...,wlNl}, and let θ^li=θl−1Ili
9: Mutate: Draw θli∼Ml(θ^li,⋅)
10: Compute and store the likelihood Ll(θli)
11: end for
12: end for
The algorithm of the serial multilevel sequential Monte Carlo sampler is shown in Algorithm 4, which is taken from Chada et al. [2025], Beskos et al. [2017, 2018]. This is a serial method in which the sampling in the current level is based on the previous level. Here, give the level parameter L={Lmin,Lmax}, we follow the same path as in MLSMC to generate the intermediate distributions and mutation kernel here.
where φLmin−1:=0. The practical settings follow the same procedure as the MLSMC in Appendix G.1. However, the serial MLSMC is not parallelizable in level-level since its procedure is serial.
C PMMH
Algorithm 5 PMMH at a given state [Andrieu et al., 2010, Andrieu and Roberts, 2009]
1: Given μ,θ and pN(μ)
2: Propose μ∗∼Q(⋅,μ) and sample θ∗∼P(⋅∣μ∗)
3: Simulate u∼U[(0,1)] and compute
α=min{π0(μ)Q(μ∗∣μ)pN(μ)π0(μ∗)Q(μ∣μ∗)pN(μ∗),1}.
4: If u≤α, then (μ,θ,pN(μ))=(μ∗,θ∗,pN(μ∗)); otherwise, (μ,θ,pN(μ))=(μ,θ,pN(μ)).
We first describe the pseudo-marginal Metropolis-Hastings (PMMH) method for inferring the hyperparameter μ. The target posterior distribution of this case is, given data D,
π(μ∣D)∝π(D∣μ)π0(μ),
and one often found the posterior π(μ∣D) might be analytically intractable or too complex to evaluate. The pseudo-marginal method then gives us an approach to computing it on an joint state space Θ×S, in which case we could compute π(μ∣D) by computing the marginal of the joint posterior distribution
π(θ,μ∣D)∝π(D,dθ∣μ)π0(μ)∝f(θ∣μ)π0(μ).
to get the target distribution as follows
π(μ∣D)=∫Θπ(dθ,μ∣D)∝∫Θπ(D,dθ∣μ)π0(μ).
Then, the likelihood p(μ):=π(D∣μ) can be computed by
p(μ)=∫Θπ(D,dθ∣μ)=∫Θf(dθ∣μ).
We often call this likelihood p(μ) the marginal distribution since it computes the marginal of the joint likelihood.
One can then run a SMC sampler with the selection functions hj in each tempering step j=1,…,J−1 to give an unbiased estimator of the marginal distribution
pN(μ)=j=1∏J−1N1i=1∑Nhj(θji∣μ),
i.e. E[pN(μ)]=p(μ), by sampling from the following auxiliary joint, on the space {1,...,N}J×ΘNJ,
Moreover, pN(μ)π0(μ) is an unbiased estimator of the joint distribution π(D,μ) which is proportional to our target distribution π(μ∣D). A general approach of the PMMH is given in Algorithm 5.
In the previous discussions, we fix the hyperparameter's value μ and omit it in the computation. We now expand the hyperparameter μ term in these expressions by writing joint variable φ(x,θ,μ) (or conditional variable φ(x,θ∣μ)) and joint variable π(θ,μ) (or conditional variable π(θ∣μ)). Also, sometimes we omit the term x for symbol simplicity since the data are the same.
D Details of the S-MLPMMH approximation
We provide further details of the empirical-Bayes, Laplace, and MAP-centered SBMC construction used in S-MLPMMH.
Hyperparameter transformation and empirical-Bayes estimate. Consider the transformed hyperparameter variable η=logμ, where μ>0 denotes the standard deviation hyperparameter. We place a Gaussian hyper-prior on the transformed variable η,
η∼N(mη,ση2),
which is equivalent to assigning a log-normal prior to μ. Given the mean and variance of μ, the corresponding Gaussian parameters for η=logμ are
ση2=log(1+E[μ]2Var(μ)),mη=log(E[μ])−21ση2.
At each level l, we first compute an empirical-Bayes MAP estimate of the hyperparameter. For each candidate value of η, with μ=exp(η), we compute a MAP estimate of the model parameters θ conditional on μ. Around this conditional MAP estimate, we approximate the marginal likelihood using a diagonal Laplace approximation. The level-dependent empirical-Bayes objective is then
Jl(η)=logπ^l(D∣μ=exp(η))+logπ0(μ),
where π^l(D∣μ=exp(η)) is the diagonal Laplace approximation of the marginal likelihood at level l, and π0(μ) is the hyper-prior.
The resulting hyperparameter MAP center is
ηl,MAP=argηmaxJl(η),μl,MAP=exp(ηl,MAP).(D.1)
Outer Laplace approximation. After obtaining ηl,MAP, we construct a local Laplace approximation to the hyperparameter posterior centered at ηl,MAP. Specifically, we estimate the local curvature of the empirical-Bayes objective by
Hl,η=−∂η2∂2Jl(η)η=ηl,MAP,
and use the corresponding Laplace variance Vl,η=Hl,η−1. The outer SBMC hyperparameter samples are then independently drawn from
In practice, Hl,η is estimated using a finite-difference approximation of Jl around ηl,MAP.
Inner MAP-centered SBMC approximation. For each sampled hyperparameter μk,l, we then construct an inner MAP-centered SBMC sampler. The original inner prior is
πˉl=N(0,μk,l21).
Conditional on μk,l, we compute the MAP estimator
θl,MAP=argθmaxLl(θl,θ∗l−1)πˉl(θl,θl−1).
The MAP estimate is recomputed for each hyperparameter sample μk,l.
Following the SBMC framework, we then establish a new inner prior centered at the MAP estimate in (??) and shrink its covariance by a tuning parameter sθ. The resulting prior is
πˉ^l=N(θl,MAP,sθμk,l21).
In our numerical experiments, we use sθ=0.1. This MAP-centered construction reduces the cost of the inner sampling stage while retaining the multilevel correction structure across successive levels.
E Theoretical results
In this section, we present our main results related to our proposed methodology, discussed in Section 3. Specifically, we first restate the theoretical results for MLSMC methods, provide a variance bound on the trace-class neural network and a convergence theorem related to our joint posterior distribution of interest is followed by.
We write V=Θ×S with associated σ-algebra as V. Let (W,W) be a measurable space such that V∈W. Let K:W×W→[0,1] be any Markov kernel of invariant measure π such that, for any B⊂V,
∫B×(W\V)π(dw)=Π(B).
E.1 Assumptions
MLMC bound assumptions. The assumption for boundedness of the function fi,j(θ∣μ) is given in Assumption E.1 and for rate decay in parameters required for the application of the MLMC is given in Assumption E.2.
Assumption E.1. Let J∈N be given. For each j∈{0,…,J} there exists some C>0 such that for all (l,θ,μ)∈N×Θ×S
C−1<Zl,fl,j(θ∣μ)≤C.
Assumption E.2. For any φ∈Bb(Θl×Θl−1×S)∩Lip(Θl×Θl−1×S) there exist c1,c2,c3,β,α,γ>0 such that the following holds, under the joint posterior Πl,
Assumption E.2 is related to the standard assumptions required in MLMC, where one has assumptions on the “weak” error where (B) denotes the bias, the “strong” error where (V) denotes the variance and the costs hence (C), where the cost is related to the cost of functional evaluations, and not time taken to complete the experiment. Fix the value of the hyperparameter μ, Assumption E.1 and E.2 falls into the original assumptions needed in MLMC.
PMMH assumption. The assumption for transition in the PMMH is given in Assumption E.3.
Assumption E.3. There exists a ξ∈(0,1) and ν∈P(W) such that, for each w∈W, φ∈Bb(W)∩Lip(W),
∫Wφ(w′)K(w,dw′)≥ξ∫Wφ(v)ν(dv).
The verification of Assumption E.2 and E.3 above are given in Appendix H.5.
E.2 MLSMC results
We restated theoretical results for MLSMC with self-normalized estimator 4, MLSMC with ratio estimator, randomized MLSMC estimator and serial MLSMC estimator, which are shown in Theorem E.1, E.2, E.3 and E.4, respectively.
Theorem E.1. Assume Assumptions E.1 and E.2 with fixed μ and β>γ. Then for any ε>0 and suitable φ:Θ→R, it is possible to choose a level parameter L={Lmin,Lmax}, where Lmin be the starting level and Lmax be the maximum level, such that for some C>0
E[(φLMLSN−π(φ))2]≤Cε2,
and COST(φLMLSN)≤Cε−2, the canonical rate. The estimator φLMLSN is defined in equation (B.3).
Proof. The proof is given in Moral et al. [2017].
Theorem E.2. Assume Assumptions E.1 and E.2 with fixed μ and β>γ. Then for any ε>0 and suitable φ:Θ→R, it is possible to choose a level parameter L={Lmin,Lmax}, where Lmin be the starting level and Lmax be the maximum level, such that for some C>0
E[(φLMLRE−π(φ))2]≤Cε2,
and COST(φLMLRE)≤Cε−2, the canonical rate. The estimator φLMLRE is defined in equation (B.4).
Proof. The proof is given in Law et al. [2022].
Theorem E.3. Assume E.1 and E.2 with fixed μ and β>γ. Then, for suitable φ:Θ→R, give a starting level Lmin, it is possible to choose a probability distribution p on P={l∈N:l≥Lmin} such that for some C>0,
E[(φrML−π(φ))2]≤Cε2,
and expected COST(φrMI)≤Cε−2, i.e. the canonical rate. The estimator φrMI is defined in equation (B.5).
Proof. The proof is given in Cotter et al. [2022].
Theorem E.4. Assume Assumptions E.1 and E.2 with fixed μ and β>γ. Then for any ε>0 and suitable φ:Θ→R, it is possible to choose a level parameter L={Lmin,Lmax}, where Lmin be the starting level and Lmax be the maximum level, such that for some C>0
E[(φLsML−π(φ))2]≤Cε2,
and COST(φLsML)≤Cε−2, the canonical rate. The estimator φLsML is defined in equation (B.6).
Proof. The proof is given in Beskos et al. [2017, 2018].
4It is worth noting that only the ratio estimator has a rigorous theoretical result in the MIMC case (an extension from the MLMC), where the self-normalized does not.
E.3 Trace-class neural network priors
We begin this section by providing a result on the strong convergence, i.e. a bound on the variance related to the TNN prior. In particular, as shown in Chada et al. [2025], for a trace-class neural network prior with smoothness parameter s≥1/2, the truncation error of the network output satisfies the decay rate in (E.1). If the quantity of interest is obtained by applying a Lipschitz map Ψ to the network output, the same rate transfers directly to φl=Ψ∘gl, see the Proposition E.1.
Proposition E.1. Assume that for all z∈R, σ(z)≤∣z∣. Then for s≥1/2, the priors defined as in (2.1) are trace-class. Furthermore, let x∈X and μ∈S, and consider the TNN gl(x,θl,μ) truncated at nl=2l terms, for l∈N, with the limit denoted g(x,θ,μ)=liml→∞gl(x,θl,μ), as described above. Then there are C′(x), C(x)<+∞ such that
Proposition E.2. Assume Assumptions E.1, E.3, E.2. Suppose that {Wi}i is a Markov chain with the Markov kernel K, and W1∼π. Then there exists a β>0 such that for any φ∈Bb(Θ×S)∩Lip(Θ×S) there exists a C>0 such that
where Vk=(θk,l,μ) is the relevant variables of Wk.
Proof. Proof sees the Appendix H.4.
F Additional Numerical Experiments
We begin by presenting a comparative study of several MLSMC methods for approximating the target conditional posterior distribution. Next, we conduct a numerical verification on a synthetic regression benchmark to confirm both the regularity and complexity rate of the MLPMMH method. Furthermore, we justify the TNN architecture on the MNIST subset through controlled MAP training experiments. The COST is measured as the time (arithmetic) complexity, i.e. the number of basic floating-point operations needed in the coupled level.
F.1 Problem setting
In the case that data is defined in continuous space, such as the regression problem, we have Y=Rm, then we can assume the data follows
yi=g(xi,θ,μ)+εi,ε∼i.i.d.Nm(0,Σi),(F.1)
where i={1,...,Ntr} and Nm(0,Σi) is the m-dimensional Gaussian distribution with mean zero and covariance matrix Σi.
Then the likelihood for the regression problem (F.1) can be computed as
L(θ,μ)=i=1∏Ntrϕm(yi;g(xi,θ,μ),Σi),
where ψm(yi;g(xi,θ,μ),Σi) is the m-dimensional Gaussian density of mean g(xi,θ,μ), covariance matrix Σi evaluated at yi.
In the discrete data set, like the classification problem, we have Y={1,...,m}, then we instead define the so-called softmax function as
and define h(x,θ,μ)=(h1(x,θ,μ),...,hm(x,θ,μ)) as a categorical distribution on m outcomes based on data x. Then we assume that yi∼i.i.d.h(xi) for i={1,...,Ntr}.
The likelihood for the classification problem (F.2) can be computed as
L(θ,μ)=i=1∏Ntrk=1∏mhk(xi,θ,μ)1[yi=k],
where 1[yi=k]=1 if yi=k and 0 otherwise.
F.1.1 MNIST dataset
Consider the MNIST handwritten-digit dataset, which contains a total of 60 000 training and 10 000 test images of digits 0–9. Denote the first Ntr images from the training be the train dataset as {(xi,yi)}i=1Ntr⊂R784×{0,…,9} and first Ntest images from test be the test dataset as {(xjtest,yjtest)}j=1Ntest⊂R784×{0,…,9}, with every image vectorised and standardized to lie in [0,1]784.
F.2 Comparison among MLSMC methods
We compare three MLSMC methods on the synthetic regression example using the Bayesian TNN model with fixed hyperparameters μ=(σA,σb)=(1,1). The number of neural layers is D=3, the input neural network width is then set to n=10, and the output neural network width is set to m=1. The TNN prior uses a rate decay of s=2, and the pCN kernel is applied with 10 mutation steps in three MLSMC methods.
A regularity test is conducted to estimate the decay of bias and variance for normalized estimator differences between levels under the posterior distribution. The results are shown in Figure 5, supporting the decay rate assumed in Assumption E.2 with fixed μ for the convergence analysis. Starting from level l=4, the decay of biases and weights aligns with the expected rate. In the MLSMC setting for TNN models, the bias decay is uniformly bounded due to Jensen's inequality, ensuring at least α=β/2, where the strong convergence rate is β=2s−1=3 with s=2. It is important to note that the first level does not need to follow the rate, as it is treated as a single level.
Taking Lmin=3 as the starting level, the convergence test for the three MLSMC methods, (r) MLSMC and serial MLSMC, is presented in Figure 6. Given a target accuracy level ε, the maximum level Lmax and the number of samples per level Nl in both MLSMC and serial MLSMC are followed the computation in Section G.1. For rMLSMC, level indices l and corresponding Nl are selected based on the index probability distribution, as described in Section G.2. The reference solution is computed at accuracy ε=10−4 using MLSMC.
F.3 Numerical justification for MLPMMH
The plots for autocorrelation functions of σA and σb are given in Figure 8, suggesting that a reasonable number of burn-in samples in the MCMC in MLPMMH is 50.
F.4 Empirical verification of TNN prior structure
We use a fully connected neural network (D=3) with input width n=784, the hidden neural network width n1=128 (equivalent to l=7), and the output neural network width m=10. We compare three training regimes:
• NoReg: standard training with no regularization, corresponding to pure data fitting;
• Weight-decay: MAP training with an isotropic Gaussian prior, corresponding to standard L2 regularization;
• Width-decay: MAP training with the TNN-style prior, where weights are regularized ac-
(a)
(b)
Figure 5: Regularity test for different MLSMC on Bayesian regression model with fixed μ: Empirical values for strong and weak convergence parameters in normalized estimator. All plots use 30 realizations with 10000 samples in each index, as the maximum level Lmax=7 and starting level as Lmin=3 at each experiment. (a) Logarithm plot with base 2 for mean of difference and reference line with slope -3/2; (b) Logarithm plot with base 2 for variance of difference and reference line with slope -3.
Figure 6: Complexity test for different MLSMC methods on Bayesian regression model: We use 30 realisations to compute the MSE for each experiment and use the rate of convergence to compare the different methods. Rate of regression: MLSMCSN(red line) is -0.962, MLSMCRE (yellow line) is -0.916, rMLSMC (purple line) is -0.885 and Serial MLSMC (blue line) is -0.870.
cording to their expected variance under the TNN prior. In particular,
Figure 7: Regularity test for MLPMMH on Bayesian regression model: Empirical values for strong and weak convergence parameters in normalized estimator. All plots use 50 realizations with Ml=100 samples in each index, as the maximum level Lmax=8 and starting level as Lmin=1 at each experiment, with 50 burn-in samples. For the MLSMC sampler, N=100 samples are used with an HMC kernel of one leapfrog step and 10 mutation steps. (a) Logarithm plot with base 2 for mean of difference and reference line with slope −3/2; (b) Logarithm plot with base 2 for variance of difference and reference line with slope −3.
where σ=σA for weights and σ=σb for biases.
All models were initialized using the PyTorch default initialization and trained with the same Adam optimiser (lr=10 −3) for 20 epochs 5 for NoReg, Weight-decay, Width-decay respectively.
F.5 Practical application of MLPMMH
We first verified that the PCA decay in the featured matrix of the MINST10 training set follows a similar decay as in the TNN-style weight-decay as in Figure 9. The eigenvalues decay approximately linearly on the log-log scale, with fitted slope -0.615. Interpreting this as a decay of the form j−s/2 gives the empirical value s=1.23.
We then numerically justify the PCA hierarchy in level l with Gaussian prior decays in bias and variance as required in Assumption E.2 for the convergence of MLPMMH, see Figure 10. It shows the decay of the prior predictive increments in bias and variance. For a NN-based experiment, the cost rate γ=1. From the Figure 10, we can observe the variance decay rate β=1.408, which is close to the theoretical value 2s−1. Also note that β>1=γ, hence satisfying all the conditions for the convergence of MLPMMH.
G Practical settings in MLSMC methods
G.1 Multilevel sequential Monte Carlo estimators
First, the empirical value of Lmin is determined by the regularity results, where the B and V needs to decay followed the expected rate in Assumption E.2 with fixed μ for each level Lmin<l≤Lmax. Suppose we know the parameter values and the constants, we can compute the empirical values for
5This is the sufficient number of epochs to ensure convergence and avoid overfit for the model.
(a) l=1: σA (left) and σb (right)
(c) l=3: σA (left) and σb (right)
(e) l=5: σA (left) and σb (right)
(g) l=7: σA (left) and σb (right)
(b) l=2: σA (left) and σb (right)
(d) l=4: σA (left) and σb (right)
(f) l=6: σA (left) and σb (right)
(h) l=8: σA (left) and σb (right)
Figure 8: Autocorrelation functions for σA and σB on Bayesian regression model: All plots use 50 realizations with Ml=200 samples in each index l as the maximum level Lmax=8 and starting level as Lmin=1 at each experiment, with 50 burn-in samples. For the MLSMC sampler, N=100 samples are used with an HMC kernel of one leapfrog step and 10 mutation steps.
Lmax and Ml if we want the MSE to be smaller than ε2, i.e. the variance and the bias terms are all smaller than 2ε2, using the complexity theorem of MLSMC (Theorem E.2):
• The value of Lmax:
If ∣E[φl−φ]∣≤c1hlα and hl=hl, we have the bias term as
Figure 9: PCA featured matrix on the whole MNIST training dataset:
(a)
(b)
Figure 10: Regularity test for MLPMMH on MNIST dataset w.r.t prior: Empirical values for strong and weak convergence parameters under prior distribution π0. All plots use 100 realizations with Ml=100 samples in each index as the maximum level Lmax=8 and starting level as Lmin=0 at each experiment. (a) Logarithm plot with base 2 for mean of difference and reference line with slope -0.690; (b) Logarithm plot with base 2 for variance of difference and reference line with slope -1.408.
From the observed Lmin and estimated Lmax above, we can estimate the number of samples at each level, which is given by
Ml=⌈2ε−2Vl/Cl(l=Lmin∑LmaxVlCl)⌉,(G.3)
to ensure the variance term is smaller than 2ε2, where ⌈⋅⌉ denotes the smallest integer greater than the number inside.
When the Assumption E.2 is not satisfied, it leads to a sub-canonical case, stated in Remark G.1. Moreover, since each level is independent, we can parallelize the algorithm for all the levels to accelerate the sampler.
Remark G.1 (Sub-canonical regime in MLSMC). In the sub-canonical case, where the variance decays more slowly than the cost grows, i.e. β≤γ, the decay rate violates in the Assumption E.2. The MLSMC estimators incur an additional exponent in the ε-COST complexity. Specifically, for level l, if the bias decays like O(2−αl) and the cost grows like O(2γl), then to achieve MSE ≤ε2, one obtains
COST=O(ε−2−(γ−β)/α),
rather than the canonical O(ε−2) when β>γ.
G.2 Randomized multilevel sequential Monte Carlo estimators
Again, the empirical value of Lmin is determined by the regularity results, where the B and V needs to decay followed the expected rate in Assumption E.2 with fixed μ for each level Lmin<l≤Lmax. Proposition 3 in Law et al. [2022] states the requirement of
l∈P∑pl12−lβ≤C(G.4)
to let E[(∑l∈PplNNlFlNl(Δζ)−f(ζ))2] be of O(N−1), so that the convergence rate in Theorem E.3. Additionally, we let the distribution follow from a simple constrained minimization of the expected cost for one sample
l∈P∑pl2lγ≤C.(G.5)
Since pl>0, one finds that
pl∝2−l(γ+β)/2(G.6)
is one suitable choice for probabilities to satisfy the two conditions stated in (G.4) and (G.5). Then define the probability distribution p on P with p(l)=:pl>0. Consider drawing N/Nmin i.i.d. samples li∼p, and define the number of samples Nl=Nmin#i{li=l}. Like in the MLSMC, since each level is independent, we can parallel the algorithm for all the levels to accelerate this sampler as well. It is worth noting that when the Assumption E.2 is not satisfied, it leads to a sub-canonical case like in the MLSMC, stated in Remark G.2.
Remark G.2 (Sub-canonical regime in rMLSMC [Chada et al., 2021]). Similarly, in the randomized MLSMC estimator, even with randomization that eliminates all bias, the fundamental rate-limiting factor remains the mismatch between variance decay and cost growth. Let the sampling probabilities be
pl∝2−βl,
which is the asymptotically optimal “borderline” choice, so that the estimator achieves a sub-canonical rate with a logarithmic penalty:
COST=O(ε−2∣logε∣q),
for any q > 2.
H Proofs of Theoretical results
The proofs of the various results in the paper, along with restatements of the results and verification of the assumptions, are presented here.
H.1 Proof relating to Theorem 4.1
Let us assume Assumptions E.1, E.3 and E.2 with β>γ. Then, for suitable φ:Θ×S→R, there exists a C<+∞ such that for any ε>0 one can choose (L={Lmin,Lmax},{Ml}l=LminLmax) such that
E[(φ^LMLPMMH−π(φ))2]≤Cε2,
and expected COST(φ^LMLPMMH)≤Cε−2, i.e. the canonical rate. The estimator is defined in equation (3.1).
Proof. We first define
ΔΠl(φl):=Πl(Δφl)=Πl(φl−φl−1),
where Πl is the exact coupling. Note that
ΔΠl(φl)=πl(φl)−πl−1(φl−1).
Noting the independence between differences, we derive
In order for us to process, we need to consider three terms, i.e. the bias term, the variance term and the covariance term. We let β=(2s−1). Let us consider first the bias term, where a direct application of Assumption E.2 gives
In order to ensure the MSE is O(ε2), then all three terms in (H.3) need to be O(ε2). Following from the first term in (H.3), it will be satisfied to let L∝2∣log(ε)∣/β. For the second term in (H.3), suppose we minimize total COST = ∑l=0L2−γlMl subject to ∑l=0LMl2−βl=O(ε2), we solve the number of samples at each level M0,M1,...,ML. This gives
Ml∝ε−2KL2−(β+γ)l/2,(H.4)
where KL=∑l=0L2−(β−γ)l/2. This gives the total cost of O(ε−2). Finally, we need to check that the third term is of O(ε2):
Now, we need to prove that all six terms in (H.7) are O(Ml2−βl). By Proposition E.2, the first term is verified directly and the second term is also verified by letting φ==1.
By Assumption E.2 (V) and (B) with α≤β/2, we have
E[(b−d)2]≤CMl2−βl,E[(A−C)2]≤CMl2−βl,
with φ==1 (the same for E[(B−D)2]≤CMl2−βl). Since both
are bounded. Noting that c,C,d,D are not random, and they are all bounded following Assumption E.1. Hence, the last four terms are bounded by O(Ml2−βl).
Assume Assumptions E.1, E.3, E.2. Suppose that {Wi}i is a Markov chain with the Markov kernel K, and W1∼π. Then there exists a β>0 such that for any φ∈Bb(Θ×S)∩Lip(Θ×S) there exists a C>0 such that
Since ∥f∥22=E[(φ~l(Vk)−Π(φ~l))2] and Assumption E.2 (V), we have
∥f∥22=E[(φ~l(Vk)−Π(φ~l))2]≤Vl≤C2−βl.
□
H.5 Verification of Assumptions
We now want to verify Assumption E.3 and Assumption E.2. Let us begin with Assumption E.3. There exists a ξ∈(0,1) and ν∈P(W) such that, for each w∈W, φ∈Bb(W)∩Lip(W),
Applying Proposition E.1 on it and letting α≤(2s−1)/2
≤C2−αl,
where we have assumed that fl(θ∣μ) is Lipschitz w.r.t φl(θ,μ) with Lipschitz constant G, f∞=f and C′=maxθ∈ΘL(θ∣μ). Now, for the variance term, which we denote as Vl, we proceed as follows:
Applying the Proposition E.1 on it and letting β≤2s−1
≤C2−βl.
I Future research directions
For future work, we list several potential projects to consider below.
The examples given in this work were to firstly verify the theory, and also the provide a justification. As we have shown this, it would be of interest to consider more challenging datasets. intensive and high-dimensional examples. Such examples could include bigger datasets such as IMDB or the CIFAR datasets. If dimensionality is a problem, one could exploit PCA.
A useful direction would be to consider the complexity in terms of the depth of a neural network. We have only done this, in terms of the width, motivated by the original paper Sell and Singh [2020]. Doing so would provide a fuller understanding of its impact algorithmically.
• Related to the above point, a natural question is to ask how it would compare to generic state-of-the-art MCMC methods like HMC. This has been answered, in comparison with parallel-SMC, but not in the context of our multilevel trace-class neural network setup. To do so, one could run SMC samplers with Hamiltonch mutations, and thus provide a comparison. This goes beyond this work, and will be done in a future paper.
A final direction would be consider the use of such multilevel-trace class priors in the context of non-fully Bayesian methods. An example of this would be unadjusted Langevin algorithms, which have proven to be successful, which include recent multilevel algorithms Chada et al., Paulin et al. [2025]. This would involve a comparison between SMC/MCMC methodologies, as tested in this work, and ULA-algorithms.