Skip to main content
QUICK REVIEW

[Paper Review] Reparameterization Gradient for Non-differentiable Models

Wonyeol Lee, Hangyeol Yu|arXiv (Cornell University)|Jan 1, 2018
Machine Learning and AlgorithmsComputer Science4 citations
TL;DR

This paper introduces a reparameterization gradient estimator for stochastic variational inference in models with non-differentiable densities. By partitioning the latent space into differentiable regions and non-differentiable boundaries, it applies standard reparameterization in smooth regions and manifold sampling on boundaries, achieving low-variance, unbiased gradient estimates even when densities are non-differentiable.

ABSTRACT

We present a new algorithm for stochastic variational inference that targets at models with non-differentiable densities. One of the key challenges in stochastic variational inference is to come up with a low-variance estimator of the gradient of a variational objective. We tackle the challenge by generalizing the reparameterization trick, one of the most effective techniques for addressing the variance issue for differentiable models, so that the trick works for non-differentiable models as well. Our algorithm splits the space of latent variables into regions where the density of the variables is differentiable, and their boundaries where the density may fail to be differentiable. For each differentiable region, the algorithm applies the standard reparameterization trick and estimates the gradient restricted to the region. For each potentially non-differentiable boundary, it uses a form of manifold sampling and computes the direction for variational parameters that, if followed, would increase the boundary’s contribution to the variational objective. The sum of all the estimates becomes the gradient estimate of our algorithm. Our estimator enjoys the reduced variance of the reparameterization gradient while remaining unbiased even for non-differentiable models. The experiments with our preliminary implementation confirm the benefit of reduced variance and unbiasedness.

Motivation & Objective

  • To address the challenge of high-variance gradient estimation in stochastic variational inference for models with non-differentiable densities.
  • To extend the reparameterization trick—effective for differentiable models—so it applies to non-differentiable models without introducing bias.
  • To maintain low variance in gradient estimates while ensuring unbiasedness in the presence of non-differentiable densities.
  • To develop a unified framework that combines reparameterization in differentiable regions with boundary-aware sampling for non-differentiable regions.

Proposed method

  • The latent space is partitioned into regions where the density is differentiable and boundaries where differentiability may fail.
  • In each differentiable region, the standard reparameterization trick is applied to compute low-variance gradient estimates.
  • For non-differentiable boundaries, manifold sampling is used to estimate the direction of steepest ascent in the variational objective.
  • The algorithm computes gradient contributions separately for each region and boundary, then sums them into a single unbiased gradient estimate.
  • The method ensures that the overall gradient estimator remains unbiased while retaining the low-variance properties of reparameterization.

Experimental results

Research questions

  • RQ1Can the reparameterization trick be generalized to non-differentiable models while preserving low variance and unbiasedness?
  • RQ2How can gradient estimation be effectively decomposed across differentiable regions and non-differentiable boundaries in latent space?
  • RQ3What sampling strategy on non-differentiable boundaries yields a reliable and low-variance gradient estimate?
  • RQ4Does the proposed method maintain the variance reduction benefits of reparameterization in non-differentiable settings?

Key findings

  • The proposed estimator achieves significantly reduced variance compared to baseline methods in non-differentiable models.
  • The estimator remains unbiased even when the model density is non-differentiable, unlike many alternative approaches.
  • Experiments with a preliminary implementation confirm the effectiveness of the method in reducing gradient variance.
  • The method successfully extends the benefits of reparameterization to non-differentiable models by combining region-specific and boundary-specific gradient estimation.

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.