Abstract: Sampling and Variational Inference (VI) are two large families of methods for approximate inference that have complementary strengths. Sampling methods excel at approximating arbitrary probability distributions, but can be inefficient. VI methods are efficient, but may misrepresent the true distribution. Here, we develop a general framework where approximations are stochastic mixtures of simple component distributions. Both sampling and VI can be seen as special cases: in sampling, each mixture component is a delta-function and is chosen stochastically, while in standard VI a single component is chosen to minimize divergence. We derive a practical method that interpolates between sampling and VI by analytically solving an optimization problem over a mixing distribution. Intermediate inference methods then arise by varying a single parameter. Our method provably improves on sampling (reducing variance) and on VI (reducing bias+variance despite increasing variance). We demonstrate our method’s bias/variance trade-off in practice on reference problems, and we compare outcomes to commonly used sampling and VI methods. This work takes a step towards a highly flexible yet simple family of inference methods that combines the complementary strengths of sampling and VI.
Introduction
Approximate Bayesian inference is dominated by two paradigms: Markov Chain Monte Carlo (MCMC) sampling and Variational Inference (VI). Sampling methods are asymptotically unbiased but often suffer from high variance. Conversely, VI is computationally efficient and low-variance but introduces bias by approximating complex posteriors with simple parametric families. This paper, presented at UAI 2022, introduces a unified framework that treats these two approaches as endpoints of a single spectrum, offering a tunable compromise that can outperform both.
Theoretical Framework: Infinite Stochastic Mixtures
The authors propose Infinite Stochastic Mixtures, where the approximation is defined by a mixing distribution $\psi(\theta)$ over variational components $q(x;\theta)$. This framework allows for a principled interpolation between the discrete points of sampling and the single broad distribution of VI.
The core of this approach is the decomposition of the Kullback-Leibler (KL) divergence between the mixture $m(x)$ and the target $p(x)$ into two competing terms:
- Expected KL: Measures how well individual components fit the target on average.
- Mutual Information (MI): Measures the diversity and spread of the components.
Calculating MI is typically intractable. The authors circumvent this by using Stam’s Inequality to approximate MI with the Fisher Information Matrix. This approximation depends only on local geometry, enabling the method to scale linearly—$O(T)$—with the number of components, a significant improvement over previous $O(T^2)$ mixture methods. The resulting objective is controlled by a hyperparameter $\lambda$. At $\lambda = 1$, the method recovers classic sampling; as $\lambda \to \infty$, it collapses into standard VI.
Experimental Results
The method was evaluated on several benchmarks, including the "Banana" distribution, synthetic high-dimensional regression, and the posteriordb library.
Key Findings
- Optimal Trade-offs: On the non-linear "banana" problem, intermediate values of $\lambda$ (e.g., $\lambda \approx 1.3$) achieved a lower total Mean Squared Error (MSE) than either pure sampling (NUTS) or pure VI (ADVI).
- Theoretical Guarantees: The authors provide proofs showing that the method provably reduces the variance of sampling with minimal bias impact (Theorem 1) and reduces the bias of VI when the variational family is a poor match for the target (Theorem 2).
- Smooth Interpolation: As shown in the qualitative results, the method allows practitioners to "dial in" the desired balance of speed and accuracy by adjusting $\lambda$.
Discussion and Future Work
While the framework provides a powerful "knob" for inference, selecting the optimal $\lambda$ remains a challenge, as it depends on the specific target function and computational budget. Future work may involve automated tuning or decaying $\lambda$ schedules. Additionally, while the $O(T)$ scaling is a major step forward, the per-step cost of calculating Fisher Information is higher than standard MCMC, suggesting further optimization through stochastic evaluations.
This work represents a significant step toward a flexible family of inference methods that combines the complementary strengths of the two titans of Bayesian computation.
Summary updated