Outsourced diffusion sampling: Efficient posterior inference in latent spaces of generative models
Abstract
Any well-behaved generative model over a variable can be expressed as a deterministic transformation of an exogenous ('outsourced') Gaussian noise variable : . In such a model (\eg, a VAE, GAN, or continuous-time flow-based model), sampling of the target variable is straightforward, but sampling from a posterior distribution of the form , where is a constraint function depending on an auxiliary variable , 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 (). These diffusion samplers are trained by reinforcement learning algorithms to enforce that the transformed samples are distributed according to the posterior in the data space (). 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.
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