arXiv:2610.10870stat.MLOct 2026

Manuscript Offprint

arXiv:2610.10870

Transformed Samplers with Variance Reduction

Siran Liu, Michalis Tisias, Petros Dellaportas

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 π(F)=∫F dπ\pi(F) = \int F \, d\pi by the ergodic average μn(F)=1n∑t=0n−1F(Xt)\mu_n(F) = \frac{1}{n} \sum_{t=0}^{n-1} F(X_t) along a chain with π\pi-invariant kernel PP. Its accuracy is governed by the asymptotic variance, and the classical route to reducing it is a control variate built from the Poisson equation

(I−P)G^=F−π(F),(1)(I-P)\hat{G}=F-\pi(F), \tag{1}

whose solution yields a zero-variance estimator [28, 43, 20]. The analytical solution is almost never available: even for a Gaussian target and F(x)=xF(x) = x, 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 TT with T#N(0,I)≈πT_{\#} \mathcal{N}(0, I) \approx \pi, 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

†^{\dagger}Google DeepMind, UK. Email: mtitsias@gmail.com

‡^{\ddagger}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.

References (68)