Overview
Standard Variational Inference (KLVI) often underestimates uncertainty by focusing on a single "mode" of a distribution. To address this, researchers have explored alternative divergence measures, but these often introduce severe computational challenges. This paper introduces Perturbative Black Box Variational Inference (PBBVI), a new family of variational bounds that uses Taylor expansions from statistical physics to create "mass-covering" approximations with stable, low-variance gradients.
The Problem: Mode-Seeking vs. Exploding Gradients
In Bayesian machine learning, we often need to approximate a "posterior" distribution—our updated belief about model parameters after seeing data. Variational Inference (VI) turns this into an optimization problem by minimizing the distance (divergence) between a simple distribution we control and the complex true posterior.
The industry standard is the Kullback-Leibler (KL) divergence. However, KL-divergence has a famous flaw: it is "mode-seeking." It tends to fit a single peak of the true distribution and ignores the rest, leading to overconfident models that underestimate risk or variance.
Researchers have tried "alpha-divergences" to fix this, but these often suffer from "exploding" gradient variance in high-dimensional spaces. This makes them incredibly difficult and slow to train. The authors seek a middle ground: a method that covers the whole distribution (like alpha-divergences) but remains easy to optimize (like KLVI).
Methods: A Perturbative Approach
The authors reframe Black Box Variational Inference (BBVI) as a form of biased importance sampling. They define the "interaction energy" $V$ as the difference between the log of our approximation and the log of the true joint distribution.
Key innovations include:
- Perturbative Bounds: Instead of the standard log-bound used in KLVI, they use a $K$-th order Taylor expansion of the exponential function (where $K$ is an odd integer).
- The PBBVI Objective: When $K=1$, the method is identical to standard KLVI. As $K$ increases (e.g., $K=3, 5$), the bound becomes tighter and converges toward the exact marginal likelihood.
- Polynomial vs. Exponential: In alpha-divergences, the energy $V$ appears in an exponent, which causes the high variance. In PBBVI, $V$ appears as a polynomial. This keeps the gradients stable even in high dimensions.
- Reference Energy ($V_0$): The algorithm introduces and optimizes a reference point $V_0$. This acts as a stabilizer to prevent numerical overflow and ensures the algorithm works consistently across different scales of data.
Key Insights and Ideas
The Bias-Variance Trade-off
The choice of divergence isn't just about "accuracy"; it's a trade-off. KLVI has high bias (it misses the shape of the distribution) but low variance (it's easy to train). PBBVI allows researchers to tune this trade-off by changing the order $K$.
Algebraic vs. Exponential Growth
A major breakthrough in the paper is demonstrating that gradient variance in alpha-divergences grows exponentially with the number of latent variables. In contrast, PBBVI's gradient variance grows algebraically (much slower), making it far more scalable for deep learning.
Mass Covering
Unlike KLVI, which collapses around the mean, PBBVI is "mass-covering." It forces the approximation to spread out and account for the full support of the posterior, capturing a much more realistic picture of uncertainty.
Experimental Results
The authors evaluated PBBVI across three main settings: synthetic Gaussian Process (GP) regression, UCI Machine Learning Repository datasets, and MNIST for Variational Autoencoders (VAEs).
- Better Uncertainty Estimates: In synthetic tests, PBBVI's inferred variance (0.0355) was much closer to the true analytic solution (0.0415) than standard KLVI (0.0176), which underestimated it by half.
- Superior Classification: On the UCI datasets (Crab, Pima, Heart, Sonar), PBBVI consistently outperformed KLVI. For example, on the "Crab" dataset, PBBVI halved the error rate from 0.22 to 0.11.
- Faster Convergence: When compared to alpha-divergences on the Sonar dataset, PBBVI converged an order of magnitude faster because its gradients were much cleaner and less noisy.
- Robustness on Small Data: In VAE experiments on MNIST, PBBVI provided significantly higher predictive likelihoods when training data was scarce, proving that better uncertainty modeling helps most when data is limited.
Limitations and Future Work
While PBBVI offers a strong step forward, it has limitations. The PBBVI bound involves interaction terms between data points, making mini-batching complex. While the authors used a workaround for VAEs, implementing a mathematically "pure" stochastic version for massive datasets remains future work. Additionally, finding the "sweet spot" for the expansion order $K$ automatically during training is an open question, as higher odd integers provide tighter bounds but increase gradient variance.
Summary updated