A Novel Learning Algorithm for Bayesian Network and Its Efficient Implementation on GPU

Yu Wang, Weikang Qian, Shuchang Zhang, Bo Yuan · DOI

Abstract

Computational inference of causal relationships underlying complex networks, such as gene-regulatory pathways, is NP-complete due to its combinatorial nature when permuting all possible interactions. Markov chain Monte Carlo (MCMC) has been introduced to sample only part of the combinations while still guaranteeing convergence and traversability, which therefore becomes widely used. However, MCMC is not able to perform efficiently enough for networks that have more than 15~20 nodes because of the computational complexity. In this paper, we use general purpose processor (GPP) and general purpose graphics processing unit (GPGPU) to implement and accelerate a novel Bayesian network learning algorithm. With a hash-table-based memory-saving strategy and a novel task assigning strategy, we achieve a 10-fold acceleration per iteration than using a serial GPP. Specially, we use a greedy method to search for the best graph from a given order. We incorporate a prior component in the current scoring function, which further facilitates the searching. Overall, we are able to apply this system to networks with more than 60 nodes, allowing inferences and modeling of bigger and more complex networks than current methods.

Introduction: The Scalability Challenge in Bayesian Networks

Bayesian Networks (BNs) are essential for mapping causal relationships in complex systems, such as gene regulatory pathways. However, learning the structure of these networks from observational data is an NP-complete problem. As the number of nodes increases, the search space of possible graph structures grows super-exponentially.

Traditional Markov chain Monte Carlo (MCMC) sampling methods, while effective for small networks, typically hit a computational wall at approximately 15–20 nodes. Beyond this point, the time required to navigate the search space becomes prohibitive for standard serial processors. This research addresses these limitations by introducing a novel greedy MCMC algorithm optimized for massive parallelization on Graphics Processing Units (GPUs).

Methodology: Greedy MCMC and GPU Acceleration

The authors propose a three-pronged approach to overcome the computational bottlenecks of BN learning:

1. Greedy Order-Space Sampling

Instead of sampling the vast space of all possible graphs, the algorithm samples the space of node orders. For any given order, a greedy method is employed to identify the single best-scoring graph consistent with that order. This shift from summation-based scoring to a "max-based" greedy search simplifies the mathematical complexity and eliminates expensive post-processing steps.

The high-level workflow of the novel BN learning algorithm, highlighting the iterative loop between scoring, Metropolis-Hastings comparison, and order generation.

2. Hash-Table Preprocessing

The most computationally intensive phase is calculating "local scores" for various node combinations. To optimize this, the researchers pre-calculate these scores and store them in a hash table. This "compute once, look up often" strategy provides a significant speedup even before GPU acceleration is applied.

3. GPU Parallelization and Task Assignment

The core scoring phase of the MCMC loop is ported to the GPU. To manage the GPU's architectural constraints, the team developed a Parent Set Table (PST) to map indices to specific parent node combinations. This allows thousands of GPU threads to perform parallel lookups and comparisons without redundant logic.

The GPU implementation architecture, showing how the host manages order generation while the GPU grid handles parallelized scoring across multiple blocks and threads.

Key Results and Performance

The implementation was evaluated using standard benchmarks, including the 11-node Signaling Transduction Network (STN) and the 37-node ALARM network.

  • Acceleration: The GPU implementation achieved a 10x speedup per iteration compared to a serial CPU. For large networks, the end-to-end process was approximately 3x faster overall.
  • Scalability: The system successfully modeled networks with up to 60 nodes, effectively tripling the capacity of traditional MCMC methods.
  • Accuracy and Robustness: ROC analysis demonstrated high precision and recall. The algorithm remained robust against data noise, maintaining accuracy until error rates exceeded 7%.

Conclusion and Future Work

By combining a greedy search strategy with GPU-accelerated parallelization, this research provides a viable path for modeling large-scale causal networks. While the MCMC sampling is now highly efficient, the preprocessing stage remains a CPU-bound bottleneck for extremely large networks. Future work will focus on parallelizing the generation of local scores on the GPU to further reduce total execution time.

Summary updated

BibTeX
@misc{wang2012novel,
  author = {Yu Wang and Weikang Qian and Shuchang Zhang and Bo Yuan},
  title = {{A Novel Learning Algorithm for Bayesian Network and Its Efficient Implementation on GPU}},
  year = {2012},
  eprint = {1210.5128},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1210.5128},
}
Figure