Covariances, Robustness, and Variational Bayes

Ryan James Giordano, Tamara Broderick, Michael Jordan · DOI · OpenReview

TL;DR

This paper introduces "Linear Response Variational Bayes" (LRVB), a novel method to improve covariance estimates and assess prior robustness in Mean-Field Variational Bayes (MFVB) approximations. LRVB offers a computationally efficient way to obtain more accurate uncertainty estimates compared to standard MFVB and Laplace approximations, often achieving MCMC-level accuracy at a fraction of the computational cost.

What Problem Does This Paper Address?

Bayesian inference often relies on approximations because exact posterior distributions are intractable. Mean-Field Variational Bayes (MFVB) is a popular approximation technique due to its speed, especially on large datasets. However, MFVB has a significant drawback: it tends to underestimate variances and covariances, leading to overly confident uncertainty estimates. Furthermore, assessing how sensitive these approximations are to choices in model parameters (prior robustness) has been a challenge. This paper aims to bridge this gap by providing methods to improve MFVB's accuracy in estimating covariances and to quantify its robustness to prior choices.

Methods

The core contribution is the development of "Linear Response Variational Bayes" (LRVB). The authors leverage a connection from Bayesian robustness literature: the sensitivity of posterior expectations to model perturbations (like changes in prior parameters) is related to posterior covariances. They derive a formula that uses the sensitivity of MFVB posterior means to infinitesimal model perturbations to estimate the true posterior covariances. This approach is computationally efficient because it relies on derivatives of the MFVB objective function, which are readily available through automatic differentiation. They also extend this to derive measures of local prior sensitivity for MFVB. The key assumption is that MFVB provides accurate posterior means for a subset of parameters, which they show holds in many practical scenarios.

Datasets

The paper evaluates their methods on:

  • Simulated data: Used to build intuition for the effectiveness of LRVB, including univariate skewed and over-dispersed distributions, and a bivariate over-dispersed distribution.
  • Real-world datasets:
    • Criteo Dataset: A large-scale logistic regression with random effects dataset.
  • Stan Examples Library: Four models were used:
  • election88 (Bernoulli hierarchical model) * sesame_street1 (randomized controlled trial analysis) * radon_vary_intercept_floor (hierarchical model for radon levels) * cjs_cov_randeff (Cormack-Jolly-Seber model for ecology)

Key Insights and Ideas

  • Sensitivity as a Proxy for Covariance: The paper elegantly demonstrates that the local sensitivity of MFVB posterior means to model perturbations can be used to accurately estimate the true posterior covariances. This is a powerful insight, turning a potential weakness (sensitivity to perturbations) into a strength.
  • MFVB's Underestimation Problem: The experiments consistently show that standard MFVB underestimates variances and covariances, especially in non-normal or correlated settings. LRVB directly addresses this by providing a more accurate estimate.
  • Laplace Approximation Limitations: While the Laplace approximation is also an optimization-based method, it often struggles with skewed posteriors and can produce singular Hessians, leading to poor covariance estimates. LRVB often outperforms it.
  • Computational Efficiency: A major advantage is that LRVB methods are significantly faster than MCMC, often achieving comparable accuracy in orders of magnitude less time. This makes them practical for large-scale problems where MCMC is infeasible.
  • Robustness Quantification: The framework provides a principled way to assess how sensitive MFVB posterior estimates are to changes in prior parameters, offering valuable insights into model robustness.

Key Results

  • Improved Covariance Estimates: LRVB consistently provides more accurate posterior covariance estimates than standard MFVB and the Laplace approximation, closely matching MCMC results across various simulated and real-world datasets.
  • Speedup: LRVB methods are orders of magnitude faster than MCMC. For example, in the Criteo dataset experiment, MFVB fitting took 57 seconds, while MCMC took 351 minutes. LRVB also offers significant speedups over MCMC.
  • Prior Sensitivity Measures: The paper successfully derives and applies methods to quantify local prior sensitivity for MFVB, revealing which parameters are most affected by prior choices.
  • ADVI Integration: The methods are extended to Automatic Differentiation Variational Inference (ADVI), showing that LR-ADVI also provides improved covariance estimates and prior sensitivity measures compared to standard ADVI.

Limitations and Future Work

  • Condition 1 Assumption: The accuracy of LRVB relies on "Condition 1," which states that MFVB provides good estimates for a select subset of posterior means. While this is shown to hold in many practical settings, its precise conditions and implications are an area for further investigation.
  • Local vs. Global Robustness: The paper focuses on local robustness (sensitivity to small perturbations). Assessing global robustness (behavior over larger parameter ranges) remains a more challenging, often intractable, problem.
  • Evaluating Linearity Assumption: The paper notes that the reliability of sensitivity measures depends on the linearity assumption of the posterior expectation with respect to prior parameters. Evaluating the validity of this assumption without re-fitting the model is an area for future work.
  • Computational Cost of Hessian: While faster than MCMC, calculating the Hessian for LRVB can still be computationally intensive for very high-dimensional models. The paper discusses using sparsity and conjugate gradient methods to mitigate this.

Summary updated

Abstract

Mean-field Variational Bayes (MFVB) is an approximate Bayesian posterior inference technique that is increasingly popular due to its fast runtimes on large-scale datasets. However, even when MFVB provides accurate posterior means for certain parameters, it often mis-estimates variances and covariances. Furthermore, prior robustness measures have remained undeveloped for MFVB. By deriving a simple formula for the effect of infinitesimal model perturbations on MFVB posterior means, we provide both improved covariance estimates and local robustness measures for MFVB, thus greatly expanding the practical usefulness of MFVB posterior approximations. The estimates for MFVB posterior covariances rely on a result from the classical Bayesian robustness literature relating derivatives of posterior expectations to posterior covariances and include the Laplace approximation as a special case. Our key condition is that the MFVB approximation provides good estimates of a select subset of posterior means---an assumption that has been shown to hold in many practical settings. In our experiments, we demonstrate that our methods are simple, general, and fast, providing accurate posterior uncertainty estimates and robustness measures with runtimes that can be an order of magnitude faster than MCMC.
BibTeX
@article{giordano2018covariances,
  author = {Ryan James Giordano and Tamara Broderick and Michael Jordan},
  title = {{Covariances, Robustness, and Variational Bayes}},
  journal = {J. Mach. Learn. Res.},
  year = {2018},
  url = {https://openreview.net/forum?id=7UzQKn0huvNP},
}
Figure