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.
University of Cambridge(剑桥大学);ETH Zürich(苏黎世联邦理工学院)
随机梯度马尔可夫链蒙特卡罗算法是一种常用的近似推理抽样方法,但它们通常存在偏差。我们发现,这些方法的许多最新版本(例如Chen et al.(2014))无法使用Metropolis-Hastings拒绝抽样进行校正,因为它们的接受概率始终为零。我们可以通过使用具有可实现的向后轨迹的采样器来解决这个问题,例如服从引导蒙特卡罗(Horowitz,1991),它概括了随机梯度朗之万动力学(Welling和Teh,2011)和哈密顿蒙特卡罗。我们表明,这个采样器可以使用随机梯度,产生非零的接受概率,甚至可以跨多个步骤计算。