Causal discovery for observational sciences using supervised machine learning

Anne Helby Petersen, Joseph Ramsey, Claus Thorn Ekstrøm, Peter SpirtesOpenReview 2024

TL;DR

This paper introduces SLdisco, a novel causal discovery method that leverages supervised machine learning to construct causal models from observational data. SLdisco addresses key limitations of existing methods, particularly their poor performance on small datasets and tendency to favor sparse models, by learning the entire causal structure jointly and offering better control over error trade-offs.

What Problem Does This Paper Address?

In many scientific fields, especially observational sciences like epidemiology, researchers need to understand causal relationships but cannot rely on controlled experiments. They must infer these relationships from observational data using causal discovery algorithms. However, existing algorithms often struggle with:

  • Small Sample Performance: They perform poorly when data is limited due to error propagation from sequential statistical decisions.
  • Sparsity Bias: They tend to favor very sparse causal models, which may not accurately reflect complex real-world mechanisms.
  • Non-Conservative Error Trade-offs: They have a higher rate of falsely claiming no causal relationship (false negatives), which can lead to biased effect estimates when the inferred model is used for causal inference.

This paper aims to develop a causal discovery method that is more robust to small sample sizes, less biased towards sparsity, and more conservative in its claims of non-causality.

Methods

The core innovation is Supervised Learning Discovery (SLdisco). The approach involves:

  1. Simulating Training Data: Generating synthetic datasets with known causal structures (Directed Acyclic Graphs - DAGs) and their corresponding Markov equivalence classes (represented as Completed Partially Directed Acyclic Graphs - CPDAGs). This is done using linear Gaussian data generating mechanisms.
  2. Training a Machine Learning Model: A convolutional neural network is trained to map correlation matrices (derived from the simulated data) to CPDAG adjacency matrices. This allows the model to learn a direct mapping from observational data features to causal structure.
  3. Post-processing for CPDAG Output: The neural network outputs probabilities for each potential edge. Two post-processing methods, "Cut-off" and "Backwards PC-orientation (BPCO)," are used to convert these probabilities into a CPDAG adjacency matrix, with BPCO ensuring the output is a valid CPDAG.

This supervised learning approach is non-sequential, meaning it learns the entire causal structure at once, mitigating error propagation issues. It also aims to be agnostic to graph density and allows for explicit control over the error trade-off between false positives and false negatives.

Datasets

  • Training Data: Synthetically generated data based on linear Gaussian structural equation models with varying graph densities and sample sizes.
  • Evaluation Data:
    • Simulated data (as described above) for extensive testing across various parameters (number of nodes, sample size, graph density).
  • The Metropolit Cohort dataset: A real-world longitudinal epidemiological dataset used for a practical application. A subset of 10 variables was used, and random subsampling was employed to evaluate performance on different sample sizes.

Key Insights and Ideas

  • Supervised Learning for Causal Discovery: Using machine learning to learn a direct mapping from data to causal structures is a novel and promising approach, especially for complex tasks like CPDAG discovery.
  • Addressing Sequential Error Propagation: By learning the entire causal graph jointly, SLdisco avoids the cascading errors inherent in sequential algorithms like PC and GES.
  • Controllable Conservativeness: The probabilistic output of the neural network, combined with post-processing thresholds, allows for explicit control over the trade-off between claiming causal relationships and claiming non-causal relationships, which is crucial for observational sciences.
  • Robustness to Sample Size: SLdisco demonstrates significantly less sensitivity to sample size compared to existing methods, making it more reliable for real-world datasets where sample sizes can vary.
  • Potential for Dense Graphs: Unlike methods biased towards sparsity, SLdisco shows promise in handling denser causal structures.

Key Results

  • Simulation Study:
    • SLdisco consistently produced more conservative causal models than PC and GES, characterized by higher adjacency Negative Predictive Value (NPV) and orientation precision.
  • SLdisco was significantly less sensitive to sample size than PC and GES.
  • SLdisco was better at estimating the correct graph density, with its performance showing less variation across different graph densities compared to GES.
  • For orientation metrics, SLdisco generally outperformed GES, especially for larger numbers of nodes.
  • Real Data Application (Metropolit Cohort):
    • SLdisco produced a more plausible causal model, with fewer erroneously oriented edges against the temporal order of variables, compared to PC and GES.
  • The subsampling experiment on the Metropolit data confirmed SLdisco's superior robustness to sample size, producing more stable results across different subsample sizes compared to PC and GES.

Limitations and Future Work

  • Gaussianity Assumption: The current SLdisco method is trained on linear Gaussian data. While the real-data application showed some robustness, further investigation into performance with non-Gaussian data is needed.
  • Unobserved Confounding: The method, like PC and GES, assumes no unobserved confounders. This is a strong assumption in observational sciences. Future work could extend SLdisco to handle unobserved confounding, potentially by representing causal structures with Partial Ancestral Graphs (PAGs) and modifying the neural network architecture and loss functions.
  • Neural Network Architecture: The current neural network architecture is a "proof of concept." More sophisticated architectures, potentially incorporating permutation equivariance or graph neural networks, could further improve performance.
  • Post-processing: While BPCO ensures a valid CPDAG, it's a greedy method. Future work could explore integrating CPDAG structure requirements directly into the neural network's optimization process (e.g., through custom loss functions) to reduce reliance on post-processing.
  • Computational Cost: Training the neural network can be computationally intensive, though inference time is very fast. Transfer learning and more efficient training schemes could mitigate this.

Summary updated

BibTeX
@misc{petersen2024causal,
  author = {Anne Helby Petersen and Joseph Ramsey and Claus Thorn Ekstrøm and Peter Spirtes},
  title = {{Causal discovery for observational sciences using supervised machine learning}},
  year = {2024},
  url = {https://openreview.net/forum?id=F7Shf7rd2s},
  howpublished = {OpenReview},
}
Figure