[Paper Review] Local Expectation Gradients for Doubly Stochastic Variational Inference
This paper introduces Local Expectation Gradients (LEG), a low-variance stochastic variational inference method that computes gradients by analytically marginalizing over the most relevant latent variable per variational parameter, achieving Rao-Blackwellized estimates without control variates. The method enables efficient, parallelizable optimization for both continuous and discrete latent variables, outperforming standard log-derivative and reparameterization baselines in stability and convergence.
We introduce local expectation gradients which is a general purpose stochastic variational inference algorithm for constructing stochastic gradients through sampling from the variational distribution. This algorithm divides the problem of estimating the stochastic gradients over multiple variational parameters into smaller sub-tasks so that each sub-task exploits intelligently the information coming from the most relevant part of the variational distribution. This is achieved by performing an exact expectation over the single random variable that mostly correlates with the variational parameter of interest resulting in a Rao-Blackwellized estimate that has low variance and can work efficiently for both continuous and discrete random variables. Furthermore, the proposed algorithm has interesting similarities with Gibbs sampling but at the same time, unlike Gibbs sampling, it can be trivially parallelized.
Motivation & Objective
- To address high-variance stochastic gradients in doubly stochastic variational inference, especially for non-conjugate models with discrete latent variables.
- To eliminate reliance on complex control variates in log-derivative-based methods, which are difficult to construct and model-specific.
- To develop a general-purpose, low-variance gradient estimation technique applicable to both continuous and discrete latent variables.
- To enable efficient, parallelizable optimization by exploiting local conditional independence in factorized variational distributions.
- To improve convergence stability and performance in models like sigmoid belief networks with mixed discrete-continuous structures.
Proposed method
- The method decomposes gradient estimation across variational parameters into sub-tasks, each focusing on a single latent variable most correlated with the parameter of interest.
- For each variational parameter $\mathbf{v}_k$, it computes an exact expectation over the associated latent variable $x_k$, while sampling from the remaining variables.
- This results in a Rao-Blackwellized gradient estimate that significantly reduces variance compared to standard log-derivative estimators.
- The approach is applicable to both continuous and discrete latent variables, avoiding the need for reparameterization or control variates.
- The algorithm is structurally similar to Gibbs sampling but enables trivial parallelization, unlike Gibbs sampling which is inherently sequential.
- The gradient for each $\mathbf{v}_k$ is computed via a closed-form expression involving the sigmoidal variational distribution and model likelihoods, as shown in Equation (19).
Experimental results
Research questions
- RQ1Can we construct low-variance stochastic gradients for variational inference without relying on control variates?
- RQ2Can we achieve variance reduction by exploiting local conditional independence in factorized variational distributions?
- RQ3Does the proposed method outperform existing log-derivative and reparameterization-based approaches in terms of convergence stability and speed?
- RQ4Can the method be efficiently parallelized while maintaining low variance across both discrete and continuous latent variables?
- RQ5How does the method perform on complex models like sigmoid belief networks with mixed discrete-continuous latent structures?
Key findings
- The Local Expectation Gradients method produces stochastic gradients with lower variance than the state-of-the-art reparameterization trick, particularly for continuous spaces.
- The algorithm converges faster and more stably than LdGrad, which suffered from high variance and frequent convergence to poor local optima.
- In experiments on binarized MNIST with K=200 hidden units, the model achieved high-quality reconstructions and stable training dynamics.
- The method enables efficient optimization of both recognition (variational) and generative (model) parameters in a single inference pass per data point.
- The approach is robust across different model architectures and does not require problem-specific variance reduction techniques.
- The algorithm's structure allows for trivial parallelization, unlike Gibbs sampling, making it scalable to large models.
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.