Boosting Black Box Variational Inference

Francesco Locatello, Gideon Dresdner, Rajiv Khanna, Isabel Valera, Gunnar Rätsch

In the world of Bayesian statistics, Variational Inference (VI) is the go-to tool for turning messy probability problems into clean optimization ones. But there’s a catch: to keep things "tractable," practitioners usually restrict themselves to simple shapes, like a single Gaussian. If your true posterior distribution is complex or multimodal (having multiple "peaks"), a single Gaussian will fail to capture the full picture.

This paper introduces a way to "boost" VI—building a complex mixture of distributions one piece at a time—while keeping the process "black-box" and easy for practitioners to use.

TL;DR

The authors bridge the gap between theoretical "boosting" and practical "black-box" variational inference. By relaxing strict mathematical assumptions and introducing a new objective called the Residual ELBO (RELBO), they allow researchers to build highly expressive posterior approximations using standard, off-the-shelf VI solvers.

The Trade-off in Standard VI

Standard VI involves a fundamental trade-off: if you choose a simple variational family (like mean-field Gaussians), the optimization is fast but the approximation is poor. If you choose a complex family, the optimization becomes a nightmare.

"Boosting" VI offers a clever middle ground: you start with one simple distribution and greedily add more components to create a mixture. However, previous attempts at this were "white-box"—they required custom implementations for every new model and used "truncated" distributions that are difficult to work with in practice. The authors set out to make boosting VI as flexible and automated as standard Black Box Variational Inference (BBVI).

Algorithmic Innovations

The paper's contributions are both theoretical and algorithmic, focusing on making boosting practical:

  1. Functional Frank-Wolfe (FW) Analysis: The authors show that boosting VI is essentially a functional version of the Frank-Wolfe optimization algorithm. Crucially, they prove that you don't need the objective to be strictly "smooth" (which previously required truncating distributions); having "bounded curvature" is enough to guarantee convergence.
  2. The Residual ELBO (RELBO): This is the "secret sauce." Instead of using the standard Evidence Lower Bound (ELBO) to find the next component, they propose RELBO: $$\text{RELBO}(s, \lambda) := \mathbb{E}_s[\log p] - \lambda\mathbb{E}_s[\log s] - \mathbb{E}_s[\log q^t]$$ This objective encourages the new component ($s$) to be close to the target ($p$), maintain high entropy (to avoid collapsing into a single point), and stay away from the current mixture ($q^t$).

  3. Duality Gap Stopping Criterion: They adapt a concept from classic optimization to provide a principled way to decide when the mixture is "good enough" and stop adding components.

Key Insights

  • The "Aha!" Moment on Smoothness: Previous researchers thought they had to truncate their distributions (cut off the tails) to make the math work. This paper proves that standard distributions (like Gaussians or Cauchy) naturally satisfy a "relaxed smoothness" condition, making truncation unnecessary.
  • RELBO as a "Difference" Finder: RELBO effectively tells the algorithm: "Find me a distribution that explains the data well, but specifically focuses on the parts of the posterior that our current mixture is still missing."
  • Black-Box Compatibility: Because RELBO looks like a standard VI objective, you can plug it into modern probabilistic programming frameworks (like Edward) without rewriting the underlying solvers.

Experimental Results

The authors evaluated their method on a mix of synthetic and high-dimensional real-world problems, including chemical reactivity prediction (CHEMREACT), hospital mortality prediction (eICU), and Bayesian matrix factorization (CBCL FACE).

Capturing Multimodality

On synthetic data featuring a bimodal mixture of Gaussians, standard BBVI collapsed to a single mode or fit poorly between them. The boosted version successfully captured both peaks of the distribution.

Boosting VI successfully captures bimodal distributions compared to standard BBVI.

Superior Accuracy and Matrix Factorization

On the CHEMREACT and eICU datasets, the boosted Laplace mixture outperformed standard BBVI and previous boosting methods in terms of Test AUROC. Furthermore, on the CBCL FACE dataset, the method achieved lower Mean Squared Error (MSE) across various latent dimensions ($D=3, 5, 10$) compared to the baseline.

Boosting BBVI achieves lower Mean Squared Error across various latent dimensions.

Stability

The proposed method showed significantly lower variance across repetitions compared to standard BBVI, suggesting it is more robust to initialization.

Limitations and Future Work

  • Symmetry Breaking: If a posterior is perfectly symmetric, the "residual" is also symmetric. The algorithm might struggle to decide which mode to pick first unless the symmetry is broken (e.g., by running the inner solver for fewer iterations).
  • Computational Overhead: While more expressive, adding components is iteratively more expensive than a single VI run.
  • Tail Fitting: In cases where a single component is already a very good fit, the algorithm might spend unnecessary effort trying to fit the tiny errors in the "tails" of the distribution. The authors suggest their stopping criterion helps mitigate this, but it remains a point of attention for practitioners.

Summary updated

BibTeX
@inproceedings{locatello2018boosting,
  author = {Francesco Locatello and Gideon Dresdner and Rajiv Khanna and Isabel Valera and Gunnar Rätsch},
  title = {{Boosting Black Box Variational Inference}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
}
Figure