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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Venkatraman, Siddarth, Hasan, Mohsin, Kim, Minsu, Scimeca, Luca, Sendera, Marcin, Bengio, Yoshua, Berseth, Glen, Malkin, Nikolay
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913862811385856
author Venkatraman, Siddarth
Hasan, Mohsin
Kim, Minsu
Scimeca, Luca
Sendera, Marcin
Bengio, Yoshua
Berseth, Glen
Malkin, Nikolay
author_facet Venkatraman, Siddarth
Hasan, Mohsin
Kim, Minsu
Scimeca, Luca
Sendera, Marcin
Bengio, Yoshua
Berseth, Glen
Malkin, Nikolay
contents 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_θ(\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_θ(\mathbf{x})$ is straightforward, but sampling from a posterior distribution of the form $p(\mathbf{x}\mid\mathbf{y}) \propto p_θ(\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_θ(\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.
format Preprint
id arxiv_https___arxiv_org_abs_2502_06999
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Outsourced diffusion sampling: Efficient posterior inference in latent spaces of generative models
Venkatraman, Siddarth
Hasan, Mohsin
Kim, Minsu
Scimeca, Luca
Sendera, Marcin
Bengio, Yoshua
Berseth, Glen
Malkin, Nikolay
Machine Learning
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_θ(\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_θ(\mathbf{x})$ is straightforward, but sampling from a posterior distribution of the form $p(\mathbf{x}\mid\mathbf{y}) \propto p_θ(\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_θ(\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.
title Outsourced diffusion sampling: Efficient posterior inference in latent spaces of generative models
topic Machine Learning
url https://arxiv.org/abs/2502.06999