Loopy Belief Propagation for Approximate Inference: An Empirical Study

Kevin P. MurphyYair WeissMichael I. Jordan

article1999UAI1,932 citations

Evaluates loopy belief propagation across diverse Bayesian networks, revealing that Pearl's polytree algorithm often converges to accurate marginal approximations in loopy graphs while diagnosing the causes of oscillatory failure in complex real-world models.

Listen

Calculating accurate posterior probabilities in complex probabilistic networks is a fundamental challenge in artificial intelligence, with applications ranging from medical diagnosis to automated monitoring. Computing these probabilities exactly in networks with interconnected loops is computationally intractable, which forces decision-makers and engineers to rely on approximation techniques. While a method known as loopy belief propagation demonstrated breakthrough performance in telecommunications and error-correcting codes, it remained unclear whether its success was unique to that specific domain or broadly applicable to general network architectures.

The article evaluates whether loopy belief propagation serves as an effective, general-purpose approximation scheme across diverse network structures. The authors set out to determine under what conditions the algorithm converges to accurate probability estimates and when it fails.

To evaluate performance, the researchers tested loopy belief propagation across four network architectures containing multiple feedback loops: two synthetic models (a hierarchical image-analysis pyramid and a simulated medical diagnostic network) and two established real-world systems (the ALARM intensive care monitoring network and the large-scale QMR-DT medical diagnostic network). The algorithm's estimates were benchmarked against exact baseline probabilities calculated using established reference methods, as well as against standard sampling-based approximation techniques.

The evaluation revealed several key findings. First, loopy belief propagation converged rapidlytypically within 8 to 15 iterationsand produced estimates highly correlated with the exact probabilities on the hierarchical pyramid, the simulated medical network, and the real-world ALARM network. Second, when tested on the real-world QMR-DT diagnostic network, the algorithm failed to converge entirely, instead oscillating between two distinct numerical states in a repeating cycle that bore no meaningful relationship to the true probabilities. Third, the authors discovered that these oscillations were driven primarily by network parameter regimesspecifically extremely low baseline prior probabilities (around 1 in 1,000)—rather than graph size alone; setting higher priors on the full QMR-DT network restored strong convergence and accuracy. Finally, simple fixes to stop oscillation, such as averaging oscillating values or adding message momentum, either failed to match true probabilities or introduced substantial inaccuracies.

These findings indicate that loopy belief propagation is not limited to specialized coding applications and can deliver fast, highly accurate results in general networks. However, the presence of severe oscillations under specific parameter regimes introduces major operational risks if deployed without safeguards. The failure of straightforward stabilization fixes shows that convergence cannot simply be forced without compromising the validity of the computed probabilities.

Before deploying loopy belief propagation in mission-critical applications, organizations should implement automated convergence checks within the first 10 to 20 iterations to detect instability early. For systems operating in parameter regimes prone to oscillation, such as medical diagnostics with rare conditions, decision-makers should consider alternative approximation schemes or develop principled stabilization methods. Further research is necessary to establish analytical conditions that guarantee convergence in multi-loop networks with extreme parameter values.

arXiv: 1301.6725

No sufficiently relevant recommendations were found.

Cover for Loopy Belief Propagation for Approximate Inference: An Empirical Study

Abstract

Recently, researchers have demonstrated that loopy belief propagation - the use of Pearls polytree algorithm IN a Bayesian network WITH loops OF error- correcting this http URL most dramatic instance OF this IS the near Shannon - limit performance OF Turbo Codes codes whose decoding algorithm IS equivalent TO loopy belief propagation IN a chain - structured Bayesian network. IN this paper we ask : IS there something special about the error - correcting code context, OR does loopy propagation WORK AS an approximate inference schemeIN a more general setting? We compare the marginals computed using loopy propagation TO the exact ones IN four Bayesian network architectures, including two real - world networks : ALARM AND this http URL find that the loopy beliefs often converge AND WHEN they do, they give a good approximation TO the correct this http URL,ON the QMR network, the loopy beliefs oscillated AND had no obvious relationship TO the correct posteriors. We present SOME initial investigations INTO the cause OF these oscillations, AND show that SOME simple methods OF preventing them lead TO the wrong results.

Table of Contents

  • 1 Introduction
  • 2 The algorithm
  • 3 The networks
  • 3.1 The PYRAMID network
  • 3.2 The toyQMR network
  • 3.3 The ALARM network
  • 3.4 The QMR-DT network
  • 4 Results
  • 4.1 Initial experiments
  • 4.2 What causes convergence versus oscillation?
  • 4.3 Can we fix oscillations easily?
  • 5 Discussion
  • Acknowledgements
  • References

Knowls

  1. Knowl 1 — Parallel Loopy Belief Propagation with Message Normalization

    algorithm

    Loopy belief propagation applies Pearl's message-passing algorithm synchronously across all nodes in a Bayesian network containing undirected cycles (loops), incorporating message normalization at each iteration to avoid numerical underflow.

    Input: Directed acyclic graph with nodes XX, conditional probability distributions P(XU)P(X \mid U), observed evidence EE, convergence threshold ϵ=104\epsilon = 10^{-4}
    Output: Posterior marginal beliefs BEL(x)P(X=xE)BEL(x) \approx P(X = x \mid E) for each node XX
    Initialize messages πX(0)(uk)1\pi_X^{(0)}(u_k) \leftarrow 1 and λYj(0)(x)1\lambda_{Y_j}^{(0)}(x) \leftarrow 1 for all parent-child connections
    Initialize evidence message λX(x)1\lambda_X(x) \leftarrow 1 if XX is unobserved, or λX(x)δ(x,e)\lambda_X(x) \leftarrow \delta(x, e) if XX is clamped to observed value ee
    repeat at each iteration t=0,1,2,t = 0, 1, 2, \dots
        for all nodes XX in parallel do
            Compute combined λ\lambda message: λ(t)(x)λX(x)jλYj(t)(x)\lambda^{(t)}(x) \leftarrow \lambda_X(x) \prod_j \lambda_{Y_j}^{(t)}(x)
            Compute combined π\pi message: π(t)(x)uP(X=xU=u)kπX(t)(uk)\pi^{(t)}(x) \leftarrow \sum_u P(X = x \mid U = u) \prod_k \pi_X^{(t)}(u_k)
            Compute belief: BEL(t)(x)αλ(t)(x)π(t)(x)BEL^{(t)}(x) \leftarrow \alpha \lambda^{(t)}(x) \pi^{(t)}(x) where α\alpha normalizes xBEL(t)(x)=1\sum_x BEL^{(t)}(x) = 1
            for each parent UiU_i of XX do
                Update parent message: λX(t+1)(ui)αxλ(t)(x)ukiP(X=xU)kiπX(t)(uk)\lambda_X^{(t+1)}(u_i) \leftarrow \alpha \sum_x \lambda^{(t)}(x) \sum_{u_{k \neq i}} P(X = x \mid U) \prod_{k \neq i} \pi_X^{(t)}(u_k)
            for each child YjY_j of XX do
                Update child message: πYj(t+1)(x)απ(t)(x)λX(x)kjλYk(t)(x)\pi_{Y_j}^{(t+1)}(x) \leftarrow \alpha \pi^{(t)}(x) \lambda_X(x) \prod_{k \neq j} \lambda_{Y_k}^{(t)}(x)
    until maxX,xBEL(t)(x)BEL(t1)(x)<ϵ\max_{X, x} |BEL^{(t)}(x) - BEL^{(t-1)}(x)| < \epsilon
    return BEL(t)BEL^{(t)} for all nodes XX

    For noisy-OR parent-child relationships, π(x)\pi(x) and λX(ui)\lambda_X(u_i) are evaluated analytically rather than by full enumeration over parent configurations.

  2. Knowl 2 — Momentum-Damped Message Updating for Loopy Belief Propagation

    algorithm

    To suppress limit cycles and non-convergence oscillations in loopy belief propagation, message updates at iteration tt can be smoothed using a momentum coefficient μ[0,1]\mu \in [0, 1]. The incoming message components are updated via a convex combination of values at step tt and step t1t-1:

    λ~Yj(t)(x)=(1μ)λYj(t)(x)+μλYj(t1)(x)\tilde{\lambda}_{Y_j}^{(t)}(x) = (1 - \mu) \lambda_{Y_j}^{(t)}(x) + \mu \lambda_{Y_j}^{(t-1)}(x)

    and similarly for parent messages:

    π~X(t)(uk)=(1μ)πX(t)(uk)+μπX(t1)(uk)\tilde{\pi}_X^{(t)}(u_k) = (1 - \mu) \pi_X^{(t)}(u_k) + \mu \pi_X^{(t-1)}(u_k)

    If this damped dynamical system reaches a fixed point FF where λ(t)=λ(t1)\lambda^{(t)} = \lambda^{(t-1)} and π(t)=π(t1)\pi^{(t)} = \pi^{(t-1)}, then λ~(t)=λ(t)\tilde{\lambda}^{(t)} = \lambda^{(t)} and π~(t)=π(t)\tilde{\pi}^{(t)} = \pi^{(t)}. Consequently, any fixed point of the momentum-damped system is mathematically identical to a fixed point of the standard un-damped belief propagation equations.

  3. Knowl 3 — Convergence and Marginals Accuracy of Loopy BP Across Diverse Multi-Loop Networks

    empirical result

    Loopy belief propagation reliably converges and yields accurate posterior marginals across diverse multi-loop Bayesian network structures when parameter regimes are not extreme:

    • PYRAMID network: A multi-layered hierarchical grid network with binary nodes and local connections between layers (observed nodes at the leaf level, CPT entries sampled uniformly from [0,1][0, 1]). Loopy BP converged in 100% of runs with an average of 10.210.2 iterations, matching exact junction-tree marginals with near-perfect correlation.
    • toyQMR network: A bipartite network with binary disease roots and noisy-OR symptom leaves (parent-child connectivity probability 0.50.5, link weights θi[0,1]\theta_i \in [0, 1], leak weights θ0[0,0.01]\theta_0 \in [0, 0.01], root priors in [0,1][0, 1]). Loopy BP converged in 100% of runs with an average of 8.658.65 iterations, closely matching exact marginals.
    • ALARM network: A 37-node real-world intensive care monitoring network with node arities from 2 to 4 and tabular CPTs, where all leaf nodes are clamped to evidence. Loopy BP converged in 100% of runs with an average of 14.5514.55 iterations, providing accurate marginals.

    In all these architectures, loopy BP achieved superior marginal accuracy compared to likelihood weighting with 200 samples at comparable or lower computational cost.

  4. Knowl 4 — Limit Cycle Oscillations of Loopy BP on QMR-DT

    empirical result

    When applied to the real-world QMR-DT (Quick Medical Reference - Decision Theoretic) network—a large bipartite network containing approximately 600 disease nodes and 4,000 finding nodes with noisy-OR conditional probabilities—standard loopy belief propagation fails to converge across all four tractable clinicopathological conference (CPC) benchmark cases (cases with <20< 20 positive findings where exact inference via Quickscore is feasible).

    Rather than settling to a fixed point, the marginal posteriors of nearly all nodes enter a period-2 limit cycle after two iterations, oscillating indefinitely between two distinct numerical values on alternating iterations.

  5. Knowl 5 — Influence of Prior Magnitude and Link Weights on Loopy BP Convergence

    empirical result

    The failure of loopy belief propagation to converge is primarily driven by parameter regimes containing extreme values (such as very small prior probabilities or small weights) rather than network size or graph connectivity alone:

    • In the toyQMR network, when the root prior sampling range is restricted from [0,1][0, 1] to [0,U][0, U] with decreasing UU, the convergence rate drops from 100% (at U=1.0U=1.0) to below 35% (at U=0.1U=0.1), reproducing the oscillatory limit-cycle behavior of real QMR.
    • When the full real-world QMR-DT network is modified by replacing its extremely small disease priors (typically 103\sim 10^{-3}) with priors drawn uniformly from [0,1][0, 1] while preserving the exact bipartite graph structure and noisy-OR weights, loopy BP converges on all four tractable CPC cases and achieves high correlation with exact posteriors computed by Quickscore.
  6. Knowl 6 — Robustness of Loopy BP Convergence to Untypical Evidence Configurations

    empirical result

    To test if oscillations arise from evidence configurations that have low likelihood under the model's generative distribution, the PYRAMID network was parameterized with high root priors (P(X=1)=0.9P(X=1) = 0.9) and low inhibition noisy-OR links (0.10.1), inducing true marginals of approximately P(leaf=1)0.9P(\text{leaf}=1) \approx 0.9. Untypical leaf evidence was then clamped by sampling from a uniform distribution (0.5,0.5)(0.5, 0.5) or an inverted distribution (0.9,0.1)(0.9, 0.1).

    Under this untypical evidence, loopy BP converged in 98% of trials at a threshold of 10410^{-4} and in 100% of trials at 10310^{-3}. The converged beliefs remained highly correlated with exact junction-tree marginals, demonstrating that untypical evidence alone does not cause the limit-cycle oscillations seen in QMR-DT.

  7. Knowl 7 — Limitations of State Averaging and Momentum Damping for Oscillating BP

    limitation

    Simple recovery heuristics fail to reliably resolve period-2 limit-cycle oscillations in loopy belief propagation:

    • State Averaging: Averaging the two alternating states of a period-2 limit cycle yields inaccurate posterior estimates because the true posterior marginal does not generally lie at the arithmetic midpoint of the oscillation interval.
    • Momentum Damping: Setting momentum to μ=0.1\mu = 0.1 enables loopy BP to converge at a 10310^{-3} tolerance on 3 of the 4 tractable QMR-DT cases (cases 16, 32, and 34 within 10–15 iterations). However, the resulting fixed-point beliefs contain several severely inaccurate, uncorrelated marginals. On case 46, momentum fails to induce convergence altogether, with marginals continuing to alternate across the diagonal.

Coverage note — Omitted introductory reviews of prior single-loop and turbo code theory (Weiss, Richardson, McEliece) and the unrelated adjacent paper on page 10.

References

  1. 1.J. M. Agosta. The structure of Bayes networks for visual recognition. In UAI, volume 4, pages 397-405, 1990.
  2. 2.S.M. Aji, G.B. Horn, and R.J. McEliece. On the convergence of iterative decoding on graphs with a single cycle. In Proc. 1998 ISIT, 1998.
  3. 3.I. Beinlich, G. Suermondt, R. Chavez, and G. Cooper. The alarm monitoring system: A case study with two probabilistic inference techniques for belief networks. In Proc. 2'nd European Conf. on AI and Medicine, 1989.
  4. 4.C. Berrou, A. Glavieux, and P. Thitimajshima. Near Shannon limit error-correcting coding and decoding: Turbo codes. In Proc. IEEE International Communications Conference '93, 1993.
  5. 5.G. Cooper. The computational complexity of probabilistic inference using Bayesian belief networks. Artificial Intelligence, 42:393-405, 1990.
  6. 6.P. Dagum and M. Luby. Aproximate probabilistic inference in Bayesian networks in NP hard. Artificial Intelligence, 60:141-153, 1993.
  7. 7.D. Heckerman. A tractable inference algorithm for diagnosing multiple diseases. In Proc. Fifth Conf. on Uncertainty in AI, 1989.
  8. 8.T.S. Jaakkola and M.I. Jordan. Variational probabilistic inference and the QMR-DT network. JAIR, 10, 1999.
  9. 9.F. R. Kschischang and B. J. Frey. Iterative decoding of compound codes by probability propagation in graphical models. IEEE Journal on Selected Areas in Communication, 16(2) :219-230, 1998.
  10. 10.R.J. McEliece, D.J.C. MacKay, and J.F. Cheng. Turbo decoding as as an instance of Pearl's 'belief propagation' algorithm. IEEE Journal on Selected Areas in Communication, 16(2):140-152, 1998.
  11. 11.R.J. McEliece, E. Rodemich, and J.F. Cheng. The Turbo decision algorithm. In Proc. 33rd Allerton Conference on Communications, Control and Computing, pages 366-379, Monticello, Il, 1995.
  12. 12.Judea Pearl. Probabilistic Reasoning in Intelligent Systems: Networks of Plausible Inference. Morgan Kaufmann, 1988.
  13. 13.M.A. Peot and R.D. Shachter. Fusion and propagation with multiple observations in belief networks. Artificial Intelligence, 48:299-318, 1991.
  14. 14.Thomas Richardson. The geometry of turbo-decoding dynamics. IEEE Trans. on Info. Theory, 1999. To appear.
  15. 15.L.K. Saul, T. Jaakkola, and M.I. Jordan. Mean field theory for sigmoid belief networks. JAIR, 4:61-76, 1996.
  16. 16.R. D. Shachter and M. A. Peot. Simulation approaches to general probabilistic inference on belief networks. In Uncertainty in AI, volume 5, 1990.
  17. 17.M. Shwe and G. Cooper. An empirical analysis of likelihood-weighting simulation on a large, multiply connected medical belief network. Computers and Biomedical Research, 24:453-475, 1991.
  18. 18.Y. Weiss. Belief propagation and revision in networks with loops. Technical Report 1616, MIT AI lab, 1997.
  19. 19.Y. Weiss. Correctness of local probability propagation in graphical models with loops. Neural Computation, to appear, 1999.

Citation

MLA
Murphy, K., et al. “Loopy Belief Propagation for Approximate Inference: An Empirical Study”. arXiv, 2013, http://arxiv.org/abs/1301.6725v1.
APA
Murphy, K., Weiss, Y., & Jordan, M. I. (2013). Loopy Belief Propagation for Approximate Inference: An Empirical Study. arXiv. http://arxiv.org/abs/1301.6725v1
Chicago
Murphy, K., Y. Weiss, and M. I. Jordan. 2013. “Loopy Belief Propagation for Approximate Inference: An Empirical Study”. arXiv. http://arxiv.org/abs/1301.6725v1.
Harvard
Murphy, K., Weiss, Y. and Jordan, M.I. (2013) “Loopy Belief Propagation for Approximate Inference: An Empirical Study”, arXiv [Preprint]. Available at: http://arxiv.org/abs/1301.6725v1.
Vancouver
1. Murphy K, Weiss Y, Jordan MI (2013) Loopy Belief Propagation for Approximate Inference: An Empirical Study. arXiv

BibTeX

@article{murphy2013loopy,
  title = {Loopy Belief Propagation for Approximate Inference: An Empirical Study},
  author = {Murphy, Kevin and Weiss, Yair and Jordan, Michael I.},
  year = {2013},
  journal = {arXiv},
  url = {http://arxiv.org/abs/1301.6725v1},
  eprint = {1301.6725}
}
Metadata:arXiv

Access the Paper

This paper is available from its original source. Click below to access the PDF.

Open PDF

License: https://creativecommons.org/licenses/by/4.0/