Abstract
Variational inference is a powerful concept that underlies many iterative approximation algorithms. Expectation Propagation (EP), mean-field methods, and belief propagation are central themes that can be perceived through this unifying framework. These lecture notes, based on the work of Manfred Opper, introduce the archetypal example of EP before establishing connections with other approximation methods. We discuss corrections via expansion about the EP fixed points and explore advanced inference topics and applications.
Introduction
In Bayesian machine learning, the primary goal is often the computation of the posterior distribution—the updated belief about hidden variables given observed data. For many complex models, this requires evaluating high-dimensional integrals that are analytically intractable. While standard Variational Inference (VI) seeks a simple distribution $q$ that minimizes the Kullback-Leibler divergence $KL(q||p)$, it frequently underestimates uncertainty. Expectation Propagation (EP) offers a robust alternative by decomposing the global problem into local factors and iteratively matching moments to ensure the approximation captures the bulk of the true distribution.
The Expectation Propagation Algorithm
EP is an iterative refinement process that generalizes Assumed Density Filtering (ADF). While ADF updates beliefs sequentially—leading to results that depend on data ordering—EP ensures consistency across all data points.
The algorithm proceeds by:
- Removal: Dividing the current global approximation by a local factor to obtain a "cavity distribution."
- Update: Multiplying the cavity distribution by the exact likelihood factor to create a "tilted distribution."
- Projection: Projecting the tilted distribution back into a tractable family (typically Gaussian) by matching its moments (mean and variance).
This moment-matching step is equivalent to minimizing the reverse KL divergence $KL(p||q)$, which explains why EP often provides a more faithful representation of the distribution's mass than standard VI.
Connections to Statistical Physics
A significant insight from these lectures is the deep connection between EP and statistical physics. The "Cavity Method" used in the study of spin glasses is fundamentally equivalent to the removal and update steps in EP.
Specifically, the Thouless-Anderson-Palmer (TAP) equations for models with pairwise interactions introduce "Onsager reaction terms" to correct naive mean-field approaches. As shown in Figure 2, these physics-derived methods provide significantly more accurate results for magnetization $M$ across temperatures $T$ compared to naive approximations, aligning closely with the Replica Symmetry (RS) and SK model solutions.
Advanced Corrections and Expansion Methods
To improve accuracy when Gaussian assumptions fail, the authors introduce expansion techniques to quantify and correct EP errors.
- Cumulant Expansions: By incorporating higher-order moments like skewness and kurtosis, researchers can estimate the approximation error without resorting to computationally expensive Monte Carlo simulations.
- Loop Corrections: These account for the topological structure of the model that standard EP (which assumes a tree-like structure) might ignore.
Empirical Performance and Applications
EP has demonstrated superior performance across various benchmarks, including the USPS handwritten digits, the Acidity dataset, and several UCI benchmarks (e.g., Wisconsin cancer, Pima diabetes).
In Gaussian mixture models, EP with second-order corrections consistently outperforms standard Variational Bayes in estimating the log-partition function. A notable real-world success is the TrueSkill ranking system, where EP enables real-time processing of millions of match outcomes. Figure 1 illustrates the typical decay of generalization error $\epsilon$ as the data load $\alpha$ increases, a characteristic behavior in EP-based classification tasks.
Limitations and Future Work
Despite its strengths, EP faces several challenges:
- Convergence: EP is not guaranteed to converge and may oscillate in certain regimes.
- The "Box" Problem: In constrained models like "Gaussian processes in a box," EP can significantly underestimate the number of solutions.
- Theoretical Bounds: Unlike VI, EP does not provide a rigorous lower bound on the evidence, complicating principled model selection.
- Scaling: Future research is needed to scale EP for structured approximations and to leverage parallel hardware effectively.
Summary updated