English

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

Machine Learning 2025-05-29 v2

Abstract

Any well-behaved generative model over a variable x\mathbf{x} can be expressed as a deterministic transformation of an exogenous ('outsourced') Gaussian noise variable z\mathbf{z}: x=fθ(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 xpθ(x)\mathbf{x} \sim p_\theta(\mathbf{x}) is straightforward, but sampling from a posterior distribution of the form p(xy)pθ(x)r(x,y)p(\mathbf{x}\mid\mathbf{y}) \propto p_\theta(\mathbf{x})r(\mathbf{x},\mathbf{y}), where rr is a constraint function depending on an auxiliary variable y\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 (z\mathbf{z}). These diffusion samplers are trained by reinforcement learning algorithms to enforce that the transformed samples fθ(z)f_\theta(\mathbf{z}) are distributed according to the posterior in the data space (x\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.

Keywords

Cite

@article{arxiv.2502.06999,
  title  = {Outsourced diffusion sampling: Efficient posterior inference in latent spaces of generative models},
  author = {Siddarth Venkatraman and Mohsin Hasan and Minsu Kim and Luca Scimeca and Marcin Sendera and Yoshua Bengio and Glen Berseth and Nikolay Malkin},
  journal= {arXiv preprint arXiv:2502.06999},
  year   = {2025}
}

Comments

ICML 2025; code: https://github.com/HyperPotatoNeo/Outsourced_Diffusion_Sampling

R2 v1 2026-06-28T21:39:21.427Z