[Paper Review] Reducing Reparameterization Gradient Variance
This paper proposes a variance reduction technique for reparameterization gradient estimators in Monte Carlo variational inference by constructing a control variate through a linear approximation of the gradient estimator's generating process. The method achieves up to 2,000× variance reduction in gradient norms, enabling faster and more stable optimization with minimal computational overhead beyond standard MCVI.
Optimization with noisy gradients has become ubiquitous in statistics and machine learning. Reparameterization gradients, or gradient estimates computed via the "reparameterization trick," represent a class of noisy gradients often used in Monte Carlo variational inference (MCVI). However, when these gradient estimators are too noisy, the optimization procedure can be slow or fail to converge. One way to reduce noise is to use more samples for the gradient estimate, but this can be computationally expensive. Instead, we view the noisy gradient as a random variable, and form an inexpensive approximation of the generating procedure for the gradient sample. This approximation has high correlation with the noisy gradient by construction, making it a useful control variate for variance reduction. We demonstrate our approach on non-conjugate multi-level hierarchical models and a Bayesian neural net where we observed gradient variance reductions of multiple orders of magnitude (20-2,000x).
Motivation & Objective
- To address the high variance of reparameterization gradient estimators in Monte Carlo variational inference (MCVI), which slows optimization and hinders convergence.
- To reduce gradient variance without increasing sample count, avoiding the O(1/√N) convergence rate of naive Monte Carlo averaging.
- To develop a computationally efficient control variate that leverages the known stochastic generating process of the gradient estimator.
- To improve optimization stability and convergence speed in non-conjugate hierarchical models and Bayesian neural networks.
- To extend the applicability of low-variance gradient estimation to complex models where standard variance reduction techniques are costly or inapplicable.
Proposed method
- Constructs a control variate by analytically approximating the gradient estimator as a linear function of the random noise source in the reparameterization process.
- Uses a Hessian-vector product (HVP) and local linear approximation to compute a low-cost, high-correlation control variate for the gradient.
- Combines the naive Monte Carlo gradient estimate with the control variate via a linear combination that preserves unbiasedness while reducing variance.
- Applies the method to Gaussian variational families, where the gradient's dependence on latent variable samples is explicitly modeled.
- Employs a local Hessian approximation to efficiently compute the control variate without full Hessian computation.
- Validates the method on non-conjugate hierarchical models and Bayesian neural networks using Adam optimization with wall-clock time and ELBO convergence metrics.
Experimental results
Research questions
- RQ1Can a control variate derived from a linear approximation of the gradient estimator’s generating process significantly reduce variance in reparameterization gradients?
- RQ2How does the proposed method compare to naive Monte Carlo averaging in terms of convergence speed and optimization stability?
- RQ3To what extent does the Hessian-vector product with local approximation outperform diagonal Hessian approximations in variance reduction?
- RQ4Does the method maintain effectiveness across different model types, such as hierarchical models and Bayesian neural networks?
- RQ5Can the method reduce gradient variance by multiple orders of magnitude without increasing sample size?
Key findings
- The proposed method achieved up to 2,000× variance reduction in the norm of the gradient estimator on the frisk hierarchical model, with reductions ranging from 20× to 3,000× depending on optimization progress.
- For the Bayesian neural network, the HVP+Local estimator reduced gradient variance by 100–5,000× in the norm of the full parameter gradient, significantly outperforming the pure Monte Carlo estimator with L=50 samples.
- The full Hessian-vector product was essential for reducing mean parameter variance, as the diagonal Hessian approximation alone only reduced variance by 2–5×.
- At later optimization iterates, the HVP+Local method maintained substantial variance reduction for scale parameters, while the full Hessian estimator continued to outperform, indicating residual noise from the local approximation.
- Optimization traces showed that the HVP+Local estimator converged faster and with less noise than the pure Monte Carlo estimator, even with fewer samples (e.g., L=10 vs. L=50).
- The method enabled faster convergence in wall-clock time, with the L=10 HVP+Local estimator outperforming the L=50 Monte Carlo estimator on the Bayesian neural network model.
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.