[Paper Review] Vprop: Variational Inference using RMSprop
Vprop is a novel variational inference method that enables Gaussian variational inference using only two minor modifications to the standard RMSprop optimizer, significantly reducing memory usage by half compared to Black-Box VI. It achieves performance comparable to exact natural-gradient methods and is theoretically connected to Newton’s method, natural gradients, and extended Kalman filters.
Many computationally-efficient methods for Bayesian deep learning rely on continuous optimization algorithms, but the implementation of these methods requires significant changes to existing code-bases. In this paper, we propose Vprop, a method for Gaussian variational inference that can be implemented with two minor changes to the off-the-shelf RMSprop optimizer. Vprop also reduces the memory requirements of Black-Box Variational Inference by half. We derive Vprop using the conjugate-computation variational inference method, and establish its connections to Newton's method, natural-gradient methods, and extended Kalman filters. Overall, this paper presents Vprop as a principled, computationally-efficient, and easy-to-implement method for Bayesian deep learning.
Motivation & Objective
- To simplify the implementation of Gaussian variational inference in deep learning by leveraging existing optimization frameworks.
- To reduce the memory overhead of Black-Box Variational Inference (BBVI), which typically doubles parameter count due to separate optimization of mean and variance.
- To establish principled connections between variational inference and modern optimization methods such as RMSprop, Newton’s method, and natural-gradient descent.
- To enable plug-and-play Bayesian deep learning by allowing standard neural network codebases to be used with minimal modification.
- To develop a method that is both computationally efficient and theoretically grounded, with connections to established inference techniques like extended Kalman filters.
Proposed method
- Vprop modifies the off-the-shelf RMSprop optimizer by introducing two key changes: replacing the parameter update with a variational lower bound (ELBO) optimization and adjusting the gradient computation to account for the full variational distribution.
- It uses the conjugate-computation variational inference (CVI) framework to derive updates that are equivalent to natural-gradient updates under the Gauss-Newton approximation.
- The method computes stochastic gradients of the ELBO using Monte Carlo sampling from the variational distribution, ensuring unbiased estimation.
- Vprop maintains the adaptive learning rate mechanism of RMSprop but applies it to the variational parameters (mean and log-variance), enabling efficient and stable optimization.
- The algorithm inherits the memory efficiency of RMSprop and reduces BBVI’s memory cost by half, as it avoids storing separate second-order statistics for the full covariance.
- It establishes theoretical links to Newton’s method, natural-gradient descent, and extended Kalman filters by showing that the Vprop update direction approximates the natural gradient under specific assumptions.
Experimental results
Research questions
- RQ1Can variational inference be implemented with minimal changes to existing optimization codebases, such as RMSprop?
- RQ2Can a method based on RMSprop achieve performance comparable to exact natural-gradient or Gauss-Newton-based variational inference?
- RQ3Does the proposed method reduce memory usage compared to standard BBVI while maintaining accuracy?
- RQ4What is the theoretical relationship between Vprop and established optimization methods like Newton’s method and natural gradient?
- RQ5Can Vprop avoid overfitting in small-data regimes by using Monte Carlo sampling in gradient estimation?
Key findings
- Vprop achieves ELBO optimization performance comparable to CVI (a state-of-the-art natural-gradient method) on logistic regression and MLPs, despite using only a Gauss-Newton approximation instead of exact Hessian computation.
- On the Australian-Scale and a1a datasets, Vprop-2 (using 2 Monte Carlo samples) converges at the same rate or faster than BBVI with constant step-sizes.
- RMSprop alone, when used without ELBO optimization, performs well on small datasets but overfits, indicating that ELBO optimization is essential for generalization.
- Vprop-0 (without Monte Carlo sampling) performs slightly better than RMSprop but still overfits, suggesting that sampling is critical for stable Bayesian generalization.
- Vprop-2 and CVI both avoid overfitting in MLP experiments, while RMSprop and Vprop-0 do not, demonstrating that unbiased gradient estimation via sampling is key to reliable uncertainty quantification.
- The method reduces memory usage by half compared to BBVI by avoiding the need to store separate second-order statistics for the full covariance matrix.
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.