[Paper Review] Overdispersed Black-Box Variational Inference
This paper proposes overdispersed black-box variational inference (o-BBVI), a method that reduces gradient variance in black-box variational inference by using importance sampling from an overdispersed distribution in the same exponential family as the variational approximation. The approach achieves lower variance than standard BBVI—even with half the number of samples—leading to faster convergence in stochastic optimization.
We introduce overdispersed black-box variational inference, a method to reduce the variance of the Monte Carlo estimator of the gradient in black-box variational inference. Instead of taking samples from the variational distribution, we use importance sampling to take samples from an overdispersed distribution in the same exponential family as the variational approximation. Our approach is general since it can be readily applied to any exponential family distribution, which is the typical choice for the variational approximation. We run experiments on two non-conjugate probabilistic models to show that our method effectively reduces the variance, and the overhead introduced by the computation of the proposal parameters and the importance weights is negligible. We find that our overdispersed importance sampling scheme provides lower variance than black-box variational inference, even when the latter uses twice the number of samples. This results in faster convergence of the black-box inference procedure.
Motivation & Objective
- Address the high variance of Monte Carlo gradient estimators in black-box variational inference (BBVI), which slows optimization convergence.
- Develop a general-purpose method applicable to any exponential family variational distribution, avoiding reliance on reparameterization or model-specific assumptions.
- Improve the efficiency of BBVI by constructing a proposal distribution with heavier tails than the variational distribution to better capture the posterior.
- Demonstrate that the method reduces variance without significant computational overhead, making it practical for complex models.
- Provide a unified framework that enhances BBVI while remaining compatible with mean-field and structured inference, as well as probabilistic programming.
Proposed method
- Use importance sampling to estimate the gradient in BBVI, drawing samples from an overdispersed distribution in the same exponential family as the variational distribution.
- Construct the proposal distribution by adjusting the dispersion parameter τ of the exponential family distribution: for a distribution with parameter λ, the proposal uses λ/τ and shape parameter scaled by 1/τ.
- For the gamma distribution, the overdispersed version has shape (s + τ - 1)/τ and rate r/τ; for Poisson, it becomes Poisson(λ^{1/τ}).
- The importance weights are computed using the ratio of the original variational density to the overdispersed proposal density.
- The method is fully black-box: it only requires access to log-joint p(x,z), log-variational q(z;λ), and the score function ∇λ log q(z;λ).
- The approach is compatible with existing variance reduction techniques like control variates and Rao-Blackwellization, and can be combined with them.
Experimental results
Research questions
- RQ1Can overdispersed importance sampling reduce the variance of gradient estimators in black-box variational inference more effectively than standard BBVI?
- RQ2Does the proposed method maintain low computational overhead while achieving significant variance reduction?
- RQ3How does o-BBVI compare to BBVI with double the number of samples in terms of convergence speed and estimation accuracy?
- RQ4Can o-BBVI be applied generally across exponential family distributions, including those where reparameterization or numerical integration is infeasible?
- RQ5Does the use of a mixture proposal distribution further improve stability and performance compared to a single overdispersed proposal?
Key findings
- o-BBVI reduces the variance of the gradient estimator significantly more than standard BBVI, even when BBVI uses twice the number of Monte Carlo samples.
- On the non-conjugate time series model (gn-ts), o-BBVI achieves lower average sample variance than BBVI with double the samples, as shown in Figure 1a.
- In terms of ELBO and predictive performance (held-out likelihood), o-BBVI outperforms standard BBVI on the gn-ts model, as demonstrated in Figures 1b and 1c.
- For the Poisson-based deep exponential family (DEF) model, o-BBVI again shows lower variance and better ELBO and perplexity performance than BBVI, with the two-component mixture proposal offering slightly better stability than a single proposal.
- o-BBVI converges faster than local expectations in the early stages of optimization, despite the latter using numerical integration for Gaussian variables, suggesting superior computational efficiency.
- The method is more general than local expectations, which fail for distributions like gamma and Poisson when the shape parameter is below 1, due to singularities at zero.
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.