Skip to main content
QUICK REVIEW

[Paper Review] Belief Propagation by Message Passing in Junction Trees: Computing Each Message Faster Using GPU Parallelization

Zheng Lu, Ole J. Mengshoel|arXiv (Cornell University)|Feb 14, 2012
Bayesian Modeling and Causal InferenceComputer Science15 references24 citations
TL;DR

This paper proposes a GPU-parallelized belief propagation algorithm for junction trees in Bayesian networks, accelerating message computation by exploiting data parallelism across separator potential tables. By mapping clique-to-separator operations to GPU thread blocks and optimizing memory layout, the method achieves speedups from 0.68 to 9.18, with performance strongly correlated to separator table size.

ABSTRACT

Compiling Bayesian networks (BNs) to junction trees and performing belief propagation over them is among the most prominent approaches to computing posteriors in BNs. However, belief propagation over junction tree is known to be computationally intensive in the general case. Its complexity may increase dramatically with the connectivity and state space cardinality of Bayesian network nodes. In this paper, we address this computational challenge using GPU parallelization. We develop data structures and algorithms that extend existing junction tree techniques, and specifically develop a novel approach to computing each belief propagation message in parallel. We implement our approach on an NVIDIA GPU and test it using BNs from several applications. Experimentally, we study how junction tree parameters affect parallelization opportunities and hence the performance of our algorithm. We achieve speedups ranging from 0.68 to 9.18 for the BNs studied.

Motivation & Objective

  • Address the high computational cost of belief propagation in junction trees, especially for large cliques and high-cardinality nodes.
  • Overcome performance bottlenecks in real-time Bayesian network inference and iterative algorithms like EM.
  • Leverage GPU parallelism to accelerate the dominant message computation phase in junction tree belief propagation.
  • Optimize memory access patterns and kernel launch efficiency to minimize overhead in GPU execution.

Proposed method

  • Adapt the cluster-sepset mapping method of Huang and Darwiche to enable per-message parallelization on GPU.
  • Map each message computation to a GPU kernel where threads process elements of the separator potential table in parallel.
  • Design an advanced memory layout for mapping tables to reduce shared memory bank conflicts and improve bandwidth efficiency.
  • Implement a two-phase belief propagation pipeline: evidence collection and evidence distribution, both accelerated via GPU kernels.
  • Use CUDA to launch kernels with thread blocks sized to match separator table dimensions, maximizing occupancy and parallelism.
  • Minimize kernel launch overhead by coalescing small operations and reducing the number of kernel launches per junction tree traversal.

Experimental results

Research questions

  • RQ1How does the size of separator potential tables affect the parallelization opportunities and performance of GPU-based belief propagation?
  • RQ2What is the impact of junction tree topology—particularly clique and separator size—on GPU execution performance?
  • RQ3How do kernel launch overhead and memory access patterns influence the overall speedup in GPU-accelerated junction tree inference?
  • RQ4Can optimized memory layouts significantly reduce latency and improve throughput in GPU-based message computation?
  • RQ5What is the achievable speedup range for real-world Bayesian networks when using GPU-parallelized message passing compared to sequential CPU execution?

Key findings

  • The GPU implementation achieved speedups ranging from 0.68 to 9.18 across diverse Bayesian network benchmarks, with the highest performance on networks with large separator potential tables.
  • Networks like Barley, with an average separator size of 39,318, achieved a speedup of 9.18 due to abundant parallelism opportunities.
  • In contrast, networks like Pigs, with small separators (average size 339) and many small cliques, achieved only 0.68× speedup, indicating limited parallelism.
  • Kernel overhead accounted for up to 36% of execution time in Munin3, representing a hard upper bound on potential speedup and highlighting the importance of minimizing kernel launches.
  • The advanced memory layout reduced bank conflicts and improved performance by 20–30% compared to a naive layout, demonstrating the impact of memory access optimization.
  • Performance scaled well with separator table size, confirming the theoretical expectation that larger tables provide greater parallelism and better GPU utilization.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.