Manuscript Offprint
arXiv:2610.10870Transformed Samplers with Variance Reduction
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Markov chain Monte Carlo (MCMC) methods are the standard tool for computing expectations under complex probability distributions. Control variates reduce the variance of the resulting estimates, but a good control variate requires solving the Poisson equation of the sampler, which rarely admits a closed-form solution. Exact solutions are available when the sampler's kernel has a known spectral decomposition on a simple reference density. In our work, we extend these solutions to general targets through a learned change of variables. A bijection, such as a normalizing flow, is trained so that the target becomes close to the reference in a latent space, and we show that Markov kernels and their Poisson solutions are transformed by any bijection. Running such samplers in the latent space then yields explicit control variates, and the estimator is consistent under mild tail conditions on the map and target. Importance sampling (IS) from the flow is the limiting case of the same construction and the control variates apply to it as well. Experiments on synthetic targets and real posteriors compare the procedure against state-of-the-art samplers and control variates.
Keywords: Markov chain Monte Carlo; variance reduction; control variate; normalizing flow.
1 INTRODUCTION
Markov chain Monte Carlo (MCMC) estimates an expectation by the ergodic average along a chain with -invariant kernel . Its accuracy is governed by the asymptotic variance, and the classical route to reducing it is a control variate built from the Poisson equation
whose solution yields a zero-variance estimator [28, 43, 20]. The analytical solution is almost never available: even for a Gaussian target and , no closed form is known for random-walk Metropolis (RWM) or the Metropolis-adjusted Langevin algorithm (MALA) [2]. Closed-form solutions are known only in special cases [20, 40], most notably for the Gaussian-invariant (GI) samplers of Titsias et al. [76], whose proposals are always accepted on a Gaussian target and for which (1) has exact solutions. On non-Gaussian targets these solutions are reused through an approximation, which covers only a few test functions and loses its effect as the target departs from a Gaussian.
A parallel line of work addresses non-Gaussian geometry through a change of variables. Transport-map MCMC learns a bijection with , typically a normalizing flow [61, 55], and either runs the chain in the latent space [57, 30, 15] or proposes from the flow [1, 25, 13, 66, 16]. In all of these methods the map enters only through the sampler, and the estimator remains the plain ergodic average.
This paper connects the two lines by showing that when a Markov kernel is transformed by a bijection, its Poisson solutions are transformed with it (Section 4.1). Consequently, any sampler whose kernel has a known spectral decomposition on a reference distribution, and whose proposal has a computable conditional expectation, yields exact Poisson solutions that can be carried to every target reached by a map (Theorem 4.2) and used there as control variates (Theorem 4.3). The Gaussian reference with GI kernels and Hermite polynomials is the cleanest instance and the focus of this paper (Section 4.2). Since the construction depends on the kernel only through its spectrum, it also covers elliptical slice sampling and, as the kernel with all eigenvalues zero, importance sampling (IS) from the flow; a short pilot run tells which of them to use on a given target (Section 5.1). References other than the Gaussian, such as Gamma distributions with Laguerre polynomials and spheres with spherical harmonics, are treated in Appendix S2.
A trained flow thus improves the estimator as well as the sampler. It provides a control variate for any test function, with coefficients computed from cheap reference draws rather than fitted to the chain, with-
*Department of Statistical Science, University College London, UK. Email: siran.liu.21@ucl.ac.uk
Google DeepMind, UK. Email: mtitsias@gmail.com
Department of Statistical Science, University College London, UK, and Department of Statistics, Athens University of Economics and Business, Greece. Email: p.dellaportas@ucl.ac.uk out additional evaluations of the target and, for the random-walk sampler, without gradients at sampling time. The control variates of Titsias et al. [76] are the special case of an affine map, and the estimator is consistent under mild tail conditions on the map, so a poor map costs variance rather than correctness. In turn, the control variates benefit from importance weights that stay bounded in the tails, which the usual training objectives do not enforce, and we add a penalty that helps (Section 4.4).
The paper is organized as follows. Section 2 reviews Poisson control variates, GI samplers and transformed targets, and Section 3 discusses related work. Section 4 shows how kernels and their Poisson solutions are transformed by a bijection, identifies the reference kernels whose Poisson equation can be solved exactly, and derives the resulting control variates together with their validity (Section 4.3). Section 5 covers diagnostics for choosing the estimator, the pruning of the dictionary in high dimension (Section 5.2) and the choice of step size (Section 5.3), and Section 6 compares the estimators on the same flow with Hamiltonian Monte Carlo (HMC) in the latent space and zero-variance control variates, on synthetic targets and real posteriors.
2.1 Poisson control variates
If solves (1), then , where , so adding to the ergodic average removes its variance [20]. In practice PG is intractable for a candidate G, since it integrates over the accept-reject step. For a Metropolis-Hastings (MH) sampler we estimate it with one sample, using the proposal drawn at each step and its acceptance probability . The estimator is
with and . The first term is an unbiased single-draw estimate of and the second is conditionally centered, so both have stationary mean zero for every integrable , and the choice of affects only the variance. In general can be selected to further minimize the asymptotic variance. Unless stated otherwise we use , and when every proposal is accepted the summand equals exactly. The estimator therefore needs a close to for which is available in closed form.
2.2 Gaussian-invariant samplers
Both requirements are met by the GI samplers of Titsias et al. [76] on a Gaussian target. They use Gaussian proposals
with step size , where the preconditioner equals whenever the target is . GI-MALA takes and GI-pMALA a state-dependent , such as an approximate negative inverse Hessian. The gradient-free GI-RWM replaces the mean by , which is the preconditioned Crank-Nicolson proposal [49, 18]. On a Gaussian target all three coincide, every proposal is accepted, and in the standardized variable the chain is the autoregression with and . Its eigenfunctions are the normalized Hermite polynomials , indexed by with degree , which form an orthonormal basis of the square-integrable functions under :
Expanding in Hermite polynomials therefore solves (1) term by term, each degree- term being divided by , and since is Gaussian, is available in closed form for every polynomial . On a non-Gaussian target, however, the proposals are no longer always accepted and the Hermite polynomials are no longer eigenfunctions of the kernel. What makes these solutions exact is only that the kernel has a known spectral decomposition on the Gaussian; Section 4.1 shows that this property is all that the construction requires.
3 RELATED WORK
Other than the exact solutions used in this paper, the Poisson equation can be solved approximately, through a weakly approximating chain [45], diffusion approximations [14], empirical variance minimization [8], neural networks [10] or coupled chains [24, 60]. These methods approximate the Poisson solution of the given sampler on the target itself, whereas we solve it exactly for a reference kernel and transform the solution through the map.
Beyond the Poisson equation, zero-variance control variates [6, 46, 56], control functionals [53] and their regularized, semi-exact and scalable versions [70, 68, 67] apply the Stein operator to basis functions and fit the coefficients on the draws; see South et al. [69] for a review. The martingale control variates of Belomestny et al. [9] use conditionally centered proposal terms, similar to the second term of (2), also fitted on the chain. Control variates for IS are likewise fitted on the weighted draws [54], or built from orthogonal functions as the spherical harmonics of Leluc et al. [38]. In all of these the accuracy of the coefficients is set by the number of draws, and the Stein approach needs the score; our coefficients can be estimated from reference draws independent of the chain, without a regression, and the gradient-free sampler needs no score. Section 6 compares both kinds of control variates on the same flow.
On the sampler side, the preconditioned Crank-Nicolson proposal [49, 11, 18], elliptical slice sampling [47], Hamiltonian Monte Carlo with an exact Gaussian integrator [12] and the auxiliary gradient-based samplers of Titsias and Papaspiliopoulos [75] leave a Gaussian prior invariant, chosen in advance, so they perform well only to the extent that the target resembles it. We instead keep the standard Gaussian fixed and train the map to bring the target close to it. HMC on the latent space of the same flow [30] is the natural alternative there and is our main baseline; flows also serve as proposals for independence sampling and annealed transport [51, 5, 42, 44]. Markov kernels with orthogonal polynomial eigenfunctions are classical [21] and underlie the non-Gaussian references of Appendix S2.
4 TRANSFORMED CONTROL VARIATES
CON-
Throughout this section, is a reference distribution on a space and is a bijection. We write for the law of when , so that is the distribution generated by the map and is the pull-back of the target, with , so that if and only if ; is the importance weight of the map, and exactly when . For a probability measure , denotes the square-integrable functions with inner product , and those with . A latent chain targets with kernel ; at each step it draws a candidate and then moves to , and we set and . A test function on is evaluated in the latent space as , that is, .
4.1 Transformation of Kernels and Poisson Solutions
We first show that a change of variables carries a sampler on the latent space, together with its Poisson solutions, to a sampler on the target space. This is what allows a solution computed where the Poisson equation is tractable to be carried to exactly, and used on as an approximation whose quality is set by the map.
Proposition 4.1. Let be a -invariant kernel.
(i) is a Markov chain with kernel , which is -invariant, and -reversible whenever is -reversible.
(ii) If solves with , then solves with .
The proof is given in Appendix S1.2. Part (i) is the standard fact underlying transport MCMC [57, 30], and part (ii) shows that Poisson solutions transform in the same way. The two chains are thus the same chain in different coordinates, so their Poisson equations coincide, and properties such as irreducibility and geometric ergodicity transfer between them. We state results in x-space, where the target lives, and implement everything in z-space, where is never needed. In practice the control variate is evaluated in the latent space as and is built from , so only the forward map is needed. Changing coordinates alone does not make the Poisson equation solvable, but the latent space admits a reference: a -reversible kernel Q whose Poisson equation can be solved exactly and which coincides with the latent chain when the map is exact (Section 4.2). We solve the equation for Q and transform the solution to the target.
4.2 Reference Kernels with a Spectral Decomposition
The construction of the reference pair requires three properties of the latent sampler.
Condition.
(C1) When , the kernel is a -reversible kernel with for an orthonormal basis of , where , .
(C2) can be computed for every in the span of , for a finite .
(C3) When , .
(C1) makes the Poisson equation solvable at the reference, (C2) makes the control variates computable, and (C3) ensures that the solution matches the kernel actually run. For samplers that propose from Q itself, (C2) holds automatically, because the conditional expectation of each basis function is . Transforming Q by Proposition 4.1 gives a kernel on , which is the kernel the sampler runs when .
Theorem 4.2. Under (C1), for every bijection T,
(i) is -reversible, and positive semidefinite on if and only if for all ;
(ii) the functions form an orthonormal basis of with ; in particular, the spectrum of does not depend on , and its absolute spectral gap is ;
(iii) for with , the centered solution of is
The proof is in Appendix S1.3. The map decides where the kernel lives, while its mixing rate and its Poisson solutions are those of Q for every T. For a target the chain has kernel , and two estimators are available for any reference. The simplest is self-normalized importance sampling (SNIS) from the flow, which weights draws from by ; it is exact when , and otherwise its variance grows with that of the weights. The simplest latent sampler instead proposes from Q and accepts with probability . Since Q is -reversible, this is the MH kernel for , and when every proposal is accepted, so it satisfies (C1)–(C3).
For the Gaussian reference ,
up to a constant, so the pull-back is a latent Gaussian model with prior and log-likelihood , and the GI proposals of Section 2.2 with apply to it directly; we call the resulting samplers transformed GI (TGI) samplers. On the three proposals coincide and reduce to
which we denote by . It is -reversible, so every proposal is accepted and (C3) holds, and by (4) it satisfies (C1) with and . For the transformed kernel is therefore positive semidefinite with spectral gap , and with . With an affine map, the are Hermite polynomials in and the construction reduces to that of Titsias et al. [76]. A nonlinear map bends them to follow the target, so that a low-degree truncation can represent Poisson solutions that polynomials in approximate poorly.
TGI-RWM proposes from for every map and target, so the target enters only through the ratio and no gradients are needed. At it is the independence sampler with the flow as proposal: for and , the solution that Liu et al. [40] use when the proposal is close to the target, and without the accept-reject step it is SNIS. TGI-MALA adds the drift , and a preconditioned variant is given in Appendix S2.1; for both the candidate is Gaussian and the conditional expectations required by (C2) are in closed form (Lemma S2.1). Transport elliptical slice sampling (TESS; 15) runs elliptical slice sampling with prior and likelihood ; it has no accept-reject step, enters through the slice, and it satisfies (C1)–(C3) with the same eigenfunctions and the eigenvalues , (Appendix S2.2). A mismatch between and affects SNIS through the weights, TGI-RWM only through rejections, TESS through the shrinking of the slice, and TGI-MALA also through its drift.
4.3 Control Variates and Estimator
With frozen, each step of a latent MH sampler provides the state , the candidate and the acceptance probability . The estimator (2) is therefore applied in the latent space, with in place of and . We call the dictionary of the control variate. For the Gaussian reference, the dictionary consists of Hermite polynomials indexed by a finite set of multi-indices, by default , and costs a few Hermite evaluations per step. TESS has no accept-reject step and uses in place of the first correction, with the initial point on the ellipse as (Appendix S2.2). For SNIS, which is a ratio of two averages, the same dictionary corrects both,
with and the coefficients of and of on , estimated on the same draws. Both corrections have mean zero under , so the ratio remains consistent for every and ; when the vanish and the reduce to .
The plug-in choice , with , makes the truncation of (5) in latent coordinates and requires . The coefficients are Monte Carlo averages over draws from that require evaluations of but not of , so they are computed once before the run. Alternatively, can be fitted by minimizing the empirical variance of the summand on burn-in samples and then frozen, which adapts the control variate to the actual target at the price of a short pilot run.
Assumption.
(A1) is a diffeomorphism.
(A2) for all and some .
(A2*) is continuous and there are such that whenever and .
(A3) and for , for some .
(A2) requires the map to match the tails of up to constant factors, which a coupling flow cannot do unless itself has Gaussian tails (Section 4.4), and (A2*), used for TESS [48], that eventually decreases along rays. We therefore also allow the latent chains to replace each step, with probability , by an independence MH step with proposal , as in Brofos et al. [13] but mixing kernels rather than distributions; the estimator averages the summands of the other steps only. With , the bounds on can be replaced by a condition on the tails of alone:
Assumption. (A2') T is a coupling flow with bounded log-scales and shifts, and is bounded with , with .
Theorem 4.3. Assume (A1) and (A3), with fixed before the run for the chains. Then almost surely and with for
-
SNIS, if ;
-
TGI-RWM, under (A2) with , or (A2') with ;
-
TESS, under (A2) and (A2*) with , or (A2') with .
The chains are geometrically ergodic in the first case and uniformly ergodic in the second. The proofs are given in Appendix S1.4, the same appendix treats TGI-MALA and TGI-pMALA. SNIS needs the weights to have a finite second moment, which a flow lighter-tailed than the target violates. For the two chains, the independence steps restore uniform ergodicity in this case. The tail penalty of Section 4.4 is the practical substitute for (A2).
4.4 Learning the Map
We use existing methods to obtain T, with one addition. An exact map exists when has a positive density on , given by the triangular Knothe-Rosenblatt rearrangement [64, 37], which triangular transport maps [57, 71] can represent directly, and normalizing flows [23, 32, 33, 55] are flexible enough to approximate such targets; affine coupling flows, for instance, are universal distributional approximators [72]. Constrained parameters are first mapped to by a standard reparametrization, and whitening the latent space with a pilot estimate of the covariance provides a good initialization.
The choice of objective depends on the target. The reverse divergence needs only evaluations of and its gradient [61, 30] and suits unimodal posteriors. Maximum likelihood on draws produced by the sampler itself, alternating fitting and sampling as in adaptive flow-based samplers [57, 25, 13, 66, 16], suits hierarchical models, where it can be added to the reverse divergence during training. On multimodal targets, anchoring part of each minibatch to pilot draws keeps every mode represented in the map, although samplers run in the latent space remain less robust to multimodality than flow-based independence proposals [26]. Since continual adaptation requires the conditions of adaptive MCMC [3, 63, 4], we train the map, freeze it, and then run the evaluation chains, so the results of Section 4.3 apply.
A coupling flow with bounded scales is asymptotically affine and has Gaussian tails [34], so for a target with heavier tails w grows along a few latent directions. Training objectives rarely see these regions, thus a chain that enters one tends to stay, which dominates the variance of the control variates. Existing remedies mix the flow with a fixed distribution, which bounds the weight by construction [13], use mass-covering objectives that favor weights with finite moments [39, 22, 77], or add tail layers [34, 29], which are effective for power-law tails along coordinate directions. Instead, we add to the loss the one-sided penalty
evaluated at points sampled directly in the tails, where has a uniform direction and a radius uniform on , from the edge of the Gaussian shell into the far tail, and is the mean of over the training batch. It acts only on weights that are too large, which make chains stick, and vanishes at the exact map. This method is a soft counterpart of the upper bound in (A2). The penalty is needed only when the flow is lighter-tailed than the target, and Appendix S4.1 gives a rule for when to use it.
5 PRACTICAL CONSIDERATIONS
5.1 Choosing the Estimator
A mismatch between and affects each estimator differently. SNIS suffers through the weights. Where the flow puts too little mass, the rare draws that land there carry large weights and dominate the error. TGI-RWM suffers through rejections. With near one, a rejection means staying at a state of large weight, often for many steps. TESS moves at every iteration, but each iteration costs several evaluations. TGI-MALA adds a gradient per step, and its drift corrects the mean of the pull-back; in x-space the map acts as the position-dependent preconditioner (Table S1 in the Appendix). HMC on the same flow [30] is the stronger gradient-based alternative, but our control variates do not apply to it.
Three diagnostics computed from draws of the flow decide between them. The importance sampling effective sample size measures the bulk of the transport. It is blind to the tails and to a missing mode, so we also record the largest normalized weight relative to its uniform value , . When stays below a threshold we use SNIS. Beyond that a latent chain is needed. We use TESS if a pilot chain shows a seam between modes or heavy tails, a gradient-based chain if the mismatch is spread over many coordinates of a unimodal pull-back, and TGI-RWM as the gradient-free default. The pilot chain also gives the Fisher divergence , and a large calls for a better map rather than a different estimator.
5.2 High Dimensions: Dictionary Growth and Pruning
The full dictionary has elements, most of them cross terms: indices involving a single coordinate number only , whereas indices involving coordinates number . A large index set is costly in two ways. Each evaluation of costs , and the coefficients are estimated from a shared budget of reference draws, so the aggregate estimation noise grows with . Although the control variate has mean zero for any coefficients, this noise can increase the variance, so an oversized dictionary degrades the estimator silently. Conversely, a good transport compresses the dictionary: if is affine and is linear, is exactly of first order. The following result quantifies the trade-off on an exact map.
Proposition 5.1. Assume and , and suppose that . Let with arbitrary coefficients, and write . The asymptotic variance of the estimator is
If , where is an unbiased estimate of from reference draws with variance , then
In practice we combine two kinds of pruning. Structural pruning keeps the indices of total degree at most that involve at most coordinates, a set of size that can be enumerated directly. Magnitude pruning then estimates and from pilot reference draws, keeps the indices with , and re-estimates their coefficients with the full budget. Since , the threshold recovers the criterion above on average, while also guards against retaining pure noise when is large. Using reference draws rather than the chain keeps independent of the samples it corrects. Since enters only through , the coefficients are estimated once and reused for every step size. When , rejections add a further term to the variance, analyzed in Section 5.3.
5.3 Choosing the Step Size: Mixing versus Estimation
When , every proposal is accepted and gives i.i.d. sampling, which without the accept-reject step is SNIS. When , the efficiency of the estimator is measured by , where is the effective sample size per step of the plain average and the variance reduction factor of the control variates, so that asymptotically . The first factor favors a large step, the second a high acceptance rate and a small step. Acceptance targeting, expected squared jump distance [58] and the speed measure of Titsias and Dellaportas [74] target the ESS alone, so they tend to select a step that is too large for the estimator.
We therefore adapt by maximizing an approximation of ESS VRF. For the ESS we use the speed measure of Titsias and Dellaportas [74], where is the mean acceptance rate. Without rejections the control variate would reduce the variance to the residual that the dictionary leaves unexplained, reach a VRF of ; taking the contribution of rejections to be gives , and the objective
When , and is maximized at . For small it reduces to the speed measure, and a large lowers until the rejection rate is of order . comes at no extra cost, since is the variance of on fresh reference draws. During burn-in, follows stochastic gradient ascent on (Appendix S3.2). Since the rejection loss is only modeled, is a heuristic. needs no run beyond burn-in and is what we recommend in practice; the step sizes used in each experiment are given in Appendix S4. The step size, together with , and , is fixed before the evaluation chains are run.
6 EXPERIMENTS
We evaluate the method of Algorithms S1 and S2 (Appendix S3) by its precision per second, , with the root mean squared error over 100 replications measured in posterior standard deviations. We run every estimator on twelve targets. The synthetic targets are the banana of Haario et al. [27], the funnel of Neal [50], the Gaussian mixture of Alexopoulos et al. [2] and a t mixture. The real posteriors are GARCH(1,1), the dugongs growth curve, a pharmacokinetic ODE model and a Gaussian-process Poisson regression from posteriordb [41], the Lotka–Volterra model, the centered eight schools model, sparse logistic regression on the German credit data [30] and the bimodal field of Gabrié et al. [25]. For each target one RealNVP flow is trained and frozen. On it we run SNIS, TGI-RWM, TGI-MALA and TESS with our control variates, and HMC in the latent space [NeuTra; 30] with zero-variance control variates, each with target evaluations per estimate. The

Figure 1: When to sample instead of reweighting. Each point is one target of Table 1. The ratio is the precision per second of the best chain-based estimator on the main test function divided by that of SNIS+CV, and the marker shows which chain is best; above the dotted line a chain is more efficient than SNIS+CV. The horizontal axis is the largest normalized importance weight of the flow times N, over the 100 replicates of draws.
settings and the results for every test function are in Appendix S4; Table 1 reports, for each target, the main test function, chosen as the one whose performance under TGI-RWM with the control variates is the median over the test functions of that target, the better of the two middle ones when their number is even.
Where the flow is accurate, the control variates reduce the variance of SNIS and TGI-RWM by one to two orders of magnitude. Where the flow leaves a neck or a seam between modes, the gain falls to a factor of a few, since the test functions then pull back to functions that low-degree Hermite polynomials represent poorly, and the advantage of the flow-based estimators comes from the transport itself.
The rule of Section 5.1 holds up across all twelve targets (Figure 1). While stays below a few thousand, reweighting the flow with the control variates is very effective, even on the two multimodal targets, because the flow has already done the work of finding both modes. Beyond that threshold the weights stop being informative and a latent chain takes over. What carries through both regimes is the control variate. One dictionary serves SNIS, TGI-RWM and TESS alike without a single gradient of the target, and wherever the flow is accurate it makes each of them markedly more precise. Table 1 uses . With the independence step of Theorem 4.3,
Table 1: Precision per second on the main test function of each target (Tables S8 and S9), with the protocol of Appendix S4. In parentheses, the variance reduction factor of the control variates, the mean squared error without them over that with them on the same run. Targets are ordered by the largest normalized importance weight of the flow times . Entries within of the best in a row are in bold. †: the Monte Carlo error of the reference value accounts for at least half of the mean squared error; -: RMSE above one posterior standard deviation.
| Target | SNIS | TGI-RWM | TGI-MALA | TESS | NeuTra |
|---|---|---|---|---|---|
| GARCH | (29) | (37) | 2.2e7 (64) | 2.4e7 (10) | 5.0e7 (109) |
| One-comp. | 8.9e5 (1.6) | 6.7e5 (1.7) | 4.6e5 (12) | 4.7e5 (1.6) | 5.8e5 (5.9) |
| Lotka-Volterra | 1.0e8 (28) | 2.3e7 (14) | 5.6e6 (57) | 8.9e6 (6.4) | 2.1e7 (176) |
| Banana | 4.1e7 (26) | 3.4e7 (35) | 1.1e7 (117) | 5.9e6 (13) | 1.7e7 (104) |
| Dugongs | 2.0e7 (5.1) | 5.4e6 (3.5) | 5.1e4 (0.6) | 9.2e6 (4.9) | 1.3e6 (3.3) |
| Mixture | 3.9e6 (3.3) | 1.5e6 (2.3) | - | 1.6e6 (2.4) | 1.6e4 (1.9) |
| Funnel | 1.4e6 (1.9) | 6.6e5 (1.7) | 1.4e6 (48) | 1.1e6 (2.0) | 8.5e5 (6.0) |
| field | 1.4e6 (1.9) | 8.4e5 (1.9) | - | 8.0e5 (1.8) | 1.0e4 (2.5) |
| Eight schools | 6.2e5 (1.4) | 6.4e5 (1.7) | 1.1e6 (16) | 8.7e5 (1.9) | 3.4e5 (4.4) |
| GP Poisson | 4.2e5 (1.3) | 1.0e6 (2.2) | 1.1e6 (21) | 1.1e6 (2.1) | 2.4e6 (22) |
| Sparse logistic | 1.1e4 (1.0) | 4.5e5 (3.7) | 2.1e5 (13) | 2.2e5 (2.9) | 4.2e5 (30) |
| t mixture | 4.1e3 (1.0) | 9.8e4 (1.1) | - | 2.2e5 (1.2) | 2.2e3 (3.6) |
, the precision of TGI-RWM+CV changes by a factor between 0.55 and 3.1 across all test functions (Table S11).
The methods also differ in how far they can fall behind (Table S12). SNIS with the control variates is the best method most often but has the most uneven record, falling too much behind where its weights are heaviest. TGI-RWM is rarely the best, yet it stays within a small factor of the best on every target, the smallest worst case of all the methods, which makes it the safe default when the diagnostics are inconclusive. Codes to reproduce this experiment can be found at https://github.com/cliusir123/TMCVR_Code
7 CONCLUSION
A bijection carries a Markov kernel and its Poisson solutions together, so the exact solutions that a Gaussian reference offers become control variates on every target a flow can reach. Because the construction sees the kernel only through its spectrum, one dictionary of Hermite polynomials, whose coefficients need no further evaluation of the target, serves a whole family of estimators that need no gradient of the target: IS from the flow, the latent random walk and elliptical slice sampling. Each is consistent and asymptotically normal under its own conditions, and where the flow is accurate the control variates make each of them much more precise. The largest importance weight of the flow tells which member to run. The control variates also prefer the weights of the flow to stay bounded in the tails, which the usual training objectives do not enforce and a penalty in training encourages.
The gains depend on the quality of the transport. Training dominates the cost at small budgets, the tail penalty carries no guarantee, and where the flow leaves a neck or a seam between modes the control variates gain little; on posteriors whose mismatch is spread over many coordinates, HMC on the same flow remains the stronger choice, and targets with tails as heavy as our mixture lie beyond the theory. Conversely, any improvement in training flows benefits the estimators directly. We see several directions for future work. Flows whose weights are bounded by construction would meet the assumptions of the theory directly. The reference need not be Gaussian, since Gamma and spherical references (Appendix S2) could be combined into one that already matches the support and tails of the target. Hamiltonian dynamics with an exact Gaussian integrator [12] keeps the Hermite polynomials as eigenfunctions and could bring the gradient-based chain into the family, and a dictionary with functions that separate modes would extend the gains to multimodal targets. Finally, the flow could be trained alongside the chains, under the conditions of adaptive MCMC.
References
[1] Michael S. Albergo, Gurtej Kanwar, and Phiala E. Shanahan. Flow-based generative models for Markov chain Monte Carlo in lattice field theory. Physical Review D, 100(3):034515, 2019.
[2] Angelos Alexopoulos, Petros Dellaportas, and Michalis K. Titsias. Variance reduction for Metropolis–Hastings samplers. Statistics and Computing, 33(1):6, 2023.
[3] Christophe Andrieu and Éric Moulines. On the ergodicity properties of some adaptive MCMC algorithms. The Annals of Applied Probability, 16(3):1462–1505, 2006.
[4] Christophe Andrieu and Johannes Thoms. A tutorial on adaptive MCMC. Statistics and Computing, 18(4):343–373, 2008.
[5] Michael Arbel, Alexander G. D. G. Matthews, and Arnaud Doucet. Annealed flow transport Monte Carlo. In Proceedings of the 38th International Conference on Machine Learning, volume 139 of Proceedings of Machine Learning Research, pages 318–330, 2021.
[6] Roland Assaraf and Michel Caffarel. Zero-variance principle for Monte Carlo algorithms. Physical Review Letters, 83(23):4682–4685, 1999. doi: 10.1103/PhysRevLett.83.4682.
[7] Kendall Atkinson and Weimin Han. Spherical Harmonics and Approximations on the Unit Sphere: An Introduction, volume 2044 of Lecture Notes in Mathematics. Springer, Berlin, 2012.
[8] Denis Belomestny, Leonid Iosipoi, Eric Moulines, Alexey Naumov, and Sergey Samsonov. Variance reduction for Markov chains with application to MCMC. Statistics and Computing, 30(4):973–997, 2020.
[9] Denis Belomestny, Eric Moulines, and Sergey Samsonov. Variance reduction for additive functionals of Markov chains via martingale representations. Statistics and Computing, 32(1):16, 2022.
[10] Denis Belomestny, Artur Goldman, Alexey Naumov, and Sergey Samsonov. Theoretical guarantees for neural control variates in MCMC. Mathematics and Computers in Simulation, 220:382–405, 2024.
[11] Alexandros Beskos, Gareth Roberts, Andrew Stuart, and Jochen Voss. MCMC methods for diffusion bridges. Stochastics and Dynamics, 8(3):319–350, 2008.
[12] Alexandros Beskos, Frank J. Pinski, Jesús M. Sanz-Serna, and Andrew M. Stuart. Hybrid Monte Carlo on Hilbert spaces. Stochastic Processes and their Applications, 121(10):2201–2230, 2011. doi: 10.1016/j.spa.2011.06.003.
[13] James Brofos, Marylou Gabrié, Marcus A. Brubaker, and Roy R. Lederman. Adaptation of the independent Metropolis–Hastings sampler with normalizing flow proposals. In Proceedings of the 25th International Conference on Artificial Intelligence and Statistics, volume 151 of Proceedings of Machine Learning Research, pages 5949–5986, 2022.
[14] Nicolas Brosse, Alain Durmus, Sean Meyn, Eric Moulines, and Sergey Samsonov. Diffusion approximations and control variates for MCMC. Computational Mathematics and Mathematical Physics, 64(4):693–738, 2024.
[15] Alberto Cabezas and Christopher Nemeth. Transport elliptical slice sampling. In Proceedings of the 26th International Conference on Artificial Intelligence and Statistics, volume 206 of Proceedings of Machine Learning Research, pages 3664–3676, 2023.
[16] Alberto Cabezas, Louis Sharrock, and Christopher Nemeth. Markovian flow matching: accelerating MCMC with continuous normalizing flows. In Advances in Neural Information Processing Systems, volume 37, 2024.
[17] Bob Carpenter. Predator-prey population dynamics: the Lotka–Volterra model in Stan. Stan case study, 2018.
[18] Simon L. Cotter, Gareth O. Roberts, Andrew M. Stuart, and David White. MCMC methods for functions: modifying old algorithms to make them faster. Statistical Science, 28(3):424–446, 2013.
[19] John C. Cox, Jonathan E. Ingersoll, and Stephen A. Ross. A theory of the term structure of interest rates. Econometrica, 53(2):385–407, 1985.
[20] Petros Dellaportas and Ioannis Kontoyiannis. Control variates for estimation based on reversible Markov chain Monte Carlo samplers. Journal of the Royal Statistical Society: Series B, 74(1):133–161, 2012.
[21] Persi Diaconis, Kshitij Khare, and Laurent Saloff-Coste. Gibbs sampling, exponential families and orthogonal polynomials. Statistical Science, 23(2):151–178, 2008.
[22] Adji Bousso Dieng, Dustin Tran, Rajesh Ranganath, John Paisley, and David M. Blei. Variational inference via upper bound minimization. In Advances in Neural Information Processing Systems, volume 30, 2017.
[23] Laurent Dinh, Jascha Sohl-Dickstein, and Samy Bengio. Density estimation using Real NVP. In International Conference on Learning Representations, 2017.
[24] Randal Douc, Pierre E. Jacob, Anthony Lee, and Dootika Vats. Solving the Poisson equation using coupled Markov chains. The Annals of Statistics, 54(1):201–225, 2026. doi: 10.1214/25-AOS2564.
[25] Marylou Gabrié, Grant M. Rotskoff, and Eric Vanden-Eijnden. Adaptive Monte Carlo augmented with normalizing flows. Proceedings of the National Academy of Sciences, 119(10): e2109420119, 2022.
[26] Louis Grenioux, Alain Durmus, Éric Moulines, and Marylou Gabrié. On sampling with approximate transport maps. In Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pages 11698–11733, 2023.
[27] Heikki Haario, Eero Saksman, and Johanna Tamminen. Adaptive proposal distribution for random walk Metropolis algorithm. Computational Statistics, 14(3):375–395, 1999. doi:10.1007/s001800050022.
[28] Shane G. Henderson. Variance reduction via an approximating Markov process. PhD thesis, Department of Operations Research, Stanford University, 1997.
[29] Tennessee Hickling and Dennis Prangle. Flexible tails for normalizing flows. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 23155–23178, 2025.
[30] Matthew Hoffman, Pavel Sountsov, Joshua V. Dillon, Ian Langmore, Dustin Tran, and Srinivas Vasudevan. NeuTra-lizing bad geometry in Hamiltonian Monte Carlo using neural transport. arXiv preprint arXiv:1903.03704, 2019.
[31] Matthew D. Hoffman and Andrew Gelman. The No-U-Turn sampler: adaptively setting path lengths in Hamiltonian Monte Carlo. Journal of Machine Learning Research, 15:1593–1623, 2014.
[32] Chin-Wei Huang, David Krueger, Alexandre Lacoste, and Aaron Courville. Neural autoregressive flows. In International Conference on Machine Learning, pages 2078–2087. PMLR, 2018.
[33] Priyank Jaini, Kira A Selby, and Yaoliang Yu. Sum-of-squares polynomial flow. In International Conference on Machine Learning, pages 3009–3018. PMLR, 2019.
[34] Priyank Jaini, Ivan Kobyzev, Yaoliang Yu, and Marcus Brubaker. Tails of Lipschitz triangular flows. In Proceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, pages 4673–4681, 2020.
[35] Galin L. Jones. On the Markov chain central limit theorem. Probability Surveys, 1:299–320, 2004.
[36] Diederik P. Kingma and Jimmy Ba. Adam: a method for stochastic optimization. In International Conference on Learning Representations, 2015.
[37] Herbert Knothe. Contributions to the theory of convex bodies. Michigan Mathematical Journal, 4(1):39–52, 1957.
[38] Rémi Leluc, Aymeric Dieuleveut, François Portier, Johan Segers, and Aigerim Zhuman. Sliced-Wasserstein estimation with spherical harmonics as control variates. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pages 27191–27214, 2024.
[39] Yingzhen Li and Richard E. Turner. Rényi divergence variational inference. In Advances in Neural Information Processing Systems, volume 29, 2016.
[40] Siran Liu, Petros Dellaportas, and Michalis K. Titsias. Variance reduction for the independent Metropolis sampler. arXiv preprint arXiv:2406.17699, 2024.
[41] Måns Magnusson, Jakob Torgander, Paul-Christian Bürkner, Lu Zhang, Bob Carpenter, and Aki Vehtari. posteriordb: Testing, benchmarking and developing Bayesian inference algorithms. arXiv:2407.04967, 2024.
[42] Alexander G. D. G. Matthews, Michael Arbel, Danilo J. Rezende, and Arnaud Doucet. Continual repeated annealed flow transport Monte Carlo. In Proceedings of the 39th International Conference on Machine Learning, volume 162 of Proceedings of Machine Learning Research, pages 15196–15219, 2022.
[43] Sean Meyn and Richard L. Tweedie. Markov Chains and Stochastic Stability. Cambridge University Press, 2nd edition, 2009.
[44] Laurence I. Midgley, Vincent Stimper, Gregor N. C. Simm, Bernhard Schölkopf, and José Miguel Hernández-Lobato. Flow annealed importance sampling bootstrap. In International Conference on Learning Representations, 2023.
[45] Aleksandar Mijatović and Jure Vogrinc. On the Poisson equation for Metropolis–Hastings chains. Bernoulli, 24(3):2401–2428, 2018.
[46] Antonietta Mira, Reza Solgi, and Daniele Imparato. Zero variance Markov chain Monte Carlo for Bayesian estimators. Statistics and Computing, 23(5):653–662, 2013. doi: 10.1007/s11222-012-9344-6.
[47] Iain Murray, Ryan P. Adams, and David J. C. MacKay. Elliptical slice sampling. In Proceedings of the Thirteenth International Conference on Artificial Intelligence and Statistics, volume 9 of Proceedings of Machine Learning Research, pages 541–548, 2010.
[48] Viacheslav Natarovskii, Daniel Rudolf, and Björn Sprungk. Geometric convergence of elliptical slice sampling. In Proceedings of the 38th International Conference on Machine Learning, volume 139 of Proceedings of Machine Learning Research, pages 7969–7978, 2021.
[49] Radford M. Neal. Regression and classification using Gaussian process priors. In J. M. Bernardo, J. O. Berger, A. P. Dawid, and A. F. M. Smith, editors, Bayesian Statistics 6: Proceedings of the Sixth Valencia International Meeting, pages 475–501. Oxford University Press, 1999.
[50] Radford M. Neal. Slice sampling. The Annals of Statistics, 31(3):705–767, 2003.
[51] Frank Noé, Simon Olsson, Jonas Köhler, and Hao Wu. Boltzmann generators: Sampling equilibrium states of many-body systems with deep learning. Science, 365(6457):eaaw1147, 2019.
[52] David Nualart. The Malliavin Calculus and Related Topics. Probability and Its Applications. Springer, Berlin, second edition, 2006.
[53] Chris J. Oates, Mark Girolami, and Nicolas Chopin. Control functionals for Monte Carlo integration. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 79(3): 695–718, 2017. doi: 10.1111/rssb.12185.
[54] Art Owen and Yi Zhou. Safe and effective importance sampling. Journal of the American Statistical Association, 95(449):135–143, 2000.
[55] George Papamakarios, Eric Nalisnick, Danilo Jimenez Rezende, Shakir Mohamed, and Balaji Lakshminarayanan. Normalizing flows for probabilistic modeling and inference. Journal of Machine Learning Research, 22(57): 1–64, 2021.
[56] Theodore Papamarkou, Antonietta Mira, and Mark Girolami. Zero variance differential geometric Markov chain Monte Carlo algorithms. Bayesian Analysis, 9(1):97–128, 2014. doi: 10.1214/13-BA848.
[57] Matthew D. Parno and Youssef M. Marzouk. Transport map accelerated Markov chain Monte Carlo. SIAM/ASA Journal on Uncertainty Quantification, 6(2):645–682, 2018.
[58] Cristian Pasarica and Andrew Gelman. Adaptively scaling the Metropolis algorithm using expected squared jumped distance. Statistica Sinica, 20(1):343–364, 2010.
[59] Du Phan, Neeraj Pradhan, and Martin Jankowiak. Composable effects for flexible and accelerated probabilistic programming in NumPyro. arXiv:1912.11554, 2019.
[60] Dan Piponi, Matthew D. Hoffman, and Pavel Sountsov. Hamiltonian Monte Carlo swindles. In Proceedings of the 23rd International Conference on Artificial Intelligence and Statistics, volume 108 of Proceedings of Machine Learning Research, pages 3774–3783, 2020.
[61] Danilo Jimenez Rezende and Shakir Mohamed. Variational inference with normalizing flows. In International Conference on Machine Learning, pages 1530–1538, 2015.
[62] Danilo Jimenez Rezende, George Papamakarios, Sébastien Racanière, Michael Albergo, Gurtej Kanwar, Phiala Shanahan, and Kyle Cranmer.
Normalizing flows on tori and spheres. In Proceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, pages 8083–8092, 2020.
[63] Gareth O. Roberts and Jeffrey S. Rosenthal. Coupling and ergodicity of adaptive Markov chain Monte Carlo algorithms. Journal of Applied Probability, 44(2):458–475, 2007.
[64] Murray Rosenblatt. Remarks on a multivariate transformation. Annals of Mathematical Statistics, 23(3):470–472, 1952.
[65] Donald B. Rubin. Estimation in parallel randomized experiments. Journal of Educational Statistics, 6(4):377–401, 1981. doi: 10.3102/10769986006004377.
[66] Sergey Samsonov, Evgeny Lagutin, Marylou Gabrié, Alain Durmus, Alexey Naumov, and Eric Moulines. Local-global MCMC kernels: the best of both worlds. In Advances in Neural Information Processing Systems, volume 35, pages 5178–5193, 2022.
[67] Shijing Si, Chris J. Oates, Andrew B. Duncan, Lawrence Carin, and François-Xavier Briol. Scalable control variates for Monte Carlo methods via stochastic optimization. In Monte Carlo and Quasi-Monte Carlo Methods (MC-QMC 2020), volume 387 of Springer Proceedings in Mathematics & Statistics, pages 205–221. Springer, 2022. doi: 10.1007/978-3-030-98319-2_10.
[68] Leah F. South, Toni Karvonen, Chris Nemeth, Mark Girolami, and Chris J. Oates. Semi-exact control functionals from Sard's method. Biometrika, 109(2):351–367, 2022. doi: 10.1093/biomet/asab036.
[69] Leah F. South, Marina Riabiz, Onur Teymur, and Chris J. Oates. Postprocessing of MCMC. Annual Review of Statistics and Its Application, 9:529–555, 2022. doi: 10.1146/annurev-statistics-040220-091727.
[70] Leah F. South, Chris J. Oates, Antonietta Mira, and Christopher Drovandi. Regularized zero-variance control variates. Bayesian Analysis, 18(3):865–888, 2023. doi: 10.1214/22-BA1328.
[71] Alessio Spantini, Daniele Bigoni, and Youssef Marzouk. Inference via low-dimensional couplings. Journal of Machine Learning Research, 19(66):1–71, 2018.
[72] Takeshi Teshima, Isao Ishikawa, Koichi Tojo, Kenta Oono, Masahiro Ikeda, and Masashi Sugiyama. Coupling-based invertible neural networks are universal diffeomorphism approximators. Advances in Neural Information Processing Systems, 33:3362–3373, 2020.
[73] Luke Tierney. A note on Metropolis–Hastings kernels for general state spaces. Annals of Applied Probability, 8(1):1–9, 1998.
[74] Michalis K. Titsias and Petros Dellaportas. Gradient-based adaptive Markov chain Monte Carlo. In Advances in Neural Information Processing Systems, volume 32, 2019.
[75] Michalis K. Titsias and Omiros Papaspiliopoulos. Auxiliary gradient-based sampling algorithms. Journal of the Royal Statistical Society: Series B, 80(4):749–767, 2018.
[76] Michalis K. Titsias, Angelos Alexopoulos, Siran Liu, and Petros Dellaportas. Gaussian invariant Markov chain Monte Carlo. Journal of the American Statistical Association, to appear. arXiv:2506.21511, 2026.
[77] Dilin Wang, Hao Liu, and Qiang Liu. Variational inference with tail-adaptive f-divergence. In Advances in Neural Information Processing Systems, volume 31, 2018.
Supplementary Materials: Transformed Samplers with Variance Reduction
S1 PROOFS
S1.1 Notation
We recall the notation of Section 4. Throughout, and are measurable spaces, equipped with their Borel -algebras when they are subsets of . The reference is a probability measure on and is a bijection with and measurable. The map pushes forward the reference to and pulls back the target to . Assuming , we define the importance weight . We denote by the composition operator associated with , which maps a measurable to . Since is a bijection, is invertible with for measurable . By change of variables, is an isometry from onto for every , and . The latent chain has kernel , it proposes at step and moves to , we also have . For the solution and coefficients , the estimator of Section 4.3 is with
where , for an MH sampler with acceptance probability , and otherwise. For a probability measure , denotes the square-integrable functions with inner product , and those with . For a kernel reversible with respect to , the Dirichlet form and the spectral gap are
and the absolute spectral gap is , where is the operator norm of on . For the Gaussian reference, we use the probabilists' Hermite polynomials , defined by the generating function
and their normalized tensor products
form an orthonormal basis of [52, Ch. 1]. If with , and , then
with the convention . To see this, by the independence of the coordinates it suffices to take , then replace by in (S2), taking expectations and using gives , where the exchange of expectation and summation is justified by the dominated convergence with . Identifying coefficients yields (S4).
S1.2 Proof of Proposition 4.1
The proof uses only that T and are measurable, so it holds for general measurable spaces Z and X.
(i) Since is measurable, is measurable for every measurable , so is well defined and is the pushforward of under , thus it is a probability measure. Since is measurable,
is measurable. Thus is a Markov kernel. For , since is the pushforward of under ,
that is, on . Invariance follows from
The measure is the image of under . Writing , reversibility means invariance under , and since , reversibility of implies that of . Since and are measurable, and generate the same -algebra, so
and is a Markov chain with kernel .
(ii) Since , is an isometry from onto , so , and by change of variables and . Applying to both sides of gives , therefore
Remark S1.1. If is the MH kernel with target and proposal , then is the MH kernel with target and proposal , and the acceptance probability of a move equals that of . With densities and a diffeomorphism ,
and in the ratio the Jacobian factors are canceled out. Without densities the same holds in the general formulation of Tierney [73], because the push-forward by preserves the Radon–Nikodym derivative that defines the acceptance probability.
Remark S1.2 (Affine maps). Two consequences of Proposition 4.1(ii) connect it with earlier work. Let with invertible and , so that and .
-
Since gives , the transformed GI kernel is , and its Poisson solutions are those of Titsias et al. [76]: for , and entrywise for , as , and .
-
For any target and , the MH kernels with proposals and are the transforms of those with proposals and , by Remark S1.1. If and is a centered Poisson solution of for the latent kernel, then by linearity is one for , which for lower-triangular and is Proposition 3 of Alexopoulos et al. [2]. An approximate solution with residual , , transforms to one with residual and , which is why an approximation fitted once on the standard normal, as in Alexopoulos et al. [2], has the same quality for every Gaussian.
S1.3 Proof of Theorem 4.2
By Proposition 4.1(i) with and , is -reversible. The map is unitary from onto , since and has inverse , and .
(i) and (ii). Since and is unitary, is an orthonormal basis of , and . For , we have , so . Thus
is positive semidefinite if and only if every . Since for every , and have the same spectrum, which does not depend on . Since , consists of those with , so , and the absolute spectral gap of is .
(iii). Write with . For , gives , so . Applying to gives , with by orthonormality, so
so the series defining converges in and, again by orthonormality, , which is the norm bound. Since is bounded and , it can be applied term by term:
As has no component along , it is centered. If is another centered solution, then satisfies . Since , this gives and hence for all , that is, . Therefore the centered solution is unique.
S1.4 Proof of Theorem 4.3
S1.4.1 SNIS
Let be independent, , , , and , so that . The estimator (8) is with and , where and are the least-squares coefficients, with intercept, of and of on .
For fixed set and . They are square-integrable by assumption, since and by Cauchy-Schwarz. The strong law gives and almost surely, hence , and the central limit theorem for with the delta method for , whose gradient at is , gives
By orthonormality of the variance is minimized over at .
For the fitted coefficients, the strong law gives and almost surely, since the sample covariance of the tends to . Writing \bar{N}_n = n^{-1} \sum_i (w_i F_i - a^*^\top \phi_i) - (\hat{a}_n - a^*)^\top \bar{\phi}_n, the second term is almost surely and , because ; the same holds for . Hence the estimator has the limits of the fixed-coefficient case with , and , so
If , then , and , which is Proposition 5.1 with .
S1.4.2 TGI
Ergodicity under (A2). TGI-RWM, and TGI-MALA and TGI-pMALA under the additional assumptions below, propose from , and we treat them at once through the following lemma.
Lemma S1.3. Let , , and let the proposal be with diagonal. Under (A2), assume that and are continuous, write , and that for constants and all
Then the MH kernel P with target is V-uniformly geometrically ergodic with .
Proof. Write for the density of , and with . Since and is -reversible, the MH ratio is with
Expanding the Gaussian densities,
and with and ,
where .
Uniform bound. We show that is bounded when is large and the noise is moderate. Fix , let , and set
Suppose and . Then , and since , ,
As and , using , and ,
Therefore, by (S5) at ,
and
For the forward term, and (S5) at give
and , so
For the backward term, the bounds at and give
and , so
Adding the two bounds gives for a constant that depends on neither nor . By (A2), for the acceptance probability on is then
Drift. Since a rejected move leaves V unchanged,
which we split according to and its complement.
On , . Let , so that and , and let . For we have , so that
Since , the acceptance probability is at least on , and as there, . Therefore
On , we use and , so that . Thus we have
with , which does not depend on and tends to as by dominated convergence with and finite.
Combining the two parts, for ,
Since does not depend on , and since and as , there are such that for and for , we then fix . For we have , so with ,
On , since a move is either accepted or rejected and ,
Using , and ,
so PV is bounded on C. Together, with and .
Small sets. On the bounded set C, is bounded away from 0 and by (A2), and by (S5) the Gaussian proposal density is bounded below on , thus C is small, and since the proposal density is positive everywhere, the chain is Lebesgue-irreducible and aperiodic. The drift condition and Meyn and Tweedie [43, Theorem 15.0.1] give the claim.
For the gradient-based samplers we assume in addition:
Assumption.
(A4)
(A5) w is twice continuously differentiable and .
They require the gradient and curvature of to decay in the tails, so that the gradient-based proposals return to far from the origin.
Now we verify (S5) for each sampler for . Write
which are finite by (A4) and (A5). TGI-RWM has and , so (S5) holds trivially. TGI-MALA has and , so . For TGI-pMALA, write , so that is clipped to , and . Let . If , then , so the clipping is inactive, and since ,
Let , so that for . Then for , while for the clipping gives with . Thus with , and by clipping. Its mean is with , and gives . Lemma S1.3 applies in all three cases. For the TGI-RWM proposal is itself, and by (A2) the acceptance probability is at least , so for every and the chain is uniformly ergodic [43, Theorem 16.0.2]; for the gradient-based proposals, removes the contraction used in the proof, and the acceptance probability may decay with .
LLN and CLT under (A2). With , and is the plain average of the summands. We use the chain , which is Markov because depends on only through . Its stationary law is the law of with . Writing for the kernel of and for the law of started at , we have for , and , so , and inherits geometric ergodicity from [see also 20]. The summand is a function of .
Under , and both have law . For an MH sampler, with probability and otherwise, so ; for samplers without an accept-reject step, . In both cases . By definition , so , and .
It remains to check that has a finite moment of order under , which the central limit theorem for geometrically ergodic chains requires [35, Theorem 9]. The term is covered by (A3), and the next lemma handles the control variates.
Lemma S1.4. Under (A2) and (A3), . Suppose that the candidate kernel Q satisfies one of the following:
(a) Q is invariant;
(b) is Gaussian with mean bounded by and bounded covariance, and is a polynomial.
Then and have finite moments of order under .
Proof. Since is a finite combination of the , (A3) and Minkowski's inequality give , and since by (A2), also . Under , , and Jensen's inequality bounds by the same quantity, so it suffices to show that this integral is finite. Under (a), and the invariance of give . Under (b), write
with , and . If has degree , then and , combining the two bounds and taking expectations over ,
where since has moments of all orders. Since , .
TGI-RWM satisfies (a), since is -reversible, and TGI-MALA and TGI-pMALA satisfy (b) with the Hermite dictionary. For samplers without an accept-reject step, (a) typically holds as well, for example, the initial point on the ellipse in elliptical slice sampling is invariant.
Since , (A3) and Lemma S1.4 give a finite moment of order under . The ergodic theorem for Harris-recurrent chains gives almost surely [43, Theorem 17.0.1], and the central limit theorem for geometrically ergodic chains with moments [35, Theorem 9] gives with .
Ergodicity under (A2') We first translate the first part of (A2') into growth bounds.
Lemma S1.5. Let be a composition of affine coupling layers , with and , followed by an invertible coordinatewise affine layer. Then there are constants such that and for all .
Proof. Each coupling layer satisfies , and its inverse satisfies . Composing the layers and the final affine layer gives and , and the second bound gives ; enlarging if needed gives the stated form with . The log-determinant is the sum of the log-scales plus a constant, so it is bounded by plus that constant.
Write for the TGI kernel and for the independence kernel with proposal , so that . Both are MH kernels with target , so is -invariant. We show that . By Lemma S1.5, . For we have , so by (A2')
while for , . Since , the density satisfies for a constant , so . The independence kernel then satisfies, for every ,
hence . The whole space is therefore small, and [43, Theorem 16.2.4]. The argument uses only the -invariance of , so it holds for every and for all three TGI samplers, without (A4) or (A5).
LLN and CLT under (A2') Let indicate an independence step, so , and augment the chain to . Given , the next coin, candidate and state are drawn with fresh randomness, so is a Markov chain, and as before , so is uniformly ergodic, hence positive Harris recurrent. Write and
Since is independent of , under we have given , and the transition is then . Under (A2), by the invariance of , and by definition, so and has . For the moments, the bound of (A2) is replaced by . For the gradient-based samplers we assume, instead of (A4) and (A5), only
Assumption. (A4') for some .
which allows to grow in the tails. Since is clipped to , the TGI candidate given is then Gaussian with mean , , and covariance , with for TGI-RWM.
Lemma S1.6. Under , if the TGI candidate is as above, G is a polynomial of degree at most K and , then , and have finite moments of order under .
Proof. Let . Given , the pair has law . Since , writing and using ,
since has moments of all orders, and the same bound holds for . Since and has finite moments of every order below ,
because ; Jensen's inequality bounds by the same quantity. Independence steps do not enter , so no moment of under is needed.
Since , (A3) and Lemma S1.6 give a finite moment of order . By the ergodic theorem [43, Theorem 17.0.1], the numerator tends to 0 and the denominator to almost surely, so almost surely. By the central limit theorem [35, Theorem 9], with , and Slutsky's lemma gives .
S1.4.3 TESS
Ergodicity. Under (A2) and (A2*) with , (A2) and the continuity in (A2*) make bounded away from and on every compact set, and (A2*) is the tail condition of Natarovskii et al. [48, Theorem 1], which then gives for some and . The chain is therefore geometrically ergodic, and in particular positive Harris recurrent. Under (A2') with , the minorization argument of the proof in Appendix S1.4.2 uses only the -invariance of the kernel that the independence step is mixed with, so it applies to TESS unchanged and gives uniform ergodicity.
Estimator. The augmented chain , together with the indicator of an independence step when , is a Markov chain, since given the next angle, candidate, threshold and shrinkage draws are fresh; it inherits the ergodicity of as in the proof in Appendix S1.4.2. Under its stationary law and both have law , so has mean zero, and has conditional mean zero given by construction.
It remains to bound the moments of order . The terms , and are covered by (A3). For the candidate , conditionally on it has law . Under (A2) the candidate kernel is -invariant (Appendix S2.2), so Lemma S1.4(a) applies. Under (A2'), the mean has norm at most and the covariance is at most , uniformly in , so with and
which is integrable under because , as in Lemma S1.6 with ; Jensen's inequality bounds in the same way. The ergodic theorem [43, Theorem 17.0.1] and the central limit theorem for geometrically ergodic chains [35, Theorem 9], applied as in the proof of Theorem 4.3, give both conclusions.
S1.5 Proof of Proposition 5.1
Since , we have , and by (C1) and (C3) the chain has kernel with , so . With , for any coefficients , so . The asymptotic variance does not depend on the initial distribution, so we compute it under stationarity, . Since and ,
Since , we have , and
where the interchange of sums is justified by . For , , which gives (9). With , we have , whose second moment is since is unbiased, multiplying by gives . Since all terms are nonnegative, taking expectations term by term gives (10); no independence between the is needed.
Remark S1.7. Since the terms of (10) are separable, keeping index changes the expected asymptotic variance by , so it is beneficial exactly when ; under a budget , the expected variance is minimized by keeping the indices with the largest positive scores . The total estimation noise in (10) is at most . For the Gaussian reference, decreases in for , so for .
S2 REFERENCE KERNELS AND SAMPLERS
Section 4.2 develops the construction for the Gaussian reference, where has the Hermite polynomials as eigenfunctions. The same argument applies to any reference pair with the structure of (C1): the MH sampler that proposes from and accepts with probability targets , reduces to when , and satisfies (C2) since . This appendix lists further reference pairs together with their spectral decompositions, and treats samplers without an accept-reject step. The degenerate pair with , for which for all , is importance sampling from the flow; it has no chain, so (C3) is void and the control variate of Section 4.3 is applied as in (8). With , the summand of (2) for an MH sampler is
For samplers without an accept-reject step, and
where is an auxiliary point with known conditional law ; for elliptical slice sampling, is the initial point on the ellipse. When , and in both cases, so . Unless stated otherwise, the numerical checks use 1000 independent chains of 5000 steps started from the stationary distribution.
S2.1 Gaussian Reference
Let and let be the kernel (7) with , so that . For and , the pair is Gaussian with covariance , which is symmetric under exchange, so is -reversible. By (S4) and the orthonormality of , (C1) holds with , and . All eigenvalues are nonnegative if and only if , so the transformed kernel is positive semidefinite if and only if , in which case its spectral gap is ; for its absolute spectral gap is . When , and , so the proposals of TGI-MALA and TGI-pMALA reduce to , for TGI-pMALA because the clipping interval contains one; every proposal is then accepted and the kernel is , so all three TGI samplers satisfy (C1) and (C3). TGI-RWM satisfies (C2) because it proposes from , and TGI-MALA and TGI-pMALA satisfy (C2) by Lemma S2.1 below.
The three TGI samplers of Section 4.2 are summarized in Table S1.
Table S1: The TGI samplers on the Gaussian reference. The proposal is in the latent space. Cost counts one evaluation of as one unit and a joint evaluation with its gradient as two.
| Sampler | Mean | Covariance | Derivatives | Cost per step |
|---|---|---|---|---|
| TGI-RWM | none | 1 | ||
| TGI-MALA | gradient | 2 | ||
| TGI-pMALA | diagonal Hessian |
Each sampler evaluates at the candidate through (6), that is, one forward pass of with its log-determinant and one evaluation of ; the gradient-based samplers add one backward pass. For TGI-MALA and TGI-pMALA the proposal density is asymmetric, so the acceptance probability includes the ratio of forward and reverse proposal densities, which requires and at the candidate as well. These are stored and reused at the next step when the candidate is accepted.
TGI-pMALA uses with and . The diagonal of the Hessian is computed with Hessian-vector products through and the log-determinant, and is clipped to with . This is the diagonal form of the preconditioner of Titsias et al. [76, Eq. 26], who average the because their prior covariance is not diagonal.
In -space, linearizing at with gives , so a move has noise covariance and, for TGI-MALA, drift up to a term from . The map therefore acts as the position-dependent preconditioner , which equals for the affine map to . For TGI-pMALA the preconditioner becomes , so corrects coordinate-wise scale errors of the map, but not shear or correlation, which the map itself must capture.
For the gradient-based samplers, the conditional expectation in is available in closed form.
Lemma S2.1. Let and , which may be negative. Then
and if for all this equals . TGI-MALA has and ; TGI-pMALA has and .
Proof. Coordinates are independent, so take and . By (S2),
and the coefficient of gives (S6) for every real . If , then
which gives the second form.
☐
Numerical check. We check Proposition 5.1 on a target where every quantity in it is known in closed form. Let with , the exact map, and . Then , , and every TGI-RWM proposal is accepted, so the chain is the autoregression with . The pulled-back test function has the normalized Hermite coefficients
and . We use the dictionary with the exact coefficients and .
Prediction. Since , the function satisfies , where is the degree-K truncation of . With every proposal accepted, the estimator with reduces to , the chain average of the truncation residual. For a chain average of the asymptotic variance is with , so
which we evaluate with the sums truncated at k = 80.
Simulation. For ( ) and ( , independent draws from ) we run independent stationary chains of steps and compute, for each chain, the plain average of and the control-variate estimator. The empirical VRF is the ratio of their mean squared errors over the chains, both measured against the exact value . Table S2 compares the two. They agree over fourteen orders of magnitude for both step sizes, and the control-variate estimator is unbiased: its mean over the chains deviates from by at most 2.0 standard errors for and 1.2 for .
For the empirical VRF exceeds the prediction, by a factor of about 1.8 at for both step sizes, including the independent draws at , so the excess is not caused by the autocorrelation of the chain. The residual is essentially , whose second moment comes from the far tail of : 61% of comes from , an event of probability . The squared error of a single chain is therefore heavily right-skewed, and its average over a moderate number of chains is usually too small; at and the ratio of the empirical to the predicted VRF falls from 1.9 with 1000 chains to 1.3 with 80,000.
Table S2: VRF of TGI-RWM on LogNormal with the exact map, and . Predicted: Proposition 5.1. Empirical: ratio of mean squared errors over 1000 stationary chains of 5000 steps. At the chain draws independently from .
| K | 1 | 2 | 4 | 6 | 8 | 10 | |
|---|---|---|---|---|---|---|---|
| Predicted | 15.6 | 270 | |||||
| Empirical | 15.1 | 268 | |||||
| Predicted | 8.35 | 102 | |||||
| Empirical | 8.10 | 97.5 |
S2.2 Elliptical Slice Sampling
Elliptical slice sampling [47] with prior and likelihood also fits this framework; with a flow it is transport elliptical slice sampling [15]. We take as candidate the initial point on the ellipse, with and . Given , this is the GI move with and , where the sign of is irrelevant because is symmetric, so (S4) gives . Averaging over , the candidate kernel satisfies (C1) and (C2) with and
and is -reversible because it is reversible conditionally on , as is. All are nonnegative and the largest for is , attained at , so is positive semidefinite with spectral gap . When the slice contains the whole ellipse, so the initial point is accepted and (C3) holds. The sampler has no accept-reject step, so .
Numerical check. We check these properties on a target where the transport is exact. Let with , and , so that is constant and has the Hermite coefficients . We run the elliptical slice sampler with prior and likelihood , including the threshold and the shrinking of the bracket, on 1000 independent stationary chains of 5000 steps.
Every step evaluates exactly one point: the initial point on the ellipse is always accepted, as (C3) requires. Table S3 (top) compares the eigenvalues with the lag-one autocorrelation of along the chains. The odd orders are uncorrelated, is the largest, so the spectral gap is , and the estimates agree with to within 0.04; the largest deviation, at , comes from the heavy tails of under .
With and , Proposition 5.1 with predicts the VRF of as for ; the ratio of mean squared errors over the chains agrees with it to within for , and the estimator is unbiased. The VRF at is only 3.6 because the residual is then dominated by , the slowest component, with . For the residual variance comes from rare draws with , and the average of the heavily right-skewed squared errors over 1000 chains underestimates it, as in Appendix S2.1.
S2.3 Gamma Reference
For parameters on with a power-law behaviour near zero and exponential tails, a Gamma reference matched to the target is an alternative to a log transform followed by a Gaussian reference. Let and let act on each coordinate as the transition over time of the Cox-Ingersoll–Ross process [19]. Its transition law over time is a scaled noncentral chi-square distribution [19], which at is the Gamma–Poisson mixture
Table S3: Elliptical slice sampling on LogNormal with the exact map, 1000 stationary chains of 5000 steps. Top: eigenvalues of the candidate kernel on and the lag-one autocorrelation of . Bottom: VRF of with the dictionary and , from Proposition 5.1 and from the ratio of mean squared errors.
| 1 | 2 | 3 | 4 | 5 | 6 | |
|---|---|---|---|---|---|---|
| Autocorrelation of | ||||||
| VRF, Proposition 5.1 | ||||||
| VRF, simulation |
Table S4: Gaussian and Gamma references on , , , over 1000 chains of 5000 steps started from exact draws of . For each row, is chosen on a grid to maximize ESS×VRF. The last column is the largest value of minus its quantile on target draws; for the Gaussian moment-matched map is unbounded and this gap grows with the number of draws.
| Reference | Map | Acceptance | ESS/n | VRF | ESS×VRF/n | Tail gap | |
|---|---|---|---|---|---|---|---|
| Gaussian | moment-matched | ||||||
| Gamma | moment-matched | ||||||
| Gaussian | exact | ||||||
| Gamma | exact |
The process is reversible with respect to [21], and its generator is . The generalized Laguerre polynomial solves , so , which at is . Since the Laguerre polynomials are orthogonal and complete in , (C1) holds with the normalized polynomials
and (C2) holds since . As , all eigenvalues are nonnegative, so is positive semidefinite with spectral gap .
Numerical check. With , the reference Gamma, the exact quantile map, and , the VRF over 1000 chains of 5000 steps is 444, 1970, 6610 and 13200 for , against 465, 1950, 6790 and 13300 from Proposition 5.1; with the misspecified maps it falls to about 25 for and 6 for . Table S4 compares the two references on with moment-matched affine maps and with exact quantile maps: with the former, the Gamma reference matches the target near zero, keeps bounded and is about 50 times more efficient, whereas with exact maps the two perform alike.
S2.4 Circle and Sphere
For angular parameters, the reference can be the uniform distribution on a circle or a sphere, and flows on these spaces are available [62].
Circle. Let be the uniform distribution and let be the step modulo with . Its density depends only on and is symmetric, so is -reversible. Since , (C1) holds with the orthonormal Fourier basis () and eigenvalues ; these are positive, so is positive semidefinite with spectral gap .
Table S5: The MH sampler proposing from on the circle , Fourier degree 6) and on the sphere (vMF with , , harmonics of degree at most 4), with 1000 chains of 5000 steps. Each map is the quantile map of a model , so that and : on the circle, is the target mixture with both concentrations scaled; on the sphere, . Predicted values are from Proposition 5.1 for the exact maps.
| Target | Map | Step | Acceptance | ESS/n | VRF | ||
|---|---|---|---|---|---|---|---|
| observed | predicted | observed | predicted | ||||
| Circle | exact | ||||||
| Circle | exact | ||||||
| Circle | concentrations | ||||||
| Circle | concentrations | ||||||
| Sphere | exact | ||||||
| Sphere | exact | ||||||
| Sphere | |||||||
| Sphere | |||||||
Sphere. Let be the uniform distribution on and let move to , with uniform on the unit circle of the tangent plane at and fixed. Then is uniform on the circle , so it depends only on and is symmetric, hence -reversible. By the Funk–Hecke formula [7], such a zonal kernel acts on each spherical harmonic of degree by multiplication with , where is the Legendre polynomial, so (C1) holds with the real spherical harmonics. Since , we have for and , so is attained and smaller than one. Some eigenvalues may be negative, for instance when , so need not be positive semidefinite; replacing the fixed step by the heat kernel, with eigenvalues , restores positivity.
In both cases, (C2) holds for the MH sampler that proposes from , by the eigenvalue relation.
Numerical check. Table S5 reports the MH sampler that proposes from , with quantile maps, of the polar angle for the sphere, for a mixture of von Mises distributions on the circle and a von Mises–Fisher distribution on . With the exact map every proposal is accepted, and the ESS and VRF agree with Proposition 5.1. On these compact spaces is always bounded, but a map whose distribution is too concentrated makes vary over a wide range, here for , so chains stall in the regions the map underweights, as seen in the low ESS.
S3 ALGORITHMS AND IMPLEMENTATION
This appendix gives the procedure for a general reference pair satisfying (C1)-(C3) (Appendix S2), followed by the details specific to the Gaussian reference. The settings used in the experiments are given in Appendix S4.
S3.1 General Procedure
Algorithm S1 prepares the map and chooses the sampler, and Algorithm S2 builds the control variate and returns the estimate. Both only require the reference pair , its eigenfunctions and eigenvalues , and the conditional expectations of (C2).
Algorithm S1 Preparing the map and choosing the estimator
Require: unnormalized log , reference , family of maps, training budget 1: map constrained parameters to the support of 2: train (Section 4.4), then freeze 3: draw and compute and the largest normalized weight from 4: run a short pilot chain on that proposes from , and compute the tail gap of 5: choose SNIS, TGI-RWM or TESS by the rule of Section 5.1 6: return frozen map and estimator
Algorithm S2 Estimation with transformed control variates
Require: frozen map , estimator, test function , candidate index set , reference budgets and , threshold , burn-in length , run length 1: draw points and compute and the sample variance of , for 2: keep 3: draw fresh points from and re-estimate for 4: set and 5: if the estimator is SNIS then 6: draw points and 7: return of (8), with and fitted on these draws 8: end if 9: run burn-in steps, choosing the step size (and optionally ) as in Appendix S3.2, then fix it 10: for do 11: draw the candidate and move to 12: for an MH sampler, and otherwise 13: , which equals when the candidate is drawn from 14: 15: end for 16: return
The coefficients depend on and but not on the step size, so lines 1–3 of Algorithm S2 are run once and reused for every step size and every run, and several test functions share the chain and differ only in their coefficients. Lines 1–3 require forward passes of and evaluations of , but no evaluation of . Selection and estimation use independent reference draws, so that does not depend on the coefficients it retains, and all quantities in lines 11–14 are computed in the latent space, so is never evaluated. In practice many chains run in parallel and their estimates are averaged.
S3.2 Implementation for the Gaussian Reference
Diagnostics and the largest normalized weight are computed with the log-sum-exp trick, since is known up to a constant. The pilot chain gives the Fisher divergence , which needs the gradient only on the pilot, and the tail gap, the difference between the largest log w on the pilot and its 99.9% quantile; a large gap indicates an unbounded weight and chains that may stall in the tails.
Dictionary and Pruning The candidate set is of multi-indices of total degree at most involving at most coordinates, of size , enumerated directly, with . The one-dimensional values , are computed by the recurrence , so evaluating costs ; reuses the same values for TGI-RWM and the factors of Lemma S2.1 for TGI-MALA.
Step Size The objective of Section 5.3 is maximized with the lower bound of the acceptance rate [74] in place of . During burn-in follows stochastic gradient ascent with learning rate 0.05 and , using the reparametrized gradient of Titsias and Dellaportas [74] for the first two terms and a running average of the acceptance probabilities for the last; the per-chain gradients are winsorized at their 10% and 90% quantiles before averaging, without which a few chains at the seam between modes drive to its lower bound. The step size of the evaluation run is the average of over the second half of burn-in. uses from the burn-in samples and the residual variance on reference draws independent of those used for the coefficients. When is estimated it is fitted on the burn-in samples by minimizing the empirical variance of the summand and then frozen.
S4 EXPERIMENTAL DETAILS
We first give the settings shared by all experiments, then compare training choices for the map (Appendix S4.1) and give the details of the synthetic targets (Appendix S4.2) and the real posteriors (Appendix S4.3).
Protocol. For each target the flow is trained once and frozen, and replicates are independent estimates on it, never retrainings. Each estimate uses target evaluations, an evaluation of counting 1 and one with its gradient 2; a draw of SNIS, a step of TGI-RWM and a candidate of TESS cost 1, a step of TGI-MALA and a leapfrog step of HMC cost 2. A chain-based estimate averages 200 chains of cost 5000 started from . Burn-in is included and takes 10% of the cost for TGI-RWM and TESS, 20% for TGI-MALA and 20% for NeuTra. For comparison reason, the step size of the TGI samplers and the number of leapfrog steps of NeuTra are tuned in the same way: they are chosen on a grid by a pilot of chains of cost on the main test function, which is not charged; the step size of NeuTra is adapted by dual averaging during warm-up. Each setting is replicated times, which gives a relative standard error of about 7% for the RMSE and 14% for the precision per second, and all results use unless stated otherwise. The main test function of each target is shown in Table S8 and Table S9.
Wall-clock time is the time of a batch of R estimates advanced in lockstep, divided by R. It includes burn-in and, for SNIS and TGI-MALA, the one-time compilation, and excludes the training of the flow, the fitting of the control-variate coefficients and the pilot runs. NUTS, which runs on the CPU, is compared at equal numbers of target evaluations only.
Other experiments. Two groups of experiments depart from this protocol. Figure S1 and Table S13 measure the efficiency per step rather than per second, with 500 independent chains started from , 500 burn-in and 5000 recorded steps, which gives a relative precision of about for ESS/n and VRF; the step-size curves use a grid of 25 values of and 5 adaptive runs of J on the same chains, and the pruning curves use and five pruning rules. The comparison with NUTS (Table S10 and Figure S2) adapts by J during burn-in, at one extra backward pass per step which is counted, and sets the leapfrog steps of NeuTra by at acceptance 0.9. There the flow-based methods use chains of cost 5000, their number set by the budget, and 100 estimates per setting, and NUTS uses chains of cost and 50 estimates per setting. Table S10 reports the RMSE on the real posteriors at without the training of the flow, and Figure S2 on the banana with the full training charged, as the lower envelope over training checkpoints and sampling budgets, with bootstrap 95% intervals from 2000 resamples.
Transport. The transport is a RealNVP flow [23] with affine coupling layers and alternating masks. Each conditioner is a multilayer perceptron with two hidden layers, tanh activations and a zero-initialized output layer, and the log-scale is parametrized as . A final coordinatewise affine layer is initialized at a Gaussian approximation of the target, the Laplace approximation or a moment-matched one, so training starts from that approximation. We use two sizes, SMALL with 8 layers, width 64 and , and LARGE with 12 layers, width 128 and . Constrained parameters are first mapped to by a log or logit transform. The flows are trained with Adam [36] for steps with batch size 256, a learning rate decayed from to by a cosine schedule, and gradient norms clipped at 100, with two exceptions: eight schools is trained for steps, and the sparse logistic regression for steps with batch size 1024, an initial learning rate of and a network of 12 layers of width 256. The map is frozen before the evaluation runs. Two training schemes are used, and a third extends the first to multimodal targets.
- Scheme A combines the reverse and an adaptive forward Kullback–Leibler divergence. The reverse term is estimated at each step from 256 draws as . For the forward term, 32 TGI-RWM chains advance 10 steps every 10 training steps during training, with adapted to an acceptance rate of 0.5. The chain states are stored in x-space and pulled back through the current flow after each update, so the chains are never restarted. Visited states enter a sliding buffer of samples, and from 10% of the training steps onwards the forward Kullback–Leibler divergence on the buffer is added to the loss with weight one; earlier states are discarded.
• Scheme B minimizes the reverse Kullback–Leibler divergence alone.
- Scheme A , used only for multimodal targets, extends A as follows. A pilot of 16 NUTS chains (64 on the field) is started from Uniform ; coordinates are whitened with the average within-chain covariance, and the flow is trained in whitened coordinates. The chains are grouped into modes by the Mahalanobis distance between their means, with threshold 5, and half of each forward Kullback–Leibler minibatch is drawn from the pilot, with equal weight per group; we call this the anchor, since it keeps every mode represented in the flow whatever mass the current flow assigns to it. The weights of the modes are left to the reweighting of SNIS or to the chains, and the cost of the pilot is included in the total cost.
Tail penalty. Unless it is switched off (Tables S8 and S9), the loss includes
with and points on a radial band beyond the Gaussian shell, and the mean of over the reverse-KL batch of the same step, held fixed in the gradient. The penalty is one-sided: only weights more than times the central level are penalized, since heavier flow tails are harmless for the MH step. It is switched on after 10% of the training steps, its weight rises linearly to one over the next 10%, and its target evaluations per step are included in the training cost.
No symmetry of the target, such as , is used in training, since the same symmetry would make a symmetrized NUTS exact and the comparison unfair.
Control variates and step size. The dictionary is with and (Appendix S3.2); the selection pass uses reference draws and the coefficient pass fresh ones, and is fixed. In the main comparison is chosen on the grid of 25 values between 0.005 and 1, spaced by 0.05 above 0.1 and denser below and on by the pilot of the Protocol. Where is adapted by , in the chain experiments and the benchmark, follows stochastic gradient ascent with learning rate 0.05 on , and the per-chain contributions to the gradient are winsorized at their 10% and 90% quantiles.
Methods. Chain-based methods follow the Protocol; methods in x-space start from the Laplace approximation.
-
TGI-RWM, TGI-MALA (+CV) are the samplers of Table S1. Since a trained flow cannot satisfy the bound on w of Assumption (A2), each step may be replaced, independently with probability , by an independence MH step with the fixed latent proposal , accepted with probability . Such a step costs one target evaluation (plus the gradient at the new state after an accepted step for TGI-MALA), records no control-variate summand and does not enter the step-size adaptation, so the estimator averages over the TGI steps only (Section 4.3). Columns with use , all other results use (Table S11).
-
TESS (+CV) [15] is elliptical slice sampling [47] on the same fixed flow, with prior and likelihood w; its control variates use the initial point on the ellipse (Appendix S2.2).
• SNIS (+CV) draws N points from , weights them by w and uses (8), with the coefficients of the numerator and the denominator obtained by least squares on the weighted draws [54].
• NeuTra (+ZVCV) [30] runs HMC on with a fixed number of leapfrog steps , see the settings in the Protocol. NeuTra+ZV applies the zero-variance control variates of NUTS+ZV, with the score , to the latent draws.
• NUTS (+ZVCV) [31] is the NumPyro implementation [59] with Stan defaults: target acceptance 0.8, diagonal mass matrix and maximum tree depth 10. Each replicate is the chains started at the mean of the Gaussian approximation plus jitter, with warm-up min(1000, 20% of the budget) iterations included in the cost. NUTS+ZV adds second-order zero-variance control variates [46] on the same draws: coordinates are standardized with the Gaussian approximation, ranges over and , , and the coefficients are fitted by least squares with intercept, taking the minimum-norm solution; the gradients come from the NUTS draws at no extra cost.
Reference values. For the synthetic targets the reference values are exact, from closed forms or exact sampling. For the real posteriors they come from long NUTS chains with second-order zero-variance control variates, and their Monte Carlo standard errors from batch means; these errors enter the † marks of Table 1. Two posteriors need special treatment. On eight schools, NUTS runs on the non-centred parametrization, which it explores far better than the centred one targeted by the flow-based methods; the two describe the same posterior. On the field, NUTS stays in one of the two symmetric modes, so we run it in one mode and complete its draws by the symmetry . The test functions that are odd under this symmetry then have their exact values: for and 0 for .
Hardware and software. All experiments ran on a single workstation with an Intel Core i7-13700K CPU (24 threads), 64 GB of memory and one NVIDIA GeForce RTX 4090 GPU (24 GB). The flows, all latent estimators, including NeuTra, and the control variates are implemented in PyTorch 2.9 in double precision and run on the GPU, with all chains of a configuration advanced in one batch. NUTS runs on the CPU with NumPyro 0.22 on JAX 0.10, one chain per CPU device. The precision per second depends on this hardware, whereas costs in target evaluations do not. posteriordb and NumPyro are released under the Apache 2.0 licence, PyTorch and JAX under BSD and Apache 2.0, and the German credit data under CC BY 4.0.
S4.1 Training the Map
We compare the training choices of Appendix S4 on the banana, where the objective and the tail penalty matter, and on the Gaussian mixture, where the handling of several modes does. Every variant is trained once with the default settings ( steps, same seed), except the 1/10-cost variant, a complete training of steps with every schedule scaled to its length; the variant equal to the default reuses the default map. For the last checkpoint we report , the Fisher divergence , the 99.9% quantile of on the radial band of the tail penalty relative to its median under and, for the mixture, the mass that assigns to one mode (exact value 1/2). On that map we run TGI-RWM at the step selected by , two seeds of 2000 chains with 500 burn-in and 5000 recorded steps, and report the VRF of the main test function, the bias of the pooled estimate, and the largest robust z-score of a chain's control-variate estimate, which reveals the rare chains that dominate a heavy-tailed variance.
Objective and tail penalty. On the banana the tail penalty is decisive (Table S6). Without it, under either scheme, a few of 2000 chains deviate by about robust standard deviations and the VRF of the main test function is 3–15 and differs between seeds; with it, the largest deviation is 4–9, the VRF is 29–52, and the two seeds agree. The tail quantile of separates the variants (5.5–7.6 without the penalty, 0.6–1.0 with it), whereas is 0.99–1.00 for all of them. With the penalty, scheme A improves on B (VRF 50 against 31, against 0.036), and the LARGE network on the SMALL one at the same training cost (VRF 50 against 40). The penalty is not universal, however. On the hierarchical posteriors it degrades the LARGE flows, whose tails are not too light to begin with: on eight schools the effective sample size per step of rises from 0.02 to 0.12 without it, on the field from 0.31 to 0.76. We therefore switch it off on these posteriors (Table S9). An alternative to this per-target choice is to let the penalty decide for itself. At the checkpoint where it would start, several samples are drawn on the radial band and the penalty is enabled only if the 99.9% quantile of there exceeds the median of under by more than the margin c; below the margin the penalty is inactive on the band and its gradient only constrains the bulk of the map. The rule costs nothing beyond the several evaluations already made at that step and introduces no new parameter.
Several modes. Started from the Laplace approximation of one mode, schemes B and A never find the other one: stays at 0.96, the TGI chains stay in that mode, and the estimate of is off by 0.87 standard deviations (Table S7). Their (0.985) is higher than that of the correct map (0.959) and
Table S6: Training ablation, banana: every variant trained once for steps, except the 1/10-cost one, a complete training of steps with every schedule scaled to its length; flow diagnostics at the last checkpoint (tail log : 99.9% quantile over the radial band relative to the median over ) and TGI-RWM chains at 's (two seeds of 2000 chains, steps; main test function). max : the largest median over the chains' control-variate estimates (about 4 for Gaussian spread; larger values mean that a few chains stuck). bias: of the pooled estimate; *: more than four standard errors .
| Variant | train cost | tail log w | VRF | max |z| | bias | ||
|---|---|---|---|---|---|---|---|
| B | 0.997 | 0.0287 | 7.63 | 4.19 / 2.92 | 208 | ||
| B + tail | 0.993 | 0.0361 | 1 | 33.2 / 29.4 | 4 | ||
| A | 0.997 | 0.0171 | 5.46 | 8.95 / 14.5 | 96 | ||
| A + tail (default) | 0.998 | 0.0147 | 0.699 | 51.5 / 48.2 | 5 | ||
| A + tail, SMALL | 0.996 | 0.0245 | 0.648 | 40.5 / 39.8 | 9 | ||
| A + tail, 1/10 cost | 0.950 | 0.329 | 1.88 | 5.66 / 5.76 | 8 |
their VRF is larger, but both describe one mode only. cannot see a mode that the flow does not cover, so for multimodal targets we check the mass the flow assigns to each mode instead. The multi-start pilot with whitening of scheme recovers both modes. The anchor keeps between 0.44 and 0.52 during training, against 0.39 to 0.69 without it, because otherwise a mode with slightly less flow mass is visited less, contributes fewer states to the buffer and loses more mass; in both cases the final estimates are unbiased, since the MH step corrects the weights of the modes. The tail penalty matters here too: without it the tail quantile is 8.4 instead of 1.6, and one chain in 2000 deviates by 97 robust standard deviations, which lowers the VRF of one seed from 3.8 to 1.4. More starting points help as well: on the field, 64 starts instead of 16 give a pilot whose within-mode covariance is better estimated, and the effective sample size per step of TGI-RWM roughly doubles, whereas a wider spread of starting points does not help.
Training budget. A step of the default training evaluates with its gradient on the 256 reverse-KL samples (cost 512) and on the 128 points of the tail penalty (cost 256, from of the steps on), and runs the 32 buffer chains of scheme A (cost 35.2 per step on average); over steps this gives target evaluations ( with the pilot of the mixture), and the real posteriors use to and for the sparse logistic regression (Table S9). With a tenth of the budget, trained to completion, the banana map remains usable (, no stuck chains, no detectable bias), but grows twentyfold and the VRF falls from about 50 to 6; the mixture map is poor (, , VRF 1.3) and its estimate shows a small but significant bias. The training evaluates the target on 256 points at once, so on one GPU it takes about three minutes on both targets and 24 minutes on the Lotka–Volterra posterior, whose every evaluation solves an ODE.
Table S7: Training ablation, Gaussian mixture: every variant trained once for steps, except the 1/10-cost one, a complete training of steps with every schedule scaled to its length (pilot ); flow diagnostics at the last checkpoint (tail log : 99.9% quantile over the radial band relative to the median over ) and TGI-RWM chains at 's (two seeds of 2000 chains, steps; main test function). : the largest over the chains' control-variate estimates (about 4 for Gaussian spread; larger values mean that a few chains stuck). bias: of the pooled estimate; : more than four standard errors .
| Variant | train cost | tail log | VRF | bias | ||||
|---|---|---|---|---|---|---|---|---|
| A | ||||||||
| without anchor | ||||||||
| (default) | ||||||||
| without tail | ||||||||
| B |
S4.2 Synthetic Targets
S4.2.1 Targets
The banana, the funnel and the Gaussian mixture have, besides the trained flow, an analytic family of transports whose accuracy is set by one parameter, with the exact transport as a member; we measure the accuracy by the Fisher divergence .
-
Banana [27], , , : ; test functions (main), , , the mean of the even coordinates and . Shear family , , : a banana of curvature in the latent space, , exact at , the Laplace affine map at .
-
Funnel [50], , : , ; test functions (main), , and . Scale family , ; a funnel of scale in the latent space, exact at .
-
Gaussian mixture [2], : , , inverse-Wishart rescaled to largest eigenvalue 25; test functions (main), , and . Scale family with the exact transport: , , exact at .
-
mixture, : the Gaussian mixture with multivariate components, with , so that the means and covariances are those of the Gaussian mixture and only the tails are heavier (polynomial); the same test functions, (main). It has no analytic family; its flow, whose tails are Gaussian, has unbounded importance weights.
Table S8: Settings for the synthetic targets. All flows use the LARGE network, training steps, batch size 256 and the tail penalty; the multi-start pilot of the mixtures costs and is included in the training cost. is the largest normalized importance weight of the flow times , the largest over 100 replicates. is the number of leapfrog steps of NeuTra and the step size of TGI-RWM / TGI-MALA, both chosen by pilot runs.
| Target | Scheme | Train. cost | Main | ||||
|---|---|---|---|---|---|---|---|
| Banana | A | ||||||
| Funnel | A | ||||||
| Gaussian mixture | |||||||
| mixture |

Figure S1: Analytic transports of the banana, main test function , from the chain experiments of Appendix S4. From left to right: the best ESS per unit cost over the step size of TGI-RWM and TGI-MALA, and , against the Fisher divergence of the shear map ; the ESS, the VRF and their product against the step size , relative to their maxima, for TGI-RWM and TGI-MALA on the accurate member (dashed: the step chosen by J; dotted: by the speed measure); and the VRF (solid) and the number of kept Hermite terms (dotted) against the maximal degree K for each pruning rule, with TGI-MALA on the same member.
S4.2.2 Results
On the analytic family of the banana (Figure S1), TGI-RWM is the more efficient sampler per unit cost across the whole family, and both lose efficiency once the Fisher divergence exceeds about , together with , which therefore tells at run time which regime applies. On the accurate member the ESS grows with and the VRF falls, so their product has an interior maximum. For TGI-RWM it is flat near , and the step chosen by J loses little; for TGI-MALA, whose drift misdirects large steps, it peaks near , and J recovers most of what the speed measure, which would choose , loses. Magnitude pruning with the threshold keeps a VRF of about 2000 with a handful of terms at every maximal degree, whereas the full dictionary loses most of it beyond as its estimated coefficients become noisy.
When the training of the flow is charged to the flow-based methods (Figure S2), they pass NUTS on the banana at a total cost of a few times , and at SNIS and TGI-RWM with the control variates are about fifty times more accurate, while NeuTra with zero-variance control variates levels off an order of magnitude above them. The right panels show the flow straightening the banana within the first thousand training steps, by which point has risen from 0.06 to 0.90.

SNIS + CV
TGI-RWM + CV
TESS + CV
NeuTra + ZV-CV
NUTS + ZV-CV
Figure S2: The banana with the training of the flow charged. Left: RMSE of the main test function in posterior standard deviations against the total number of target evaluations, with bootstrap 95% bands; each flow-based method shows the lower envelope over training checkpoints and sampling budgets. Right: a grid of the latent space pushed forward by the flow after 100, 1000 and training steps, over the target density (grey; contours hold 50, 90 and 99% of the mass).
S4.3 Real Posteriors
Table S9 gives the scheme, network, tail penalty, training cost, and selected step sizes of every posterior. The tail penalty helps the SMALL networks on the near-Gaussian posteriors and degrades the LARGE flows of the hierarchical and multimodal ones, where it is switched off. We keep the centered parametrizations as the models are stated: non-centering removes the funnel for NUTS when the hierarchy is known, but no such change exists for the ridge of the one-compartment model, and the Gaussian-process regression is already non-centered.
Table S9: Settings for the real posteriors: dimension, training scheme, network, tail penalty, training cost in target evaluations, importance sampling effective sample size of the flow, main test function, leapfrog steps selected for NeuTra and step size of TGI-RWM, both chosen by pilot runs. All flows are trained for steps with batch size 256, except eight schools ( steps) and the sparse logistic regression ( steps, batch size 1024, a LARGE network of width 256, marked *); for the field the multi-start pilot uses 64 NUTS chains and evaluations, included in the training cost.
| Posterior | Scheme | Network | Tail | Train. cost | max | Main | |||
|---|---|---|---|---|---|---|---|---|---|
| GARCH(1,1) | 4 | A | SMALL | yes | 3 | 1 | 0.90 | ||
| One-compartment PK | 4 | A | SMALL | yes | 9 | 1 | 0.99 | ||
| Dugongs | 4 | B | SMALL | yes | 1 | 0.80 | |||
| Lotka-Volterra | 8 | A | SMALL | yes | 42 | 1 | 1.00 | ||
| GP Poisson | 13 | A | LARGE | no | 2 | 0.99 | |||
| Eight schools | 10 | A | LARGE | no | 1 | 0.90 | |||
| Sparse logistic | 51 | B | LARGE* | no | 2 | 0.80 | |||
| field | 32 | LARGE | no | 1 | 1.00 |
Targets.
-
GARCH(1,1): the posteriordb model , , with , , ; test functions . Nearly Gaussian with a right skew in .
-
Dugongs: the nonlinear growth curve for 27 dugongs, , priors as in posteriordb, sampled as ; test functions . Skewed, nearly Gaussian.
Table S10: RMSE in posterior standard deviations of the main test function at target evaluations, without the training of the flow, over 100 estimates for the flow-based estimators and 50 for NUTS. NUTS+ZV was more accurate than plain NUTS on every posterior where both were run. †: extrapolated from the reference run as its Monte Carlo standard error times ; ‡: NUTS stays in one mode. Entries within of the best in a row are in bold.
| Posterior | F | NUTS+ZV | SNIS+CV | TGI-RWM+CV | TESS+CV | NeuTra+ZV |
|---|---|---|---|---|---|---|
| GARCH | 2.1e-3 | 1.9e-4 | 2.0e-4 | 3.5e-4 | 2.9e-4 | |
| One-compartment | 1.3e-2 | 1.3e-3 | 1.3e-3 | 1.5e-3 | 1.3e-3 | |
| Lotka-Volterra | 1.6e-3 | 1.9e-4 | 3.1e-4 | 4.7e-4 | 2.7e-4 | |
| Dugongs | 5.0e-3 | 5.0e-4 | 8.5e-4 | 5.8e-4 | 2.0e-3 | |
| GP Poisson | 1.5e-2 | 1.8e-3 | 1.1e-3 | 1.0e-3 | 7.5e-4 | |
| Eight schools | 1.4e-2 | 1.6e-3 | 1.4e-3 | 1.2e-3 | 2.1e-3 | |
| Sparse logistic | 5.2e-3 | 8.4e-4 | 1.1e-3 | 8.2e-4 | ||
| field | 8.8e-4 | 1.1e-3 | 1.1e-3 | 9.2e-3 |
-
One-compartment PK: the posteriordb posterior one_comp_mm_elim_abs, first-order absorption with Michaelis–Menten elimination, parameters on the log scale, ODE solved by RK4 with step 0.02. The posterior of is L-shaped with a ridge along which has no finite variance, so the test functions are .
-
Lotka-Volterra: hare and lynx pelt counts, lognormal around the solution of , , priors as in Carpenter [17]; four rates, two initial populations and two noise scales; test functions are . Every evaluation solves the ODE.
-
GP Poisson: counts at 11 points with a squared-exponential Gaussian-process prior on , non-centered as in posteriordb; test functions .
-
Eight schools: the centered parametrization of Rubin [65], coordinates , with a funnel between and the ; test functions .
-
Sparse logistic regression: the German credit model of Hoffman et al. [30], coordinates , 25 small funnels between the and ; test functions and the effective coefficients .
-
field: the one-dimensional lattice field of Gabrié et al. [25], sites, , , bimodal with equal weights by the symmetry , which no method is allowed to exploit; test functions .
Results. Table S11 extends Table 1 to every test function, and the picture of Section 6 holds function by function. On the targets with light weights SNIS+CV is the most efficient on nearly every function, and the control variates gain a factor of up to about 160; on the targets with heavy weights the gain falls to a few, the gradient-based chains lead on most functions of the Gaussian-process and sparse regressions, and TESS+CV leads on the mixture. With the fixed coefficients the control variates can also hurt on a coarse flow, as for TGI-MALA on dugongs. At equal numbers of target evaluations, NUTS with zero-variance control variates is less accurate than the best flow-based estimator on every real posterior and cannot estimate the mode weight of the field (Table S10).
Figure S3 shows the 100 estimates behind the main test function of every target. On the targets with light weights the four estimators are unbiased and their spread follows the precision in the table. As grows, SNIS+CV produces isolated estimates far from the reference, on the sparse regression and the mixture, while the chains do not. NeuTra+ZV spreads widely on the three multimodal targets and is biased on the mixture, where its chains rarely move between the modes. On the one-compartment model all four estimators share an offset of about posterior standard deviations, of the size of the Monte Carlo error of the reference value, which is therefore the error of the reference rather than a bias of the estimators.
Table S11: Precision per second on every test function, extending Table 1; ★ marks the main test function. For the sparse logistic regression we give , and the median, maximum and minimum over the 25 coefficients . Entries within of the best in a row are in bold. †: the Monte Carlo error of the reference value accounts for at least half of the mean squared error; ‡: the errors of this target are limited by a bias of about 0.01 posterior standard deviations in shared by the flow-based estimators; -: RMSE above one posterior standard deviation.
| Target | SNIS | TGI-RWM | TGI-RWM | TGI-MALA | TESS | NeuTra | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| plain | +CV | plain | +CV | plain | +CV | plain | +CV | plain | +CV | plain | +ZV | ||
| GARCH | 3.3e6 | 2.3e6 | 1.6e6 | 3.4e5 | 2.2e7 | 2.3e6 | 2.4e7 | 4.6e5 | 5.0e7 | ||||
| 3.3e6 | 5.3e8 | 2.3e6 | 2.6e8 | 1.6e6 | 1.8e8 | 3.4e5 | 3.6e7 | 2.5e6 | 3.6e7 | 4.4e5 | 5.7e8 | ||
| 3.1e6 | 2.2e6 | 1.5e6 | 3.5e5 | 1.4e7 | 2.1e6 | 1.7e7 | 4.7e5 | 3.3e7 | |||||
| 3.4e6 | 2.3e6 | 1.6e6 | 3.4e5 | 2.8e7 | 2.3e6 | 3.2e7 | 4.6e5 | 8.1e7 | |||||
| One-comp. | 5.7e5 | 8.9e5 | 4.0e5 | 6.7e5 | 3.9e5 | 6.4e5 | 4.0e4 | 4.6e5 | 2.9e5 | 4.7e5 | 9.9e4 | 5.8e5 | |
| 1.4e6 | 2.5e7 | 8.8e5 | 1.8e7 | 8.9e5 | 1.5e7 | 4.0e4 | 5.0e6 | 8.0e5 | 6.3e6 | 1.1e5 | 1.3e7 | ||
| 1.1e5 | 1.2e5 | 8.5e4 | 9.1e4 | 8.5e4 | 9.1e4 | 3.0e4 | 6.9e4 | 7.0e4 | 8.1e4 | 5.7e4 | 8.1e4 | ||
| 1.4e6 | 9.6e6 | 8.9e5 | 7.4e6 | 7.9e5 | 7.3e6 | 4.0e4 | 3.5e6 | 7.7e5 | 4.5e6 | 1.1e5 | 6.5e6 | ||
| Lotka-Volterra | 3.7e6 | 1.0e8 | 1.6e6 | 2.3e7 | 1.5e6 | 3.3e7 | 9.8e4 | 5.6e6 | 1.4e6 | 8.9e6 | 1.2e5 | 2.1e7 | |
| 3.7e6 | 7.7e7 | 1.7e6 | 2.2e7 | 1.5e6 | 2.8e7 | 1.0e5 | 5.4e6 | 1.3e6 | 7.9e6 | 1.2e5 | 1.6e7 | ||
| 3.6e6 | 9.0e7 | 1.5e6 | 9.8e6 | 1.6e6 | 3.0e7 | 9.9e4 | 4.9e6 | 1.4e6 | 8.7e6 | 1.2e5 | 1.9e7 | ||
| 3.7e6 | 8.7e7 | 1.5e6 | 1.0e7 | 1.5e6 | 2.8e7 | 9.9e4 | 5.2e6 | 1.4e6 | 8.6e6 | 1.2e5 | 2.0e7 | ||
| Banana | 1.6e6 | 4.1e7 | 9.8e5 | 3.4e7 | 9.8e5 | 3.4e7 | 9.4e4 | 1.1e7 | 4.7e5 | 5.9e6 | 1.7e5 | 1.7e7 | |
| 8.7e5 | 1.8e6 | 9.0e5 | 4.7e6 | 8.8e5 | 4.5e6 | 1.6e5 | 1.9e6 | 4.1e5 | 1.7e6 | 2.8e5 | 6.1e5 | ||
| 1.6e6 | 3.0e7 | 1.0e6 | 2.6e7 | 1.0e6 | 2.6e7 | 1.3e5 | 7.7e6 | 3.4e5 | 4.3e6 | 2.3e5 | 1.1e7 | ||
| 1.6e6 | 7.5e7 | 9.6e5 | 5.9e7 | 9.5e5 | 5.8e7 | 7.9e4 | 1.9e7 | 6.3e5 | 9.1e6 | 1.4e5 | 3.4e7 | ||
| 1.6e6 | 1.1e8 | 9.2e5 | 7.6e7 | 9.2e5 | 7.3e7 | 7.0e4 | 1.6e7 | 8.2e5 | 1.2e7 | 1.3e5 | 4.9e7 | ||
| Dugongs | 3.9e6 | 2.0e7 | 1.6e6 | 5.4e6 | 1.9e6 | 1.4e7 | 7.8e4 | 5.1e4 | 1.9e6 | 9.2e6 | 4.1e5 | 1.3e6 | |
| 3.5e6 | 9.5e6 | 1.3e6 | 3.1e6 | 1.7e6 | 7.6e6 | 1.1e5 | 1.8e5 | 1.7e6 | 6.6e6 | 2.9e5 | 9.7e5 | ||
| 4.4e6 | 2.8e7 | 2.0e6 | 1.5e7 | 2.0e6 | 2.1e7 | 5.1e5 | 2.7e4 | 1.8e6 | 8.5e6 | 5.5e5 | 4.5e6 | ||
| 4.7e6 | 9.3e7 | 2.1e6 | 5.0e7 | 2.1e6 | 7.1e7 | 2.1e5 | 8.7e5 | 2.2e6 | 1.9e7 | 5.5e5 | 5.2e6 | ||
| Mixture | 1.2e6 | 3.9e6 | 6.3e5 | 1.5e6 | 7.3e5 | 2.4e6 | 1.3e4 | - | 6.6e5 | 1.6e6 | 8.5e3 | 1.6e4 | |
| 1.3e6 | 4.5e6 | 7.1e5 | 1.8e6 | 8.0e5 | 2.4e6 | 1.3e4 | - | 2.8e5 | 1.0e6 | 1.4e4 | 2.2e4 | ||
| 1.2e6 | 3.3e6 | 7.0e5 | 1.6e6 | 7.3e5 | 1.9e6 | 1.5e4 | - | 6.7e5 | 1.4e6 | 1.0e4 | 1.3e4 | ||
| 1.3e6 | 7.4e6 | 6.6e5 | 2.3e6 | 7.1e5 | 3.8e6 | 1.2e4 | - | 6.7e5 | 2.1e6 | 8.0e3 | 4.7e4 | ||
| Funnel | 7.2e5 | 1.4e6 | 3.9e5 | 6.6e5 | 2.8e5 | 4.1e5 | 3.0e4 | 1.4e6 | 5.4e5 | 1.1e6 | 1.4e5 | 8.5e5 | |
| 3.5e5 | 4.5e5 | 1.7e5 | 2.1e5 | 1.1e5 | 1.3e5 | 3.2e4 | 5.8e5 | 2.7e5 | 4.1e5 | 1.0e5 | 2.8e5 | ||
| 2.0e5 | 2.3e5 | 9.9e4 | 1.1e5 | 5.9e4 | 6.4e4 | 4.7e4 | 3.4e5 | 1.3e5 | 2.1e5 | 7.0e4 | 1.5e5 | ||
| 3.1e5 | 3.8e5 | 3.8e4 | 4.0e4 | 2.1e4 | 2.2e4 | 4.2e4 | 2.9e5 | 1.9e5 | 2.9e5 | 2.2e4 | 8.1e4 | ||
| field | 7.1e5 | 1.4e6 | 4.5e5 | 8.4e5 | 4.5e5 | 8.7e5 | 9.5e3 | - | 4.4e5 | 8.0e5 | 4.1e3 | 1.0e4 | |
| 7.5e5 | 1.6e6 | 4.8e5 | 9.4e5 | 4.7e5 | 9.4e5 | 1.0e4 | - | 4.5e5 | 8.2e5 | 4.2e3 | 1.0e4 | ||
| 4.1e5 | 5.3e5 | 2.0e5 | 2.6e5 | 2.8e5 | 3.8e5 | 7.4e3 | - | 1.7e5 | 3.1e5 | 3.8e3 | 1.0e4 | ||
| 3.4e5 | 4.3e5 | 1.7e5 | 2.1e5 | 2.0e5 | 3.1e5 | 6.4e3 | - | 1.4e5 | 3.2e5 | 1.1e3 | 1.5e4 | ||
| Eight schools | 4.4e5 | 6.2e5 | 3.8e5 | 6.4e5 | 3.9e5 | 7.3e5 | 6.7e4 | 1.1e6 | 4.7e5 | 8.7e5 | 7.6e4 | 3.4e5 | |
| 2.7e5 | 3.4e5 | 2.9e5 | 4.5e5 | 2.7e5 | 4.0e5 | 5.7e4 | 7.5e5 | 5.0e5 | 9.8e5 | 5.2e4 | 1.6e5 | ||
| 9.8e3 | 9.7e3 | 7.2e3 | 7.3e3 | 7.3e3 | 7.4e3 | 1.1e4 | 1.2e4 | 1.1e4 | 1.1e4 | 9.1e3 | 1.3e4 | ||
| GP Poisson | 3.2e5 | 4.2e5 | 4.6e5 | 1.0e6 | 4.5e5 | 8.9e5 | 5.2e4 | 1.1e6 | 4.9e5 | 1.1e6 | 1.1e5 | 2.4e6 | |
| 1.1e5 | 1.3e5 | 3.0e5 | 4.2e5 | 2.2e5 | 3.0e5 | 4.8e4 | 4.8e5 | 3.6e5 | 5.7e5 | 9.9e4 | 5.9e5 | ||
| 5.9e5 | 1.1e6 | 6.8e5 | 3.1e6 | 6.9e5 | 3.9e6 | 5.6e4 | 3.7e6 | 6.2e5 | 2.1e6 | 1.3e5 | 2.2e7 | ||
| 2.2e5 | 2.6e5 | 6.3e5 | 2.4e6 | 5.6e5 | 1.6e6 | 5.6e4 | 1.9e6 | 5.8e5 | 1.6e6 | 1.3e5 | 6.2e6 | ||
| Sparse logistic | 1.1e4 | 1.1e4 | 1.2e5 | 4.5e5 | 1.1e5 | 3.0e5 | 1.6e4 | 2.1e5 | 7.6e4 | 2.2e5 | 1.4e4 | 4.2e5 | |
| 5.4e4 | 6.4e4 | 1.1e5 | 4.1e5 | 9.8e4 | 3.5e5 | 1.3e4 | 2.0e5 | 1.2e5 | 2.6e5 | 1.1e4 | 7.9e5 | ||
| 2.1e5 | 6.6e5 | 1.3e5 | 6.5e5 | 1.2e5 | 4.5e5 | 1.3e4 | 2.4e5 | 1.3e5 | 3.3e5 | 1.2e4 | 5.2e6 | ||
| median over | 1.4e4 | 1.4e4 | 1.2e5 | 4.6e5 | 1.0e5 | 3.0e5 | 1.3e4 | 2.1e5 | 1.1e5 | 2.7e5 | 1.2e4 | 4.2e5 | |
| max over | 2.3e5 | 9.6e5 | 1.4e5 | 7.3e5 | 1.3e5 | 5.1e5 | 1.6e4 | 2.8e5 | 1.3e5 | 3.3e5 | 1.4e4 | 5.2e6 | |
| min over | 4.9e2 | 4.7e2 | 5.7e4 | 9.5e4 | 5.2e4 | 7.5e4 | 1.1e4 | 5.8e4 | 6.7e4 | 1.0e5 | 1.1e4 | 1.8e5 | |
| mixture | 4.1e3 | 4.1e3 | 9.0e4 | 9.8e4 | 1.0e5 | 1.2e5 | 7.5e3 | - | 1.8e5 | 2.2e5 | 6.0e2 | 2.2e3 | |
| 6.8e3 | 6.7e3 | 1.2e4 | 1.2e4 | 1.3e4 | 1.3e4 | 3.0e3 | - | 2.7e4 | 2.7e4 | 3.9e2 | 1.3e3 | ||
| 5.8e3 | 5.7e3 | 1.8e5 | 2.2e5 | 2.0e5 | 2.5e5 | 1.1e4 | - | 2.8e5 | 4.0e5 | 1.2e3 | 3.3e3 | ||
| 3.3e3 | 3.2e3 | 4.1e4 | 4.3e4 | 4.6e4 | 4.9e4 | 4.7e3 | - | 1.1e5 | 1.2e5 | 4.1e2 | 1.7e3 | ||

Figure S3: The 100 estimates of the main test function of every target, in posterior standard deviations from the reference value (dashed line). Panels are ordered by ; circles are estimates beyond 1.5 interquartile ranges from the box.
Stability. To see how far each estimator can fall behind, we measure, for every row of Table S11, its gap to the most precise method, and summarize the gaps over the main test functions and over all test functions with every target weighted equally (Table S12). SNIS+CV is the best method most often, but its gaps are the most uneven: it falls behind by a factor of about 50 on the main function of the t mixture and over 400 on a coefficient of the sparse regression, the targets where its weights are heaviest. TGI-RWM+CV is rarely the best, yet it has the smallest mean gap, about a factor of 2, the smallest spread, and the smallest worst case, a factor of 4.5 on the main functions and below 10 on all functions; it is within a factor of 2 of the best on more test functions than any other method. TESS+CV is nearly as stable. The gradient-based chains are the least predictable, ahead on a few posteriors and two orders of magnitude behind on the multimodal targets, where TGI-MALA fails outright. When the diagnostics of Section 5.1 are inconclusive, TGI-RWM with the control variates is therefore the safe default.
Table S12: Stability of the estimators: the gap of each method with its control variates to the most precise one, over all test functions of Table S11 (0: the best; -1: ten times less precise). Mean gap, the corresponding factor , standard deviation and worst row; number of rows within a factor 2 of the best and within of it (the bold rule); failures (RMSE above one posterior standard deviation) are counted at RMSE = 1. (A) The main test function of each target. (B) All 70 test functions; the mean and standard deviation are over the 12 per-target means, so that every target has the same weight, the worst row and the counts over all rows.
| Method | mean gap | factor | sd | worst row | within 2× | best | failed |
|---|---|---|---|---|---|---|---|
| (A) main test function, 12 functions | |||||||
| SNIS | -0.36 | 2.3 | 0.65 | -1.74 (t mixture, ) | 9/12 | 8/12 | 0 |
| TGI-RWM | -0.28 | 1.9 | 0.20 | -0.65 (Lotka-Volterra, ) | 6/12 | 1/12 | 0 |
| TGI-MALA | -1.98 | 96 | 2.49 | -6.46 (Mixture, ) | 3/12 | 2/12 | 3 |
| TESS | -0.39 | 2.4 | 0.31 | -1.06 (Lotka-Volterra, ) | 5/12 | 1/12 | 0 |
| NeuTra | -0.83 | 6.8 | 0.87 | -2.40 (Mixture, ) | 5/12 | 2/12 | 0 |
| (B) all test functions, 70 functions, targets weighted equally | |||||||
| SNIS | -0.36 | 2.3 | 0.58 | -2.63 (Sparse logistic, ) | 37/70 | 31/70 | 0 |
| TGI-RWM | -0.33 | 2.2 | 0.20 | -0.98 (Funnel, ) | 41/70 | 16/70 | 0 |
| TGI-MALA | -1.99 | 97 | 2.40 | -6.73 (Mixture, ) | 12/70 | 4/70 | 12 |
| TESS | -0.43 | 2.7 | 0.32 | -1.20 (GARCH, ) | 30/70 | 6/70 | 0 |
| NeuTra | -0.80 | 6.3 | 0.79 | -2.40 (Mixture, ) | 37/70 | 21/70 | 0 |
S4.4 The independence limit
At , TGI-RWM proposes independently of the current state and is the independence sampler with the transport as proposal, and the control variates reduce to . Table S13 compares the step selected by with and with the best step on a grid of 25 values, on the analytic families, with the same transport and the same control variates; we write for the ratio of ESS×VRF of the main test function at step to that at step . For TGI-RWM on the accurate members, selects between 0.95 and 1, and is as good as the best step. On the coarse members the best step is well below 1, at 0.60 and 0.45 on the banana, 0.10 on the funnel and 0.25 on the mixture. moves part of the way only on the banana, to 0.91 and 0.48, where is 0.88 and 0.62; on the funnel and the mixture it stays at 0.99, since the speed measure on which is built favors the large step at acceptance rates of 0.6 to 0.7. Across the coarse members is 0.44 to 0.87, so is a proxy that errs towards the independence limit. For TGI-MALA, selects well below 1 on every member but the accurate mixture, with ESS×VRF within of that at the best step except on the Laplace map, and is 0.01 to 0.6, as the drift misdirects the large steps and the acceptance rate drops. On coarser transports the gain lies at ; finds it for TGI-MALA and, on the banana, for TGI-RWM, whereas on the coarse funnel and mixture a grid search gains a further factor of up to 2.3.
Table S13: The step selected by against and against the best step on a grid of 25 values, on the analytic families: acceptance rate at and at 1, and the ratios of ESS×VRF of the main test function at to that at , from 500 chains of 5000 steps with common random numbers.
| Target | Member | TGI-RWM | TGI-MALA | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| acc. | acc. | |||||||||||
| Banana | 0.95 | 1.00 | 0.99/0.99 | 1.01 | 0.99 | 0.57 | 0.50 | 1.00/0.99 | 0.60 | 0.99 | ||
| 0.63 | 0.91 | 0.60 | 0.81/0.81 | 0.88 | 0.87 | 0.37 | 0.35 | 0.92/0.69 | 0.01 | 1.00 | ||
| 7.0 | 0.48 | 0.45 | 0.60/0.55 | 0.62 | 0.82 | 0.14 | 0.07 | 0.82/0.28 | 0.12 | 0.40 | ||
| Funnel | 0.99 | 0.85 | 0.99/0.99 | 1.00 | 1.00 | 0.40 | 0.30 | 0.99/0.98 | 0.22 | 0.90 | ||
| 1.2 | 0.99 | 0.10 | 0.70/0.70 | 1.00 | 0.44 | 0.22 | 0.30 | 0.94/0.45 | 0.08 | 0.99 | ||
| Mixture | 1.00 | 0.75 | 0.99/0.99 | 1.00 | 1.00 | 0.95 | 1.00 | 0.99/0.99 | 1.06 | 0.94 | ||
| 1.0 | 0.99 | 0.25 | 0.63/0.63 | 1.00 | 0.84 | 0.57 | 0.50 | 0.90/0.72 | 0.42 | 0.99 | ||