arXiv:2610.12679cs.LGOct 2026

Manuscript Offprint

arXiv:2610.12679

Amortised Inference through One-Step Implicit Sampling

Vincent Pauline, Kirill Tamogashev, Arran Carter, Sanghyeok Choi, Stefan Bauer, Esmeralda S. Whitammer

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Efficient sampling from Bayesian posterior distributions in high dimensions remains a hard problem, despite advances in theory and algorithms. Multiple steps are usually required to draw unbiased samples, for example, iterations of an MCMC algorithm or integration steps in a diffusion-based amortised sampler. However, scalable one-step amortised inference remains a challenging open problem. In this work, we build upon recent progress in data-driven generative modelling to offer a possible solution for one-step amortised sampling. Our one-step implicit sampler (OSIS) uses short-time MCMC dynamics to define a local target for the evolution of an implicitly modelled distribution. In the asymptotic limit, the modelled distribution is a fixed point of the MCMC kernel and thus samples from the target. We analyse the convergence properties of OSIS and show connections with other generative modelling and sampling algorithms. We study various design choices and show that OSIS performs well compared to multi-step amortised samplers and non-amortised MCMC baselines while being far more efficient at sampling time.

1 INTRODUCTION

The sampling problem. Many problems in physics, biology, statistics, and machine learning (Welling & Teh, 2011; Wirnsberger et al., 2020; Noé et al., 2019; Holdijk et al., 2023) require drawing samples from a distribution whose density is known up to a normalising constant. Formally, this means sampling from a distribution defined via an energy function E:Rd→R\mathcal{E} : \mathbb{R}^d \to \mathbb{R}, with density

π(x)=e−E(x)/Z,Z=∫Rde−E(x)dx.(1)\pi(x)=e^{-\mathcal{E}(x)}/Z,\quad Z=\int_{\mathbb{R}^{d}}e^{-\mathcal{E}(x)}\mathrm{d}x. \tag{1}

A typical instance of this problem is Bayesian inference: a posterior π(x∣y)∝p(x)p(y∣x)\pi(x \mid y) \propto p(x)p(y \mid x) over a variable xx given an observation yy has the form in (1) with E(x)=−log⁡p(x)−log⁡p(y∣x)\mathcal{E}(x) = -\log p(x) - \log p(y \mid x).

The classic way to sample from a distribution as in (1) is by using (training-free) Monte Carlo algorithms. Many such algorithms draw samples by simulating an ergodic chain using π\pi-invariant kernels for a sufficiently long time. Popular Monte Carlo algorithms include Metropolis-Hastings (Metropolis et al., 1953; Hastings, 1970), unadjusted and Metropolis-adjusted Langevin (Rossky et al., 1978; Besag, 1994; Roberts & Tweedie, 1996), Hamiltonian Monte Carlo (Duane et al., 1987; Neal, 2011), and sequential Monte Carlo (Del Moral et al., 2006). The use of these methods comes at the cost of running chains for many steps, or with many simulated particles, to obtain high-quality samples from the target.

Generative modelling algorithms that learn to imitate unbiased samples from a distribution – i.e., approximate an empirical measure – scale quite successfully, as evidenced by many large-scale applications of deep learning (Kong et al., 2021; Hoogeboom et al., 2022; Sahoo et al., 2024). Meanwhile, generative modelling algorithms that rely only on a density function, without unbiased samples, continue to lag behind, and scaling them remains a challenge despite the deep significance of this problem.

Amortised sampling. Deep learning has brought about new possibilities for introducing learnable components into sampling algorithms. Such components allow to spend more time and compute for training, yet gain speed when sampling and exploit generalisable structure in the target. Amortisation techniques include learning MCMC transition kernels (Song et al., 2017; Samsonov et al., 2022;

∗^{*}Correspondence to vincent.paulinef@gmail.com and kirill.tamogashev@ed.ac.uk.

Training

Source q

x∼ρθ:=(Gθ)#qx \sim \rho_{\theta} := (G_{\theta})_{\#} q

x∼ρθ:=(Gθ)#qx \sim \rho_{\theta} := (G_{\theta})_{\#} q

x∼ρθ:=(Gθ)#qx \sim \rho_{\theta} := (G_{\theta})_{\#} q

Target π\pi

z∼qz \sim q

Figure

K↓K \downarrow

D(ρθ,ρh)\mathcal{D}(\rho_{\theta}, \rho_h)

K↓K \downarrow

D(ρθ,ρh)\mathcal{D}(\rho_{\theta}, \rho_h)

K↓K \downarrow

D(ρθ,ρh)\mathcal{D}(\rho_{\theta}, \rho_h)

x∼ρh:=Kρθx \sim \rho_h := K\rho_\theta

x∼ρh:=Kρθx \sim \rho_h := K\rho_\theta

x∼ρh:=Kρθx \sim \rho_h := K\rho_\theta

Figure 1: OSIS evolves an implicit modelled distribution ρθ\rho_{\theta} towards a target π\pi available through its unnormalised density (green contours). GθG_{\theta} maps samples zz the source distribution qq to samples x=Gθ(z)x = G_{\theta}(z) from the modelled distribution ρθ:=(Gθ)#q\rho_{\theta} := (G_{\theta})_{\#}q (blue KDE contours). This pushforward distribution is evolved by a π\pi-invariant MCMC kernel KK, giving ρh:=Kρθ\rho_h := K\rho_{\theta}. The parameters θ\theta are updated to minimise an empirical divergence between ρθ\rho_{\theta} and ρh\rho_h. Upon convergence, ρθ≈π\rho_{\theta} \approx \pi.

Wang et al., 2025), amortising MCMC dynamics (Li et al., 2017), and training density estimators to sample from unnormalised distributions (Rezende & Mohamed, 2015; Midgley et al., 2023).

The most successful family of amortised samplers adopts diffusion models (Sohl-Dickstein et al., 2015; Ho et al., 2020; Song et al., 2021) as approximators of the target distribution (e.g., Zhang & Chen, 2022; Vargas et al., 2023; Richter et al., 2024; Sendera et al., 2024; Chen et al., 2025a; Albergo & Vanden-Eijnden, 2025; Berner et al., 2026; Havens et al., 2025). Diffusion samplers introduce a learnable stochastic process to model the transition dynamics from a known distribution to a target, usually by approximately reversing a fixed noising process. In contrast to diffusion models trained using a variational bound on the likelihood of empirical samples, diffusion samplers are trained using stochastic optimal control objectives (Zhang & Chen, 2022; Berner et al., 2024) or path-space divergences (Richter et al., 2020; Lahlou et al., 2023), among other choices. Recent work has found and exploited connections between diffusion samplers and amortisation of SMC (Choi et al., 2026).

One-step amortised sampling. Although diffusion samplers allow for a considerable inference speed-up by avoiding long-chain MCMC, they require simulation of a neural stochastic dynamical system during both training and sampling. Amortised sampling with a single neural function evaluation, however, remains a challenge. Although it is possible to use normalising flows for one-step sampling (Rezende & Mohamed, 2015), they require the invertibility of a neural network and efficient computation of its Jacobian, both of which remain significant constraints. More recent work shows that such methods scale poorly and are prone to mode collapse (He et al., 2025). These methods can further be placed within a Monte Carlo outer loop and augmented with MCMC sampling (Midgley et al., 2023).

In an attempt to design an efficient one-step sampler, we take a different approach, drawing inspiration from the novel paradigm in generative modelling termed drifting models (Deng et al., 2026; Gretton et al., 2026). Drifting models evolve a implicit distribution towards an empirical target by defining a local direction for its evolution via a drifting field estimated from batches of target and generated samples. Such an approach, cannot be directly applied to sampling, as it requires access to samples from the target distribution to compute the drifting field.

Our contributions. We bypass this limitation by using an MCMC kernel invariant to the target distribution to implicitly define a drifting field. This leads us to the first main contribution:

(1) We propose an algorithm for training a one-step implicit sampler (OSIS) using an objective that enforces invariance of the sampler's output distribution to a target-invariant MCMC kernel ( §2.1\S2.1).

There have been prior attempts to design a one-step amortised sampling algorithm, using kernel density approximations to circumvent data unavailability (Cao et al., 2026) and using adversarial training (Li et al., 2017). We discuss the connections between OSIS, drifting models, computational Wasserstein gradient flows, and this prior work in §3. We also study the theoretical properties of OSIS, showing global convergence under assumptions similar to those in the MCMC literature:

(2) We prove convergence of OSIS under asymptotic conditions and constraints on the target ( §4\S4).

To achieve scalability and efficiency in practice, we study the empirical performance of OSIS under different design choices, such as choice of MCMC kernel, empirical divergence, and other techniques:

(3) We study design choices for OSIS ( §5\S5) and their influence on performance (Table 3).

Finally, we benchmark our sampler on amortised inference problems ranging from synthetic targets to posterior sampling under large-scale image model priors, leading to our final contribution:

(4) We show that OSIS performs on par with multi-step baselines, while being more efficient ( §6.1\S6.1) and remaining scalable ( §6.2\S6.2).

References (100)

Couldn't load all references. Reload the page to try again.