Efficient expectation propagation for posterior approximation in high-dimensional probit models

Augusto Fasano, Niccolò Anceschi, Beatrice Franzolini, Giovanni RebaudoarXiv 2023 · DOI

TL;DR

This paper presents a significantly more efficient implementation of Expectation Propagation (EP) for high-dimensional probit models. By leveraging novel mathematical derivations related to skew-normal distributions, they achieve a per-iteration computational cost that scales linearly with the number of covariates, making complex Bayesian inference feasible in previously intractable scenarios.

What Problem Does This Paper Address?

Bayesian binary regression, particularly the probit model, is a powerful tool for analyzing binary outcomes. However, performing inference in high-dimensional settings (where the number of covariates, p, is large) or with large datasets (n) becomes computationally prohibitive with standard methods. Existing Bayesian approaches, like Markov Chain Monte Carlo (MCMC) or even some variational inference methods, struggle with scalability. Expectation Propagation (EP) is a promising approximate inference technique, but its naive implementation for probit models has a computational cost that grows quadratically with the number of covariates (p²), limiting its use in high-dimensional problems. This paper aims to bridge this gap by developing an EP implementation that is computationally efficient even when p is large.

Methods

The core contribution of this paper lies in an optimized implementation of Expectation Propagation (EP) for the Bayesian probit model. The authors adapt general EP derivations from previous work ([1]) and specifically leverage properties of the extended multivariate skew-normal (SN) distribution ([2]).

The probit model is defined as: $Y_i \sim \text{Bernoulli}(\Phi(\mathbf{x}_i^T \boldsymbol{\beta}))$ $\boldsymbol{\beta} \sim \mathcal{N}_p(\mathbf{0}, \sigma^2 I_p)$

EP approximates the posterior distribution $p(\boldsymbol{\beta} | \mathbf{y})$ with a tractable distribution $q(\boldsymbol{\beta})$. This approximation is achieved by iteratively updating "site functions" that represent factors of the posterior. The key innovation here is in how the moments of these site functions are computed. Instead of direct, computationally expensive calculations, the authors exploit the structure of the probit model and the properties of the skew-normal distribution.

Specifically, they show that the hybrid distribution involved in the EP update can be characterized as a multivariate extended skew-normal distribution. This allows them to derive closed-form updates for the parameters of the approximate posterior distribution. The paper presents two algorithms:

  • Algorithm 1 (EP-EFF for p < n): This algorithm achieves a per-iteration cost of O(p²n), which is an improvement over previous methods but still potentially prohibitive for very large p.
  • Algorithm 2 (EP-EFF for large p): This is the main algorithmic contribution, achieving a per-iteration cost of O(pn²). This is accomplished by reformulating the updates to work directly with p-dimensional vectors rather than p × p matrices, thus making it linear in p.

Datasets

The paper uses simulated datasets for evaluation. The simulations involve probit regression with varying numbers of covariates (p = 50, 100, 200, 400, 800) and a fixed number of observations (n = 100). The authors mention that the i.i.d. sampler (used as a benchmark) is computationally efficient for these moderate sample sizes, allowing for a fair comparison of the approximate methods. No new datasets are introduced.

Key Insights and Ideas

  • Skew-Normal Distributions as a Key to Efficiency: The paper highlights how the mathematical properties of skew-normal distributions can be cleverly exploited to simplify and speed up EP updates in probit models. This is a significant insight into how specific distributional families can unlock computational efficiency for approximate inference.
  • Linear Scaling with Covariates is Achievable: The most impactful idea is demonstrating that EP for probit models can be made to scale linearly with the number of covariates (p). This breaks a major computational barrier that previously limited EP's applicability in high-dimensional settings.
  • Trade-off Between Algorithms: The paper presents two efficient algorithms, one optimized for p < n (O(p²n)) and another for large p (O(pn²)). This suggests that the optimal implementation strategy depends on the relative sizes of p and n, offering flexibility.
  • Accuracy of EP: The results reinforce that EP, when efficiently implemented, provides accurate approximations of posterior moments, comparable to more computationally intensive methods like i.i.d. sampling, especially in high-dimensional scenarios.

Key Results

The primary results are demonstrated through a simulation study comparing the proposed efficient EP implementation (EP-EFF) with a standard EP implementation (EPprobit from the R package EPGLM) and a partially-factorized variational Bayes (PFM-VB) method.

  • Dramatic Speedup: EP-EFF shows a substantial reduction in running time compared to the standard EPprobit, especially in high dimensions. For p = 800, the running time drops by more than three orders of magnitude. The computational gain increases with p.
  • Competitive with PFM-VB: While EP-EFF's running times are generally higher than PFM-VB, the paper emphasizes that EP-EFF provides consistently accurate approximations of posterior means and standard deviations across different dimensions of p. PFM-VB achieves similar accuracy only when p ≥ 2n.
  • Accuracy: Figure 1 shows that EP-EFF yields accurate approximations of posterior means and standard deviations, with median absolute differences comparable to those obtained from i.i.d. samples.

Limitations and Future Work

  • Computational Cost Comparison: While EP-EFF is significantly faster than standard EP, its running time is still higher than PFM-VB in most tested scenarios. The paper acknowledges this trade-off, suggesting that the choice between methods might depend on the specific balance between computational resources and desired accuracy.
  • Generalizability of the Method: The current work focuses on probit regression with a Gaussian prior. The authors suggest that extending these efficient EP implementations to other generalized linear models or more complex Bayesian models would be a valuable future direction.
  • Marginal Likelihood Computation: The paper mentions that the computation of normalizing constants for approximate marginal likelihood is avoided in their implementation. Future work could explore efficient ways to compute these for model comparison.
  • Code Availability: The authors provide code for their implementation, which is a positive step for reproducibility and further research.

Summary updated

BibTeX
@misc{fasano2023efficient,
  author = {Augusto Fasano and Niccolò Anceschi and Beatrice Franzolini and Giovanni Rebaudo},
  title = {{Efficient expectation propagation for posterior approximation in high-dimensional probit models}},
  year = {2023},
  eprint = {2309.01619},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.01619},
}
Figure