Belief propagation

What Is Belief Propagation?

Belief propagation is an iterative message-passing algorithm for performing probabilistic inference on graphical models. It computes marginal distributions over individual variables in a multivariate probability distribution by propagating local probability messages between neighboring nodes in a factor graph, Bayesian network, or Markov random field. On tree-structured graphs, belief propagation produces exact marginals in a single forward-backward pass; on graphs containing cycles, the iterative loopy variant often converges to accurate approximations despite lacking a formal exactness guarantee.

The algorithm was formalized by Judea Pearl in the 1980s in the context of Bayesian networks and was later recognized to be equivalent to the sum-product algorithm used for decoding error-correcting codes, unifying two previously separate lines of work. Its broad applicability to inference problems in statistics, communications engineering, computer vision, and combinatorial optimization has made it one of the most studied algorithms in probabilistic machine learning.

Message Passing on Graphical Models

The core operation in belief propagation is the exchange of messages between variable nodes and factor nodes in a factor graph. Each message summarizes the probabilistic influence a subset of variables exerts on a target variable. For a variable node, the outgoing message to a connected factor is the product of all incoming messages from other factors. For a factor node, the outgoing message to a connected variable is computed by summing (or integrating) the factor's potential function over all configurations of its other connected variables, weighted by their incoming messages. After a sufficient number of iterations, the belief at each variable node, formed by multiplying all incoming messages, approximates its marginal posterior distribution conditioned on observed evidence. Stanford lecture notes on belief propagation provide a rigorous treatment of the sum-product derivation and convergence properties.

Graph Structure and Exactness

On acyclic graphs (trees and polytrees), a single message-passing sweep in each direction yields exact marginals. The sum-product algorithm for decoding low-density parity-check (LDPC) codes exploits this equivalence: each codeword corresponds to a factor graph, and the belief propagation decoder iterates messages between bit nodes and check nodes until the decoded word satisfies all parity constraints or a maximum iteration count is reached. LDPC codes decoded this way approach the Shannon capacity limit and are used in 5G NR, Wi-Fi 802.11n, and digital video broadcast standards. When the factor graph contains cycles, loopy belief propagation runs the same update rules iteratively and typically converges in practice, though convergence and accuracy are not guaranteed in general. The relationship between loop corrections and Bethe free energy approximations from statistical physics provides a theoretical foundation for understanding when and why the algorithm succeeds on loopy graphs, as analyzed in CMU probabilistic graphical models course notes.

Markov Processes and Temporal Inference

Belief propagation on hidden Markov models (HMMs) reduces to the forward-backward algorithm, a special case in which the graphical model is a chain and messages are computed in two sequential passes. This connection relates belief propagation to Bayesian filtering: the forward pass computes the filtered belief (posterior at each time step given past observations), and the backward pass refines these estimates using future observations. Extensions to Gaussian factor graphs underlie the Kalman smoother, widely used in control and navigation systems. For more complex state-space models, particle-based implementations of message passing approximate the nonlinear, non-Gaussian case. The connection to deep learning has been explored in work on deep learning via message-passing algorithms on arXiv, where belief propagation-inspired architectures achieve competitive performance on supervised classification tasks.

Applications

Belief propagation has applications in a wide range of fields, including:

  • Channel decoding for LDPC and turbo codes in wireless and optical communications
  • Stereo vision and image segmentation in computer vision
  • Protein structure prediction and genomic inference in computational biology
  • Combinatorial optimization problems including satisfiability and graph coloring
  • Distributed sensor fusion in wireless sensor networks
Loading…