Stabilizing Expectation Propagation for Approximate Inference

38 concepts38 papers1 proposal

Bayesian inference frequently requires computing posterior distributions that are mathematically intractable. To solve this, machine learning relies on two dominant approximate inference paradigms: Variational Inference (VI) and Expectation Propagation (EP).

While VI optimizes a global lower bound on the evidence (the ELBO) and guarantees a stable convergence path, it notoriously underestimates posterior variance, leading to overconfident approximations. EP, by contrast, optimizes local factor approximations via iterative moment matching. This localized approach allows EP to capture uncertainty far more accurately than standard VI.

However, EP possesses a critical flaw: it lacks a universal mathematical guarantee of convergence. Because standard EP updates its local factors sequentially without minimizing a single, globally coherent objective function, the algorithm can oscillate indefinitely, fail to find a stable solution, or break down entirely by producing mathematically impossible results like negative variances. Understanding why these failures happen—and how to fix them—is a central challenge in modern approximate inference.

The Mechanics of Instability

To understand why EP fails, we must look at its core mechanism: the moment-matching projection. EP breaks a complex joint distribution into a product of simple "site" approximations (typically Gaussians). To update a single site, EP performs a three-step dance:

  1. It removes the current site from the global approximation to form a cavity distribution.
  2. It multiplies this cavity distribution by the true, non-Gaussian local likelihood to form a hybrid distribution.
  3. It projects this hybrid distribution back into the exponential family by matching its moments (the mean and variance).
[Global Approximation] ---> Subtract Site ---> [Cavity Distribution]
                                                      |
                                              Multiply Likelihood
                                                      |
                                                      v
[Updated Global Approx] <-- Match Moments <-- [Hybrid Distribution]

This projection step is highly sensitive. If the true likelihood is highly non-conjugate or poorly behaved, the variance of the hybrid distribution can become negative or ill-conditioned.

For instance, Onno Zoeter et al. in Approximate Expectation Maximization note that these projection steps frequently suffer from numerical instabilities, yielding invalid results such as negative covariance matrices. Similarly, Mohammad Emtiyaz Khan (Fast Bayesian Inference for Non-Conjugate Gaussian Process Regression) highlights that EP's speed comes at the cost of severe numerical risks, including non-convergence and the generation of negative variances that crash the inference pipeline.

Where the Cracks Show

The instability of EP is not uniform; it is exacerbated by specific structural properties of the model, the likelihood function, and the data:

This lack of guaranteed convergence spans diverse applications, from natural language parsing (David Hall 0006 et al., Training Factored PCFGs with Expectation Propagation) to Markovian Gaussian processes for time-series (Arno Solin et al., Sparse Algorithms for Markovian Gaussian Processes), proving it is a fundamental algorithmic limitation rather than an application-specific quirk.

Why does this matter so much? Beyond the immediate failure to obtain a posterior distribution, oscillation paralyzes downstream tasks like automated parameter learning. As Justin Domke (Dual Decomposition for Marginal Inference) explains, when approximate inference algorithms oscillate or fail to reach a stationary point, calculating reliable gradients for parameter updates becomes impossible.

Pathways to Guaranteed Convergence

To harness EP's superior uncertainty quantification without suffering from its instability, researchers have pursued two primary strategies: double-loop optimization and variational hybrids.

Double-Loop Optimization

Standard EP updates sites sequentially (a single-loop approach), which easily triggers feedback loops and oscillations. By reframing EP not as a sequence of heuristic moment matches, but as the optimization of a global free-energy objective function, researchers can design provably convergent algorithms.

Matthias Seeger et al. (Fast Convergent Algorithms for Expectation Propagation Approximate Bayesian Inference) successfully resolved standard EP's indefinite oscillations by combining a "double-loop" optimization framework with a covariance decoupling technique. The inner loop ensures the local approximations remain valid, while the outer loop drives the global system toward a guaranteed stationary point.

Variational Hybrids and Bounds

Another approach is to inject the mathematical stability of Variational Inference into the EP framework. For example, Mohammad Emtiyaz Khan (Fast Bayesian Inference for Non-Conjugate Gaussian Process Regression) derived a concave lower bound optimized via coordinate ascent. This formulation captures the rapid execution speed of EP while mathematically guaranteeing the numerical stability and convergence inherent to variational methods.

Alternatively, rather than replacing EP, researchers can use VI as a protective shield. Rui Li et al. (Improving Hyperparameter Learning under Approximate Inference in Gaussian Process Models) proposed a hybrid framework: they use stable Variational Inference to shape the posterior distribution, but switch to an EP-like objective specifically for optimizing hyperparameters. This circumvents the numerical instabilities that typically plague pure EP implementations while still providing a tight approximation of model evidence.

Key Foundational Work

Gaussian Processes for Ordinal Regression (2005) — contributed 1 concept elements to this direction.
Expectation Consistent Approximate Inference (2005) — contributed 1 concept elements to this direction.
Approximate Expectation Maximization (2003) — contributed 1 concept elements to this direction.
History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_approximate_inference_convergence_7669c77e,
  title = {approximate inference convergence},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/approximate-inference-convergence/rdr_7669c77e41f84178875657687d0766c5},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-23},
}

This exact version (version 1, frozen text):

@misc{lacuna_approximate_inference_convergence_7669c77e_v1,
  title = {approximate inference convergence},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/approximate-inference-convergence/rdr_7669c77e41f84178875657687d0766c5/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-23},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake