Abstract
Variational inference (VI) is a powerful approach for approximate posterior inference. However, it is sensitive to initialization and can be subject to poor local optima. In this paper, we develop Proximity Variational Inference (PVI), a new optimization framework that makes VI more robust to bad initializations. By adding "proximity constraints" based on statistics like entropy or mean/variance, PVI prevents the optimization process from getting stuck in poor local optima, leading to better predictive performance in models ranging from VAEs to deep generative text models.
Introduction: The Initialization Problem in VI
Variational Inference (VI) is the workhorse of modern Bayesian machine learning, allowing us to approximate complex posterior distributions at scale. However, it has a notorious "initialization problem." Because the objective function—the Evidence Lower Bound (ELBO)—is often highly non-convex, the optimization process is sensitive to where it starts.
A common failure mode is "zero-forcing": if the algorithm accidentally assigns near-zero probability to a certain configuration of latent variables early on, it becomes nearly impossible for the model to "re-discover" that configuration later. This leads to poor local optima, "dead" neurons in deep models, and "overpruning," where the model ignores useful latent dimensions entirely.
Methodology: Proximity Variational Inference (PVI)
The authors propose Proximity Variational Inference (PVI) to address these challenges. Standard gradient ascent has an implicit "proximity constraint": each step assumes the next point should be within a small Euclidean ball of the current point. However, the Euclidean ball is often too blunt for probability spaces, treating every dimension of the parameter space equally.
PVI generalizes this idea. Instead of just looking at the raw Euclidean distance of the parameters ($\lambda$), PVI constrains the proximity statistics of the distribution. The update rule adds a penalty term that discourages the model from changing its "character" too quickly. The authors highlight four specific proximity statistics:
- Entropy: Keeps the distribution from becoming "peaky" too fast, preventing the zero-forcing problem.
- KL Divergence: Prevents the approximate posterior from moving too far from the prior too quickly.
- Mean/Variance: Restricts how fast the first and second moments of the distribution can shift.
- Orthogonality: Specifically for deep models, this constrains weight matrices to stay near-orthogonal, which helps gradients flow better during training.
To make this computationally efficient, the authors introduce Fast PVI (Algorithm 2), which uses a first-order Taylor expansion of the constraint. This allows PVI to run at essentially the same speed as standard VI without needing an expensive inner optimization loop.
Experimental Results
The researchers evaluated PVI across several benchmarks, including synthetic Bernoulli factor models, Binary MNIST for Sigmoid Belief Networks (SBNs) and Variational Autoencoders (VAEs), and the Science Journal Corpus for Deep Exponential Family (DEF) models.
Qualitative Robustness
Qualitative results demonstrate that while standard VI's final estimates are highly dependent on initialization, PVI consistently converges to the true parameters regardless of the starting point.
Quantitative Performance
On the MNIST dataset using Sigmoid Belief Networks, PVI with an entropy constraint significantly outperformed standard VI and deterministic annealing.
Key results across other models include:
- Variational Autoencoders: PVI improved both the ELBO and marginal likelihood over standard VI, primarily by ensuring the model utilized more latent variables and reducing "dead ReLUs" by 3.2%.
- Deep Generative Models of Text: In a Poisson-based deep model, PVI reduced the held-out perplexity from 2329 to 2294, indicating better predictive performance on unseen text.
Conclusion
PVI acts as a more flexible version of "deterministic annealing." While annealing globally penalizes low-entropy states, PVI provides a smooth, local constraint that guides the optimization path more gently. By recognizing that some changes in probability space are more drastic than others, PVI effectively escapes the local optima trap that plagues standard variational methods. Future work may involve "per-parameter" adaptive magnitude decay to automatically adjust the strength of the proximity constraint throughout training.
Summary updated