Skip to main content
QUICK REVIEW

[Paper Review] The Generalized Reparameterization Gradient

Francisco J. R. Ruiz, Michalis K. Titsias|arXiv (Cornell University)|Oct 7, 2016
Gaussian Processes and Bayesian InferenceComputer Science32 references27 citations
TL;DR

The paper introduces the generalized reparameterization gradient (g-rep), a method that extends low-variance reparameterization gradients to non-Gaussian variational distributions like beta and gamma by using invertible transformations that weakly depend on variational parameters. It combines reparameterization and score function gradients, enabling fast, accurate variational inference with just one Monte Carlo sample, outperforming both BBVI and ADVI in likelihood and convergence.

ABSTRACT

The reparameterization gradient has become a widely used method to obtain Monte Carlo gradients to optimize the variational objective. However, this technique does not easily apply to commonly used distributions such as beta or gamma without further approximations, and most practical applications of the reparameterization gradient fit Gaussian distributions. In this paper, we introduce the generalized reparameterization gradient, a method that extends the reparameterization gradient to a wider class of variational distributions. Generalized reparameterizations use invertible transformations of the latent variables which lead to transformed distributions that weakly depend on the variational parameters. This results in new Monte Carlo gradients that combine reparameterization gradients and score function gradients. We demonstrate our approach on variational inference for two complex probabilistic models. The generalized reparameterization is effective: even a single sample from the variational distribution is enough to obtain a low-variance gradient.

Motivation & Objective

  • To address the limitation of standard reparameterization gradients, which are restricted to Gaussian variational families and do not easily apply to common distributions like beta or gamma.
  • To develop a method that maintains the low-variance benefits of reparameterization while extending applicability to a broader class of non-conjugate probabilistic models.
  • To enable black-box variational inference with complex, non-Gaussian variational families without requiring approximations or restrictive assumptions.
  • To demonstrate that a single Monte Carlo sample is sufficient for effective gradient estimation, improving computational efficiency.

Proposed method

  • Introduce invertible transformations of latent variables such that the transformed variables' distribution weakly depends on the variational parameters.
  • Construct a new gradient estimator that combines reparameterization gradients (for the transformed variables) and score function gradients (for the transformation Jacobian), resulting in a hybrid gradient.
  • Use the change-of-variables formula to express the log-density of the original latent variables in terms of the transformed variables and the Jacobian of the transformation.
  • Derive the generalized reparameterization gradient as the expectation of the gradient of the variational lower bound with respect to the transformed variables and the Jacobian.
  • Apply the method to models with gamma and beta distributed latent variables, enabling efficient inference without Gaussian approximations.
  • Maintain black-box compatibility by reusing existing variational families and differentiable models, while avoiding the high variance of pure score function methods.

Experimental results

Research questions

  • RQ1Can reparameterization gradients be extended to non-Gaussian variational distributions such as beta and gamma without relying on approximations?
  • RQ2How can the variance of gradient estimates be reduced in black-box variational inference for non-conjugate models with non-Gaussian posteriors?
  • RQ3Can a single Monte Carlo sample provide a sufficiently low-variance gradient estimate in complex models when using generalized reparameterization?
  • RQ4Does the generalized reparameterization gradient outperform existing methods like BBVI and ADVI in terms of convergence speed and likelihood quality?
  • RQ5Can invertible transformations be designed such that the transformed distribution depends only weakly on the variational parameters, enabling efficient gradient computation?

Key findings

  • The generalized reparameterization gradient enables effective variational inference with non-Gaussian distributions such as gamma and beta, which are otherwise difficult to handle with standard reparameterization.
  • A single Monte Carlo sample is sufficient to achieve low-variance gradient estimates, making the method computationally efficient and faster than BBVI.
  • g-rep outperforms BBVI in convergence speed, being one to four times faster per iteration and achieving better ELBO values.
  • g-rep achieves higher test log-likelihood and lower perplexity than ADVI on the nips and Omniglot datasets, demonstrating superior model fit.
  • On the MNIST dataset, g-rep achieves a higher ELBO than both BBVI and ADVI, indicating a better variational approximation, particularly due to its ability to capture sparsity.
  • Visual inspection of generated samples shows that g-rep produces sharper images than ADVI, which tends to generate blurrier outputs, confirming better posterior approximation.

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.