Understanding Stochastic Natural Gradient Variational Inference
Kaiwen Wu, Jacob R. Gardner
TL;DR
The paper addresses the lack of non-asymptotic convergence guarantees for stochastic NGVI, proving an $O\left(\frac{1}{T}\right)$ rate for conjugate likelihoods that matches stochastic gradient methods up to constants and showing that canonical NGVI can induce a non-convex ELBO for non-conjugate likelihoods. It leverages the NGD/MD equivalence, relative smoothness/convexity concepts, and a data-subsampling framework to bound gradient variance and derive a provable rate. The results elucidate why NGVI often outperforms vanilla SGD in practice (constant factors) and explain the nuanced behavior with non-conjugate likelihoods, supported by Bayesian linear regression and non-conjugate experiments. Overall, the work clarifies the theoretical landscape of NGVI, providing rigorous convergence guarantees in practical settings and guiding future developments in stochastic mirror-descent analyses for variational methods.
Abstract
Stochastic natural gradient variational inference (NGVI) is a popular posterior inference method with applications in various probabilistic models. Despite its wide usage, little is known about the non-asymptotic convergence rate in the \emph{stochastic} setting. We aim to lessen this gap and provide a better understanding. For conjugate likelihoods, we prove the first $\mathcal{O}(\frac{1}{T})$ non-asymptotic convergence rate of stochastic NGVI. The complexity is no worse than stochastic gradient descent (\aka black-box variational inference) and the rate likely has better constant dependency that leads to faster convergence in practice. For non-conjugate likelihoods, we show that stochastic NGVI with the canonical parameterization implicitly optimizes a non-convex objective. Thus, a global convergence rate of $\mathcal{O}(\frac{1}{T})$ is unlikely without some significant new understanding of optimizing the ELBO using natural gradients.
