[Paper Review] Sticking the Landing: Simple, Lower-Variance Gradient Estimators for Variational Inference
The paper introduces a simple, unbiased path-derivative gradient estimator for ELBO optimization that removes the score-function term from the reparameterized gradient, yielding lower variance as the approximate posterior approaches the true posterior, and extends it to mixtures, IWAE, and flows.
We propose a simple and general variant of the standard reparameterized gradient estimator for the variational evidence lower bound. Specifically, we remove a part of the total derivative with respect to the variational parameters that corresponds to the score function. Removing this term produces an unbiased gradient estimator whose variance approaches zero as the approximate posterior approaches the exact posterior. We analyze the behavior of this gradient estimator theoretically and empirically, and generalize it to more complex variational distributions such as mixtures and importance-weighted posteriors.
Motivation & Objective
- Propose a simple, unbiased gradient estimator for the ELBO with zero variance when the variational posterior is exact.
- Show that removing the score-function term reduces gradient variance in many settings.
- Provide an implementation that integrates with standard automatic differentiation tooling.
- Generalize the approach to mixtures, importance-weighted bounds, and flow-based posteriors.
- Demonstrate empirical improvements on standard benchmarks (MNIST, Omniglot).
Proposed method
- Revisit the reparameterized gradient of the ELBO and decompose it into a path-derivative term and a score-function term.
- Propose removing the score-function term to obtain an unbiased path-derivative gradient estimator.
- Implement the trick by applying stop_gradient to the variational parameters when evaluating the density term, keeping samples z fixed for gradient computation.
- Extend the estimator to mixture variational families by integrating out discrete choices and applying stop_gradient to each component’s parameters.
- Adapt the approach to IWAE and discuss extensions to flow-based posteriors (with caveats).
Experimental results
Research questions
- RQ1Can we construct an unbiased ELBO gradient estimator with lower variance by removing the score-function term from the reparameterized gradient?
- RQ2How does the path-derivative estimator behave in richer variational families (mixtures, IWAE, flows) and when the approximation is exact?
- RQ3What are the practical implementation considerations for integrating the estimator into common autodiff frameworks?
- RQ4Do empirical results on standard benchmarks (MNIST, Omniglot) improve when using the path-derivative gradient versus the total-derivative gradient?
- RQ5How does the estimator interact with control-variate concepts and potential annealing of scaling constants?
Key findings
- The path-derivative gradient estimator is unbiased and its variance tends to zero as q_phi(z|x) approaches p(z|x).
- Removing the score-function term can reduce gradient variance in many cases, and yields easier, one-line changes to computation graphs via stop_gradient.
- The trick extends to mixture posteriors and to importance-weighted bounds (IWAE), with algorithms provided for practical implementation.
- For flow-based posteriors, the straightforward stop_gradient approach is more complex due to intermediate z-variables, and requires further engineering to preserve necessary gradient terms.
- Empirical results on MNIST and Omniglot show improvements with the path-derivative estimator across VAE and IWAE settings, particularly with more complex posteriors; some cases may see no improvement depending on correlations in the gradient terms.
- The method remains a simple, drop-in modification that can be implemented with existing autodiff tools (e.g., stop_gradient in major frameworks).
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.