Skip to main content
QUICK REVIEW

[Paper Review] Stochastic Expectation Propagation

Yingzhen Li, José Miguel Hernández-Lobato|arXiv (Cornell University)|Jun 12, 2015
Gaussian Processes and Bayesian InferenceComputer Science19 references29 citations
TL;DR

This paper proposes Stochastic Expectation Propagation (SEP), a scalable Bayesian inference method that combines the accuracy of Expectation Propagation (EP) with the memory efficiency of Variational Inference by updating a global posterior approximation using stochastic, local updates on mini-batches of data. SEP reduces memory consumption by a factor of N compared to full EP while maintaining competitive accuracy on synthetic and real-world datasets, including large-scale probabilistic models like neural networks.

ABSTRACT

Expectation propagation (EP) is a deterministic approximation algorithm that is often used to perform approximate Bayesian parameter learning. EP approximates the full intractable posterior distribution through a set of local approximations that are iteratively refined for each datapoint. EP can offer analytic and computational advantages over other approximations, such as Variational Inference (VI), and is the method of choice for a number of models. The local nature of EP appears to make it an ideal candidate for performing Bayesian learning on large models in large-scale dataset settings. However, EP has a crucial limitation in this context: the number of approximating factors needs to increase with the number of data-points, N, which often entails a prohibitively large memory overhead. This paper presents an extension to EP, called stochastic expectation propagation (SEP), that maintains a global posterior approximation (like VI) but updates it in a local way (like EP). Experiments on a number of canonical learning problems using synthetic and real-world datasets indicate that SEP performs almost as well as full EP, but reduces the memory consumption by a factor of $N$. SEP is therefore ideally suited to performing approximate Bayesian learning in the large model, large dataset setting.

Motivation & Objective

  • To address the prohibitive memory overhead of Expectation Propagation (EP) in large-scale Bayesian learning, where the number of local approximating factors scales linearly with the number of data points N.
  • To retain the high accuracy of EP—particularly in models with non-smooth likelihoods—while avoiding its memory bottleneck.
  • To develop a method that maintains a global posterior approximation (like Variational Inference) but updates it through local, data-subsampled computations (like EP), enabling scalability.
  • To demonstrate that the resulting algorithm, Stochastic EP (SEP), achieves performance comparable to full EP with drastically reduced memory usage on real-world and synthetic datasets.

Proposed method

  • SEP maintains a global posterior approximation q(θ) that is iteratively refined using stochastic estimates derived from random mini-batches of data, rather than storing individual factors for each data point.
  • At each iteration, a mini-batch of data is selected, and local EP-like updates are performed on the global approximation, mimicking the local refinement process of EP but without storing per-data-point factors.
  • The algorithm uses damped updates to stabilize convergence, similar to Stochastic Variational Inference (SVI), ensuring robustness during optimization.
  • SEP generalizes naturally to the power EP (PEP) framework, enabling application to models with latent variables and complex likelihoods.
  • The method supports control over approximation granularity and can be extended to use data partitioning strategies for finer-grained updates.
  • It leverages moment-matching and local approximations to update the global distribution efficiently, avoiding the need to store N separate factors.

Experimental results

Research questions

  • RQ1Can we achieve the high accuracy of Expectation Propagation (EP) while avoiding its O(N) memory overhead in large-scale Bayesian learning?
  • RQ2Is it possible to maintain a global posterior approximation while performing truly local updates based on data sub-samples, as in EP?
  • RQ3How does the performance of SEP compare to full EP and ADF in terms of accuracy and memory efficiency on real-world and synthetic datasets?
  • RQ4Can SEP be effectively applied to complex models such as probabilistic neural networks (e.g., probabilistic backpropagation) with large datasets?
  • RQ5What is the impact of mini-batch size and update damping on the convergence and stability of the algorithm?

Key findings

  • SEP achieves test RMSE and log-likelihood values on par with full EP across multiple UCI regression datasets, including Kin8nm, Naval, Power, Protein, Wine, and Year.
  • On the Protein dataset, SEP reduced memory usage from 694 MB (EP) to a significantly lower footprint, demonstrating a memory reduction by a factor of N.
  • On the Year dataset, SEP reduced memory usage from 65,107 MB (EP) to a scalable level, confirming the N-fold memory advantage.
  • In probabilistic backpropagation experiments, SEP outperformed ADF in some cases and matched EP in accuracy while using far less memory.
  • ADF often outperformed EP in the PBP setting, suggesting that the interaction between ADF’s global updates and moment approximations may be beneficial, but SEP still provides a better trade-off between accuracy and memory.
  • The method showed competitive performance on Bayesian logistic regression and Gaussian mixture models, confirming its general applicability across model classes.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.