A Parallel Algorithm for Exact Bayesian Structure Discovery in Bayesian Networks

Yetian Chen, Jin Tian, Olga Nikolova, Srinivas AluruarXiv 2014

Abstract

Learning the structure of Bayesian Networks (BNs) from data is a fundamental task in probabilistic graphical modeling, yet it remains computationally intensive due to the super-exponential growth of the search space. While heuristic methods are common, exact Bayesian structure discovery is required to calculate precise posterior probabilities of network features. This paper presents ParaREBEL, a parallel algorithm designed to scale exact structure discovery to networks with up to 33 variables. By mapping dynamic programming subproblems onto a hypercube architecture and introducing parallel zeta transforms, ParaREBEL achieves near-optimal time efficiency and perfect load balancing across thousands of processors, overcoming the "memory wall" that limits sequential approaches.

Introduction

Bayesian Networks are essential tools for representing complex dependencies between variables in fields ranging from genomics to social sciences. A central challenge in using BNs is structure learning: identifying the directed acyclic graph (DAG) that best explains the observed data. Exact structure discovery is particularly valuable because it avoids the local optima of heuristic searches, providing a rigorous basis for causal inference.

However, the computational cost of exact discovery is governed by the "curse of dimensionality." The number of possible DAGs grows super-exponentially with the number of variables ($n$). Even the most efficient sequential algorithms, which utilize dynamic programming (DP), require $O(n2^n)$ time and memory. On standard hardware, this typically limits analysis to approximately 25 variables before memory exhaustion occurs. Previous attempts to parallelize this process often struggled with high communication overhead or redundant computations. ParaREBEL was developed to address these bottlenecks and enable structure discovery at an unprecedented scale.

Methodology

ParaREBEL builds upon the REBEL (REcursive Bayesian structure Learning) framework, transforming the sequential DP recursion into a massively parallel operation. The innovation lies in three key technical areas:

Hypercube Mapping

The authors observed that the subproblems within the DP recursion naturally form an $n$-dimensional hypercube lattice. ParaREBEL maps these subproblems directly onto the nodes of a parallel computing cluster. By aligning the algorithmic structure with the physical or logical communication topology of the cluster, the team ensured that data exchange occurs only between neighboring processors. This strategy drastically reduces communication latency, which is often the primary inhibitor of scaling in distributed systems.

Parallel Zeta Transforms

The DP approach to BN structure learning relies heavily on zeta transforms—mathematical operations used to compute subset sums. Because standard parallel zeta transforms were insufficient for the truncated upward and downward transforms required here, the authors developed novel parallel algorithms specifically for these variants. These transforms are fundamental combinatorial tools that facilitate the efficient calculation of local scores across the network.

k-D Pipelining and Load Balancing

To bridge the gap between the theoretical requirement of $2^n$ processors and the practical availability of $2^k$ processors (where $k < n$), the authors implemented a $k$-dimensional pipelining strategy. This allows processors to transition seamlessly between different stages of the DP procedure. This approach maintains high parallel efficiency by ensuring that processors do not remain idle while waiting for data from their neighbors.

Experimental Results

The performance of ParaREBEL was evaluated on the TACC Stampede supercomputer using both synthetic and real-world datasets.

Scalability and Speedup

Using synthetic datasets with $n=21$ to $n=33$ nodes, the algorithm demonstrated excellent scalability. For a 25-variable problem, a sequential implementation required approximately 38 minutes to complete. ParaREBEL, utilizing 2,048 cores, finished the same task in just 2.1 seconds. The algorithm achieved nearly linear speedup, proving that the hypercube mapping effectively minimized communication overhead.

Solving the 33-Variable Barrier

ParaREBEL successfully solved a 33-variable network, which represents the largest exact structure discovery problem solved to date. The authors noted that while time efficiency was high, the "memory wall" remains a significant constraint; for $n \geq 34$, the memory requirements exceeded the 4GB per core available on the test system, highlighting that memory, rather than raw processing power, is the ultimate limiting factor for exact BN learning.

Biological Validation

The algorithm was applied to a real-world dataset involving the yeast pheromone response pathway (Saccharomyces cerevisiae), consisting of 33 variables and 320 observations. ParaREBEL successfully recovered a network where variables within the same functional groups clustered together. Notably, the "Mating Type" variable was correctly identified as a primary source node, consistent with established biological literature.

Conclusion and Future Work

ParaREBEL represents a significant leap forward in computational bioinformatics and machine learning. By successfully parallelizing the zeta transform and mapping DP subproblems to a hypercube architecture, the authors have provided a blueprint for scaling exact combinatorial searches.

Future research will focus on overcoming the memory bottleneck. Potential avenues include developing "divide-and-conquer" schemes that trade increased computation time for reduced memory footprints, or utilizing high-speed external memory (SSDs) to offload data. Additionally, the parallel zeta transforms developed for ParaREBEL have potential applications in other NP-hard problems, such as graph coloring and Steiner tree problems, suggesting a broader impact on the field of combinatorial optimization.

Summary updated

BibTeX
@misc{chen2014parallel,
  author = {Yetian Chen and Jin Tian and Olga Nikolova and Srinivas Aluru},
  title = {{A Parallel Algorithm for Exact Bayesian Structure Discovery in Bayesian Networks}},
  year = {2014},
  eprint = {1408.1664},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1408.1664},
}
Figure