Variational Inference with Mixtures of Isotropic Gaussians

Marguerite Petit-Talamon, Marc Lambert, Anna Korba

TL;DR

This paper introduces a highly efficient variational inference framework using mixtures of isotropic Gaussians with fixed, uniform weights. By leveraging elegant geometric updates (Bures-Wasserstein and Entropic Mirror Descent), the proposed algorithms capture complex, multimodal posterior distributions while maintaining a memory cost that scales linearly with dimension, successfully bypassing the quadratic scaling bottlenecks of full-covariance models.

What Problem Does This Paper Address?

In Bayesian inference, calculating the posterior distribution is often intractable due to normalizing constants. Variational Inference (VI) reframes this as an optimization problem, finding the closest approximation within a tractable family of distributions by minimizing the Kullback-Leibler (KL) divergence.

However, standard VI faces a stark trade-off:

  1. Single Gaussians or factorized distributions (Mean-Field VI) are computationally cheap but fail completely when the true posterior is multimodal.
  2. Gaussian Mixture Models (GMMs) can capture multimodality, but using full covariance matrices incurs a quadratic memory and computational tax ($O(Nd^2)$ for $N$ components in $d$ dimensions), making them unusable for high-dimensional problems like neural networks.
  3. Deep generative models (like normalizing flows) are flexible but notoriously prone to mode collapse as dimensions grow.

The authors tackle this gap by finding a sweet spot: achieving the multimodal expressiveness of GMMs while maintaining the computational efficiency of simple, low-dimensional models.

Methods

The authors restrict their variational family to a mixture of $N$ isotropic Gaussians (spherical covariances proportional to the identity matrix, $\epsilon I_d$) with fixed, uniform weights ($1/N$). This simplifies the memory requirement to a lean $O(Nd)$.

To optimize this mixture jointly over the means and variances, they apply standard gradient descent for the component locations (means) but introduce two novel, geometrically principled update rules for the variance parameters ($\epsilon$):

  1. Isotropic Bures-Wasserstein (IBW) Update: Derived by projecting the Wasserstein gradient flow of the KL divergence onto the space of isotropic Gaussians. This results in a discrete update rule containing a squared term that naturally forces the variance to remain positive.
  2. Entropic Mirror Descent (MD) Update: Derived using a generalized KL divergence (Von Neumann relative entropy) as the Bregman divergence. This yields an exponential update rule that also inherently guarantees strict positivity.

Crucially, both methods decouple the mean and variance updates (unlike traditional Natural Gradient Descent), leading to superior optimization stability.

Datasets

The framework was evaluated across a variety of synthetic and real-world benchmarks:

  • Synthetic Targets: A 2D Gaussian mixture (5 components), a 2D Funnel distribution, a 2D Sinh-arcsinh normal distribution, and high-dimensional Gaussian mixtures ($d = 10, 20, 50$).
  • Bayesian Logistic Regression (BLR): UCI breast_cancer ($d=30$) and wine ($d=39$) datasets.
  • Bayesian Neural Networks (BNN): The boston housing dataset ($d=601$) and MNIST image classification ($d=203,530$).

Key Insights and Ideas

  • Uniform Weights Prevent Mode Collapse: In standard GMM optimization, components often suffer from "vanishing weights" or collapse onto the same mode. By fixing the weights to $1/N$, the components cannot disappear. Instead, when overparameterized, the algorithm naturally reallocates more components to dominant modes and fewer to lighter modes, accurately recovering true proportions.
  • Geometry Enforces Physics: Instead of using ad-hoc clipping to prevent variances from becoming negative, the intrinsic geometry of the Bures and entropic mirror maps naturally enforces $\epsilon > 0$ mathematically via squared or exponential terms.
  • Decoupling for Stability: Natural Gradient Descent (NGD) scales the mean update by the current variance, making it highly sensitive to initialization. The proposed IBW and MD updates decouple these terms, providing much more robust convergence behavior.
Illustration of convergence of Algorithm 1 for a two-dimensional target distribution.

Key Results

  • Linear Scaling with Full-Covariance Performance: On a 20-dimensional Gaussian mixture target, both IBW and MD achieved a final KL divergence comparable to full-covariance methods (BW) but executed significantly faster and with a strictly linear memory footprint.
Marginals and KL objective for high-dimensional targets.
  • Stability over Competitors: Unlike NGD, which frequently failed due to variances turning negative under poor initializations, IBW and MD converged reliably.
  • Scaling to Deep Learning: The authors successfully scaled a mean-field variant of their algorithm to MNIST ($d > 200,000$). The mixture model captured a rich, multimodal posterior structure that generalized significantly better on the test set than standard unimodal Laplace approximations.

Limitations and Future Work

  • Anisotropy Limitations: Because the components are strictly spherical (isotropic), the method struggles to efficiently fit highly correlated, elongated distributions, such as the classic Funnel distribution, where full-covariance methods still hold an advantage.
  • Theoretical Guarantees: While the authors prove linear convergence for a single isotropic Gaussian under log-concavity, establishing formal optimization convergence guarantees for the mixture setting remains an open theoretical challenge.

Summary updated

BibTeX
@inproceedings{petittalamon2025variational,
  author = {Marguerite Petit-Talamon and Marc Lambert and Anna Korba},
  title = {{Variational Inference with Mixtures of Isotropic Gaussians}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=8gsAg9TqhK},
}
Figure