Nearly Dimension-Independent Convergence of Mean-Field Black-Box Variational Inference

Kyurae Kim, Yian Ma, Trevor Campbell, Jacob R. Gardner

Abstract

In Bayesian machine learning, Black-Box Variational Inference (BBVI) is a cornerstone for approximating complex posterior distributions. While empirical evidence has long suggested that "mean-field" approximations—which assume independence between variables—scale efficiently to high dimensions, theoretical guarantees have lagged behind, often suggesting a steep $O(d)$ or $O(\sqrt{d})$ cost. This paper provides a theoretical breakthrough by proving that for common distributions, the iteration complexity of mean-field BBVI is nearly independent of dimension, scaling as $O(\log d)$ for sub-Gaussian families and $O(1)$ for targets with constant Hessians.

Introduction

Variational Inference (VI) transforms the challenge of Bayesian posterior estimation into an optimization problem. By selecting a family of simple distributions and minimizing the Kullback-Leibler (KL) divergence to the target posterior, practitioners can approximate complex distributions efficiently. Black-Box Variational Inference (BBVI) further generalizes this by using Stochastic Gradient Descent (SGD) to optimize the objective, requiring only the ability to sample from the variational family and evaluate the target's log-density.

Despite its popularity, a significant theoretical gap has persisted regarding the "curse of dimensionality." Previous analyses indicated that full-rank variational families, which model correlations between all variables, suffer from an iteration complexity that grows linearly with the dimension $d$. While mean-field families (which assume independence) are simpler, their theoretical convergence rates were not significantly better than their full-rank counterparts. This paper addresses this discrepancy, providing a rigorous explanation for why mean-field models often outperform more complex structures in high-dimensional settings.

Methodology: Analyzing Gradient Variance

The authors focus their analysis on BBVI using Stochastic Proximal Gradient Descent (SPGD) applied to location-scale variational families. The primary hurdle in proving fast convergence for BBVI is the variance of the stochastic gradient estimates. In high-dimensional spaces, the "noise" in these estimates typically grows with $d$, forcing a decrease in step size and a corresponding increase in the number of iterations required to reach an $\epsilon$-accurate solution.

The "Averaging" Effect

The core innovation of this work is a sophisticated probabilistic decomposition of gradient variance. The authors discovered that in mean-field families, the stochastic noise does not impact all dimensions equally at all times. Instead, the "heaviest" noise components are distributed such that they effectively "average out" across the $d$ dimensions over the course of the optimization. Because the scale parameters in a mean-field family are independent, the impact of the most volatile coordinate is mitigated by the total dimensionality, leading to a much more benign dependence on $d$ than previously theorized.

Key Theoretical Results

The paper establishes new iteration complexity bounds that vary based on the tail behavior of the chosen variational family and the structure of the target distribution:

  • Sub-Gaussian Families: For distributions with thin tails (such as the Gaussian distribution), the number of iterations required scales with $O(\log d)$. This is a significant improvement over the $O(d)$ scaling known for full-rank families.
  • Heavy-Tailed Families: For distributions with "fat" tails (such as the Student-t distribution), the complexity scales as a polynomial $O(d^{2/k})$, where $k$ represents the number of finite moments. This shows that the "lightness" of the tails directly dictates the speed of convergence.
  • Constant Hessian Targets: In cases where the target's log-density has a constant Hessian (i.e., the target itself is Gaussian), the convergence becomes entirely dimension-independent ($O(1)$).

Additionally, the authors provide a lower bound showing that their analysis is nearly optimal when considering spectral bounds (the maximum and minimum eigenvalues) of the target's Hessian.

Discussion and Limitations

While this work provides a major step forward in understanding VI, it operates under specific assumptions. The results assume the target distribution is strongly log-concave and log-smooth, which may not hold for multi-modal distributions or non-convex landscapes. Furthermore, the analysis is currently limited to location-scale families.

Future research may explore whether these nearly dimension-independent bounds extend to more expressive but structured families, such as low-rank or "low-rank plus diagonal" matrices. Additionally, incorporating more granular properties of the Hessian beyond spectral bounds could potentially lead to even tighter convergence guarantees.

Conclusion

By proving that mean-field BBVI can achieve $O(\log d)$ convergence, this paper provides the theoretical foundation for the empirical success of simple variational models in high-dimensional machine learning. It shifts the understanding of BBVI from a method hampered by dimensionality to one that, when structured correctly, can scale almost effortlessly to massive problems.

Summary updated

BibTeX
@inproceedings{kim2025nearly,
  author = {Kyurae Kim and Yian Ma and Trevor Campbell and Jacob R. Gardner},
  title = {{Nearly Dimension-Independent Convergence of Mean-Field Black-Box Variational Inference}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=EKx21Vonwo},
}
Figure