Manuscript Offprint
arXiv:2609.15894Quenched Ensemble Sampling
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
ABSTRACT
Some of the sharpest challenges in sampling from the energy functions of physical systems arise at phase transitions, where the density of states changes abruptly and many sampling algorithms stall. Nested sampling is a particle method that traverses the density of states under a hard energy constraint and is known to be robust to such transitions, but its application in high dimension is limited by the difficulty of sampling under that constraint. In this work we introduce Quenched Ensemble Sampling, which generalises the hard constraint to a family of repulsive potentials at the energy boundary. This preserves the quenched path of monotonically decreasing energy while making the constrained target amenable to scalable gradient-based kernels. We demonstrate on synthetic models of phase transitions that our method estimates the marginal likelihood and draws posterior samples across a first-order transition where popular alternatives such as tempering fail. We apply the procedure to marginal likelihood estimation in Bayesian neural networks, enabling model comparison between network architectures. Finally, in a high-dimensional continuous lattice field theory, we show that this method traverses a first-order transition and estimates the partition function.
1 INTRODUCTION
Estimating the marginal likelihood is a central problem in Bayesian inference, and is particularly challenging for sampling algorithms. The marginal likelihood is defined as the integral, , of a likelihood over a prior on parameters . In Bayesian inference this is the normalising constant of the posterior, and is central to Bayesian model comparison (Llorente et al., 2023). Estimation of this integral is typically performed by introducing a series of interpolating distributions between the prior and posterior, where the integral can then be approximated by a series of ratios of normalising constants along this path. The most common approach is to use a temperature ladder, where the interpolating distributions are proportional to for a discrete schedule of inverse temperatures . This ladder is traversed sequentially in annealed importance sampling (AIS) (Neal, 2001) and sequential Monte Carlo (SMC) (Doucet et al., 2001), or held concurrently as exchanging replicas in parallel tempering (Swendsen & Wang, 1986). This makes the integral numerically tractable, and brings additional benefits for exploring the posterior landscape: at high temperatures the interpolating distributions flatten the energy barriers between modes, allowing transitions that are inaccessible at (Syed et al., 2022).
Complementary to these approaches, it is possible to formulate a vertical path through the density of states, rather than a horizontal path through temperature (Polson & Scott, 2015). This is the basis of nested sampling (Skilling, 2006), which has been applied to a wide range of problems in physics (Pártay et al., 2010; Ashton et al., 2022). This approach writes the marginal likelihood as an integral over the prior volume at monotonically increasing values of the likelihood; we review this construction in detail in Section 2. The path of increasing likelihood is notably robust to first-order phase transitions, allowing the path of distributions to traverse regions of parameter space that hold a vanishing fraction of the prior mass, and which are therefore inaccessible to tempering methods. However, its practical implementation relies on sampling under a hard constraint, which degrades the efficiency of gradient-based MCMC kernels (Kroupa et al., 2025).
In this work we introduce Quenched Ensemble Sampling, a method that preserves the attractive features of the path of increasing likelihood level sets, while incorporating a family of repulsive potentials at the hard constraint that allow the particles to efficiently move in high-dimensional spaces with standard gradient-based MCMC kernels (Fearnhead et al., 2025). This path follows a trajectory of monotonically decreasing energy in an extended state space, which when implemented with an ensemble of particles, allows for a Sequential Monte Carlo sampler to be constructed that is robust to first order phase transitions. We formulate this procedure using motivations from statistical physics, highlighting the importance of this quenched path in the context of sampling from Boltzmann distributions, and demonstrate its performance on a range of problems, including synthetic models of phase transitions, a high-dimensional lattice field theory problem, and marginal likelihood estimation in Bayesian neural networks.
The key contributions of this work are:
• We formulate an adaptive SMC sampler over a quenched family of distributions, and show that a family of repulsive potentials at the energy level defines a soft microcanonical ensemble, admitting gradient-based MCMC mutation kernels.
• We demonstrate that this formulation connects classic nested sampling and tempering, with a family of potentials that interpolates between the two, generalising the nested sampling path to a broader family of distributions that hold a distribution of effective temperatures, rather than a hard constraint or isothermal ensemble (Appendix B).
• We provide a practical implementation that incorporates a well-tuned local gradient-based Metropolis-adjusted Langevin Algorithm (MALA) MCMC kernel (Roberts & Tweedie, 1996) using the particle ensemble, and directly contrast with the tempering path on challenging black box high dimensional inference problems, which are inaccessible to standard nested sampling implementations.
where the Boltzmann factor is the tempered likelihood, with energy , and the prior plays the role of the phase-space measure (Table 1). Samples from constitute the canonical ensemble, and the normalising constant is the partition function, a central quantity in statistical mechanics; at it is the marginal likelihood, whose estimation underpins Bayesian model comparison. In a statistical mechanics context, this integral is often written in terms of the density of states,
the prior mass of configurations (microstates) per unit energy at E—the analogue of the density of microstates, with the prior as the a priori measure—giving
which expresses the partition function as a Laplace transform of the density of states. This is an integral on the energy axis, which motivates the vertical likelihood representation. The insight of nested sampling (Skilling, 2006) lies in defining the cumulative density of states, , the fraction of prior mass at energies below E. Writing for the generalized inverse of the non-decreasing function , and substituting , gives
Table 1: Dictionary between Bayesian inference and statistical mechanics. The prior plays the role of the (usually implicit) a priori phase-space measure, and consequently enters the statistical-mechanics description only through the density of states, which is the prior mass per unit energy rather than a microstate count.
| Bayesian inference | Statistical mechanics |
|---|---|
| Prior dx | Phase-space measure |
| Negative log-likelihood | Energy |
| Tempered likelihood | Boltzmann factor |
| Tempered posterior | Canonical (Boltzmann) distribution |
| Marginal likelihood | Partition function |
| Likelihood level set | Energy level set |
| Prior density of | Density of states |
| Cumulative prior mass (prior volume ) | Cumulative density of states |
This replaces the density of states , which is defined only through infinitesimal energy shells and is therefore challenging to estimate numerically, with its cumulative counterpart , a prior probability that can be estimated directly by sampling. Eq. (4) is the vertical representation of the partition function: all dependence on the -dimensional parameter space is absorbed into the one-dimensional monotone curve , and estimation reduces to resolving this curve at exponentially small values of .
2.1 NESTED SAMPLING AND ITS LIMITATIONS
The nested sampling procedure was proposed by Skilling (2006) as a generic particle method whose central computational requirement is efficient sampling from the constrained prior . In practice, the most common approaches are to use rejection sampling with adaptive proposals (Feroz et al., 2009) in low dimensions and slice sampling (Neal, 2003) as an MCMC mutation kernel that can scale to higher dimensions (Handley et al., 2015; Yallup, 2026). Problem-specific variants have made the method scalable to high dimensions: proximal operators in convex problems (McEwen et al., 2023), cluster moves in Potts models (Murray et al., 2005), and factorized blocked Gibbs samplers for hierarchical models (Yallup et al., 2026). However, as a general-purpose method, it has seen limited application beyond , where slice sampling becomes computationally expensive.
This limitation arises from the hard constraint: away from its boundary, the constrained target inherits the score from the prior, which typically carries no useful information about the energy landscape. The dominant paradigm for extending nested sampling to high dimensions in general problems has been to employ reflective Hamiltonian dynamics (Skilling, 2019; Lemos et al., 2024). However, these methods have been unable to meaningfully change the scaling of the method and have been shown to be biased in high dimensions (Kroupa et al., 2025). Instead of trying to construct an MCMC kernel that can efficiently sample under a hard constraint, we take a different approach and ask if we can soften the hard constraint whilst preserving the properties of the path of monotonically decreasing energy.
The work of Salomone et al. (2025) has addressed the consistency and bias of normalizing constant estimation by framing nested sampling as a Sequential Monte Carlo method. We follow the volume accounting from this work, using incremental importance weights to measure the volume ratio between successive levels rather than assigning it from the order-statistic law of the classic nested sampling algorithm (Chopin & Robert, 2010). For a fixed schedule, this affords the unbiasedness results central to SMC (Del Moral, 2004). We nevertheless retain and recommend an inherently adaptive level schedule. This is both natural for the quenched path with its moving support and immensely practical for phase transitions. As in adaptive SMC more generally, this introduces a finite-particle bias (Beskos et al., 2016). We separate the measured-volume accounting from the effect of adaptation in Appendices C.1 and C.2.
2.2 SCALABLE MCMC KERNELS
Setting aside distributions with hard constraints, there has been substantial progress in the robust implementation of scalable Markov chain Monte Carlo (MCMC) methods (Fearnhead et al., 2025). By incorporating the gradient of the energy function, , these methods can suppress the random-walk behaviour of vanilla MCMC. Under standard assumptions, random-walk methods exhibit scaling (Roberts & Rosenthal, 2016), whereas Hamiltonian Monte Carlo (HMC) (Duane et al., 1987; Neal, 2011) and the Metropolis-adjusted Langevin algorithm (MALA) (Roberts & Tweedie, 1996; Roberts & Rosenthal, 1998) can achieve and scaling, respectively (Roberts & Rosenthal, 2016; Beskos et al., 2013). Incorporating such scalable MCMC kernels into tempered SMC has enabled applications to problems with thousands of dimensions (Buchholz et al., 2021).
This is challenging however for nested sampling, as many recent developments in scalable and efficient MCMC build on these ideas and do not transfer cleanly to hard-constrained targets. Softening the constraint makes innovations in gradient based MCMC kernels such as the Barker proposal MCMC (Livingstone & Zanella, 2022) and isokinetic samplers (Robnik et al., 2023) available to the quenched path. In this work, we use MALA as a proof of principle and develop a recipe for a well-tuned kernel, using the particle ensemble to precondition the proposal and permit efficient application across a variety of problems without hand-tuning. We apply the same kernel within adaptive tempered SMC as a control, providing the key comparison that isolates the effect of the quenched path from that of the MCMC kernel itself.
MALA uses the score of the target density to add a drift term to the standard random-walk Metropolis proposal. The kernel acts on a particle x by proposing a new position according to
where is the step size and is a positive-definite mass matrix, so the proposal covariance is . The proposal is then accepted with probability
where is the proposal density. The step size is typically tuned to achieve an optimal acceptance rate, which is known to be around 0.574 for MALA in high dimensions (Roberts & Rosenthal, 1998).
3 METHOD
Quenching a configuration in molecular simulation commonly refers to rapidly relaxing it towards an energy minimum, typically performed with fast gradient descent methods (Thompson et al., 2022). We present Quenched Ensemble Sampling (QES), a Sequential Monte Carlo sampler that generalises this idea to a population of particles. The population is evolved down a ladder of decreasing energy levels by a combination of reweighting, resampling, and mutation, and the evidence is obtained from the measured level volumes. The resulting sequence of distributions that the particles follow simulates a series of thermodynamic quenches.
3.1 THE SOFTENED LEVEL SET
At a given energy level E, we define a target
where is a fixed parameter, and . The soft microcanonical factor is hence a repulsive potential at the level, so that vanishes continuously at the boundary of its support . Setting recovers the hard constrained prior at energy , which is the target of nested sampling, and can be set arbitrarily large to increase the repulsive force from the boundary. Pragmatically we use for the mobility and efficiency reasons detailed in Appendix B, and find this choice effective for most applications. The support of is still

Figure 1: Illustration of QES against nested sampling, on a one-dimensional asymmetric double well (unit Gaussian prior). Top: the energy landscape U with the level E as a waterline. Middle: the profile of under the two choices of . Bottom: the resulting score of ; for it is a smooth informative gradient throughout the interior of the level set, vanishing only at stationary points of U. The dotted reference is the magnitude of the gradient of U.
confined to the level set , but its boundary is softened such that the score is defined throughout so can inform MCMC dynamics (Figure 1).
This family is the conditional of an exact augmentation at fixed temperature. Fix and consider the joint density on
Integrating out with the substitution gives , so the -marginal of Eq. (8) is exactly the posterior, with the only constant. Its conditionals are
Where E is styled as an auxiliary slice variable. The E conditional also informs the meaning of , is the mean energy headroom, in nats, between the level and a particle's own energy. As this is a scale defined in energy (or log-likelihood) space, we see that picking a fixed is justifiable, and this headroom need not necessarily scale with dimension.
Closely related power-law targets arise in microcanonical Monte Carlo methods (Ray, 1991). In the nested sampling context, Habeck (2015) introduced auxiliary variable “demon” constructions, while Baldock et al. (2017) developed a related total-enthalpy HMC method for atomistic systems. These constructions tie the choice of to the number of degrees of freedom in the augmented system. QES instead fixes independently of both problem and dimension, and measures successive level-volume ratios using SMC importance weights rather than assigning them through nested-sampling order statistics. The inner mutation admits any kernel that can consume the differentiable log density in Eq. (7), allowing flexible implementation of modern gradient-based MCMC methods. This makes the soft microcanonical approach directly applicable to general Bayesian inference problems and, in our experiments, substantially improves upon classical nested sampling.
3.2 PARTITION FUNCTION FROM LEVEL VOLUMES
The cumulative density of states defined by Eq. (2) gives the level volume . This extends naturally to the soft microcanonical family of Eq. (7), whose level volume is
The same Gamma identity used above expresses the evidence as the one-dimensional integral
valid for every .
Consecutive levels are related by the pointwise ratio
Given a weighted particle population targeting , with , the incremental ratio is estimated before mutation by
The same reweighting moves the population to the next target, since
After a resampling or branching step, an MCMC kernel invariant for is applied to rejuvenate the population and move duplicated particles apart. Repeating these steps down the level ladder estimates through a telescoping product of importance-weight averages. This is the standard SMC normalising constant estimator (Doucet et al., 2001), applied here to softened level-set volumes as the path to the marginal likelihood.
3.3 ALGORITHM
With the definitions of the previous sections, we can now compose the complete algorithm. We assume that the reference distribution is easy to sample and that the energy is differentiable. With a target population of particles, the algorithm can be initialised by drawing samples from and setting the initial level to the maximum energy in that population. Although this is a valid starting point, in practice we find it more robust to draw a larger anchor population of, say, 10N samples and choose by bisection until the importance weights have effective sample size (ESS) . The empirical mean of these weights initializes , and their normalized values are resampled to form the -particle working population (Appendix A.1). This protects the initial importance step from extreme weights in the tail of the prior-energy distribution.
Given particles approximately distributed as , we can apply the algorithm described in Algorithm 1 to transition to the next level . The algorithm consists of three main steps: (1) dissecting the current population to choose the next energy level, (2) reweighting and branching the population to account for the new level, and (3) mutating the particles with an MCMC kernel invariant to . The next level is found by bisection until the prospective reweighted population reaches a prescribed effective sample size. Here denotes the complete inner MCMC mutation block: its construction and number of internal steps are unrestricted, provided that it leaves invariant. The process is repeated until the contribution to the marginal likelihood from the active particles becomes negligible compared to the accumulated marginal likelihood, at which point we terminate and compute the final estimate of using quadrature on the ladder of levels.
Choice of mutation kernel. The estimator requires an invariant mutation kernel, where there are a vast array of choices. We employ Metropolis-adjusted Langevin dynamics as detailed in Section 2.2, with a kernel pre-tuning recipe defined in this section. This proves to be a relatively robust choice, and the automated tuning we implement is effective for a variety of problems covered in Section 4, this also defines a strong baseline for tempered SMC which we provide as well in the code implementation. Following the pretuning pattern of Buchholz et al. (2021), we use the accumulated gradient information from the previous level to construct a diagonal preconditioner. Writing this score for the score at particle of the ensemble, we set with
Algorithm 1 One quenched level transition
Require: Weighted ensemble targeting , with
Require: Current level volume and an MCMC kernel that leaves invariant
1: Dissect. Choose by bisection until the ESS of reaches its target.
2: Measure. At the pre-mutation positions, compute and .
3: Reweight. Set for every particle.
4: Branch. Replace each zero-weight particle by a copy of a survivor drawn by weight; assign half the donor weight to each copy.
5: Resample. When required, based on a second ESS threshold, resample the ensemble and reset all .
6: Mutate. Apply independently to every particle.
Ensure: , , and
where averages over mutation steps and the weighted ensemble, and the scale is the ensemble median of each walker's step-averaged norm. This is a natural choice: the anisotropy is the direction normalised Fisher information metric of the target, frozen across the mutation chain (Girolami & Calderhead, 2011). Rather than using the mean of the score norm as a scale we use the median since the additional boundary proximity term that appears in this particular score can diverge for particles near the boundary, and the median is robust to this. The step size is adapted across levels by constant-gain stochastic approximation (Robbins & Monro, 1951), driving the acceptance rate observed at the previous level towards 0.574, the gain is held constant rather than decayed, since moves at every level and the optimal step size drifts with it.
Two properties of Eq. (15) are important for embedding in a particle method. First, the metric is read from the score rather than from the spread of the particles. The particle cloud covariance, the nested sampling default (Yallup et al., 2026), estimates the extent of the ensemble. On a multimodal target that extent is the separation between modes rather than the width of any one of them, so the metric degrades on the type of problem that particle methods are commonly invoked on. Using the averaged local score of Eq. (15) composes only the local property of the target, so is well defined even on massively multimodal targets such as Bayesian neural networks. Second, neither M nor changes while the mutation kernel is applied to the level set. Both are constants of a level, set from the ensemble at the level above, maintaining the required invariance for an unbiased estimator. The measured acceptance stays in the range 0.53–0.57 throughout Section 4.
The adaptive schedule. Choosing from the current population makes the schedule adaptive, and adaptive schedules cost exact unbiasedness. The estimator stays consistent, but no longer holds at finite . This is a property of adaptive SMC generally, and of nested sampling in particular, whose energy threshold is likewise read off the current particles—Salomone et al. (2025) show that the fixed-threshold form of nested sampling is unbiased while the adaptive form is only consistent. The nature of the moving maximum is that progressing to pushes the target fraction of the population out of the support of , this form of progression naturally benefits from an adaptive schedule. If too large a jump is taken in tempering the population collapses to a single particle, in the case of nested sampling it could cause all particles to be outside the support of the next target, and the algorithm would fail. Hence, initially running with an adaptive schedule is a practical necessity, and we find that it does not introduce a significant bias in practice; its finite-particle consequence is detailed in Appendix C.2. Due to the length of the ladder of energy levels that naturally emerges on the quenched path, we hold a second ESS target for resampling the full population weights, which we implement using systematic resampling. As detailed in Appendix C.4, this allows many energy levels to be crossed without resampling, which at the cadence of the quenched path is often unnecessary and can be detrimental to population diversity.
Termination. Unlike SMC, where the invariant target is the canonical ensemble, quenched sampling would theoretically continue quenching until the energy of each particle is at the global minimum. One can either truncate at a chosen energy level, or use the standard criterion of Skilling (2006), estimating the remaining integral mass from , where is the current lowest particle energy, and stopping when this estimate falls below times the accumulated integral.
We adopt dlogz = -3 as a default, which is standard for typical Bayesian posterior targets (Handley et al., 2015). For targets with a first-order transition, the threshold must be deepened so that termination occurs beyond the transition rather than in the broad phase, as detailed in Appendix A.2. Finally Eq. (11) can be evaluated by quadrature on the ladder of quenched transitions. Equally weighted posterior draws can be obtained from the augmentation in Eq. (8) by sampling a level with probability proportional to , then subsequently sampling a particle from that level's cloud. The full weighted-pool construction is detailed in Appendix C.3.
4 EXPERIMENTS
We demonstrate the method on three sets of experiments.
(i) Analytic targets, including a Gaussian with no transition and a spike–slab mixture with a first-order transition, to test scalability and accuracy against exact results (Section 4.1).
(ii) Bayesian neural network inference and model comparison on UCI classification benchmarks (Section 4.2).
(iii) A lattice field theory with a first-order transition, to test traversal of a discontinuous phase transition at scale in a physical model (Section 4.3).
Across the examples we primarily compare against tempered SMC using the same inner kernel and tuning. For the BNN tasks we also compare against scalable MCMC methods, including NUTS (Hoffman & Gelman, 2014) and MCLMC (Robnik et al., 2023), and on the analytic targets we include a gradient-free nested sampling baseline (Yallup, 2026). Experimental configurations are detailed in Appendix A.2. All experiments are implemented in JAX (Bradbury et al., 2018) using blackjax (Cabezas et al., 2024) and run on a Google Cloud (2024) TPU v6e (Trillium) accelerator. All sampling uses single precision float32 numerics, enabling efficient computation on a variety of accelerator backends.
4.1 ANALYTIC TARGETS
We summarize QES against tempered SMC using the same inner MCMC kernel, and against classic nested sampling using slice sampling, in Table 2. All three methods use particles or live points. QES and tempered SMC choose their next level at a target ESS of 0.95. Their MALA mutation budget is steps per level, rounded up to the next power of two; nested sampling instead uses 2D slice steps per replacement. In QES, full resampling is triggered separately when the carried-weight ESS falls below 0.5N, as motivated in Appendix C.4.
The Gaussian target combines a unit Gaussian prior with a narrower likelihood, , and tests scaling over . QES remains accurate well beyond the range reached by the nested sampling baseline, although a small sub-nat residual bias emerges at . We attribute this to the increased length of the QES path along with the accumulated finite-N effects, as detailed in Appendix C. Even at , the baseline nested sampling implementation shows some emerging bias, which is due primarily to imperfect mixing of the slice kernel at this scale and fixed mutation budget. Tempered SMC is more accurate at , as expected on this unimodal target. At fixed target ESS, the number of quenched levels grows linearly with dimension, compared with for tempering, so QES requires more gradient evaluations. However, the number of quenched levels carrying appreciable posterior weight grows as , while it remains roughly constant for tempering. From onward on this benchmark, the larger QES pool outweighs the longer path and gives a higher pooled Kish ESS per gradient evaluation (Appendix C.3).
Quenching distinguishes itself from tempering on the spike–slab benchmark: a diffuse Gaussian slab and a narrow spike at the origin, scaled so that the spike carries 90% of the posterior mass. This provides a controlled first-order transition. Reaching the spike requires a deeper termination threshold for QES and nested sampling. Across the tested dimensions and ESS schedules, tempered SMC remains approximately 2.3 nats low, whereas the QES estimates are consistent with the analytic value within the seed variation. The large nominal SMC Kish ESS on these runs measures weight concentration within the sampled phase and does not certify convergence of the path.
Table 2: The analytic test problems (target definitions in Appendix A.3): evidence bias against the exact log and pooled Kish ESS per gradient evaluations. Gaussian evidence errors use ten seeds; the ESS values and remaining results use three. The bimodal test problem tests against mode occupancy, the diagnostic that detects mode loss. The ESS convention is one Kish calculation after pooling the full per-particle weight vectors from every rung, as defined in Appendix C.3, divided by that run's own gradient count. NS uses slice sampling and counts likelihood evaluations as opposed to gradients, dashes mark cells not run due to computational cost. Tempering is consistent with the analytic value where there is no transition and 2.3 nats low wherever there is one, while matching QES on mode balance. QES starts to exhibit a residual bias on the Gaussian at .
| target | ESS per gradients | ||||||
|---|---|---|---|---|---|---|---|
| QES | SMC | NS | QES | SMC | NS | ||
| Gaussian | 10 | 21519 | 26507 | 126 | |||
| 100 | 13384 | 7933 | 2.47 | ||||
| 1000 | — | 2972 | 1228 | — | |||
| 10000 | — | 266 | 101 | — | |||
| spike-slab | 10 | 6564 | 48393 | 19 | |||
| 50 | 3707 | 26233 | 0.94 | ||||
| 200 | — | 2698 | 13168 | — | |||
| 500 | — | 702 | 3957 | — | |||
| mode occupancy (true 0.5) | ESS per gradients | ||||||
| QES | SMC | NS | QES | SMC | NS | ||
| bimodal | 10 | 4494 | 7080 | 7.77 | |||
| 50 | 2679 | 2916 | 0.46 | ||||
| 100 | — | 2044 | 1984 | — | |||
| 200 | — | 1479 | 1448 | — | |||


Figure 2: Cost and accuracy order the three methods oppositely. Left: evaluations to convergence against dimension on the Gaussian, each method run to its own criterion at , with a fitted power law evals = . The cost exponents are for tempered SMC, 1.21 for QES and 1.75 for nested sampling. Right: evidence bias on a shared symmetric axis, Gaussian and spike-slab. Nested sampling counts likelihood evaluations, the other two count gradients, so cost is not exactly comparable.
Finally, we test a strongly anisotropic bimodal mixture whose coordinate standard deviations range from to 1. The modes are not traversed by a local chain within the tested mutation budget, so the particle population must preserve both. Because losing one symmetric mode leaves the marginal likelihood unchanged, we instead report mode occupancy, whose exact value is 0.5. Both QES and tempered SMC recover the balance on average (Appendix C.4), and their pooled Kish ESS per gradient becomes comparable as the dimension grows.

Figure 3: Posterior reconstruction on the spike–slab target against closed form. Top: marginal in the first coordinate on a logarithmic density axis, so the slab—which carries 10% of the evidence but is ten times wider—is visible beside the spike. Bottom: radial density, where the two phases are disjoint shells at and the coexistence gap is explicit, empty to within sampling noise over four decades and widening with dimension. The spike is slightly under-weighted at the largest two dimensions, although the corresponding evidence estimates remain consistent with the analytic values within the seed variation.
4.2 BAYESIAN NEURAL NETWORKS
A Bayesian treatment of neural networks places a prior on the weights and biases of a network and attempts to sample from the posterior distribution of these parameters given a training dataset (Izmailov et al., 2021). As well as being highly multimodal, high dimensional and having challenging posterior geometry to sample from, it is understood that the training of networks can exhibit phase transition properties (Montanari & Zhong, 2022; Power et al., 2022). We consider this task a demonstration of three facets of the method: the ability to competitively scale to (small) neural network scale problems with other state-of-the-art samplers, the ability to return a marginal likelihood estimate for model comparison, and the ability to scan for phase transitions in the posterior landscape.
We take benchmark neural network fitting tasks from Sommer et al. (2024): five classification datasets from the UCI repository (Kelly et al.). Each task is fit with a fully connected tanh network, giving between 528 and 1280 parameters depending on the input data dimension. We place independent standard normal priors on the network parameters and scale each layer's weight contribution by , where is the number of input connections to each neuron, this ensures effective weights have variance . We use a fixed 90–10 train–test split, fit a full batch, and report efficiency as ESS per million gradient evaluations and predictive accuracy as the posterior-predictive mixture NLL as defined in Appendix A.3.
QES and tempered SMC are matched using the same population of 1000 particles, the same inner kernel and preconditioner, 96 inner MCMC steps per level, a target ESS of 0.9, and a convergence criterion of dlogz = -3 for QES. We additionally compare against ensembles of NUTS chains (Hoffman & Gelman, 2014) and MCLMC chains (Robnik et al., 2023), using standard window adaptation for NUTS and the MCLMC tuning procedure of Sommer et al. (2024) (with the deep ensemble initialisation omitted). We use 1000 chains to match the particle methods' parallel ensemble size, and normalize efficiency by each method's actual number of gradient evaluations, including warmup and tuning. The full chain budgets and ESS conventions are given in the table caption and Appendix A.2, where we note that strict comparison between particle methods and chains is difficult due to difference in implementation. As summarized in Table 3, all methods give very similar predictive NLL, with MCLMC trailing slightly on two of the five tasks, while NUTS is the most efficient under the tested budgets. At comparable predictive accuracy, QES returns between 1.4 and 2.0 times the pooled Kish ESS per gradient of tempered SMC across the five tasks, while successfully exploring these BNN posteriors from prior initialization.
Table 3: Posterior comparison on UCI classification tasks, each metric is averaged across three seeds. Performance is measured by the posterior-predictive NLL on a held out test set, and the efficiency is measured by the ESS per million gradient evaluations, including warmup and tuning. For each particle run, one Kish calculation pools the per-particle weights from every rung of the ladder. The chain methods get the rank-normalised bulk ESS of Vehtari et al. (2021) over all 1000 chains jointly, which is not strictly comparable to the pooled Kish ESS but can be used as a qualitative comparison. Corresponding model comparison results are given in Table 4.
| D | test NLL | ESS per gradients | |||||||
|---|---|---|---|---|---|---|---|---|---|
| QES | SMC | NUTS | MCLMC | QES | SMC | NUTS | MCLMC | ||
| sonar | 1280 | ||||||||
| glass | 528 | ||||||||
| heart | 528 | ||||||||
| australian | 544 | ||||||||
| wine | 560 | ||||||||
Secondly we use the derived marginal likelihood estimates to compare the choice of activation function on the same networks. In this setting we introduce an additional approximate baseline, we construct a Laplace approximation from a MAP estimate found by Adam (Kingma & Ba, 2015), using a generalised Gauss–Newton curvature (Duffield et al., 2024). We report the resulting Bayes factors, as well as the implications for which fit is preferred in Table 4. We find that a Laplace approximation gives a poor estimate and picks inconsistent activations, whereas both particle methods are in close agreement on all datasets. This agreement validates that it is possible to use the marginal likelihood estimates from QES for model comparison in Bayesian neural networks at this scale.
Lastly, we search for phase transitions in the full batch likelihood. For this we extend the convergence criterion from dlogz = -3 to the deeper values used in the spike-slab experiments, and reconstruct the level marginal —the integrand of Eq. (11), read directly off the quenched ladder. In terms of the free-energy profile , a first-order transition appears as two peaks in separated by a valley of suppressed interfacial states (Lee & Kosterlitz, 1991); the barrier is the depth of that valley below the lower peak, in nats. By Eq. (8), with independent slack , so is the posterior energy distribution under a fixed smoothing of width nats—invisible to extensive first-order structure, but blurring features narrower than a few nats. Bimodality in therefore identifies a phase transition, and a barrier growing with system size, as on the left, identifies it as first order. Figure 4 shows this profile for the five classification tasks against the spike-slab target of Section 4.1 at comparable dimensionality. Both panels use intensive energy axes so that curves of different size share a scale: the spike-slab energy is a sum over the D dimensions and is plotted per dimension, while the network energy is a sum over the n training points and is plotted per datapoint, centred on its peak, since the raw spans differ by nearly an order of magnitude across datasets. The network posteriors show no evidence for a phase transition on these architectures and tasks. Studying these phenomena empirically in finite-width networks on real data remains an open question, and quenched sampling provides a unique tool for this investigation.
4.3 LATTICE : A FIRST-ORDER TRANSITION
Finally, we consider the lattice model, a two-dimensional scalar field theory with a first-order transition on a continuous state space (Makhankov, 1990; Sanati & Saxena, 1999). The field is defined on a periodic lattice, with . We use the exactly samplable free field at reference mass as the prior , and define the remaining interaction action—the energy function passed to the sampler—as
where runs over the lattice sites, so the posterior is . With and , the on-site potential has a pair of minima that exchange stability with the one at the origin discontinuously, giving a first-order transition rather than the second-order one of ordinary . Mean field puts coexistence at ; at , , , the located coexistence point is
Table 4: Model comparison on the UCI classification tasks, fixed network dimensions comparing tanh against ReLU activations. is computed over three repeated seeds and used to compare the two activations where shading marks the selected model. QES and tempered SMC agree on every dataset and their Bayes factors agree to within 0.6 nats; every factor is resolved (the smallest lies 3.5 seed standard deviations from zero) while on glass, sonar and winered the test NLL weakly favours the activation the evidence rejects. The Laplace–GGN approximation reports factors two to four times larger and selects the opposite activation on some tasks.
| D | test NLL | log BF | ||||||
|---|---|---|---|---|---|---|---|---|
| QES | SMC | Laplace | QES | SMC | Laplace | |||
| glass | tanh | 528 | ||||||
| ReLU | ||||||||
| heart | tanh | 528 | ||||||
| ReLU | ||||||||
| sonar | tanh | 1280 | ||||||
| ReLU | ||||||||
| australian | tanh | 544 | ||||||
| ReLU | ||||||||
| winered | tanh | 560 | ||||||
| ReLU | ||||||||

Figure 4: Scan for phase transitions in the level marginal , the integrand of Eq. (11), read from a single ladder per curve. Left: the spike–slab posteriors of Section 4.1 are bimodal with a free-energy barrier that grows extensively with dimension — a first-order transition. Right: the UCI classification posteriors at comparable dimension show no evidence of first-order phase structure at the resolution probed, across a deep energy range. The energy axis is made intensive, by dimensionality for the spike–slab and by training set size for the networks, with the network profiles additionally centred on the posterior modal energy so that they occupy a similar range.
(Appendix A.3), and the uniform-field barrier separating the phases is 0.463 per site, i.e. 741 nats.
We report two order parameters: , which identifies the parity symmetry sector, and , which distinguishes the phases, with . We classify configurations using the mean-field cut ; at coexistence the two phases carry equal probability. Both tempering and quenching use 8000 particles, 64 inner MCMC steps, and a target ESS of 0.95.

Figure 5: Lattice at coexistence, , , , . Top: representative configurations on one shared symmetric scale; the barrier panel is a retained ladder state at , as well as a sample from both ordered and disordered phases. Bottom: order parameters, unsmoothed histograms. QES resolves all three branches and both phases; tempered SMC, at matched population and mutation budget, occupies only the disordered one, and a single preconditioned HMC chain from a prior draw remains in the disordered phase and never leaves it.
Table 5: Lattice at coexistence, (), . Both methods use particles, 64 inner steps and the same preconditioned MALA kernel; the adaptive runs target an ESS of 0.95. SMC is shown at two further adaptive schedules and at 10,000 equally spaced temperatures. Results are averaged over 3 seeds. The QES seeds agree to 0.01 nats in , and is the only method to resolve both ordered and disordered phases.
| schedule | levels | ordered share | ||||
|---|---|---|---|---|---|---|
| QES | 0.95 | 11502 ±372 | -53.76 ±0.01 | 0.543 ±0.009 | 0.733 ±0.011 | 1.112 ±0.015 |
| tempered SMC | 0.95 | 20 | -54.54 | 0.000 | 0.027 | 0.184 |
| 0.99 | 44 | -54.54 | 0.000 | 0.028 | 0.184 | |
| 0.999 | 137 | -54.54 | 0.000 | 0.028 | 0.184 | |
| fixed | 10,000 | -54.54 | 0.000 | 0.028 | 0.184 |
The QES ladder resolves both phases, with an ordered share of over three seeds against the coexistence value of 0.5. Tempered SMC does not enter the ordered phase in any tested run, even when its target ESS is increased to 0.999, and a long preconditioned HMC chain (window-adapted NUTS, Appendix A.2) remains in the disordered phase. Among the methods tested, only QES resolves both phases. Doing so requires a termination threshold deep enough to span the energy barrier and therefore carries a substantial computational cost. Aside from tempering, a popular approach to this type of problem is to try and flatten the density of states and sample from , adaptively approaching this by constructing a flat binning in energy (Wang & Landau, 2001). Efficient implementation of this approach is challenging in discrete systems (Dayal et al., 2004), and in continuous systems such as the lattice model constructing the optimal binning is non-trivial. We leave a comparison to this approach to future work, however we note that classic nested sampling resembles an optimal choice of binning in energy, discovered on the fly (Pártay et al., 2010), and QES inherits this property.
5 CONCLUSION
In this work, we isolated the most attractive feature of the classical nested sampling algorithm for estimating marginal likelihoods: the quenched path of monotonically decreasing energy. Rather than trying to construct an MCMC mutation kernel that can efficiently follow this path in high dimensions, which is notoriously challenging, we demonstrate that the hard energy constraint can be replaced with a family of soft microcanonical potentials that preserves the quenched path while admitting efficient use of standard gradient-based mutation kernels. The resulting Quenched Ensemble Sampling method is a sequential Monte Carlo algorithm that performs at scale and is robust to first-order phase transitions, where tempering is not. In thermodynamic terms, the method is simulated quenching where tempering is simulated annealing, and the ability to follow this path of distributions at scale is unique.
Beyond Bayesian inference, estimating partition functions and free energies is a central problem in computational physics and chemistry. Flat-histogram methods, which explore the free-energy landscape by constructing an approximately uniform representation in energy, are widely used for this purpose (Witman et al., 2018). Nested sampling provides a related construction in which the energy levels adapt automatically and optimally to the enclosed prior volume, establishing the quenched path as a natural, and scalable, way to resolve the free-energy landscape.
ACKNOWLEDGEMENTS
The author thanks Will Handley and Mike Hobson for extended discussions on nested sampling that shaped the foundations of this work. This work was supported by a Google Research Grant, and with computational support from the Google TPU Builders program. This work was supported by the UKRI Frontier Research Guarantee [EP/X035344/1].
REPRODUCIBILITY STATEMENT
The code developed for this work is available at https://github.com/yallup/quenched_sampling
AI USAGE STATEMENT
The research code for this work was developed with the assistance of Claude (Fable 5), and was verified by the author against the closed-form analytic benchmarks reported in the paper. Generative AI tools (GPT 5.6 and Claude Fable) were used to edit and improve text originally written by the author, and to assist with running experiments and figure preparation. Generative AI was not used for research ideation or for interpreting the results. The author has reviewed all AI-assisted work and takes responsibility for the final content of this work, including text, claims or artifacts produced with the aid of generative AI.
REFERENCES
William Steinbrunn Andras Janosi. Heart Disease, 1989. URL https://archive.ics.uci.edu/dataset/45.
Greg Ashton, Noam Bernstein, Johannes Buchner, Xi Chen, Gábor Csányi, Andrew Fowlie, Farhan Feroz, Matthew Griffiths, Will Handley, Michael Habeck, Edward Higson, Michael Hobson, Anthony Lasenby, David Parkinson, Livia B. Pártay, Matthew Pitkin, Doris Schneider, Joshua S. Speagle, Leah South, John Veitch, Philipp Wacker, David J. Wales, and David Yallup. Nested sampling for physical scientists. Nat Rev Methods Primers, 2(1):39, May 2022. ISSN 2662-8449. doi: 10.1038/s43586-022-00121-x. URL https://www.nature.com/articles/s43586-022-00121-x.
B. German. Glass Identification, 1987. URL https://archive.ics.uci.edu/dataset/42.
Robert J. N. Baldock, Noam Bernstein, K. Michael Salerno, Livia B. Pártay, and Gábor Csányi. Constant-pressure nested sampling with atomistic dynamics. Phys. Rev. E, 96(4):043311, October
- doi: 10.1103/PhysRevE.96.043311. URL https://link.aps.org/doi/10.1103/PhysRevE.96.043311.
Alexandros Beskos, Natesh Pillai, Gareth Roberts, Jesus-Maria Sanz-Serna, and Andrew Stuart. Optimal tuning of the hybrid Monte Carlo algorithm. Bernoulli, 19(5A):1501–1534, 2013. ISSN 1350-7265. URL https://www.jstor.org/stable/42919328.
Alexandros Beskos, Ajay Jasra, Nikolas Kantas, and Alexandre Thiery. On the Convergence of Adaptive Sequential Monte Carlo Methods. The Annals of Applied Probability, 26(2):1111–1146, 2016. ISSN 1050-5164. URL https://www.jstor.org/stable/43859623.
James Bradbury, Roy Frostig, Peter Hawkins, Matthew James Johnson, Chris Leary, Dougal Maclaurin, George Necula, Adam Paszke, Jake VanderPlas, Skye Wanderman-Milne, and Qiao Zhang. JAX: composable transformations of Python+NumPy programs, 2018. URL http://github.com/google/jax.
Alexander Buchholz, Nicolas Chopin, and Pierre E Jacob. Adaptive tuning of hamiltonian monte carlo within sequential monte carlo. Bayesian Analysis, 16(3):745–771, 2021.
Alberto Cabezas, Adrien Corenflos, Junpeng Lao, Rémi Louf, Antoine Carnec, Kaustubh Chaudhari, Reuben Cohn-Gordon, Jeremie Coullon, Wei Deng, Sam Duffield, Gerardo Durán-Martín, Marcin Elantkowski, Dan Foreman-Mackey, Michele Gregori, Carlos Iguaran, Ravin Kumar, Martin Lysy, Kevin Murphy, Juan Camilo Orduz, Karm Patel, Xi Wang, and Rob Zinkov. Black-JAX: Composable Bayesian inference in JAX, 2024. URL https://arxiv.org/abs/2402.10797.
Nicolas Chopin and Christian P. Robert. Properties of nested sampling. Biometrika, 97(3):741–755, 2010. ISSN 0006-3444. URL https://www.jstor.org/stable/25734120.
P. Dayal, S. Trebst, S. Wessel, D. Würtz, M. Troyer, S. Sabhapandit, and S. N. Coppersmith. Performance Limitations of Flat-Histogram Methods. Phys. Rev. Lett., 92(9):097201, March 2004. doi: 10.1103/PhysRevLett.92.097201. URL https://link.aps.org/doi/10.1103/PhysRevLett.92.097201.
Pierre Del Moral. Feynman-Kac Formulae. Probability and its Applications. Springer, New York, NY, 2004. ISBN 978-1-4419-1902-1 978-1-4684-9393-1. doi: 10.1007/978-1-4684-9393-1. URL http://link.springer.com/10.1007/978-1-4684-9393-1.
Arnaud Doucet, Nando de Freitas, and Neil Gordon. An Introduction to Sequential Monte Carlo Methods. In Arnaud Doucet, Nando de Freitas, and Neil Gordon (eds.), Sequential Monte Carlo Methods in Practice, pp. 3–14. Springer, New York, NY, 2001. ISBN 978-1-4757-3437-9. doi: 10.1007/978-1-4757-3437-9_1. URL https://doi.org/10.1007/978-1-4757-3437-9_1.
S. Duane, A. D. Kennedy, B. J. Pendleton, and D. Roweth. Hybrid Monte Carlo. Phys. Lett. B, 195: 216–222, 1987. doi: 10.1016/0370-2693(87)91197-X.
Samuel Duffield, Kaelan Donatella, Johnathan Chiu, Phoebe Klett, and Daniel Simpson. Scalable Bayesian Learning with posteriors. arXiv preprint arXiv:2406.00104, 2024.
Paul Fearnhead, Christopher Nemeth, Chris J. Oates, and Chris Sherlock. Scalable Monte Carlo for Bayesian Learning. Institute of Mathematical Statistics Monographs. Cambridge University Press, Cambridge, 2025. ISBN 978-1-009-28844-6. doi: 10.1017/9781009288460. URL https://www.cambridge.org/core/books/scalable-monte-carlo-for-bayesian-learning/7FDC9891DDA086B85AD8AB386F6F3BD3.
F. Feroz, M. P. Hobson, and M. Bridges. MultiNest: an efficient and robust Bayesian inference tool for cosmology and particle physics. Mon. Not. Roy. Astron. Soc., 398:1601–1614, 2009. doi:10.1111/j.1365-2966.2009.14548.x.
E Fong and C C Holmes. On the marginal likelihood and cross-validation. Biometrika, 107(2):489–496, June 2020. ISSN 0006-3444. doi: 10.1093/biomet/asz077. URL https://doi.org/10.1093/biomet/asz077.
Mark Girolami and Ben Calderhead. Riemann manifold Langevin and Hamiltonian Monte Carlo methods. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 73(2):123–214, 2011. ISSN 1467-9868. doi: 10.1111/j.1467-9868.2010.00765.x. URL https://onlinelibrary.wiley.com/doi/abs/10.1111/j.1467-9868.2010.00765.x.
Google Cloud. TPU v6e (Trillium), 2024. URL https://docs.cloud.google.com/tpu/docs/v6e.
Michael Habeck. Nested sampling with demons. AIP Conf. Proc., 1641(1):121–129, January 2015. ISSN 0094-243X. doi: 10.1063/1.4905971. URL https://doi.org/10.1063/1.4905971.
W. J. Handley, M. P. Hobson, and A. N. Lasenby. polychord: next-generation nested sampling. Mon. Not. Roy. Astron. Soc., 453(4):4385–4399, 2015. doi: 10.1093/mnras/stv1911.
Matthew Hoffman and Andrew Gelman. The No-U-turn sampler: adaptively setting path lengths in Hamiltonian Monte Carlo. J. Mach. Learn. Res., 15(1):1593–1623, January 2014. ISSN 1532-4435. URL https://dl.acm.org/doi/10.5555/2627435.2638586.
Pavel Izmailov, Sharad Vikram, Matthew D. Hoffman, and Andrew Gordon Gordon Wilson. What Are Bayesian Neural Network Posteriors Really Like? In Proceedings of the 38th International Conference on Machine Learning, pp. 4629–4640. PMLR, July 2021. URL https://proceedings.mlr.press/v139/izmailov21a.html.
Markelle Kelly, Rachel Longjohn, and Kolby Nottingham. The UCI Machine Learning Repository. URL https://archive.ics.uci.edu. Published: UCI Machine Learning Repository.
Diederik P. Kingma and Jimmy Ba. Adam: A Method for Stochastic Optimization. In International Conference on Learning Representations (ICLR), 2015. URL https://arxiv.org/abs/1412.6980.
Namu Kroupa, Gábor Csányi, and Will Handley. Resonances in reflective Hamiltonian Monte Carlo. Phys. Rev. E, 111(4):045308, April 2025. doi: 10.1103/PhysRevE.111.045308. URL https://link.aps.org/doi/10.1103/PhysRevE.111.045308.
Jooyoung Lee and J. M. Kosterlitz. Finite-size scaling and Monte Carlo simulations of first-order phase transitions. Phys. Rev. B, 43(4):3265–3277, February 1991. doi: 10.1103/PhysRevB.43.3265. URL https://link.aps.org/doi/10.1103/PhysRevB.43.3265.
Pablo Lemos, Nikolay Malkin, Will Handley, Yoshua Bengio, Yashar Hezaveh, and Laurence Perreault-Levasseur. Improving Gradient-Guided Nested Sampling for Posterior Inference. In Proceedings of the 41st International Conference on Machine Learning, pp. 27230–27253. PMLR, July 2024. URL https://proceedings.mlr.press/v235/lemos24a.html.
Samuel Livingstone and Giacomo Zanella. The Barker proposal: Combining robustness and efficiency in gradient-based MCMC. J R Stat Soc Series B Stat Methodol, 84(2):496–523, April 2022. ISSN 1369-7412. doi: 10.1111/rssb.12482. URL https://pmc.ncbi.nlm.nih.gov/articles/PMC9303935/.
Fernando Llorente, Luca Martino, David Delgado, and Javier Lopez-Santiago. Marginal likelihood computation for model selection and hypothesis testing: an extensive review. SIAM Rev., 65(1):3–58, February 2023. ISSN 0036-1445, 1095-7200. doi: 10.1137/20M1310849. URL http://arxiv.org/abs/2005.08334.
Vladimir G. Makhankov. Theory and Bose Drops. In Vladimir G. Makhankov (ed.), Soliton Phenomenology, pp. 211–221. Springer Netherlands, Dordrecht, 1990. ISBN 978-94-009-2217-4. doi: 10.1007/978-94-009-2217-4_8. URL https://doi.org/10.1007/978-94-009-2217-4_8.
Jason D. McEwen, Tobías I. Liaudat, Matthew A. Price, Xiaohao Cai, and Marcelo Pereyra. Proximal Nested Sampling with Data-Driven Priors for Physical Scientists. Physical Sciences Forum, 9(1):13, 2023. ISSN 2673-9984. doi: 10.3390/psf2023009013. URL https://www.mdpi.com/2673-9984/9/1/13.
Andrea Montanari and Yiqiao Zhong. The interpolation phase transition in neural networks: Memorization and generalization under lazy training. The Annals of Statistics, 50(5):2816–2847, October 2022. ISSN 0090-5364, 2168-8966. doi: 10.1214/22-AOS2211. URL https://projecteuclid.org/journals/annals-of-statistics/volume-50/issue-5/The-interpolation-phase-transition-in-neural-networks--Memorization-and/10.1214/22-AOS2211.full.
Pierre Del Moral, Arnaud Doucet, and Ajay Jasra. On adaptive resampling strategies for sequential Monte Carlo methods. Bernoulli, 18(1), February 2012. ISSN 1350-7265. doi: 10.3150/10-BEJ335. URL http://arxiv.org/abs/1203.0464.
Iain Murray, David MacKay, Zoubin Ghahramani, and John Skilling. Nested sampling for Potts models. In Advances in Neural Information Processing Systems, volume 18. MIT Press, 2005. URL https://proceedings.neurips.cc/paper/2005/hash/9dc372713683fd865d366d5d9ee810ba-Abstract.html.
Radford M. Neal. Annealed importance sampling. Statistics and Computing, 11(2):125–139, April 2001. ISSN 1573-1375. doi: 10.1023/A:1008923215028. URL https://doi.org/10.1023/A:1008923215028.
Radford M. Neal. Slice sampling. The Annals of Statistics, 31(3):705–767, June 2003. ISSN 0090-5364, 2168-8966. doi: 10.1214/aos/1056562461. URL https://projecteuclid.org/journals/annals-of-statistics/volume-31/issue-3/Slice-sampling/10.1214/aos/1056562461.full.
Radford M. Neal. MCMC using Hamiltonian dynamics. May 2011. doi: 10.1201/b10905. URL http://arxiv.org/abs/1206.1901.
Christopher Nemeth and Paul Fearnhead. Stochastic gradient markov chain monte carlo. Journal of the American Statistical Association, 116(533):433–450, 2021.
A. Cerdeira Paulo Cortez. Wine Quality, 2009. URL https://archive.ics.uci.edu/dataset/186.
Nicholas G. Polson and James G. Scott. Vertical-likelihood Monte Carlo, June 2015. URL http://arxiv.org/abs/1409.3601.
Alethea Power, Yuri Burda, Harri Edwards, Igor Babuschkin, and Vedant Misra. Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasets. CoRR, abs/2201.02177, 2022. URL https://arxiv.org/abs/2201.02177. arXiv: 2201.02177.
Lívia B. Pártay, Albert P. Bartók, and Gábor Csányi. Efficient Sampling of Atomic Configurational Spaces. J. Phys. Chem. B, 114(32):10502–10512, August 2010. ISSN 1520-6106. doi: 10.1021/jp1012973. URL https://dx.doi.org/10.1021/jp1012973.
Ross Quinlan. Statlog (Australian Credit Approval), 1987. URL https://archive.ics.uci.edu/dataset/143.
John R. Ray. Microcanonical ensemble Monte Carlo method. Phys. Rev. A, 44(6):4061–4064, September 1991. doi: 10.1103/PhysRevA.44.4061. URL https://link.aps.org/doi/10.1103/PhysRevA.44.4061.
Herbert Robbins and Sutton Monro. A Stochastic Approximation Method. The Annals of Mathematical Statistics, 22(3):400–407, September 1951. ISSN 0003-4851, 2168-8990. doi:10.1214/aoms/1177729586. URL https://projecteuclid.org/journals/annals-of-mathematical-statistics/volume-22/issue-3/A-Stochastic-Approximation-Method/10.1214/aoms/1177729586.full.
Gareth O. Roberts and Jeffrey S. Rosenthal. Optimal scaling of discrete approximations to Langevin diffusions. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 60(1):255–268, 1998. ISSN 1467-9868. doi: 10.1111/1467-9868.00123. URL https://online.library.wiley.com/doi/abs/10.1111/1467-9868.00123.
Gareth O. Roberts and Jeffrey S. Rosenthal. Complexity bounds for Markov chain Monte Carlo algorithms via diffusion limits. Journal of Applied Probability, 53(2):410–420, June 2016. ISSN 0021-9002, 1475-6072. doi: 10.1017/jpr.2016.9. URL https://www.cambridge.org/core/journals/journal-of-applied-probability/article/abs/complexity-bounds-for-markov-chain-monte-carlo-algorithms-via-diffusion-limits/AE8D620D7114F27ED889705735C162D7.
Gareth O. Roberts and Richard L. Tweedie. Exponential convergence of Langevin distributions and their discrete approximations. Bernoulli, 2(4):341–363, December 1996. ISSN 1350-7265. URL https://projecteuclid.org/journals/bernoulli/volume-2/issue-4/Exponential-convergence-of-Langevin-distributions-and-their-discrete-approximations/bj/1178291835.full.
Jakob Robnik, G. Bruno De Luca, Eva Silverstein, and Uroš Seljak. Microcanonical Hamiltonian Monte Carlo. Journal of Machine Learning Research, 24(311):1–34, 2023. ISSN 1533-7928. URL http://jmlr.org/papers/v24/22-1450.html.
Robert Salomone, Leah F South, Christopher Drovandi, Dirk P Kroese, and Adam M Johansen. Unbiased and consistent nested sampling via sequential Monte Carlo. J. R. Stat. Soc. Ser. B. Stat. Methodol., 87(4):1221–1238, September 2025. ISSN 1369-7412. doi: 10.1093/jrsssb/qkaf015. URL https://doi.org/10.1093/jrsssb/qkaf015.
M. Sanati and A. Saxena. Half-kink lattice solution of the phi**6 model. J. Phys. A, 32:4311–4320, 1999. doi: 10.1088/0305-4470/32/23/309.
John Skilling. Nested sampling for general Bayesian computation. Bayesian Analysis, 1(4):833–859, December 2006. ISSN 1936-0975, 1931-6690. doi: 10.1214/06-BA127. URL https://projecteuclid.org/journals/bayesian-analysis/volume-1/issue-4/Nested-sampling-for-general-Bayesian-computation/10.1214/06-BA127.full.
John Skilling. Galilean and Hamiltonian Monte Carlo. Proceedings, 33(1):19, 2019. ISSN 2504-3900. doi: 10.3390/proceedings2019033019. URL https://www.mdpi.com/2504-3900/33/1/19.
Emanuel Sommer, Jakob Robnik, Giorgi Nozadze, Uros Seljak, and David Rügamer. Microcanonical Langevin Ensembles: Advancing the Sampling of Bayesian Neural Networks. October 2024. URL https://openreview.net/forum?id=QMtrW8Ej98.
Robert H. Swendsen and Jian-Sheng Wang. Replica Monte Carlo Simulation of Spin-Glasses. Phys. Rev. Lett., 57(21):2607–2609, November 1986. doi: 10.1103/PhysRevLett.57.2607. URL https://link.aps.org/doi/10.1103/PhysRevLett.57.2607.
Saifuddin Syed, Alexandre Bouchard-Côté, George Deligiannidis, and Arnaud Doucet. Non-Reversible Parallel Tempering: a Scalable Highly Parallel MCMC Scheme. Journal of the Royal Statistical Society Series B: Statistical Methodology, 84(2):321–350, April 2022. ISSN 1369-7412, 1467-9868. doi: 10.1111/rssb.12464. URL http://arxiv.org/abs/1905.02939.
R. Gorman Terry Sejnowski. Connectionist Bench (Sonar, Mines vs. Rocks), 1988. URL https://archive.ics.uci.edu/dataset/151.
Aidan P. Thompson, H. Metin Aktulga, Richard Berger, Dan S. Bolintineanu, W. Michael Brown, Paul S. Crozier, Pieter J. in 't Veld, Axel Kohlmeyer, Stan G. Moore, Trung Dac Nguyen, Ray Shan, Mark J. Stevens, Julien Tranchida, Christian Trott, and Steven J. Plimpton. LAMMPS - a flexible simulation tool for particle-based materials modeling at the atomic, meso, and continuum scales. Computer Physics Communications, 271:108171, February 2022. ISSN 0010-4655. doi:10.1016/j.cpc.2021.108171. URL https://www.sciencedirect.com/science/article/pii/S0010465521002836.
Aki Vehtari, Andrew Gelman, Daniel Simpson, Bob Carpenter, and Paul-Christian Bürkner. Rank-normalization, folding, and localization: An improved for assessing convergence of MCMC (with discussion). Bayesian Analysis, 16(2):667–718, 2021. doi: 10.1214/20-BA1221.
Fugao Wang and D. P. Landau. An efficient, multiple range random walk algorithm to calculate the density of states. Phys. Rev. Lett., 86(10):2050–2053, March 2001. ISSN 0031-9007, 1079-7114. doi: 10.1103/PhysRevLett.86.2050. URL http://arxiv.org/abs/cond-mat/0011174.
Max Welling and Yee Whye Teh. Bayesian learning via stochastic gradient langevin dynamics. In Proceedings of the 28th International Conference on International Conference on Machine Learning, ICML'11, pp. 681–688, Madison, WI, USA, June 2011. Omnipress. ISBN 978-1-4503-0619-5.
Florian Wenzel, Kevin Roth, Bastiaan Veeling, Jakub Swiatkowski, Linh Tran, Stephan Mandt, Jasper Snoek, Tim Salimans, Rodolphe Jenatton, and Sebastian Nowozin. How Good is the Bayes Posterior in Deep Neural Networks Really? In Proceedings of the 37th International Conference on Machine Learning, pp. 10248–10259. PMLR, November 2020. URL https://proceedings.mlr.press/v119/wenzel20a.html.
Matthew Witman, Nathan Mahynski, and Berend Smit. Flat-histogram Monte Carlo as an Efficient Tool to Evaluate Adsorption Processes Involving Rigid and Deformable Molecules. The Journal of Chemical Physics, October 2018. URL https://www.nist.gov/publications/flat-histogram-monte-carlo-efficient-tool-evaluate-adsorption-processes-involving-rigid. Company: Matthew Witman, Nathan Mahynski, Berend Smit Distributor: Matthew Witman, Nathan Mahynski, Berend Smit Institution: Matthew Witman, Nathan Mahynski, Berend Smit Label: Matthew Witman, Nathan Mahynski, Berend Smit Last Modified: 2021-10-12T11:10-04:00.
David Yallup. Nested Sampling with Slice-within-Gibbs: Efficient Evidence Calculation for Hierarchical Bayesian Models, February 2026. URL http://arxiv.org/abs/2602.17414.
David Yallup, Namu Kroupa, and Will Handley. Nested Slice Sampling: Vectorized Nested Sampling for GPU-Accelerated Inference. Transactions on Machine Learning Research, pp. arXiv:2601.23252, 2026. ISSN 2835-8856. doi: 10.48550/arXiv.2601.23252. URL https://openreview.net/forum?id=5mF2eRl3gt.
A ADDITIONAL EXPERIMENTAL DETAILS
A.1 IMPORTANCE-SAMPLING INITIALIZATION
Both QES and tempered SMC may be initialized by an initial sampling step from the prior. For QES, we draw an anchor population of independent samples and choose the initial energy threshold by bisection until the weights have ESS . Their empirical mean initializes the level volume,
and their normalized values define an importance-sampling approximation to , from which the working population is resampled. This stabilizes the initial importance step and prevents isolated outlying density evaluations from determining the initialization.
Levels above may be estimated from the same prior draws and included in the evidence quadrature. Tempered SMC can use the same construction by replacing with the importance ratio from the prior to its chosen first tempered target.
A.2 SAMPLER CONFIGURATIONS
The configurations below are grouped by experiment because the population size, target ESS and mutation budget are selected at the scale of each problem. Within an experiment, QES and tempered SMC use the same population, diagonally preconditioned MALA kernel, mutation budget and target ESS; only the sequence of intermediate distributions differs. This ensures the experiments have a strong control that can isolate the effect of the quenched path. Unless stated otherwise, reported values are averaged over three independent sampler seeds. QES uses softness throughout, and triggers full resampling when the lineage-grouped ESS falls below 0.5N (Appendix C.4). The diagonal preconditioner and scalar step size are estimated from the preceding population and then held fixed during each level's mutation, with the MALA acceptance rate targeted at 0.574.
Analytic targets. All methods use particles. QES and tempered SMC choose successive levels at a default target ESS of 0.95. The mutation budget follows , the rate at which a random walk crosses a D-dimensional shell, rounded up to a power of two so that ladder cost stays predictable and floored at the value calibrated on the smallest targets,
MALA steps per level. Over the suite this takes four values: 16 for , 32 at and 1000, 64 at , and 128 at and . The Gaussian run terminates at . For the spike–slab and bimodal targets, the threshold is deepened to , where is the dimensionality of the target, this ensures that termination occurs beyond the transition rather than in the broad phase. Whilst this seems like a problem-specific tuning, it is in reality a general requirement for any sampler to reach the low-energy phase of a first-order transition. When scanning for phase change behavior in e.g. Section 4.2, the depth can be set arbitrarily low. On physical targets, the depth required can often be motivated from ground state energy estimates. As such is more of a rule to match the efficiency of tempering on standard Bayesian posterior targets, rather than a sensitive tuning parameter, and in practice quenching can continue until all particles are at the ground state, although this would be inefficient for many problems.
The nested sampling baseline uses 1000 particles, removes 10% of the live set per iteration, and applies 2D slice-sampling steps per replacement. Its cost is reported in likelihood evaluations rather than gradients; consequently, only scaling exponents, not absolute intercepts, are compared across that boundary.
Bayesian neural networks. QES and tempered SMC use , target ESS 0.90, and 96 MALA steps per level, with three sampler seeds for each fixed data split. NUTS uses 1000 independent chains initialized from the prior, 250 window-adaptation steps, and 1000 retained transitions. MCLMC follows the tuning procedure of Sommer et al. (2024), using 1000 prior-initialized chains, 2000 tuning steps, and sampling steps. The deep ensemble optimizer initialisation is omitted as we are interested in purely sampling performance. MCLMC traces are thinned by a factor of ten only when computing the rank-normalized ESS; all simulated steps remain included in the gradient count. The Laplace–GGN baseline uses a MAP estimate obtained with full-batch Adam steps at learning rate , followed by a generalized Gauss–Newton approximation. This positive-semidefinite curvature is preferable to the raw Hessian for the non-convex network posterior.
Lattice field theory. At the coexistence point, QES and tempered SMC use , target ESS 0.95, and 64 MALA steps per level. The termination threshold is chosen to extend the quenched ladder beyond the approximately 741-nat uniform-field barrier. Tempered SMC is additionally run at target ESS 0.99 and 0.999 to test whether schedule refinement recovers the ordered phase. The single-chain control uses window-adapted NUTS with 500 warmup steps and 2000 retained states from a prior draw.
All samplers are implemented in JAX and BlackJAX and run in float32 on a single TPU v6e. Reported gradient totals include adaptation and tuning; nested sampling instead counts every likelihood evaluation.
A.3 PROBLEM DEFINITIONS
Analytic targets. All three targets use the standard Gaussian prior and a Gaussian-mixture likelihood, so their evidence and posterior moments are available in closed form. The Gaussian and spike–slab targets share the form
Writing , their evidence and posterior component weights are
Conditional on component , the posterior is . This gives an exact reference for both the evidence and posterior marginals.
Gaussian a single isotropic component over all coordinates. This smooth, unimodal target provides a scaling control without a phase transition.
Spike-slab a broad component and a narrow component . The narrow component's height is chosen so that it carries 90% of the evidence at every . The posterior phases occupy disjoint radial shells, producing a controlled first-order transition whose depth grows with dimension.
Bimodal two equal-height anisotropic components centered at , with coordinate widths logarithmically spaced from to 1. The posterior modes are related by symmetry and therefore each carry exactly half of the evidence, making mode occupancy an exact diagnostic of population balance.
For the first two targets, depends on only through , with under the prior. Their softened level volume therefore reduces to the one-dimensional integral
where solves . Numerical quadrature of this expression provides an independent reference for the level-volume estimate at every rung, not only for the final Z.
Bayesian neural networks. The UCI classification tasks use fully connected networks with two hidden layers of width 16. Unless an activation comparison is stated explicitly, the activation is tanh. Every parameter has an independent standard normal prior; each layer's weight contribution is scaled by in the forward pass and hidden-layer biases are scaled by 0.1. Thus the effective weights have variance while the sampler retains isotropic standard-normal coordinates. Inputs are standardized using training-set statistics from a fixed 90–10 split. Classification uses a categorical likelihood on the network logits ,
where is the number of classes. Reported test negative log-likelihoods are the posterior-predictive mixture, evaluated over posterior draws and the held out test set of size ,
The datasets chosen correspond to the Red Wine Quality (Paulo Cortez, 2009), Heart Disease (Andras Janosi, 1989), Australian Credit Approval (Quinlan, 1987), Sonar (Terry Sejnowski, 1988) and Glass identification (B. German, 1987) tasks from the UCI repository. These are small classification tasks, with a mixture of continuous and discrete inputs from input dimension 9-60, and a mixture of binary and multi-class outputs. The dataset sizes range from 208-1599, generally small enough to allow for rapid experimentation with a full batch likelihood. Scaling to datasets with larger number of inputs typically requires employing Stochastic Gradient MCMC techniques (Nemeth & Fearnhead, 2021) such as SGLD (Welling & Teh, 2011). How well these approaches perform relative to full-batch methods is an open question (Wenzel et al., 2020), and employing a quenched path in a mini-batch likelihood settings is conceptually challenging. Comparison of marginal likelihood between full-batch quenched path estimation and exhaustive leave n-out cross-validation would be an interesting future direction (Fong & Holmes, 2020).
Lattice field theory. The lattice target is the periodic scalar field defined in Eq. (16), with an exactly sampled Gaussian free-field prior at . We set , , and use the finite-volume coexistence point , located by bracketing pilot QES ladders at on equal phase weight; the equal-weight points measured this way at drift with the expected multiplicity correction, extrapolating to . Both particle methods include the exact transformation as an invariant move, removing sign switching as a confound. The phase coordinate is invariant under this move, so crossing between the ordered and disordered phases must still be achieved by the sampling path.
B MOBILITY IN THE SOFT MICROCANONICAL FAMILY
The exponent controls the strength at which the barrier repulsion appears. As illustrated in Figure 6, the effective gradient of the boundary term becomes a pronounced steep force close to the boundary, a valid concern is then how mobile a particle can be in practice under this force. Writing the slack from the boundary as , the contribution of the soft constraint to the score is
As , the target approaches the hard indicator used by nested sampling. At the opposite extreme, setting and letting gives , so a joint scaling of level and softness recovers the canonical ensemble at inverse temperature : the family interpolates exactly between the nested-sampling constraint and tempering. We aim to motivate the specific choice as a compromise between the two extremes.
Firstly, we note that the choice has a useful boundary interpretation. Let denote the local slope of the density of states. When is approximately linear over the typical slack, and hence
The variance is finite for , making the smallest integer for which both the mean and variance of the boundary contribution are finite. At the same time, the target density vanishes quadratically at , replacing the hard wall by a continuously differentiable turning surface. Whilst there may be stronger arguments for other values of , we primarily motivate the choice empirically, using the spike–slab target to illustrate the trade-off between bias and cost.
Selecting the softness. We sweep on the spike–slab target, where a genuine first-order transition makes excessive departure from the nested sampling limit to tempering directly observable. All other settings are held fixed, and each point is repeated over three seeds.

Figure 6: Softness sweep on the spike–slab target at , with three seeds per point and the default circled. Left: evidence bias; the dashed line marks the deficit of tempered SMC, corresponding to loss of the spike carrying 90% of the evidence. Right: total gradient evaluations. Small approaches the hard-constraint limit and lengthens the ladder, whereas large lowers the cost but becomes tempering-like and misses the spike.
The accurate region is broad: every point in is consistent with the analytic evidence within the seed variation. At the hard end, the gradient cost increases by a factor of 3.6 between and , and the estimate at is nats low. Above , the bias moves steadily toward the tempered-SMC deficit, reaching nats at . The default is consequently near the least expensive edge of the accurate region while remaining separated from the tempering-like regime. Together with the finite score variance in Eq. (24), this gives a single choice that requires no target-specific adjustment in our experiments.
Mobility near the boundary. We measure actual particle movement on the isotropic Gaussian, defining a proposal as near the boundary when its slack is below one fifth of the mean slack at that level. With , only of proposals fall in this region. Their move rate is lower than in the bulk, but remains substantial: at it is 0.289, compared with 0.598 in the full population. The two-dimensional case is the least mobile, and the near-boundary to overall ratio increases from 0.31 at to 0.65 at before remaining of order one half at larger dimensions. Thus the soft boundary slows a small fraction of walkers rather than creating a frozen layer, and the effect does not worsen toward zero mobility as dimension increases.
The local Gamma approximation in Eq. (24) predicts that of an equilibrated population lies below this slack threshold. The larger measured fraction reflects finite relaxation after each level change: lowering reduces every particle's slack simultaneously, after which the mutation kernel moves the population back into the interior.
| D | near the wall | moves there | moves overall | ratio |
|---|---|---|---|---|
| 2 | 3.6% | 0.126 | 0.403 | 0.31 |
| 3 | 3.2% | 0.282 | 0.434 | 0.65 |
| 5 | 3.5% | 0.327 | 0.464 | 0.70 |
| 10 | 4.3% | 0.366 | 0.497 | 0.74 |
| 50 | 6.1% | 0.286 | 0.554 | 0.52 |
| 1000 | 7.1% | 0.289 | 0.598 | 0.48 |
Table 6: Mobility near the level-set boundary on the isotropic Gaussian, with , , and . “Near the wall” denotes slack below one fifth of the level mean. The two move columns report the fraction of proposals that change the particle position, measured directly from the trajectories; the final column is their ratio.
C ACCOUNTING AND POSTERIOR RECONSTRUCTION
The evidence estimate, posterior reconstruction, resampling schedule and mutation budget are different parts of one sequential construction. This section separates their roles. The central distinction is between quantities that are measured from the weighted population and operations that only change how that population is represented.
C.1 ASSIGNED AND MEASURED LEVEL VOLUMES
Both nested sampling and SMC estimate the normalising constant from a series of incremental ratios along a path. Classic nested sampling assigns the compression from an order-statistic law: if the live points are independent draws from the constrained prior, their enclosed masses are independent Uniform[0, 1] variables, and discarding the worst point gives . Energies are measured, but volumes are deduced from this law (Skilling, 2006; Chopin & Robert, 2010).
QES instead measures every soft-volume increment from the population present at the level, following a more standard SMC approach. For particles with normalised weights targeting , the pointwise ratio of Eq. (12), evaluated for the pair , gives
where the ratio is evaluated before mutation. The ratio is of unnormalised densities: the normalised ratio has expectation one under , since the normalisers are the quantity being estimated. This is the standard SMC normalising-constant construction applied to the soft level family (Salomone et al., 2025).
The distinction changes the assumptions, and resulting guarantees of the sampling process. For a fixed, externally specified schedule, exact incremental weights and mutation kernels invariant for their current targets give an unbiased unnormalised evidence estimator for any particle count and any amount of mutation (Del Moral, 2004). Poor mutation results in increased variance, without adding a mixing bias to that estimator. Normalised posterior expectations and still have their usual finite-particle bias. The classic nested sampling assignment of volumes carries a stricter requirement, namely that the live particles must also be mutually independent. A replacement chain that remains correlated with its surviving start violates the order-statistic premise, so the assigned compressions need not describe the realised population. In practice the bias is often small, but practical implementations of nested sampling often use relatively long mutation chains to keep this in check. As a result, when it comes to efficient scaling with a matched comparison to tempered SMC, as in this work, we find the more standard SMC accounting to be more appropriate.
As a result, QES retains the vertical path but uses the measured convention. Killing a particle at a new level gives it incremental weight zero, so its mass remains in the denominator of Eq. (25) and is automatically banked in . Replacing a particle of weight w by two coincident copies of weight w/2 also leaves the empirical measure exactly unchanged,
Mutation subsequently moves the copies apart. We find that while the population diversity is sufficiently high, the simple particle splitting is efficient, and the systematic resampling step is only triggered when the ESS of the carried weights falls below a threshold. This is discussed in more detail in Appendix C.4.
C.2 ADAPTIVE LEVELS AND FINITE-PARTICLE BIAS
The next energy level is selected from the current population by solving for the value of at which the prospective incremental weights reach the target ESS. This is an adaptive schedule: it avoids specifying the unknown shape of in advance and automatically shortens the step when the population would otherwise lose too much support. It is also the one departure from the fixed-schedule unbiasedness result above. Adaptive SMC estimators remain consistent and satisfy a central limit theorem (Beskos et al., 2016). The method therefore preserves the practical adaptivity of nested sampling without claiming exact finite-N unbiasedness.
This level-selection ESS is distinct from the second ESS used to decide when to redraw the population. The first sets the distance between adjacent targets; the second controls accumulated weight degeneracy across many such steps. Conflating them would force a full resampling at every rung of a path whose length grows rapidly with dimension.
C.3 POOLING THE PATH INTO A POSTERIOR SAMPLE
The same accounting reconstructs the posterior from the entire path, rather than only from its final cloud. From Eq. (11), level k carries quadrature weight
Here is the positive finite-difference width computed from the stored descending ladder. If is particle 's normalised carried weight at that level, then the pooled posterior weight is . We report the Kish quantity
over every particle of every rung. For tempered SMC, let denote the recorded post-mutation stages. Because each stage has the same population size, a particle at stage is reweighted against the equally weighted deterministic mixture of stages,
where is the normalising-constant estimate accumulated by that SMC run. The prior density and the common mixture factor cancel from this ratio. This means both methods are scored in efficiency using all particles in all recorded clouds. We form this complete weight vector and evaluate Eq. (28) once per run; ESS per gradient is computed for that run before results are averaged over repeats.
For the particle methods, pooled Kish ESS measures the concentration of this full posterior-weight vector across particles and levels. It does not account for shared ancestry, mutation correlation or dependence between neighbouring levels, and is therefore a nominal rather than correlation-adjusted sample size. For NUTS and MCLMC, bulk ESS accounts for within-chain correlation. Both diagnostics indicate how efficiently computation is converted into posterior samples and are qualitatively comparable, but their values should not be interpreted as exact ratios of independent draws.
The large QES pool follows directly from the geometry of the energy path. For the isotropic Gaussian, let and . The posterior is with . Under the exact augmentation, , where is independent of , so
The posterior-weighted range of levels therefore has width .
At a typical level the local form implies that the moments of the incremental weight depend on the level drop through . A fixed incremental ESS consequently fixes ; for this target , so . The full QES path spans an energy range and therefore contains rungs, of which carry posterior weight.
Tempering has the complementary scaling. Its incremental ESS fixes , giving stages across . A stage can be reweighted to the posterior without weight collapse only when , so only stages carry posterior weight. Hence, before accounting for within-level weight variation, the two pooled Kish counts scale as
This is a path-level sample-size advantage, not a free computational advantage: QES also uses more stages, cancelling the additional in its pooled Kish. At fixed mutation cost per stage, both methods therefore scale as Kish per gradient. Under the benchmark budget , both acquire the same additional cost and scale as .
Table 7 verifies these counts. Across to , the number of QES rungs carrying posterior weight grows from 20.0 to 674.9, while the tempered count remains between 9.5 and 9.9. The full QES ladder grows from 43 to 14,493 rungs, whereas the tempered path grows from 16 to 502 stages.
| D | QES | tempered SMC | ||
|---|---|---|---|---|
| rungs | carrying weight | stages | carrying weight | |
| 10 | 43 | 20.0 | 16 | 9.9 |
| 50 | 139 | 48.8 | 35 | 9.5 |
| 100 | 238 | 68.9 | 50 | 9.7 |
| 200 | 416 | 93.7 | 71 | 9.8 |
| 500 | 892 | 144.4 | 112 | 9.5 |
| 1000 | 1684 | 217.3 | 158 | 9.7 |
| 2000 | 3144 | 303.6 | 224 | 9.5 |
| 5000 | 7446 | 488.6 | 354 | 9.6 |
| 10000 | 14493 | 674.9 | 502 | 9.9 |
Table 7: Path length and posterior-weight-carrying stages on the isotropic Gaussian, with , three seeds and incremental ESS target 0.95. “Carrying weight” is the Kish quantity formed from the total weight of each rung or stage. For QES this count grows as while the full ladder grows as ; for tempered SMC the full path grows as while the weight-carrying count remains bounded.
C.4 RESAMPLING CADENCE
The long QES ladder makes resampling cadence more of an issue, particularly for multimodal targets. Redrawing at every rung gives fresh uniform weights, but it also repeatedly resamples neutral mode labels. On a symmetric multimodal target with no local transitions, occupancy then performs a random walk with absorbing states at zero and one. At , four of ten runs fixate during the approximately 1,800 per-level redraws, even though the measured death rates are identical in the two modes (0.0040 in each).
At the other extreme, branching can replace zero-weight particles while all survivor weights are carried indefinitely. This preserves the represented measure, but eventually concentrates it on few ancestral lineages, increasing variance and the finite-N bias of nonlinear summaries such as . We therefore branch at every level and fully resample only when the carried-weight ESS falls below (Moral et al., 2012). The trigger is computed after grouping weights by lineage, splitting a donor into two children halves its contribution to the ordinary sum of squared weights and would spuriously increase the ungrouped ESS, although it has created no new independent lineage. With the default , full resampling occurs about every 14 levels at an incremental ESS target of 0.95, roughly fourteen times less often than per-level resampling.

Figure 7: Left: mode occupancy for every run at each resampling threshold, ten seeds per setting on the bimodal target at ; a fixated run lies on a dotted boundary. Per-level resampling () drives neutral occupancy toward fixation, whereas the default preserves both modes in every run. Middle, right: posterior marginals under the default against the exact density at the two ends of the anisotropy, and .
Figure 7 illustrates this trade-off on the bimodal target at . Resampling every level causes the occupancy to collapse into one mode, while the default cadence preserves both modes in every run and reconstructs the marginals at both ends of the anisotropy. Resampling less often than the default lets the occupancy drift back toward imbalance, with one of ten runs approaching fixation.
Accounting for this drift is a challenge for any interacting particle method, and motivates global moves that cross between modes; constructing such moves is itself hard in high dimension without an a priori known symmetry.
C.5 MUTATION BUDGET
The residual Gaussian bias at (Table 2) is probed by sweeping the number of MALA steps per level around the working point of , with every other setting of the benchmark held fixed. Below the default the bias grows steadily as the population lags its moving target, while doubling the budget changes nothing within the seed variation (Table 8). The default therefore sits at the knee of the curve, and we attribute the residual that remains there to the accumulated finite- effects of Appendix C rather than to incomplete mutation. Doubling the particle count at the default budget instead shrinks the bias and contracts the seed scatter by the predicted , consistent with this attribution. Figure 8 shows the reconstructed radial posterior at the default working point.
Table 8: Budget sweeps on the Gaussian at : evidence bias against the exact log and gradient evaluations per run, ten seeds per setting. The default is , ; the final row doubles the particle count at the default mutation budget.
| gradients | |||
|---|---|---|---|
| 1000 | 32 | ||
| 1000 | 64 | ||
| 1000 | 128 | ||
| 1000 | 256 | ||
| 2000 | 128 |

Figure 8: Reconstructed radial posterior at against the exact shell , for a single run at the default working point. Both methods pool every weighted particle from every level of the path: QES with the level-volume quadrature weights of Appendix C.3, tempered SMC with deterministic-mixture balance weights over its temperatures. The pooled Kish ESS is for QES and for tempered SMC.