Outsourced diffusion sampling: Efficient posterior inference in latent spaces of generative models

S. Venkatraman, Mohsin Hasan, Minsu Kim, Luca Scimeca, Marcin Sendera +3 more
2/14/2026

No confident code implementation found for this paper. 4 possible matches can be shown below.

Abstract

Any well-behaved generative model over a variable $\mathbf{x}$ can be expressed as a deterministic transformation of an exogenous ('outsourced') Gaussian noise variable $\mathbf{z}$: $\mathbf{x}=f_\theta(\mathbf{z})$. In such a model (\eg, a VAE, GAN, or continuous-time flow-based model), sampling of the target variable $\mathbf{x} \sim p_\theta(\mathbf{x})$ is straightforward, but sampling from a posterior distribution of the form $p(\mathbf{x}\mid\mathbf{y}) \propto p_\theta(\mathbf{x})r(\mathbf{x},\mathbf{y})$, where $r$ is a constraint function depending on an auxiliary variable $\mathbf{y}$, is generally intractable. We propose to amortize the cost of sampling from such posterior distributions with diffusion models that sample a distribution in the noise space ($\mathbf{z}$). These diffusion samplers are trained by reinforcement learning algorithms to enforce that the transformed samples $f_\theta(\mathbf{z})$ are distributed according to the posterior in the data space ($\mathbf{x}$). For many models and constraints, the posterior in noise space is smoother than in data space, making it more suitable for amortized inference. Our method enables conditional sampling under unconditional GAN, (H)VAE, and flow-based priors, comparing favorably with other inference methods. We demonstrate the proposed outsourced diffusion sampling in several experiments with large pretrained prior models: conditional image generation, reinforcement learning with human feedback, and protein structure generation.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 4 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{venkatraman2026outsourced,
  title  = {Outsourced diffusion sampling: Efficient posterior inference in latent spaces of generative models},
  author = {S. Venkatraman and Mohsin Hasan and Minsu Kim and Luca Scimeca and Marcin Sendera and Y. Bengio and Glen Berseth and Nikolay Malkin},
  year   = {2026},
  eprint = {2502.06999},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2502.06999},
  journal = {ICML 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.06999.svg)](https://codeofpaper.com/paper/2502.06999)

Discussion