Validated Variational Inference via Practical Posterior Error Bounds

Jonathan H. Huggins, Mikolaj Kasprzak, Trevor Campbell, Tamara Broderick

TL;DR

Variational Inference (VI) is a popular, fast alternative to MCMC for Bayesian inference, but it lacks reliable ways to assess the accuracy of its approximations. This paper introduces theoretically justified, computationally efficient error bounds for VI, enabling users to trust their VI results or know when to refine them.

What Problem Does This Paper Address?

Bayesian inference provides rich uncertainty quantification, but exact computation is often intractable. Markov Chain Monte Carlo (MCMC) methods are the gold standard for approximate inference, offering theoretical guarantees. However, Variational Inference (VI) has gained traction due to its speed and scalability, especially in machine learning. The major drawback of VI is the absence of post-hoc, theoretically sound, and computationally efficient measures to quantify the error in the resulting approximate posterior. Without these, it's hard to know if the point estimates and uncertainty measures derived from VI are trustworthy. This paper aims to bridge this gap by providing such validation tools.

Methods

The core contribution is the development of rigorous error bounds on posterior mean and uncertainty estimates derived from VI. These bounds are based on the Wasserstein distance, a metric that captures the "distance" between probability distributions in a way that is sensitive to their geometry. The key technical innovations include:

  • Bounding Wasserstein distance with divergences: The authors show how to bound the Wasserstein distance (which directly relates to errors in posterior summaries) using more easily computable divergences like the Kullback-Leibler (KL) divergence and Rényi's $\alpha$-divergence.
  • Connecting divergences to VI objectives: They then show how these divergences can be bounded using standard VI objectives like the Evidence Lower Bound (ELBO) and the $\alpha$-upper bound (CUBO).
  • Efficient computation: The bounds are designed to be computationally efficient, requiring only standard values from VI objectives, simple analytic calculations, and basic Monte Carlo estimates (not MCMC).
  • Weak tail restrictions: The bounds require only that the approximating and exact posteriors have polynomial moments, which is a weaker condition than many existing methods.

This leads to a new workflow for "validated variational inference."

Datasets

Not discussed in the paper. The paper uses synthetic datasets for a robust regression problem and a real-data example with a multilevel hierarchical model (the "eight schools" model).

Key Insights and Ideas

  • KL divergence is insufficient: A surprising and crucial insight is that minimizing the KL divergence (a common VI objective) does not guarantee accurate posterior summaries (like means or variances). The paper provides counterexamples where KL divergence is small, but the approximation error is arbitrarily large. This highlights the need for a different metric.
  • Wasserstein distance is the right metric: The Wasserstein distance is shown to directly control the error in posterior summaries. This is because it's a "ground distance" that accounts for the geometry of the probability space.
  • Bridging the gap: The paper's main technical achievement is bridging the gap between easily computable VI objectives (like ELBO/CUBO) and the desired error metric (Wasserstein distance), via intermediate divergences.
  • A practical workflow: The theoretical bounds are translated into a concrete, step-by-step workflow for practitioners, including diagnostic checks and guidance on when to refine the VI setup.

Key Results

  • Rigorous error bounds: The paper provides theoretically justified bounds on the error of posterior mean and uncertainty estimates.
  • Computational efficiency: The bounds are designed to be efficient, leveraging existing VI computations.
  • Demonstrated utility: The proposed workflow and bounds are demonstrated on a robust regression problem and the eight schools hierarchical model, showing their ability to diagnose poor approximations and validate good ones.
  • Counterexamples: The paper provides concrete examples showing that small KL or $\alpha$-divergences do not imply small errors in posterior means or variances.
  • Improved diagnostics: The proposed bounds offer more reliable diagnostics than existing heuristics like the Pareto $k$ diagnostic, especially when the variational family has limitations (e.g., mean-field assumptions).

Limitations and Future Work

  • Computational cost: While efficient, computing the bounds still adds overhead to the VI process.
  • Refinement strategy: The paper suggests refining the variational family or model parameterization when bounds indicate poor quality, but the specific strategy for refinement is problem-dependent and not fully automated.
  • Moment conditions: The bounds rely on polynomial moment conditions, which are generally met but could be a limitation for distributions with extremely heavy tails.
  • Future work: The authors suggest their work complements proposals for making VI arbitrarily accurate, providing a stopping criterion for when further refinement is unnecessary. They also note the potential for their bounds to be useful in other areas, like predictive accuracy.

Summary updated

Abstract

Variational inference has become an increasingly attractive fast alternative to Markov chain Monte Carlo methods for approximate Bayesian inference. However, a major obstacle to the widespread use ...
BibTeX
@inproceedings{huggins2020validated,
  author = {Jonathan H. Huggins and Mikolaj Kasprzak and Trevor Campbell and Tamara Broderick},
  title = {{Validated Variational Inference via Practical Posterior Error Bounds}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2020},
}
Figure