A Fast PC Algorithm with Reversed-order Pruning and A Parallelization Strategy

Kai Zhang, Chao Tian, Kun Zhang, Todd Johnson, Xiaoqian JiangarXiv 2021

TL;DR

This paper introduces a significantly faster version of the PC algorithm for causal structure discovery. By reversing the order of conditional independence tests and employing a novel parallelization strategy using tensor computations, they achieve dramatic speedups (up to 825x) without sacrificing accuracy or statistical power, making causal discovery feasible for much larger and denser graphs.

What Problem Does This Paper Address?

Discovering causal relationships from observational data is a crucial but computationally challenging task. The standard PC algorithm, while effective, becomes prohibitively slow for datasets with hundreds or thousands of variables, especially when the underlying causal graph is dense. This is because the PC algorithm performs conditional independence (CI) tests in an exhaustive, forward-searching manner, leading to a factorial time complexity in the worst case. This limits its applicability to real-world, large-scale problems.

Methods

The authors propose two main innovations:

  1. Reverse-Order Pruning PC Algorithm: Instead of starting with a full graph and progressively removing edges based on CI tests with small conditioning sets (increasing order), this new approach starts with a full graph and progressively tests CI with larger conditioning sets (decreasing order). The key insight is that the set of variables needed to establish independence between two nodes is not unique; larger, potentially redundant sets can still correctly identify independence without sacrificing accuracy, but can lead to earlier pruning of edges. This "reverse-order pruning" significantly reduces the number of CI tests needed.
  2. Parallelization Strategy and GPU Acceleration: To further accelerate the process, they introduce a parallel computing strategy for statistical independence tests. This involves leveraging tensor computations to efficiently calculate partial correlation coefficients in batches. This parallelization can be further accelerated using GPUs, leading to substantial speedups.

Datasets

The authors evaluate their algorithms using simulated data generated from Bayesian causal graphs of varying sizes (from 15 to 100 nodes) and densities. They also evaluate their method on a real-world single-cell RNA sequencing dataset from Alzheimer Disease patients, using 171 known AD-related genes.

Key Insights and Ideas

  • Redundancy in Conditioning Sets: The core idea is that the set of variables required to establish conditional independence between two nodes isn't unique. Including "redundant" variables in the conditioning set, as long as they don't introduce new paths or colliders, doesn't harm accuracy but can lead to earlier identification of independence.
  • Reverse Order Advantage: By starting with larger conditioning sets, the algorithm can potentially find independence relationships much earlier in the process, leading to significant pruning of the graph and fewer subsequent tests.
  • Tensor Computations for Parallelism: Efficiently computing multiple partial correlations simultaneously using tensor operations is key to achieving massive parallel speedups.

Key Results

  • Single-threaded speedup: The reverse-order pruning PC algorithm achieved a 6-fold speedup compared to the standard PC algorithm on a dense 95-node graph.
  • Parallel speedup: The parallelized version achieved an impressive 825-fold speedup on the same 95-node graph.
  • Accuracy: The proposed algorithms maintain accuracy, with experimental results showing they perform slightly better than the conventional PC algorithm in terms of True Positive Rate (TPR), False Positive Rate (FPR), and Structural Hamming Distance (SHD).
  • Statistical Power: Theoretical analysis and experiments suggest that the reverse-order pruning does not induce statistical power loss under mild graph and data dimensionality assumptions.
  • Real-world performance: On a real single-cell RNA sequencing dataset, the PC-reverse algorithm showed a 21.6-fold speedup compared to the standard PC algorithm.

Limitations and Future Work

  • Assumptions: The theoretical guarantees of consistency and statistical power rely on standard assumptions like the Causal Markov condition, faithfulness, and certain conditions on data dimensionality and partial correlation magnitudes. The paper notes that real-world datasets might be affected by other factors like data noise.
  • GPU Acceleration: While the paper proposes GPU acceleration, the experimental results for the GPU version are not explicitly detailed in terms of speedup compared to the CPU parallel version, though they are grouped together in the figures.
  • Future Work: The paper focuses on the PC algorithm. Future work could explore applying these optimizations to other constraint-based causal discovery algorithms. The authors also suggest further simulation experiments to analyze the loss of statistical power in specific cases.

Summary updated

BibTeX
@misc{zhang2021fast,
  author = {Kai Zhang and Chao Tian and Kun Zhang and Todd Johnson and Xiaoqian Jiang},
  title = {{A Fast PC Algorithm with Reversed-order Pruning and A Parallelization Strategy}},
  year = {2021},
  eprint = {2109.04626},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2109.04626},
}
Figure