NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Expectation maximization as message passing

Justin Dauwels, Sascha Korl, Hans-Andrea Loeliger

TL;DR

This paper reformulates the Expectation-Maximization (EM) algorithm—a staple for parameter estimation—into a local message-passing framework within factor graphs. By doing so, the authors provide a way to integrate EM directly into the same graphical model toolset used for belief propagation, enabling more efficient and modular inference in complex, structured systems.

What Problem Does This Paper Address?

In the world of graphical models, we often use "message passing" algorithms like the sum-product (belief propagation) or max-product algorithms to perform inference. These algorithms work by passing local "summaries" of information along the edges of a graph.

However, when it comes to estimating unknown parameters (the EM algorithm's specialty), the approach has traditionally been viewed as a "global" two-step iterative process (the E-step and the M-step). While powerful, this global view makes it difficult to implement EM in a modular way for large-scale systems or to combine it seamlessly with other message-passing techniques. The authors address this gap by deriving local update rules that allow EM to "live" on the graph just like any other message-passing algorithm.

Methods

The authors use Forney-style factor graphs, where edges represent variables and nodes represent factors (mathematical functions).

The core of their approach is the definition of two new types of messages:

  1. The Upwards Message ($h(\theta)$): This represents the E-step. Instead of passing a full probability distribution, the node passes a "log-domain" summary: the expectation of the log-likelihood of the local factor, calculated with respect to the current estimate of the hidden variables.
  2. The Downwards Message ($\hat{\theta}^{(k)}$): This represents the M-step. It passes the updated parameter estimate back down the graph.

For complex models (like state-space or trellis models), the authors show that the global EM objective function decomposes into a sum of these local $h(\theta)$ messages. Crucially, they demonstrate that the joint distributions required for the E-step can be obtained using standard sum-product messages, allowing EM to "piggyback" on existing belief propagation infrastructure.

Datasets

Not discussed in the paper. This is a theoretical and algorithmic contribution focused on the mathematical framework of EM rather than an empirical study on specific datasets.

Key Insights and Ideas

  • EM as a Log-Domain Summary: The paper reveals that the EM message $h(\theta)$ is essentially a "log-domain" summary of a factor. While the sum-product algorithm passes probabilities, EM passes expectations of logs.
  • Unified Framework: By expressing EM as message passing, it can be used to "break cycles" in factor graphs. If a graph has loops that make standard belief propagation fail, EM can sometimes be used on a subset of variables to simplify the problem.
  • Handling Intractability: A major motivation is that the standard sum-product rule often leads to intractable integrals for continuous variables. The EM message-passing rule provides an alternative computation that may be easier to evaluate in these cases.
  • Local vs. Global: The transition from a "global" view of EM to a "local" message-passing view allows for distributed implementation and easier application to models with complex internal structures.

Key Results

  • Mathematical Equivalence: The authors formally prove that their message-passing rules are mathematically equivalent to the standard EM algorithm.
  • Convergence Guarantee: They provide a proof showing that the fundamental property of EM—that the likelihood increases (or stays the same) with each iteration—is preserved in this message-passing formulation.
  • Structured Decomposition: They successfully derive specific local update rules for nontrivial factor graphs (e.g., chains/trellises), showing exactly how the global expectation splits into manageable local pieces.

Limitations and Future Work

  • Cycle-Free Requirement: For the "guaranteed" convergence property to hold, the subgraphs involved must be cycle-free so that expectations can be computed exactly.
  • Heuristic Application: The authors suggest that these local rules could be applied to graphs with cycles as a heuristic (similar to "loopy" belief propagation), but they note there is no theoretical guarantee of convergence in such cases.
  • Implementation Complexity: While the theory is elegant, the paper does not explore the practical computational overhead of maintaining these messages compared to traditional EM or other variational methods.

Summary updated

BibTeX
@inproceedings{dauwels2005expectation,
  author = {Justin Dauwels and Sascha Korl and Hans-Andrea Loeliger},
  title = {{Expectation maximization as message passing}},
  booktitle = {ISIT},
  year = {2005},
  url = {https://openreview.net/forum?id=gSc3O4xlk4},
}

Loading related content...

Figure