Batch and match: black-box variational inference with a score-based divergence
Diana Cai, Chirag Modi, Loucas Pillaud-Vivien, Charles Margossian, Robert M. Gower, David M. Blei, Lawrence K. Saul
Abstract
Most leading implementations of black-box variational inference (BBVI) are based on optimizing a stochastic evidence lower bound (ELBO). But such approaches to BBVI often converge slowly due to the high variance of their gradient estimates and their sensitivity to hyperparameters. In this work, we propose batch and match (BaM), an alternative approach to BBVI based on a score-based divergence. Notably, this score-based divergence can be optimized by a closed-form proximal update for Gaussian variational families with full covariance matrices. We analyze the convergence of BaM when the target distribution is Gaussian, and we prove that in the limit of infinite batch size the variational parameter updates converge exponentially quickly to the target mean and covariance. We also evaluate the performance of BaM on Gaussian and non-Gaussian target distributions that arise from posterior inference in hierarchical and deep generative models. In these experiments, we find that BaM typically converges in fewer (and sometimes significantly fewer) gradient evaluations than leading implementations of BBVI based on ELBO maximization. 1. Introduction. Probabilistic modeling plays a fundamental role in many problems of inference and decision-making, but it can be challenging to develop accurate probabilistic models that remain computationally tractable. In typical applications, the goal is to estimate a target distribution that cannot be evaluated or sampled from exactly, but where an unnormalized form is available. A canonical situation is applied Bayesian statistics, where the target is a posterior distribution of latent variables given observations, but where only the model's joint distribution is available in closed form. Variational inference (VI) has emerged as a leading method for fast approximate inference (Blei et al., 2017; Jordan et al., 1999; Wainwright et al., 2008) . The idea behind VI is to posit a parameterized family of approximating distributions, and then to find the member of that family which is closest to the target distribution. Recently, VI methods have become increasingly "black box," in that they only require calculation of the log of the unnormalized target and (for some algorithms) its gradients (
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers5
- EigenVI: score-based variational inference with orthogonal function expansionsDiana Cai, Chirag Modi, Charles Margossian, Robert M. Gower et al.NeurIPS 2024 · 17 citations
- Variational Inference with Mixtures of Isotropic GaussiansMarguerite Petit-Talamon, Marc Lambert, Anna KorbaNeurIPS 2025 · 7 citations
- Fisher meets Feynman: score-based variational inference with a product of expertsDiana Cai, Robert M. Gower, David M. Blei, Lawrence K. SaulNeurIPS 2025 · 3 citations
- PaperBench: Evaluating AI's Ability to Replicate AI ResearchGiulio Starace, Oliver Jaffe, Dane Sherburn, James Aung et al.ICML 2025
- Towards Understanding Gradient Dynamics of the Sliced-Wasserstein Distance via Critical Point AnalysisChristophe Vauthier, Anna Korba, Quentin MérigotICML 2025
Builds on7
- Variational inference via Wasserstein gradient flowsMarc Lambert, Sinho Chewi, Francis R. Bach, Silvère Bonnabel et al.NeurIPS 2022 · 123 citations
- Challenges and Opportunities in High Dimensional Variational InferenceAkash Kumar Dhaka, Alejandro Catalina, Manushi Welandawe, Michael Riis Andersen et al.NeurIPS 2021 · 54 citations
- Forward-Backward Gaussian Variational Inference via JKO in the Bures-Wasserstein SpaceMichael Ziyang Diao, Krishna Balasubramanian, Sinho Chewi, Adil SalimICML 2023 · 47 citations
- Robust, Accurate Stochastic Optimization for Variational InferenceAkash Kumar Dhaka, Alejandro Catalina, Michael Riis Andersen, Måns Magnusson et al.NeurIPS 2020 · 39 citations
- Provable convergence guarantees for black-box variational inferenceJustin Domke, Robert M. Gower, Guillaume GarrigosNeurIPS 2023 · 35 citations
Related papers
- Variational Inference with Gaussian Score MatchingChirag Modi, Robert M. Gower, Charles Margossian, Yuling Yao et al.NeurIPS 2023 · 24 citations
- On the Convergence of Black-Box Variational InferenceKyurae Kim, Jisu Oh, Kaiwen Wu, Yi-An Ma et al.NeurIPS 2023 · 27 citations
- Understanding Stochastic Natural Gradient Variational InferenceKaiwen Wu, Jacob R. GardnerICML 2024 · 11 citations
- Practical and Matching Gradient Variance Bounds for Black-Box Variational Bayesian InferenceKyurae Kim, Kaiwen Wu, Jisu Oh, Jacob R. GardnerICML 2023 · 8 citations
- Semi-Implicit Variational Inference via Score MatchingLonglin Yu, Cheng ZhangICLR 2023
