ParaLiNGAM: Parallel causal structure learning for linear non-Gaussian acyclic models

Amirhossein Shahbazinia, Saber Salehkaleybar, Matin Hashemi

TL;DR

ParaLiNGAM is a new parallel algorithm that drastically accelerates causal structure discovery in Linear non-Gaussian Acyclic Models (LiNGAM). By leveraging GPU parallelization, a novel early-exit thresholding mechanism, and efficient messaging between processing units, it achieves up to a 4600x speedup over traditional sequential methods, making high-dimensional causal discovery practical for the first time.

What Problem Does This Paper Address?

Identifying "who causes what" from observational data is a fundamental challenge in science, from genetics to neuroscience. While standard algorithms can often identify a set of possible causal graphs (a Markov Equivalence Class), the DirectLiNGAM algorithm is special because it can uniquely identify the true underlying Directed Acyclic Graph (DAG), provided the data is linear and the noise is non-Gaussian.

However, DirectLiNGAM has a major bottleneck: it is computationally expensive. Its runtime grows cubically ($O(p^3)$) with the number of variables ($p$). For a dataset with just 770 variables, the sequential algorithm takes over three days to run. This makes it unusable for modern high-dimensional datasets like gene regulatory networks or brain connectivity maps. ParaLiNGAM aims to break this computational wall.

An example of a Directed Acyclic Graph (DAG) representing causal relationships.

Methods

The authors introduce ParaLiNGAM, which parallelizes the most intensive part of the process: finding the "root" variable (the one most independent of others) in each iteration. Key technical innovations include:

  1. Parallelized FindRoot: Instead of checking variables one by one, ParaLiNGAM assigns each variable to a "worker" (a GPU block) to perform comparisons in parallel.
  2. Threshold Mechanism: The algorithm sets an upper limit on the dependency score. If a worker’s score exceeds this threshold, it stops calculating immediately because that variable cannot be the root. This "early exit" can save up to 93% of the total comparisons.
  3. Messaging Mechanism: When comparing variable $X$ to $Y$, much of the math is identical to comparing $Y$ to $X$. ParaLiNGAM uses a messaging system where workers share these results, effectively halving the workload.
  4. Mathematical Simplifications: The authors derived new formulations to update covariance matrices and residuals iteratively. This avoids re-processing the entire dataset in every step, significantly reducing memory access and computation time.
The procedure of one iteration in ParaLiNGAM, showing the Compare, Message Passing, and Scheduler steps.

Datasets

The algorithm was evaluated on both synthetic and real-world benchmarks:

  • Real-World: Seven genome-scale metabolic networks from the BiGG Models database (e.g., E. coli Core, iJR904, iML1515), ranging from 85 to over 2300 variables.
  • Synthetic: Randomly generated sparse and dense graphs with variables ($p$) ranging from 100 to 1000 and sample sizes ($n$) from 1024 to 8192.

Key Insights and Ideas

  • Early Termination is Key: You don't need to know exactly how dependent a variable is if you already know it's "too dependent" to be the root. This insight allows for massive pruning of the search space.
  • GPU-Aware Scheduling: To avoid the overhead of constant communication between the CPU (host) and GPU (device), the authors moved parts of the scheduling logic directly into the GPU kernels.
  • Symmetry Exploitation: Causal discovery often involves redundant pairwise tests. By treating these tests as a shared resource rather than independent tasks, the algorithm achieves a near 2x speedup from messaging alone.

Key Results

The performance gains are transformative:

  • Massive Speedup: On the iJR904 dataset (770 variables), the serial version took ~3.3 days, while ParaLiNGAM finished in just 91 seconds (a 3152x speedup).
  • Scalability: In synthetic tests with 1000 variables, ParaLiNGAM achieved a peak speedup of 4657x.
  • Efficiency: ParaLiNGAM outperformed other baseline parallel implementations (like "Block Worker" or "Thread Worker") by factors of 2x to 16x, proving that their specific optimizations (thresholding and messaging) are superior to simple parallelization.

Limitations and Future Work

The paper focuses strictly on the LiNGAM framework, which assumes:

  1. Linear relationships between variables.
  2. No latent (hidden) confounders.
  3. Non-Gaussian noise distributions.

If the underlying system is highly non-linear or contains significant hidden variables, the accuracy of the model may degrade. The authors suggest that future work could involve extending these parallelization techniques to non-linear causal models or algorithms that handle latent variables, which are even more computationally demanding.

Summary updated

BibTeX
@article{shahbazinia2023paralingam,
  author = {Amirhossein Shahbazinia and Saber Salehkaleybar and Matin Hashemi},
  title = {{ParaLiNGAM: Parallel causal structure learning for linear non-Gaussian acyclic models}},
  journal = {J. Parallel Distributed Comput.},
  year = {2023},
  url = {https://openreview.net/forum?id=ONF6S_wOCel},
}
Figure