Skip to main content
QUICK REVIEW

[论文解读] Reparameterization Gradients through Acceptance-Rejection Sampling Algorithms

Christian A. Naesseth, Francisco J. R. Ruiz|arXiv (Cornell University)|Oct 18, 2016
Gaussian Processes and Bayesian InferenceComputer Science被引用 20
一句话总结

本文提出拒绝采样变分推断(RSVI),一种可为通过接受-拒绝采样模拟的变分分布(如伽马分布和狄利克雷分布等常见分布)实现重参数化梯度的方法。通过利用现有拒绝采样算法中的可微变换,RSVI 实现了显著低于当前最先进方法的梯度方差,从而在随机梯度变分推断中实现更快收敛。

ABSTRACT

Variational inference using the reparameterization trick has enabled large-scale approximate Bayesian inference in complex probabilistic models, leveraging stochastic optimization to sidestep intractable expectations. The reparameterization trick is applicable when we can simulate a random variable by applying a differentiable deterministic function on an auxiliary random variable whose distribution is fixed. For many distributions of interest (such as the gamma or Dirichlet), simulation of random variables relies on acceptance-rejection sampling. The discontinuity introduced by the accept-reject step means that standard reparameterization tricks are not applicable. We propose a new method that lets us leverage reparameterization gradients even when variables are outputs of a acceptance-rejection sampling algorithm. Our approach enables reparameterization on a larger class of variational distributions. In several studies of real and synthetic data, we show that the variance of the estimator of the gradient is significantly lower than other state-of-the-art methods. This leads to faster convergence of stochastic gradient variational inference.

研究动机与目标

  • 将重参数化梯度的应用范围从指数族分布扩展至需要接受-拒绝采样的分布。
  • 解决在使用非可微接受-拒绝步骤时,随机变分推断中梯度估计器方差过高的问题。
  • 为具有灵活变分族的复杂概率模型,实现高效、低方差的优化。
  • 利用数十年来拒绝采样变换的研究成果,构建可微、黑盒的重参数化方案。

提出的方法

  • 该方法将变分推断中的潜变量模拟机制建立在拒绝采样算法之上。
  • 识别现有拒绝采样器(如伽马分布和狄利克雷分布)中的可微变换,并利用其构建重参数化梯度。
  • 该方法‘移除了黑盒拒绝采样器的限制’,通过隐式重参数化将接受-拒绝决策视为可微过程。
  • 应用形状增强和随机优化以进一步降低梯度方差。
  • 该方法支持变分分布的位置-尺度和形状-尺度参数化形式。
  • 可与自动微分框架(如 autograd)无缝集成,实现端到端训练。

实验结果

研究问题

  • RQ1尽管接受-拒绝步骤存在不连续性,重参数化梯度是否仍可有效应用于通过接受-拒绝采样生成的变分分布?
  • RQ2在复杂模型中,RSVI 的梯度估计器方差与 g-rep 和 BBVI 等最先进方法相比如何?
  • RQ3在包含伽马分布和狄利克雷分布因子的模型中,RSVI 在随机梯度变分推断中对收敛速度和稳定性有多大的提升?
  • RQ4该方法能否推广至其他基于拒绝采样的采样器,如自适应或序列拒绝采样?
  • RQ5与现有梯度估计技术相比,RSVI 的计算成本和可扩展性如何?

主要发现

  • 与 g-rep 相比,RSVI 将梯度方差降低了高达 3–4 个数量级,在 NIPS 数据集上,方差中位数从 1.2e4 降低至 4.5e3。
  • 在 Olivetti 人脸数据集上,RSVI 在 ELBO 的初始提升速度显著快于 g-rep、BBVI 和 ADVI。
  • 在可比实现下,RSVI 的实际运行时间收敛速度约为 g-rep 的两倍。
  • 增加形状增强步骤数(B)可进一步降低梯度方差,当 B 增加时,最大方差从 3.5e12 降低至 1.6e11。
  • RSVI 实现了对更广泛分布类的重参数化,包括伽马分布和狄利克雷分布,这些分布此前在标准重参数化框架下难以处理。
  • 该方法计算高效,因为拒绝采样变换的计算通常比其他梯度估计方案更便宜。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。