用扩散模型在噪声空间高效推断生成模型的后验分布。
Outsourced diffusion sampling: Efficient posterior inference in latent spaces of generative models
- 将后验采样转化为噪声空间的扩散采样,利用强化学习训练扩散模型。
- 在图像生成、人类反馈强化学习和蛋白质结构生成中效果优于现有方法。
- 适用于无需修改的预训练生成模型,尤其适合条件生成任务。
任何良好定义的变量 $$\mathbf{x}\u0024$ 上的生成模型均可表示为外源高斯噪声变量 $$\mathbf{z}\u0024$ 的确定性变换:$$\mathbf{x}=f_θ(\mathbf{z})\u0024$。此类模型(如 VAE、GAN、连续时间流模型)中,对目标变量 $$\mathbf{x} \sim p_θ(\mathbf{x})\u0024$ 的采样简单,但对形如 $$p(\mathbf{x}\mid\mathbf{y}) \propto p_θ(\mathbf{x})r(\mathbf{x},\mathbf{y})\u0024$ 的后验分布采样通常不可行,其中 $$r\u0024$ 是依赖辅助变量 $$\mathbf{y}\u0024$ 的约束函数。我们提出通过在噪声空间($$\mathbf{z}\u0024$)使用扩散模型来摊销后验采样的计算成本。这些扩散采样器通过强化学习训练,确保变换后的样本 $$f_θ(\mathbf{z})\u0024$ 在数据空间($$\mathbf{x}\u0024$)服从后验分布。对于许多模型与约束,噪声空间中的后验更平滑,更适合摊销推理。该方法实现了在无条件 GAN、(H)VAE 和流模型先验下的条件采样,在多个实验中表现优于其他推理方法,涵盖大型预训练先验模型:条件图像生成、基于人类反馈的强化学习以及蛋白质结构生成。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。