Manuscript Offprint
arXiv:2610.12679Amortised Inference through One-Step Implicit Sampling
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 , with density
A typical instance of this problem is Bayesian inference: a posterior over a variable given an observation has the form in (1) with .
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 -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
Target

Figure 1: OSIS evolves an implicit modelled distribution towards a target available through its unnormalised density (green contours). maps samples the source distribution to samples from the modelled distribution (blue KDE contours). This pushforward distribution is evolved by a -invariant MCMC kernel , giving . The parameters are updated to minimise an empirical divergence between and . Upon convergence, .
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 ( ).
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 ( ).
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 ( ) 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 ( ) and remaining scalable ( ).
2.1 PRELIMINARIES
Problem setting: one-step amortised sampling. Suppose that is a measurable function and is a simple distribution (e.g., ) over , where is not necessarily equal to . Define a random variable and . The distribution of is the pushforward of by , denoted . If is not (efficiently) invertible or differentiable, the density of is intractable to compute. Given a target distribution over defined by an unnormalised density as in (1), the goal of one-step amortised sampling is to find such that . If the function depends on parameters , we denote it and abbreviate . The goal is then to find such that .
Algorithm 1 OSIS using a divergence D
Require: Prior distribution q, -invariant kernel K, generator , divergence D.
1: while not converged do
2:
3: Apply the MCMC kernel
4:
5: Compute loss using D
6:
7: Gradient update on with
8: end while
9: return
Stationary kernels. Suppose that is a stochastic kernel from to (i.e., a conditional distribution satisfying measurability conditions). One can construct a Markov chain via . Markov chain Monte Carlo algorithms select such that, regardless of the distribution of , the chain converges to a unique stationary distribution with respect to which is invariant, i.e., (Douc et al., 2018). Many choices for use a discrete-time approximation to Langevin dynamics, such as ULA, MALA (Rossky et al., 1978; Besag, 1994; Roberts & Tweedie, 1996), HMC (Duane et al., 1987; Neal, 2011), and improved Langevin integrators (Leimkuhler & Matthews, 2015).
2.2 TRAINING OBJECTIVES FOR ONE-STEP SAMPLING
Training of a one-step sampler, by some algorithm, produces a sequence of parameter iterates , and thus an evolution of the modelled distribution . The training algorithm should be designed to ensure that converges to as . One way to express such convergence is through invariance of the limiting distribution with respect to a -invariant stochastic kernel .
Divergence-based loss. Given a -invariant kernel , a one-step sampler should satisfy upon convergence. We propose to turn this into a training objective:
where is some measure of divergence between distributions, , and is the stop-gradient operator.
The complete algorithm, given in Algorithm 1, leaves room for two design choices: the kernel K and the divergence D. Both should be efficient to compute, and the distance D should be differentiable with respect to (empirical approximations of) . We discuss these choices in §C.1 and §C.2, respectively. Additional aspects of training are discussed in §5 and variants of Algorithm 1 in §A.
3 CONNECTIONS AND RELATED WORK
Connection to other implicit samplers. The connection between generative modelling and implicit models, those without a parametrisation of density, goes back to Mohamed & Lakshminarayanan (2016). Subsequent works explored algorithms that use MCMC to train implicit samplers: Feng et al. (2017) amortises Stein variational gradient descent (SVGD; Liu & Wang, 2016), while Titsias (2017) fits an invertible map to sample from the distribution induced by a short MCMC chain. Related approaches include Hoffman (2017), Ruiz & Titsias (2019), Gabrié et al. (2022), and Yi & Liu (2023).
The closest precursor to OSIS is Li et al. (2017). That algorithm initialises an MCMC chain from an implicit approximation network, applies a transition kernel, and updates the network with an adversarial loss matching the initial samples to their few-step refinements. OSIS differs from this line of work in three key ways. First, unlike Li et al. (2017), OSIS does not rely on an adversarial loss, but remains stable with a fixed choice of empirical divergence. Second, OSIS is compatible with any MCMC kernel and any divergence between distributions, and we compare several choices of each (see Table 3 for kernels and Table 1 for divergences). Third, we link the convergence of these methods to the convergence of the underlying MCMC kernel and establish a connection to Wasserstein gradient flows that was not known before in the sampling context (see §4).
Connection to drifting models. OSIS can be linked to drifting models (Deng et al., 2026), which define a local target for the evolution of a modelled distribution to guide it towards a target given empirically through data samples. Although OSIS and drifting models solve different problems (approximating an empirical data distribution and an energy-based distribution, respectively), they share some similarities. In Deng et al. (2026), stationarity of an implicitly defined generative model is expressed through a drifting field, a vector field defining an evolution of particles under which the target distribution is stationary under asymptotic conditions. The field is defined similarly to the gradient of a kernel-based divergence and thus evolves model-generated samples towards the data distribution over the course of training. Unlike in diffusion and flow-based models, which approximate a time-dependent evolution, this field is a non-stationary training target, rather than part of the generation process.
More recent works propose other ways to define this drifting field, some of which can be identified with gradients of divergences between distributions, making the training process simulate a gradient flow (He et al., 2026; Gretton et al., 2026; Han et al., 2026). As we discuss below, OSIS shares parts of this connection; however, drifting models and their successors approximate the vector field giving the gradient flow, whereas OSIS uses the vector field giving the gradient flow to define the local target for optimisation.
Cao et al. (2026) propose several ways to adapt drifting models for sampling. Their method relies on either Monte Carlo simulation or second-order derivatives to approximate the gradient of the energy, both of which scale poorly with dimensionality. In contrast, OSIS defines the drift implicitly by computing the divergence between two probability distributions.
Connection to computational Wasserstein gradient flows. A Wasserstein gradient flow (WGF) describes a continuous evolution on the space of absolutely continuous probability distributions with finite second moments . The flow moves a distribution along the gradients of a functional . The flow admits two equivalent descriptions: as an evolution of particles (3) and the corresponding continuity equation, the evolution of the density (4):
where initial conditions are given by and denotes the first variation of . The flow given in (4) admits a discrete-time approximation scheme by proximal steps in the Wasserstein geometry, known as the Jordan-Kinderlehrer-Otto (JKO) scheme (Jordan et al., 1998):
that converges to the continuous-time flow as . Refer to Ambrosio et al. (2005) for a rigorous treatment or to Santambrogio (2017) for a succinct introduction.
The scheme in (5) offers a tempting way to solve optimisation problems on the space of probability distributions, and recent years have seen multiple attempts to convert it into a scalable machine learning algorithm. Mokrov et al. (2021) proposes to learn WGF by parametising each step of the JKO scheme (5) via an input-convex neural network. An alternative approach was introduced in Galashov et al. (2025). Some more recent works (Chen et al., 2025b; Tian et al., 2026) offer ways to compute WGF using different variations of MMD as the functional J. Finally, Gretton et al. (2026) provides an interpretation of drifting (§3) as WGF. He et al. (2026); Han et al. (2026) show that Sinkhorn divergence to the target distribution can be used as the functional and can achieve strong results on image generation. Notably, all methods that attempt to neurally approximate WGF to this day fundamentally rely on the availability of unbiased samples.
4 THEORETICAL ANALYSIS OF OSIS
In this section we analyse the convergence of OSIS under idealised assumptions:
(1) We take to be continuous Langevin diffusion and to be . In practice, this assumption is satisfied in the infinite-particle limit of empirical estimation of the divergence and with perfect numerical integration in the Monte Carlo updates.
(2) We assume that optimisation of the modelled distribution is performed in Wasserstein space, rather than the parameter space ( ). This can be achieved in practice by replacing the gradient step on with respect to by a proximal gradient step in the geometry and assuming the parametric family and optimisation algorithm are sufficiently expressive to perform this step exactly.
Our analysis uses that the evolution of density given by Langevin dynamics is the WGF of the KL divergence functional; we show that OSIS inherits the convergence properties of Langevin dynamics (e.g., Durmus & Moulines, 2017; Chewi et al., 2025).
4.1 SETTING
We first formalise the algorithm described in §2.1.
Notation and assumptions. We assume that all distributions are elements of , the space of absolutely continuous distributions on with finite second moment, and we identify them with their densities. We assume that the target is defined by a twice continuously differentiable energy . Let be a Langevin process, defined by an Itô SDE:
where is -dimensional Brownian motion. For , we define to be the stochastic integration kernel of the process (6), i.e., , which is -invariant.

Figure 2: One idealised OSIS iteration. KL and Wasserstein distance share the minimiser . However, KL decreases along the Langevin path (red), whereas Wasserstein decreases along the geodesic (grey). OSIS takes a step along the Wasserstein gradient of towards (blue).
For a distribution and an absolutely continuous kernel we denote by the pushforward distribution, which has density . As before, we denote by the pushforward of a distribution by a measurable function . Integration is assumed to be taken over the entire unless stated otherwise. We use to denote Euclidean distance and define 2-Wasserstein distance and KL divergence between distributions and as follows:
We use the Monge formulation of 2-Wasserstein distance, since for absolutely continuous distributions, the Monge optimal transport maps exist and are unique. Other formulations are discussed in §B.1.
One step of OSIS in Wasserstein space. We now formalise one step of OSIS, visualised in Figure 2. At each training iteration , OSIS has the initial distribution .
First, we use to denote the distribution after a continuous evolution of by a stochastic kernel for the time . Second, we compute the 2-Wasserstein OT map between and . With fixed, the functional has Wasserstein gradient at (Alfonsi & Jourdain, 2020, Theorem 2.2). Third, we set with , which is the result of taking a gradient step on with step size . Finally, one idealised iteration of OSIS is expressed as
4.2 MAIN RESULTS
We prove convergence of the procedure (7) under various assumptions on . Proofs appear in §B.2.
Convergence for strongly log-concave target. We consider the case where is -strongly log-concave ( -SLC), that is, for some .
Theorem 4.1 (Contraction of one step of OSIS under -SLC ). Let be -SLC. Let be as in §4.1. For any , , the following bounds hold:
Theorem 4.2 (Convergence of OSIS under -SLC ). Under the assumptions of Theorem 4.1, let be the sequence of probability distributions produced by the OSIS iterations. Assuming and for all , the following bounds hold for any :
Moreover, if , , and , then:
As a result, we have shown a geometric convergence rate for OSIS under a -SLC assumption on .
Beyond strong log-concavity. The same update also converges for non-log-concave satisfying an -log-Sobolev inequality ( -LSI) and a lower curvature bound . Here and -LSI means for all . In the appendix (Theorem B.5), we prove convergence rates, which in particular imply:
Corollary 4.3 (Geometric convergence under LSI and bounded negative curvature). Under the notations of §4.1, and the -LSI and curvature assumptions above, with fixed and with , and converge geometrically to 0.
5 PRACTICAL CONSIDERATIONS
The idealised setting, which is detailed in Algorithm 1 and theoretically analysed in §4 cannot be implemented in practice. Instead, we approximate the distributions and the divergence between them 8by their empirical counterparts and replace the continuous-time Langevin by a discrete-time MCMC simulation. The next paragraphs detail various design choices for OSIS relevant in practice. An extended introduction to the practical considerations of the algorithm is provided in §C.
Refinement kernel. OSIS can be instantiated with different MCMC kernels. The theory concerns exact Langevin, but we use the MALA kernel in practice and consider other choices in Table 3.
Empirical divergence. It is not possible to use infinite populations as considered in the theory, instead OSIS computes finite-batch empirical divergences between generated samples and their kernel-refined versions. Our presented theory considers a squared 2-Wasserstein loss, but OSIS can
Table 1: Sampler comparison on GMM, Funnel, and ManyWell targets. Entries are mean ± standard deviation over five seeds. Second column shows number of NN and energy evaluations per sample
| Target density | 40GMM (d = 2) | 40GMM (d = 10) | Funnel (d = 10) | ManyWell (d = 32) | ManyWell (d = 64) | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Method Metric | NN / | MMD | MMD | MMD | MMD | MMD | |||||
| Reference | |||||||||||
| OSIS | 1 / 0 | ||||||||||
| FAB (flow only) | 1 / 0 | ||||||||||
| FAB | 1 / 120 | ||||||||||
| SMC | 0 / 3825 | ||||||||||
| DIS | 128 / 128 | ||||||||||
| PIS | 128 / 128 | ||||||||||
| TB+MALA | 128 / 128 | ||||||||||
| SubTB+SMC | 128 / 128 | ||||||||||
be extended to other discrepancies between distributions. For the experiments on the synthetic targets (§6.1) we use sliced Wasserstein distances (SWD; Bonneel et al., 2015), and for the experiments on Bayesian posteriors (§6.2) we use minibatch OT with squared-Euclidean cost, which converges to exact 2-Wasserstein in the limit (Fatras et al., 2021).
Annealing. Kernel refinements can initially target the tempered distribution with and then anneal to 1 over the course of training. The starting temperature and annealing schedule balance early exploration with learning the final target.
Complete algorithm. To facilitate training stability, we make several gradient steps after each MCMC refinement. The complete training procedure detailing the use of empirical divergence, finite-step MCMC kernel, annealing, and multiple gradient steps per iteration is presented in Algorithm 3.
6 EXPERIMENTS
6.1 SYNTHETIC BENCHMARKS
Target distributions. We evaluate OSIS on standard sampling benchmarks: Neal's funnel (d = 10) (Neal, 2003), ManyWell (d = 32, 64) (Noé et al., 2019), and 40GMM (d = 2, 10) (Blessing et al., 2024). We also consider benchmarks in higher dimension: NICE-MNIST (d = 196) and NICE-FMNIST (d = 728) (Blessing et al., 2024).
Baselines. We evaluate OSIS against several amortised samplers: the normalising-flow-based FAB (Midgley et al., 2023) and diffusion samplers trained with different algorithms – PIS (Zhang & Chen, 2022), DIS (Berner et al., 2024), and off-policy methods TB+MALA (Sendera et al., 2024) and SubTB+SMC (Choi et al., 2026). Since FAB can either be used as a one-step sampler or placed in an annealed importance sampling loop, we compare OSIS to the one-step version of FAB as well. Additionally, we compare OSIS to SMC (Del Moral et al., 2006), a training-free sampling algorithm.
Results. Table 1 shows sample-based metrics on synthetic targets, with 2-Wasserstein and MMD evaluated between 10000 draws from a trained OSIS model and an equal number of oracle samples from the target. OSIS is not consistently outperformed by any of the MCMC, normalising flow, or diffusion-based baselines despite requiring only one neural function evaluation and no energy evaluations to draw a sample. While the diffusion-based samplers trained by off-policy methods (Sendera et al., 2024; Choi et al., 2026) are the strongest overall, they require many sampling steps to perform well, cf. the analysis in Berner et al. (2026). On the higher-dimensional targets – given by normalising flow densities trained
Table 2: Sampler comparison on NICE targets. Conventions follow Table 1.
| Target density | NICE-MNIST (d = 196) | NICE-FMNIST (d = 784) | |||
|---|---|---|---|---|---|
| Method Metric | NN / | MMD | MMD | ||
| Reference | |||||
| OSIS | 1 / 0 | ||||
| FAB (flow only) | 1 / 0 | ||||
| FAB | 120 / 120 | ||||
| SMC | 0 / 3825 | ||||
| DIS | 128 / 128 | ||||
| PIS | 128 / 128 | ||||
| TB+MALA | 128 / 128 | ||||
| SubTB+SMC | 128 / 128 | ||||

Figure 3: Sampling time comparison on ManyWell (median of 250 runs). DIS is trained for different numbers of denoising steps. OSIS achieves comparable to the baselines while sampling up to faster.

Figure 4: Visualisation of samples generated by OSIS and the baselines for 40GMM , Funnel , ManyWell , MNIST . Funnel and ManyWell are projected onto .
smiling toddler
a young blond girl
a man with a beard
person wearing glasses

Figure 5: Uncurated samples obtained using outsourced sampling (§6.2). The samplers correspond to the ImageReward-based target conditioned on the given prompts. More examples in §E.6.
on MNIST and FMNIST treated as energy-based models – OSIS again performs on par with FAB and stronger than diffusion-based samplers (Table 2).
Figure 4 shows samples from various models on 40GMM , Funnel , ManyWell , and MNIST . It is clear from the figure that OSIS performs comparably in terms of sampling quality while being significantly faster at inference.
Sampling efficiency. The main advantage of one-step generative models is low sampling cost. OSIS, a one-step sampler, is much more efficient at sampling time than most baselines, whose sampling procedures require hundreds of function evaluations. To quantify this exactly, in Figure 3 we show sampling time per batch of 2000 samples on ManyWell , measured on an NVIDIA GH200 GPU, excluding compilation and warm-up. OSIS yields a significant cost reduction with comparable or improved metrics (Table 1). To assess the trade-off between number of sampling steps and sampling quality, we also train and evaluate the diffusion-based sampler DIS with 4, 16, 64, and 128 denoising steps. Although DIS performance improves with the number of denoising steps, OSIS consistently outperforms at strictly lower sampling time.
Ablation of kernel choice. Table 3 compares different choices of the kernel in OSIS (see §C.1 for a description of the kernels). MALA, ULA, and OBABO tend to preform the strongest, and the higher-order splitting schemes for underdamped Langevin (OBABO and BAOAB) often improve over MALA, approaching the diffusion sampler baselines. However, based on the experiments, OSIS does not consistently benefit from sophisticated MCMC kernels.
Table 3: OSIS kernel ablation with inner iterations (Algorithm 3); details in §D.
| Target density | 40GMM | ManyWell | ||
|---|---|---|---|---|
| Kernel Metric | MMD | MMD | ||
| Reference | ||||
| RWMH | ||||
| ULA | ||||
| MALA | ||||
| BAOAB | ||||
| OBABO | ||||
| HMC | ||||
| SVGD | ||||
Additionally, we compare with the RWMH kernel, which does not use energy gradients. Although it does not provide the best performance, it remains competitive and can serve as an alternative when target-energy gradients are unavailable. Note that these methods are compared in terms of OSIS training steps, not at matched computational cost, and different kernels require different numbers of energy and gradient evaluations per step. Further ablations are provided in §E.4.
6.2 BAYESIAN POSTERIOR SAMPLING UNDER DEEP GENERATIVE MODEL PRIORS
We show the scalability of OSIS by applying it to the problem of sampling from a Bayesian posterior under a pretrained generative model prior in latent space, known otherwise as outsourced sampling (Venkatraman et al., 2025). Suppose that a pretrained generative model is expressed as a deterministic transformation of a latent variable: , where follows a known base distribution. The model's distribution over , , is treated as a Bayesian prior. If is a likelihood or reward function, we wish to sample from the posterior, or reward-tilted distribution (which has density proportional to if has a density).
It can be shown that this posterior is the pushforward by of the latent-space distribution with density proportional to , reducing sampling from the posterior in -space to sampling from this distribution over the latent . Past work adopting such a formulation (Venkatraman et al., 2025; Tang et al., 2025; Kalaivanan et al., 2025; Om et al., 2025; Wang et al., 2026; Tamogashev & Whitammer, 2026) used various amortised and Monte Carlo methods to sample from the latent-space posterior; here, we train OSIS samplers.
We conduct two sets of experiments:
(1) with the decoder of a VAE (Kingma & Welling, 2014) trained on MNIST with 16-dimensional latent, with a pretrained classifier's likelihood used to define the reward;
(2) with the generator of a R3GAN (Huang et al., 2024) trained on FFHQ-64 with 64-dimensional latent, with exponentiated ImageReward (Xu et al., 2023) as a reward, for a given caption .
Details are given in §A.
MNIST with classifier reward. For the experiments with a VAE pretrained on MNIST, we use a mixture of different classes as the reward: . Samples are shown in §E.5.
FFHQ-64 with ImageReward. We sample from the reward-reweighted distribution, which is defined by ImageReward conditioned on a prompt. For these experiments, we consider the four prompts shown in Figure 5, which shows the decoded samples from a trained OSIS model. For the prompt a young blond girl, we compare OSIS to a diffusion sampler (Sendera et al. (2024), as used for this problem in Venkatraman et al. (2025)), to an MCMC algorithm (MALA with adaptive step size), and to unbiased samples obtained by an expensive rejection sampling; see Table 4. OSIS performs similarly – higher mean reward, lower FID – to the diffusion-based amortised baseline (TB+MALA) while requiring only one function evaluation per sample. OSIS further improves with MCMC refinement. Visualisations in §E.6 show comparable quality of samples.
Table 4: Comparison on the outsourced sampling problem.
| Algorithm ↓ Metric → | FID (↓) | |
|---|---|---|
| Rejection sampling | 2.164 | 2.345 |
| MALA | 2.127 | 3.070 |
| OSIS | 1.387 | 8.965 |
| OSIS + refinement | 1.854 | 7.510 |
| TB+MALA | 0.992 | 4.267 |
7 CONCLUSION
This paper has proposed an algorithm for one-step amortised sampling based on matching the distribution induced by a generator with its MCMC refinement. With appropriate techniques to make the refinement and divergence optimisation practical, OSIS performs surprisingly well compared to strong samplers that require many neural net and energy evaluations to draw each sample.
The most immediate challenge is to improve the sampling quality on highly multimodal targets, where diffusion samplers have been successful due to the geometric mixing induced by the noise, which is absent with tempering alone. The theoretical analysis should also be extended to include temperature annealing and inexact integration of the dynamics within various refinement kernels.
ACKNOWLEDGEMENTS
The work of AC is supported by the UKRI EPSRC through the CDT in Machine Learning Systems hosted in the School of Informatics, University of Edinburgh (EP/Y03516X/1), as well as joint sponsorship from Level E Research. The work of SC and ESW is supported by the Advanced Research and Invention Agency (ARIA). SB and ESW acknowledge support from the CIFAR Learning in Machines and Brains programme. This work has been partially supported by the Munich Center for Machine Learning (MCML) and G-Research.
This work was enabled by the computational resources of the Edinburgh International Data Facility (EIDF), the Edinburgh Generative AI Laboratory (GAIL), and the John von Neumann Institute for Computing (NIC) on the GCS Supercomputer JUPITER—JUWELS at Jülich Supercomputing Centre (JSC).
REFERENCES
Michael S. Albergo and Eric Vanden-Eijnden. NETS: A non-equilibrium transport sampler. International Conference on Machine Learning (ICML), 2025.
Aurélien Alfonsi and Benjamin Jourdain. Squared quadratic Wasserstein distance: optimal couplings and Lions differentiability. ESAIM: Probability and Statistics, 2020.
Luigi Ambrosio, Nicola Gigli, and Giuseppe Savaré. Gradient flows: in metric spaces and in the space of probability measures. Springer, 2005.
Christophe Andrieu and Johannes Thoms. A tutorial on adaptive MCMC. Statistics and computing, 2008.
Dominique Bakry and Michel Émery. Diffusions hypercontractives. Séminaire de probabilités, 1985.
Julius Berner, Lorenz Richter, and Karen Ullrich. An optimal control perspective on diffusion-based generative modeling. Transactions on Machine Learning Research (TMLR), 2024.
Julius Berner, Lorenz Richter, Marcin Sendera, Jarrid Rector-Brooks, and Nikolay Malkin. From discrete-time policies to continuous-time diffusion samplers: Asymptotic equivalences and faster training. Transactions on Machine Learning Research (TMLR), 2026.
Julian Besag. Comments on “Representations of knowledge in complex systems” by U. Grenander and M.I. Miller. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 56: 591–592, 1994.
Denis Blessing, Xiaogang Jia, Johannes Esslinger, Francisco Vargas, and Gerhard Neumann. Beyond ELBOs: A large-scale evaluation of variational methods for sampling. International Conference on Machine Learning (ICML), 2024.
Nicolas Bonneel, Julien Rabin, Gabriel Peyré, and Hanspeter Pfister. Sliced and Radon Wasserstein barycenters of measures. Journal of Mathematical Imaging and Vision, 2015.
Wenhan Cao, Keyu Yan, and Lin Zhao. One-step sampler for Boltzmann distributions via drifting. arXiv preprint arXiv:2603.17579, 2026.
Junhua Chen, Lorenz Richter, Julius Berner, Denis Blessing, Gerhard Neumann, and Anima Anandkumar. Sequential controlled Langevin diffusions. International Conference on Learning Representations (ICLR), 2025a.
Zonghao Chen, Aratrika Mustafi, Pierre Glaser, Anna Korba, Arthur Gretton, and Bharath K Sriperumbudur. (De)-regularized maximum mean discrepancy gradient flow. Journal of Machine Learning Research, 2025b.
Sinho Chewi, Murat A Erdogdu, Mufan Li, Ruoqi Shen, and Matthew S Zhang. Analysis of Langevin Monte Carlo from Poincaré to log-Sobolev. Foundations of Computational Mathematics, 2025.
Sanghyeok Choi, Sarthak Mittal, Víctor Elvira, Jinkyoo Park, and Esmeralda S. Whitammer. Reinforced sequential Monte Carlo for amortised sampling. International Conference on Machine Learning (ICML), 2026.
Marco Cuturi. Sinkhorn distances: Lightspeed computation of optimal transport. Neural Information Processing Systems (NeurIPS), 2013.
Pierre Del Moral, Arnaud Doucet, and Ajay Jasra. Sequential Monte Carlo samplers. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 2006.
Mingyang Deng, He Li, Tianhong Li, Yilun Du, and Kaiming He. Generative modeling via drifting. arXiv preprint arXiv:2602.04770, 2026.
Randal Douc, Eric Moulines, Pierre Priouret, and Philippe Soulier. Markov Chains. Springer, 2018.
Simon Duane, Anthony D Kennedy, Brian J Pendleton, and Duncan Roweth. Hybrid Monte Carlo. Physics Letters B, 1987.
Alain Durmus and Eric Moulines. Nonasymptotic convergence analysis for the unadjusted Langevin algorithm. The Annals of Applied Probability, 2017.
Kilian Fatras, Younes Zine, Szymon Majewski, Rémi Flamary, Rémi Gribonval, and Nicolas Courty. Minibatch optimal transport distances; analysis and applications. arXiv preprint arXiv:2101.01792, 2021.
Yihao Feng, Dilin Wang, and Qiang Liu. Learning to draw samples with amortized Stein variational gradient descent. Conference on Uncertainty in Artificial Intelligence (UAI), 2017.
Jean Feydy, Thibault Séjourné, François-Xavier Vialard, Shun-ichi Amari, Alain Trouvé, and Gabriel Peyré. Interpolating between optimal transport and MMD using Sinkhorn divergences. International Conference on Artificial Intelligence and Statistics (AISTATS), 2019.
Rémi Flamary, Nicolas Courty, Alexandre Gramfort, Mokhtar Z Alaya, Aurélie Boisbunon, Stanislas Chambon, Laetitia Chapel, Adrien Corenflos, Kilian Fatras, Nemo Fournier, et al. Pot: Python optimal transport. Journal of Machine Learning Research, 2021.
Luigi Fogliani, Bruno Loureiro, and Marylou Gabrié. Annealing in variational inference mitigates mode collapse: A theoretical study on Gaussian mixtures. arXiv preprint arXiv:2602.12923, 2026.
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.
Alexandre Galashov, Valentin De Bortoli, and Arthur Gretton. Deep MMD gradient flow without adversarial training. International Conference on Learning Representations (ICLR), 2025.
Arthur Gretton, Karsten M. Borgwardt, Malte J. Rasch, Bernhard Schölkopf, and Alexander Smola. A kernel two-sample test. Journal of Machine Learning Research, 2012.
Arthur Gretton, Li Kevin Wenliang, Alexandre Galashov, James Thornton, Valentin De Bortoli, and Arnaud Doucet. On the Wasserstein gradient flow interpretation of drifting models. arXiv preprint arXiv:2605.05118, 2026.
Jiaqi Han, Puheng Li, Qiushan Guo, Renyuan Xu, Stefano Ermon, and Emmanuel J. Candès. One-step generative modeling via Wasserstein gradient flows. arXiv preprint arXiv:2605.11755, 2026.
W Keith Hastings. Monte Carlo sampling methods using Markov chains and their applications. 1970.
Aaron Havens, Benjamin Kurt Miller, Bing Yan, Carles Domingo-Enrich, Anuroop Sriram, Brandon Wood, Daniel Levine, Bin Hu, Brandon Amos, Brian Karrer, Xiang Fu, Guan-Horng Liu, and Ricky T. Q. Chen. Adjoint sampling: Highly scalable diffusion samplers via adjoint matching. International Conference on Machine Learning (ICML), 2025.
Jiajun He, Yuanqi Du, Francisco Vargas, Dinghuai Zhang, Shreyas Padhy, RuiKang OuYang, Carla Gomes, and José Miguel Hernández-Lobato. No trick, no treat: Pursuits and challenges towards simulation-free training of neural samplers. Frontiers in Probabilistic Inference workshop at International Conference on Machine Learning (ICML), 2025.
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. Computer Vision and Pattern Recognition (CVPR), 2016.
Ping He, Om Khangaonkar, Hamed Pirsiavash, Yikun Bai, and Soheil Kolouri. Sinkhorn-drifting generative models. arXiv preprint arXiv:2603.12366, 2026.
Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. Neural Information Processing Systems (NeurIPS), 2020.
Matthew D Hoffman. Learning deep latent Gaussian models with Markov chain Monte Carlo. International Conference on Machine Learning (ICML), 2017.
Lars Holdijk, Yuanqi Du, Ferry Hooft, Priyank Jaini, Berend Ensing, and Max Welling. Stochastic optimal control for collective variable free sampling of molecular transition paths. Neural Information Processing Systems (NeurIPS), 2023.
Emiel Hoogeboom, Victor Garcia Satorras, Clément Vignac, and Max Welling. Equivariant diffusion for molecule generation in 3d. International Conference on Machine Learning (ICML), 2022.
Yiwen Huang, Aaron Gokaslan, Volodymyr Kuleshov, and James Tompkin. The GAN is dead; long live the GAN! A modern GAN baseline. Neural Information Processing Systems (NeurIPS), 2024.
Richard Jordan, David Kinderlehrer, and Felix Otto. The variational formulation of the Fokker–Planck equation. SIAM journal on mathematical analysis, 1998.
Adhithyan Kalaivanan, Zheng Zhao, Jens Sjölund, and Fredrik Lindsten. ESS-Flow: Training-free guidance of flow-based models as inference in source space. arXiv preprint arXiv:2510.05849, 2025.
Diederik P Kingma and Max Welling. Auto-encoding variational Bayes. International Conference on Learning Representations (ICLR), 2014.
Soheil Kolouri, Kimia Nadjahi, Umut Simsekli, Roland Badeau, and Gustavo Rohde. Generalized sliced Wasserstein distances. Neural Information Processing Systems (NeurIPS), 2019.
Zhifeng Kong, Wei Ping, Jiaji Huang, Kexin Zhao, and Bryan Catanzaro. Diffwave: A versatile diffusion model for audio synthesis. International Conference on Learning Representations (ICLR), 2021.
Salem Lahlou, Tristan Deleu, Pablo Lemos, Dinghuai Zhang, Alexandra Volokhova, Alex Hernández-Garcia, Léna Néhale Ezzine, Yoshua Bengio, and Nikolay Malkin. A theory of continuous generative flow networks. International Conference on Machine Learning (ICML), 2023.
Benedict Leimkuhler and Charles Matthews. Rational construction of stochastic numerical methods for molecular sampling. Applied Mathematics Research eXpress, 2013a.
Benedict Leimkuhler and Charles Matthews. Robust and efficient configurational molecular sampling via Langevin dynamics. The Journal of Chemical Physics, 138(17), 2013b.
Benedict Leimkuhler and Charles Matthews. Molecular Dynamics: With Deterministic and Stochastic Numerical Methods. Springer, 2015.
Yingzhen Li, Richard E Turner, and Qiang Liu. Approximate inference with amortised MCMC. arXiv preprint arXiv:1702.08343, 2017.
Qiang Liu and Dilin Wang. Stein variational gradient descent: A general purpose Bayesian inference algorithm. Neural Information Processing Systems (NeurIPS), 2016.
Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. International Conference on Learning Representations (ICLR), 2019.
Nicholas Metropolis, Arianna W Rosenbluth, Marshall N Rosenbluth, Augusta H Teller, and Edward Teller. Equation of state calculations by fast computing machines. The Journal of Chemical Physics, 1953.
Laurence Illing Midgley, Vincent Stimper, Gregor NC Simm, Bernhard Schölkopf, and José Miguel Hernández-Lobato. Flow annealed importance sampling bootstrap. International Conference on Learning Representations (ICLR), 2023.
Shakir Mohamed and Balaji Lakshminarayanan. Learning in implicit generative models. arXiv preprint arXiv:1610.03483, 2016.
Petr Mokrov, Alexander Korotin, Lingxiao Li, Aude Genevay, Justin M Solomon, and Evgeny Burnaev. Large-scale Wasserstein gradient flows. Neural Information Processing Systems (NeurIPS), 2021.
Kimia Nadjahi, Alain Durmus, Lénaïc Chizat, Soheil Kolouri, Shahin Shahrampour, and Umut Simsekli. Statistical and topological properties of sliced probability divergences. Neural Information Processing Systems (NeurIPS), 2020.
Radford M Neal. Slice sampling. The Annals of Statistics, 2003.
Radford M Neal. MCMC using Hamiltonian dynamics. Handbook of Markov chain Monte Carlo, 2011.
Frank Noé, Simon Olsson, Jonas Köhler, and Hao Wu. Boltzmann generators: Sampling equilibrium states of many-body systems with deep learning. Science, 2019.
Kiyoung Om, Kyuil Sim, Taeyoung Yun, Hyeongyu Kang, and Jinkyoo Park. Posterior inference in latent space for scalable constrained black-box optimization. arXiv preprint arXiv:2507.00480, 2025.
Felix Otto and Cédric Villani. Generalization of an inequality by Talagrand and links with the logarithmic Sobolev inequality. Journal of Functional Analysis, 2000.
Danilo Rezende and Shakir Mohamed. Variational inference with normalizing flows. International Conference on Machine Learning (ICML), 2015.
Lorenz Richter, Ayman Boustati, Nikolas Nüsken, Francisco J. R. Ruiz, and Ömer Deniz Akyildiz. VarGrad: A low-variance gradient estimator for variational inference. Neural Information Processing Systems (NeurIPS), 2020.
Lorenz Richter, Julius Berner, and Guan-Horng Liu. Improved sampling via learned diffusions. International Conference on Learning Representations (ICLR), 2024.
Gareth O Roberts and Richard L Tweedie. Exponential convergence of Langevin distributions and their discrete approximations. 1996.
Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. Medical Image Computing and Computer-Assisted Intervention (MICCAI), 2015.
Peter J Rossky, Jimmie D. Doll, and Harold L. Friedman. Brownian dynamics as smart Monte Carlo simulation. The Journal of Chemical Physics, 69:4628–4633, 1978.
Francisco Ruiz and Michalis Titsias. A contrastive divergence for combining variational inference and MCMC. International Conference on Machine Learning (ICML), 2019.
Subham S Sahoo, Marianne Arriola, Yair Schiff, Aaron Gokaslan, Edgar Marroquin, Justin T Chiu, Alexander Rush, and Volodymyr Kuleshov. Simple and effective masked diffusion language models. Neural Information Processing Systems (NeurIPS), 2024.
Sergey Samsonov, Evgeny Lagutin, Marylou Gabrié, Alain Durmus, Alexey Naumov, and Eric Moulines. Local-global MCMC kernels: the best of both worlds. Neural Information Processing Systems (NeurIPS), 2022.
Filippo Santambrogio. Optimal transport for applied mathematicians: Calculus of variations, PDEs, and modeling, volume 87 of progress in nonlinear differential equations and their applications. 2015.
Filippo Santambrogio. {Euclidean, metric, and Wasserstein} gradient flows: an overview. Bulletin of Mathematical Sciences, 7(1):87–154, 2017.
Marcin Sendera, Minsu Kim, Sarthak Mittal, Pablo Lemos, Luca Scimeca, Jarrid Rector-Brooks, Alexandre Adam, Yoshua Bengio, and Esmeralda S. Whitammer. Improved off-policy training of diffusion samplers. Neural Information Processing Systems (NeurIPS), 2024.
Jascha Sohl-Dickstein, Eric Weiss, Niru Maheswaranathan, and Surya Ganguli. Deep unsupervised learning using nonequilibrium thermodynamics. International Conference on Machine Learning (ICML), 2015.
Jiaming Song, Shengjia Zhao, and Stefano Ermon. A-NICE-MC: Adversarial training for MCMC. Neural Information Processing Systems (NeurIPS), 2017.
Yang Song, Jascha Sohl-Dickstein, Diederik P Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. Score-based generative modeling through stochastic differential equations. International Conference on Learning Representations (ICLR), 2021.
Gilbert Strang. On the construction and comparison of difference schemes. SIAM journal on numerical analysis, 5(3):506–517, 1968.
Kirill Tamogashev and Esmeralda S. Whitammer. Data-to-energy stochastic dynamics. International Conference on Learning Representations (ICLR), 2026.
Zhiwei Tang, Jiangweizhi Peng, Jiasheng Tang, Mingyi Hong, Fan Wang, and Tsung-Hui Chang. Inference-time alignment of diffusion models with direct noise optimization. International Conference on Machine Learning (ICML), 2025.
Chenyang Tian, Bharath K Sriperumbudur, Arthur Gretton, and Zonghao Chen. Sobolev regularized MMD gradient flow. arXiv preprint arXiv:2605.11884, 2026.
Michalis K Titsias. Learning model reparametrizations: Implicit variational inference by fitting MCMC distributions. arXiv preprint arXiv:1708.01529, 2017.
Francisco Vargas, Will Grathwohl, and Arnaud Doucet. Denoising diffusion samplers. International Conference on Learning Representations (ICLR), 2023.
Santosh Vempala and Andre Wibisono. Rapid convergence of the unadjusted Langevin algorithm: Isoperimetry suffices. Neural Information Processing Systems (NeurIPS), 2019.
Siddarth Venkatraman, Mohsin Hasan, Minsu Kim, Luca Scimeca, Marcin Sendera, Yoshua Bengio, Glen Berseth, and Nikolay Malkin. Outsourced diffusion sampling: Efficient posterior inference in latent spaces of generative models. International Conference on Machine Learning (ICML), 2025.
Max-K. von Renesse and Karl-Theodor Sturm. Transport inequalities, gradient estimates, entropy and Ricci curvature. Communications on Pure and Applied Mathematics, 2005.
Congye Wang, Wilson Chen, Heishiro Kanagawa, and Chris Oates. Reinforcement learning for adaptive MCMC. International Conference on Artificial Intelligence and Statistics (AISTATS), 2025.
Zifan Wang, Alice Harting, Matthieu Barreau, Michael Zavlanos, and Karl H Johansson. Source-guided flow matching. International Conference on Learning Representations (ICLR), 2026.
Max Welling and Yee W Teh. Bayesian learning via stochastic gradient Langevin dynamics. International Conference on Machine Learning (ICML), 2011.
Peter Wirnsberger, Andrew J Ballard, George Papamakarios, Stuart Abercrombie, Sébastien Racanière, Alexander Pritzel, Danilo Jimenez Rezende, and Charles Blundell. Targeted free energy estimation via learned mappings. The Journal of Chemical Physics, 2020.
Jiazheng Xu, Xiao Liu, Yuchen Wu, Yuxuan Tong, Qinkai Li, Ming Ding, Jie Tang, and Yuxiao Dong. ImageReward: Learning and evaluating human preferences for text-to-image generation. Neural Information Processing Systems (NeurIPS), 2023.
Mingxuan Yi and Song Liu. Sliced Wasserstein variational inference. Asian Conference on Machine Learning (ACML), 2023.
Qinsheng Zhang and Yongxin Chen. Path integral sampler: a stochastic control approach for sampling. International Conference on Learning Representations (ICLR), 2022.
A ADDITIONAL DISCUSSION OF THE ALGORITHM
A.1 VECTOR-FIELD-BASED LOSS
It is possible to an consider alternative training procedure for OSIS, which is similar to the one used for drifting models (Deng et al., 2026; Gretton et al., 2026). Gradient descent on the parameters along the objective in (2) approximates the Wasserstein gradient descent of the distribution along the Wasserstein gradients of the divergence (see §3). The theory of Wasserstein geometry (Ambrosio et al., 2005) tells us that the evolution of a distribution can be identified with the evolution of particles that follow this distribution along a gradient field. In this case, the evolution of particles follows a vector field such that , with the term on the right being the gradient of the first variation of . This observation allows us to use an alternative training objective:
where now V, rather than the divergence , is estimated empirically using samples from . The algorithm corresponding to this objective is presented in Algorithm 2 and experiments are in §E.3.
A.2 FULL ALGORITHM
Algorithms 1 and 2 describe the idealised version of OSIS. However, as discussed in §5, there are many design choices that can help improve performance of the algorithm in practice. Algorithms 3 and 4 present the complete version of OSIS and include tempering, approximation of a Markov chain and the divergence with their empirical analogues, as well as the use of a replay buffer and inner iterations. We note that this work focuses on the variant of OSIS described in Algorithms 1 and 3. Pseudocode in Algorithms 2 and 4 is provided for completeness.
Algorithm 2 OSIS using a vector field V
Require: Prior distribution , -invariant kernel , number of chain steps , generator , vector field , step size .
1: while not converged do
2:
3: Run a chain for time
4:
5: Compute loss using
6:
7: Gradient update on with
8: end while
9: return
Algorithm 3 Full OSIS algorithm with
Require: Prior distribution , generator , -invariant kernel , empirical divergence , number of outer steps , number of inner steps , number of chain steps , buffer size , batch size ,
1: for outer = 1, ..., do
2: ,
3: Run a chain for steps
4: with inverse temperature
5:
6:
7: Instantiate buffer and save samples
8: Instantiate buffer
9: with
10: Run several inner iterations
11: for computational stability
12: for inner = 1, ..., do
13: if resample is True then
14:
15: else
16: Get from
17: end if
18:
19:
20:
21: Gradient update on with
22: end for
23: end for
24: return
Algorithm 4 Full OSIS algorithm with V
Require: Prior distribution , generator , -invariant kernel , vector field , number of outer steps , number of inner steps , number of chain steps , buffer size , batch size , step size .
1: for outer = 1, ..., do
2: ,
3: Run a chain for steps
4: with inverse temperature
5:
6:
7: Instantiate buffer and save samples
8: Instantiate buffer with
9: Run several inner iterations
10: for computational stability
11: for inner = 1, ..., do
12: if resample is True then
13:
14: else
15: Get from
16: end if
17:
18: ,
19:
20:
21: Gradient update on with
22: end for
23: end for
24: return
B EXTENDED THEORETICAL ANALYSIS
B.1 ADDITIONAL NOTATION AND TEMPERATURE SCALING
KL divergence and Fisher information. For distributionsw , we define KL divergence and Fisher information as follows:
We assume that for all cases we consider both KL divergence and Fisher information are finite.
2-Wasserstein distance. For distributions , we define 2-Wasserstein distance as
where is the set of probability measures on whose marginals are and .
(15) defines the Kantorovich version of OT. For measures in , the infimum is achieved (i.e., the minimal coupling exists) and the minimiser is unique. Moreover, for the optimal coupling has the form for some . This is the solution to the Monge OT problem, which appears in another (in this case, equivalent) definition of 2-Wasserstein distance:
Yet a third useful definition of 2-Wasserstein distance, which we use to prove Lemma B.3, is due to Benamou-Brenier (Ambrosio et al., 2005, Equation 8.0.3) and employs the dynamic formulation of optimal transport:
where the infimum is taken over time-dependent vector fields and densities satisfying the continuity equation and boundary conditions .
In any of these definitions, satisfies the triangle inequality, meaning that 2-Wasserstein is a distance metric in .
B.2 PROOFS
We first recall some standard definitions and results in Wasserstein geometry (see, e.g., Santambrogio (2015)), then prove the results from the main text.
Definition B.1 (Geodesic convexity). A functional is said to be
• geodesically convex if, for every , when is the geodesic between and ,
• -strongly geodesically convex (for some ) if, for every , when is the geodesic between and ,
Lemma B.2 (KL convexity along a Wasserstein geodesic). Let , and let be the geodesic between and in . With , is
• geodesically convex if is log-concave;
• -strongly geodesically convex if is -strongly log-concave.
Moreover, if for some , that is, is hypoconvex, then
Proof of Lemma B.2. We prove the result for -strong convexity; convexity can be recovered by setting . Recall that , where Id and is the Monge map from to . First, we rewrite as follows:
Next, we show the first term is -strongly convex and the second term is convex. Since is -strongly log-concave, for any x we have
Integrating with , we obtain
showing -strong convexity of the first term. For the second term, we have
where are the eigenvalues of . Because is the gradient of a convex function (Santambrogio, 2015) , integrating over , we get
which is exactly convexity of the second summand, noting that (so ) and .
This proves -strong convexity of KL along . The case of geodesic convexity can be recovered by setting .
Finally, we prove the inequality for hypoconvex , using the KL representation from (21). It suffices to consider the only the first term. Observe that since , then for any the function is convex in . Using and setting
we obtain . Rearranging,
By integrating with , we obtain an equivalent of (24), which concludes the proof.
Lemma B.3. Let satisfy , and define , Then, for any ,
Proof of Lemma B.3. We begin the proof by recalling the Benamou-Brenier formula for (see (17)). For the velocity , which is associated with the Langevin diffusion, we have
(29) where the first inequality follows from the Langevin diffusion path having a greater dynamic transport cost than the geodesic, the second equality is due to rescaling , and the last equality is due to the fact that , (Gretton et al., 2026, §2.2), (Vempala & Wibisono, 2019, Lemma 2).
Theorem 4.1 (Contraction of one step of OSIS under -SLC ). Let be -SLC. Let be as in §4.1. For any , , the following bounds hold:
Proof of Theorem 4.1. We start by recalling the Langevin convergence bound for -SLC distributions (von Renesse & Sturm, 2005, Theorem 1.1(iii)):
which, together with the triangular inequality, provides the following bound for :
Next, we introduce the bound for
This gives us the combined bound:
Now we establish conditions for :
So we get , where is the sigmoid function.
We now prove the bound on KL divergence under the same assumptions. We use the strong convexity of KL along geodesics (Lemma B.2) to obtain the following inequality:
We recall that . If is a continuous curve in induced by Langevin diffusion, using the Bakry-Émery criterion (Bakry & Émery, 1985), together with the fact that , (Gretton et al., 2026, §2.2), Vempala & Wibisono (2019, Lemma 2) gives
which consequently implies geometric convergence for KL:
Finally, combining Equation (33) with (31) gives:
(34)
which proves the final bound for KL with .
Theorem 4.2 (Convergence of OSIS under -SLC ). Under the assumptions of Theorem 4.1, let be the sequence of probability distributions produced by the OSIS iterations. Assuming and for all , the following bounds hold for any :
Moreover, if , , and , then:
Proof of Theorem 4.2. By iteratively applying the bound from Theorem 4.1 N times and using for , we get:
\mathrm{KL}\left(\rho_{N}\left\|\pi\right.\right)\leq\prod_{k=0}^{N-1}\left(1-\eta_{k}(1-e^{-2\lambda h_{k}})\right)\mathrm{KL}\left(\rho_{0}\left\|\pi\right.\right)\leq\exp\left(-\sum_{k=0}^{N-1}\eta_{k}(1-e^{-2\lambda h_{k}})\right)\mathrm{KL}\left(\left(\left\|\rho\right\right)_{0},\pi\right).Hence KL whenever .
To prove the bound for , we observe that . By recursively applying the bound from (8) we get:
Theorem B.4 (Contraction of one step of OSIS under satisfying logarithmic Sobolev inequality). Suppose that and for and that satisfies the logarithmic Sobolev inequality with parameter ( -LSI), that is:
With the same notations as in Theorem 4.1, the following bound holds:
Further, for , , define
If , then
Proof of Theorem B.4. Apply Lemma B.2 to the Wasserstein geodesic from to , with curvature parameter and interpolation parameter . This gives
(40)
The last term is nonnegative because and .
Rearranging the first two entropy terms gives
(41)
Using the proof of Lemma B.3,
The multiplier is nonnegative, so substituting this upper bound into (41) we obtain
(42)
Exact Langevin performs descent on relative entropy, so . We conclude that, if then
and so the subtracted term is nonnegative, proving entropy monotonicity.
For almost every s > 0, the entropy dissipation identity and -LSI bound give
Integrating as in the proof of Lemma B.3,
We substitute this upper-bound in (42) noting that the step condition makes nonnegative and obtain
□
Theorem B.5 (Convergence under LSI and bounded negative curvature). Suppose that and for and that satisfies -LSI. With the same notations as in Theorem 4.1, let be the sequence of probability distributions produced by OSIS interactions, define
Assuming , for all , the following bounds hold for any :
Proof of Theorem B.5. The proof uses exact-Langevin KL decay under LSI (Vempala & Wibisono, 2019, Theorem 4) and Talagrand inequality (Otto & Villani, 2000, Theorem 1), in addition to Theorem B.4.
By Theorem B.4, the one-step bound is
We note that and imply and . The upper inequality is strict if and .
Iterating the one-step descent over gives the product bound. Applying the inequality to each factor gives the exponential bound in (48).
We now apply Talagrand's inequality
Thus the previous bound provides convergence of both KL and .
Corollary 4.3 (Geometric convergence under LSI and bounded negative curvature). Under the notations of §4.1, and the -LSI and curvature assumptions above, with fixed and with , and converge geometrically to 0.
Proof of Corollary 4.3. Immediate from Theorem B.5, as both discrepancies tend to zero if .
C EXTENDED PRACTICAL CONSIDERATIONS
This appendix details the main design choices of OSIS. It expands on the kernel, loss, tempering, and inference choices in §5. This section aims to provide a general overview. Specific details about the experiments are provided in §D.
C.1 CHOICE OF MCMC KERNEL
We present here various methods to update the generated samples towards the target . They often consist of a -invariant MCMC kernel, but other methods, such as Stein variational gradient descent (Liu & Wang, 2016), can also be investigated. In this subsection, denotes a proposal density. We describe kernels for a fixed target . Under an annealing schedule, the same constructions use instead.
Metropolis-Hastings. The Metropolis-Hastings (MH Metropolis et al., 1953; Hastings, 1970) kernel modifies a continuous full-support proposal to be -invariant by mixing it with a rejection kernel. To be precise, given a proposal kernel q, define
where is a Dirac delta at x and
By construction, is -invariant (in particular, if is reversible with respect to , then for -almost every and ). However, the choice of greatly affects the rate of convergence to of a Markov chain with transition operator .
Random-walk proposals. Random-walk Metropolis (RWM) is a commonly used form of MH. A standard variant takes to be the kenrel of a Gaussian random walk: for some chosen variance . The proposal is symmetric, so its acceptance probability simplifies to . RWM requires target energy evaluations but no target energy gradients.
Langevin-based proposals. One can make use of target gradient information when defining a proposal distribution. Metropolis-Adjusted Langevin (MALA; Rossky et al., 1978; Besag, 1994; Roberts & Tweedie, 1996) is MH based on a proposal q that is an Euler-Maruyama integration step of a Langevin SDE:
for some chosen step size . At inverse temperature , the drift becomes . Unlike RWM, this proposal is generally asymmetric, so both proposal-density terms in (53) must be retained. Omitting the accept/reject step gives the unadjusted Langevin algorithm (ULA), which does not in general preserve the target at a finite step size (Roberts & Tweedie, 1996). Neither a MALA step nor a ULA step is the exact Langevin semigroup transition used in §4.
Higher-order splitting schemes. Splitting integrators provide further discretisations of Langevin dynamics and can reduce finite-step sampling bias (Leimkuhler & Matthews, 2013a). The idea is to divide the dynamics into simpler parts that can each be integrated exactly, then compose their updates. We consider the matrix formulation of the underdamped Langevin targeting , where :
where is the friction coefficient and is the auxiliary velocity variable. The underdamped Langevin dynamics is split into three parts: free transport of the position at fixed velocity (A), force-driven evolution of the velocity at fixed position (B), and Ornstein-Uhlenbeck evolution of the velocity, combining friction and Gaussian noise at fixed position (O). Their exact updates over a duration are
These exact substeps generally do not commute, so their composition provides a specific approximation of the full dynamics (Leimkuhler & Matthews, 2013b, Section IV). For example, the chronological order of a BAOAB step of size is
The letters specify the order of the updates; each repeated letter here uses a half step. Each update acts on the current state, with independent noise for each O substep. Symmetric Strang composition (i.e., letters forming a palindrome) give second-order weak accuracy under appropriate conditions (Strang, 1968).
HMC. Hamiltonian Monte Carlo introduces auxiliary momentum variables and uses Hamiltonian trajectories, with a correction for numerical integration error, to construct a target-invariant transition (Neal, 2011).
Stein variational gradient descent. Stein variational gradient descent (SVGD) transports a set of interacting particles using a deterministic, kernel-based field (Liu & Wang, 2016). For a differentiable positive-definite kernel and step size , its update for particles is
Multiple-step kernels. If is a -invariant kernel, so is for . Thus one can construct several-step kernels by iterating the primitive ones defined above, as we do in the experiments.
Acceptance-targeting step adaptation. We adapt the step size of random-walk or Langevin MCMC during training to maintain a target acceptance rate (Andrieu & Thoms, 2008). The update is log-space stochastic approximation,
where is the batch mean acceptance and is the temperature-rescaled step size. We then set the sampler's step size to and clip it to .
C.2 CHOICE OF DIVERGENCE
To compute the distance between two distributions, we rely on sample-based distribution metrics. In practice, these distances are computed using samples from both distributions.
Maximum mean discrepancy. One possible way to compute the distance between two distributions is use maximum mean discrepancy (MMD; Gretton et al., 2012). Given a positive definite kernel function, such as , where is a positive bandwidth and is distance, the MMD between two distributions and is defined as:
(60)
which can be estimated by Monte Carlo sampling.
Squared 2-Wasserstein distance. For probability distributions and on with finite second moments, recall from (16) that the squared 2-Wasserstein distance is an optimal transport cost
where contains joint distributions over whose marginals are and . The distance between empirical approximations to and is known as the minibatch 2-Wasserstein, and it converges to (61) as the number of samples increases (Fatras et al., 2021).
Sliced Wasserstein distance. The sliced Wasserstein distance (SWD; Bonneel et al., 2015; Kolouri et al., 2019; Nadjahi et al., 2020) is a tractable surrogate that computes OT distances using 1-dimensional projections. It is defined by
where the expectation is taken over uniform on the unit sphere in . In practice, the expectation over the projection direction is estimated with random projections. The quantity inside the expectation is a 1D OT distance between empirical distributions and is thus easily computed.
Sinkhorn divergence. Entropic regularisation is introduced to the transport problem (61) and provides a smoother optimisation problem that can be solved using Sinkhorn iterations. For regularisation strength , define (Cuturi, 2013)
The corresponding debiased Sinkhorn divergence subtracts the two self-interaction terms,
so that . For empirical measures and the squared-Euclidean cost used here, approaches as . As , it approaches the squared distance between the means of and , equivalently, the squared MMD associated with the linear kernel (Feydy et al., 2019, Section 1.2).
D DETAILED EXPERIMENT SETUP
D.1 SYNTHETIC TARGETS
Setup. We train OSIS and the baselines for five random seeds. After training, we draw five independent batches of 10,000 samples with different seeds at the selected checkpoint: the final training iteration for OSIS and the checkpoint with the highest ELBO for baselines, following Blessing et al. (2024).
Each sampler’s evaluation batch is compared with the same batch of 10,000 reference samples for all samplers. We average the results within each training seed, then report the mean and sample standard deviation across the five training-seed means. SMC uses five repetition groups instead of training seeds. The reference rows provide a floor on each metric by comparing two independent target
Table 5: Baseline hyperparameter search grids.
| Method | Parameter | GMM (d = 10) | ManyWell (d = 32, 64) |
|---|---|---|---|
| FAB / PIS / DIS | Learning rate | ||
| FAB | Base scale | {20, 40, 80} | {1, 2, 4} |
| DIS | Initial std. | {20, 40, 80} | {1, 2, 4} |
| PIS | Max. diffusion amplitude | {80, 160, 320} | {2, 4, 8} |
| SMC | Initial std. | {20, 40, 80} | {1, 2, 4} |
| HMC step size | {0.1, 0.2} | {0.05, 0.1} | |
| Number of temperatures | {128, 256} | {128, 256} | |
batches of samples. We report empirical with unnormalised squared Euclidean cost, computed using POT (Flamary et al., 2021) with convergence checks. MMD corresponds to the square root of the biased Gaussian kernel MMD-squared estimate, with bandwidth fixed per target to the median pairwise distance in an independent 10,000-sample batch from the target distribution.
Baselines. We retrain FAB (Midgley et al., 2023), PIS (Zhang & Chen, 2022), and DIS (Berner et al., 2024), and run SMC (Del Moral et al., 2006) using the reference implementation of Blessing et al. (2024). FAB uses an 8-layer Real-NVP flow with [64, 64] conditioner MLPs, 12 intermediate distributions, 10 HMC transitions per intermediate distribution, a replay buffer, and -divergence loss with . It trains for 3,000 iterations with four replay updates per iteration, at batch size 2,000 (1,000 for both NICE targets).
PIS and DIS use the PISGRADNet with width-64 MLPs and Fourier time features, trained for 40,000 updates with a batch size of 2,000 and 128 integration steps. For other hyperparameters, we use those reported in Blessing et al. (2024). For ManyWell d = 32, 64 and 40GMM d = 10, since the paper does not provide default hyperparameters, we performed a grid search over the key hyperparameters, as provided in Table 5, and selected the one with the best ELBO. SMC uses 2,000 particles, 10 HMC transitions per annealing interval, and resampling threshold of 0.3. It uses 256 temperatures for GMM-10D and ManyWell (dimension 32 and 64) targets, and 128 otherwise.
For TB+MALA (Sendera et al., 2024) and SubTB+SMC (Choi et al., 2026), we use the original implementation of Choi et al. (2026) and reimplement TB+MALA within the same codebase to simplify benchmarking. While the reimplemented TB+MALA is not identical to the original from Sendera et al. (2024), we ensure that the algorithm performs at least as well as, or better than, the original on synthetic targets. For these two baselines, we set the network architectures and common hyperparameters (learning rate and initial std.) to match those of DIS, while fixing algorithm-specific hyperparameters as reported in the original papers.
OSIS. For the main evaluation study Tables 1 and 2, OSIS was trained using a squared SWD (Bonneel et al., 2015) with 2048 projections, AdamW with weight decay , batch size of 4096, training updates, 20 steps of MCMC refinement and inner gradient iterations Algorithm 3. All the other experiments were run for .
We parameterise the function with a ResNet (He et al., 2016) architecture for synthetic targets and a small UNet (Ronneberger et al., 2015) for the NICE targets. The temperature follows the schedule of Fogliani et al. (2026): at time , the inverse temperature is
so the last of training uses . Funnel keeps during its entire training. Additional hyperparameters are reported in Table 6.
Kernel comparison. For this study the model is kept fixed across kernels as described above. Each kernel uses 20 refinement steps. Other parameters are tuned per kernel and presented in Table 7. MALA in this study uses inner iterations (see Algorithm 3), so its parameters differ from Table 6.
Parameter counts. Trainable parameter counts are reported in Table 8. SMC is non-amortised and has no learned parameters. PIS, DIS, and TB+MALA share the same backbone and parameter count. OSIS uses a RESNET on the synthetic targets and a UNET on the NICE targets.
Table 6: OSIS hyperparameters. RESNET(hidden, blocks) and UNET(base channels, attention heads). The temperature schedule is as defined in §D.
| Target | Loss | Model | lr | target accept. | |
|---|---|---|---|---|---|
| 40GMM (d = 2) | SWD | RESNET(256, 3) | 128 | 0.3 | |
| 40GMM (d = 10) | SWD | RESNET(256, 3) | 256 | 0.3 | |
| ManyWell (d = 32) | SWD | RESNET(256, 3) | 256 | 0.90 | |
| ManyWell (d = 64) | SWD | RESNET(256, 3) | 16 | 0.574 | |
| Funnel (d = 10) | SWD | RESNET(128, 2) | 1 | 0.90 | |
| NICE-MNIST (d = 196) | SWD | UNET(16, 4) | 32 | 0.574 | |
| NICE-FMNIST (d = 784) | SWD | UNET(16, 4) | 32 | 0.574 |
Table 7: Selected hyperparameters for ManyWell (d = 32).
| Kernel | Learning rate | Initial temperature | Initial proposal standard deviation | Target acceptance rate | ULA drift step | Integration step size | Friction | Leapfrog steps | SVGD update step | RBF kernel variance |
|---|---|---|---|---|---|---|---|---|---|---|
| RWMH | 4 | 1 | 0.5 | — | — | — | — | — | — | |
| MALA | 16 | — | 0.90 | — | — | — | — | — | — | |
| ULA | 16 | — | — | 0.008 | — | — | — | — | — | |
| BAOAB | 2 | — | — | — | 0.0025 | 2 | — | — | — | |
| OBABO | 16 | — | — | — | 0.006 | 2 | — | — | — | |
| HMC | 16 | — | — | — | 0.019 | — | 10 | — | — | |
| SVGD | 16 | — | — | — | — | — | — | 2 |
Sampling time. Figure 3 provides the median time over 250 runs for a batch of 2,000 samples on one NVIDIA GH200 GPU, excluding compilation and warm-up. The mean metric is computed independently following the previously described 10,000-sample protocol. OSIS, TB+MALA, and SubTB+SMC use compiled PyTorch, while FAB, PIS, DIS and SMC use native JAX JIT.
D.2 OUTSOURCED SAMPLING
Target densities. For MNIST we use a VAE (Kingma & Welling, 2014) which we train ourselves. Then, we use VAE decoder with a 16-dimensional latent, and a Bernoulli likelihood, trained for 100 epochs. For the reward function, we train a CNN classifier . The reward is defined as , and the target log-density is . Both networks remain frozen during the training of OSIS.
For the experiments on FFHQ-64, we use a pretrained frozen R3GAN (Huang et al., 2024) generator. The reward is ImageReward (Xu et al., 2023). The target log-density is defined as . Reward and gradient passes run bfloat16.
Model architecture for . In all our experiments we use a ResNet architecture with MLP layers. The inputs are first projected to a 256-dimensional latent, then follow 3 residual blocks of the form , , then the outputs are projected to the output dimension.
Training. We train OSIS with 1200 outer steps and 50 inner steps, following the procedure presented in Algorithm 3. We use an empirical approximation of OT loss (§C.2) and use MALA with adaptive step size (§C.1) as the MCMC algorithm, which we run for 20 steps. For the initial 1000 outer iterations we train the algorithm on a tempered target, the temperature follows a cosine schedule with initial temperature 2.0 and final temperature 1.0. Next, we train OSIS for 200 more iterations keeping the temperature fixed at 1.0. We use the AdamW (Loshchilov & Hutter, 2019) optimiser with learning rate 0.001 and no weight decay.
Evaluations. Each method in Table 4 is evaluated using . The reference is rejection sampling from the same tilted density. Since ImagerReward is unbounded by default, we bound it with a constant to perform rejection sampling. corresponds to the averaged ImageReward score computed with 10,000 samples. FID is computed against the rejection-sampling reference. We compute FID score using torchmetrics.
Table 8: Number of trainable parameters in the benchmark study ().
| Target | 40GMM | ManyWell | Funnel | NICE | |||
|---|---|---|---|---|---|---|---|
| Method | MNIST | FMNIST | |||||
| SMC | — | — | — | — | — | — | — |
| FAB | 70.7 | 83.1 | 117.2 | 166.9 | 83.1 | 371.8 | 1284.4 |
| PIS / DIS | 37.8 | 39.3 | 43.6 | 49.8 | 39.3 | 75.4 | 189.5 |
| OSIS | 198.7 | 202.8 | 214.0 | 230.5 | 35.7 | 227.9 | 689.9 |
Table 9: Sampler comparison on GMM, Funnel, and ManyWell targets. OSIS rows specify the training kernel and loss. This table was computed using inner iteration (see Algorithm 3).
| Target | 40GMM (d = 2) | 40GMM (d = 10) | Funnel (d = 10) | ManyWell (d = 32) | ManyWell (d = 64) | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| Method Metric | MMD | MMD | MMD | MMD | MMD | |||||
| Reference | ||||||||||
| OSIS (OBABO, OT) | ||||||||||
| OSIS (OBABO, SWD) | ||||||||||
| OSIS (MALA, OT) | ||||||||||
| OSIS (MALA, SWD) | ||||||||||
| FAB (Midgley et al., 2023) | ||||||||||
| FAB (flow only) (Midgley et al., 2023) | ||||||||||
| SMC (Del Moral et al., 2006) | ||||||||||
| DIS (Berner et al., 2024) | ||||||||||
| PIS (Zhang & Chen, 2022) | ||||||||||
E ADDITIONAL EXPERIMENT RESULTS
E.1 EXTENDED EVALUATION OF OSIS
In this section, we report results for OSIS with OBABO kernels on the main synthetic targets. This provides further evidence on whether splitting schemes can improve OSIS performance Tables 9 and 10. Overall, the benefits depend on the training objective: with OT, OBABO achieves lower mean squared 2-Wasserstein distance and MMD than MALA on all evaluated targets, whereas with SWD, the results are mixed. These experiments compare equal numbers of OSIS training steps, which does not necessarily imply equal computational cost. Each OBABO step requires two energy-gradient evaluations, whereas each MALA step requires two energy-gradient evaluations and two additional energy-value evaluations for the Metropolis-Hastings correction.
E.2 OSIS AGAINST ITS LONG RUN REFINEMENT
In this section we compare OSIS to its long run MCMC kernel. Both methods are run with the same MALA settings, number of MCMC steps and temperature annealing schedule. This table assesses how much of the refinement signal OSIS captures relative to running the equally long rollout of its refinement kernel. We note that the MALA parameters used here come from OSIS runs meaning, that they were not tuned for OSIS training and may not be optimal for direct MCMC sampling.
We observe that OSIS has higher reported discrepancies than MALA on 40GMM, motivating further investigation of whether additional inner optimisation steps help OSIS track its refinement targets Table 1. On ManyWell, however, SWD-trained OSIS outperforms its refinement kernel run for the same number of steps. These results show effective amortisation of the refinement signal in our sampler on specific targets.
Table 10: Sampler comparison on high-dimensional targets. OSIS rows specify the training kernel and loss. This table was computed using inner iteration (see Algorithm 3).
| Target Method Metric | NICE-MNIST () | NICE-FMNIST () | ||
|---|---|---|---|---|
| MMD () | MMD () | |||
| Reference | ||||
| OSIS (OBABO, OT) | ||||
| OSIS (OBABO, SWD) | ||||
| OSIS (MALA, OT) | ||||
| OSIS (MALA, SWD) | ||||
| FAB (Midgley et al., 2023) | ||||
| FAB (flow only) (Midgley et al., 2023) | ||||
| SMC (Del Moral et al., 2006) | ||||
| DIS (Berner et al., 2024) | ||||
| PIS (Zhang & Chen, 2022) | ||||
Table 11: Comparison of OSIS +MALA with long-run MALA only. OSIS rows specify the training kernel and loss. MALA-only runs start from Gaussian noise. We compare one set of MALA samples against five reference sets and report the average and standard deviation. This table was computed using inner iteration (see Algorithm 3).
| Target Method Metric | 40GMM () | 40GMM () | Funnel () | ManyWell () | ManyWell () | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| MMD () | MMD () | MMD () | MMD () | MMD () | ||||||
| Reference | ||||||||||
| OSIS (MALA, OT) | ||||||||||
| OSIS (MALA, SWD) | ||||||||||
| MALA only | ||||||||||
E.3 DRIFT PARAMETERISATION OF OSIS
We evaluate whether OSIS can benefit from a drift-based regression formulation motivated by Wasserstein gradient flows. This formulation expresses the generator update as a regression task towards samples displaced by an estimated drift field, with the regression targets held fixed during differentiation. For OT-based objectives, computing these targets still requires the corresponding transport information. The drift parameterisation yields lower mean values for both metrics on ManyWell (). On 40GMM (), both mean Sinkhorn divergence and mean MMD are higher, although the differences are within the scale of the reported variability.
Table 12: Comparison of discrepancy and drift objectives for OSIS trained with the OBABO refinement kernel. Results are mean standard deviation over five training seeds, after averaging five sampling-seed evaluations per checkpoint. This table was computed using inner iteration (see Algorithm 3).
| Target Method Metric | 40GMM () + OT | ManyWell () + SWD | ||
|---|---|---|---|---|
| MMD () | MMD () | |||
| Reference | ||||
| Discrepancy | ||||
| Drift | ||||
E.4 ABLATIONS
We provide in this section detailed ablations of the different design choices of OSIS.
Table 13: Ablation on ManyWell (). The default OSIS training configuration uses 20-step MALA, batch size 4096, SWD-2048, and 50,000 training updates. Results are mean standard deviation over five training seeds, after averaging five sampling-seed evaluations per checkpoint. This table was computed using inner iteration (see Algorithm 3).
| Configuration | MMD () | |
|---|---|---|
| Default | ||
| MCMC steps (default: 20) | ||
| 1 | ||
| 5 | ||
| 10 | ||
| 40 | ||
| 80 | ||
| Batch size (default: 4096) | ||
| 1024 | ||
| 2048 | ||
| 8192 | ||
| SWD projections (default: 2048) | ||
| 16 | ||
| 64 | ||
| 256 | ||
| 1024 | ||
| 4096 | ||
| Divergence (default: SWD-2048) | ||
| Exact OT | ||
| MMD | ||
E.5 ADDITIONAL SAMPLES FROM BAYESIAN POSTERIORS ON MNIST
OSIS
OSIS + MALA
Rejection sampling

Figure 6: Samples obtained using outsourced sampling. Samples correspond to the classifier-based target with the reward . From left to right, samples are obtained with OSIS, OSIS with 20-step MALA refinement, and rejection sampling.
OSIS
OSIS + MALA
Rejection sampling

Figure 7: Samples obtained using outsourced sampling. Samples correspond to the classifier-based target with the reward . From left to right, samples are obtained with OSIS, OSIS with 20-step MALA refinement, and rejection sampling.
E.6 ADDITIONAL SAMPLES FROM BAYESIAN POSTERIORS ON FFHQ-64
OSIS
a young blond girl
OSIS + MALA
smiling toddler
Rejection sampling
a man with a beard
person wearing glasses

Figure 8: Comparison of samples obtained with OSIS, OSIS with 20-step MALA refinement, and rejection sampling on outsourced sampling task with ImageReward-based target. The following 4 prompts are considered (from to to bottom): a young blond girl, smiling toddler, a man with a beard, person wearing glasses.
OSIS
Rejection sampling

TB+MALA (Sendera et al., 2024)
MALA
Figure 9: Visualisation of samples from OSIS, rejection sampling, TB+MALA (Sendera et al., 2024) and MALA. All algorithms, except rejection sampling, are matched in terms of the number of log-density evaluations.