Skip to main content
QUICK REVIEW

[Paper Review] Rejection Sampling Variational Inference

Christian A. Naesseth, Francisco J. R. Ruiz|arXiv (Cornell University)|Oct 18, 2016
Gaussian Processes and Bayesian InferenceComputer Science32 references4 citations
TL;DR

This paper proposes a novel reparameterization gradient method for variational inference that works with acceptance-rejection sampling-based distributions—such as Gamma and Dirichlet—by embedding the rejection step into a differentiable framework. By enabling low-variance gradient estimation, the method achieves faster convergence in stochastic gradient variational inference compared to existing approaches.

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.

Motivation & Objective

  • To address the limitation of standard reparameterization gradients in distributions requiring acceptance-rejection sampling, such as Gamma and Dirichlet.
  • To enable stochastic optimization in variational inference for a broader class of distributions by making rejection steps differentiable.
  • To reduce gradient estimator variance compared to existing methods, thereby accelerating convergence in stochastic gradient variational inference.
  • To develop a general framework that integrates rejection sampling with reparameterization gradients without requiring closed-form inverse CDFs.

Proposed method

  • The method introduces a differentiable reparameterization scheme that models the accept-reject decision as a stochastic, differentiable process using a continuous relaxation of the rejection indicator.
  • It leverages the inverse transform method in a relaxed form, where the rejection step is parameterized via a continuous relaxation of the acceptance probability.
  • The approach uses a continuous relaxation of the acceptance indicator to allow backpropagation through the rejection sampling process, enabling gradient computation.
  • The method maintains the computational efficiency of rejection sampling while enabling gradient-based optimization via reparameterization.
  • It applies a reparameterization trick to the auxiliary variable and acceptance decision jointly, treating the entire sampling process as a differentiable transformation.

Experimental results

Research questions

  • RQ1Can we extend reparameterization gradients to distributions that require acceptance-rejection sampling, such as Gamma and Dirichlet?
  • RQ2How can we make the accept-reject step differentiable to enable gradient-based optimization in variational inference?
  • RQ3Does the proposed method yield lower-variance gradient estimators compared to existing approaches in complex models?
  • RQ4Can the method improve convergence speed in stochastic gradient variational inference for real-world and synthetic data?

Key findings

  • The proposed method enables reparameterization gradients for distributions that were previously intractable under standard reparameterization, such as Gamma and Dirichlet.
  • The variance of the gradient estimator is significantly lower than that of state-of-the-art methods, leading to faster convergence in stochastic optimization.
  • Empirical results on real and synthetic data show consistent improvements in convergence speed and stability of variational inference.
  • The method achieves these gains without requiring closed-form inverse CDFs or modifying the underlying rejection sampling mechanism.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.