A Fast PC Algorithm for High Dimensional Causal Discovery with Multi-Core PCs

Thuc Duy Le, Tao Hoang, Jiuyong Li, Lin Liu, Huawen Liu, Shu Hu

Abstract

Discovering causal relationships from observational data is a crucial problem and it has applications in many research areas. The PC algorithm is the state-of-the-art constraint based method for causal discovery. However, runtime of the PC algorithm, in the worst-case, is exponential to the number of nodes (variables), and thus it is inefficient when being applied to high dimensional data, e.g., gene expression datasets. On another note, the advancement of computer hardware in the last decade has resulted in the widespread availability of multi-core personal computers. There is a significant motivation for designing a parallelized PC algorithm that is suitable for personal computers and does not require end users' parallel computing knowledge beyond their competency in using the PC algorithm. In this paper, we develop parallel-PC, a fast and memory efficient PC algorithm using the parallel computing technique. We apply our method to a range of synthetic and real-world high dimensional datasets. Experimental results on a dataset from the DREAM 5 challenge show that the original PC algorithm could not produce any results after running more than 24 hours; meanwhile, our parallel-PC algorithm managed to finish within around 12 hours with a 4-core CPU computer, and less than six hours with a 8-core CPU computer. Furthermore, we integrate parallel-PC into a causal inference method for inferring miRNA-mRNA regulatory relationships. The experimental results show that parallel-PC helps improve both the efficiency and accuracy of the causal inference algorithm.

Introduction

In fields such as genomics, identifying causal relationships—rather than simple associations—is paramount. Researchers seek to understand if Gene A directly influences Gene B to uncover the underlying mechanisms of disease and biological function. The PC algorithm is widely regarded as the gold standard for inferring these causal structures from observational data. However, it faces two significant hurdles: extreme computational complexity in high-dimensional settings and a lack of stability due to variable order dependency.

As datasets grow to include thousands of variables, the exponential growth in runtime often leads to days of computation or system crashes. Moreover, the sensitivity of the final causal graph to the input order of variables undermines the reliability of scientific discoveries. This paper introduces parallel-PC, a solution designed to bring high-performance causal discovery to standard multi-core personal computers, eliminating the need for specialized cluster computing knowledge.

Methodology

Parallel-PC is built upon the "stable-PC" variant, which addresses the order-dependency problem. In stable-PC, the graph is updated only at the end of each "level" (determined by the size of the conditioning set), rather than after every individual test. This architectural change ensures that all Conditional Independence (CI) tests at a specific level are independent of one another.

The authors leveraged this independence to distribute CI tests across multiple CPU cores simultaneously. Key technical features of parallel-PC include:

  • Load Balancing: CI tests are grouped by edge and distributed evenly across cores to minimize idle time and redundant calculations.
  • Memory Efficiency: A specialized mode estimates the number of edges to be processed and manages memory allocation dynamically. This prevents the memory exhaustion common when processing massive biological datasets on consumer-grade hardware.
  • Integration: The algorithm was integrated into the IDA (Intervention effect when DAG is absent) framework, creating an "efficient-IDA" method that enhances both the speed and accuracy of causal inference.

Experimental Setup and Datasets

The researchers evaluated parallel-PC using a variety of synthetic and real-world high-dimensional gene expression datasets. These ranged from standard miRNA-mRNA regulatory network datasets to massive benchmark datasets from the DREAM 5 challenge.

Table 1: Characteristics of the high-dimensional datasets and baseline stable-PC runtimes.

As shown in Table 1, the datasets vary significantly in scale, with the S. cerevisiae dataset containing over 5,000 variables. The baseline stable-PC runtimes illustrate the significant computational burden that parallel-PC aims to alleviate.

Results and Discussion

The experimental results demonstrate that parallel-PC provides massive speedups while maintaining the stability of the results.

Figure 1: Runtime comparison between stable-PC and parallel-PC across various datasets and CPU core counts.

Key performance highlights include:

  • Massive Speedups: On the DREAM5-Insilico dataset, the original PC algorithm failed to produce results within 24 hours. In contrast, parallel-PC finished in approximately 12 hours on 4 cores and under 6 hours on 8 cores.
  • Linear Scalability: The algorithm showed near-linear performance gains as more cores were added, particularly on larger datasets where the computational load outweighs synchronization overhead.
  • Memory Savings: The memory-efficient option reduced peak memory usage by approximately 50%. For the S. cerevisiae dataset, this allowed the algorithm to complete on a standard laptop where the non-efficient version would have failed.
  • Biological Validation: In miRNA-mRNA studies, the "efficient-IDA" framework consistently identified more experimentally confirmed regulatory relationships than standard IDA, demonstrating that increased efficiency can lead to more comprehensive and accurate biological insights.

Conclusion and Future Work

Parallel-PC successfully bridges the gap between high-dimensional causal discovery and the accessibility of personal computing. By transforming a sequential bottleneck into a parallel opportunity, the authors have made it possible to analyze complex datasets that were previously considered intractable.

Future work will address the challenge of heterogeneous test times by implementing smarter scheduling schemes that account for the computational "weight" of different CI tests. Additionally, the authors plan to extend this parallelization strategy to other causal discovery algorithms, such as FCI, to better handle latent variables in complex systems.

Summary updated

BibTeX
@article{le2019fast,
  author = {Thuc Duy Le and Tao Hoang and Jiuyong Li and Lin Liu and Huawen Liu and Shu Hu},
  title = {{A Fast PC Algorithm for High Dimensional Causal Discovery with Multi-Core PCs}},
  journal = {IEEE ACM Trans. Comput. Biol. Bioinform.},
  year = {2019},
  url = {https://openreview.net/forum?id=for9u6l7oo_},
}
Figure