Causal Structural Hypothesis Testing and Data Generation Models

Sunay Gajanan Bhat, Omead Pooladzandi, Jeffrey Jiang, Gregory Pottie

TL;DR

This paper introduces Causal Structural Hypothesis Testing (CSHTEST) and its variational counterpart (CSVHTEST), novel architectures that leverage expert-defined causal structures to test hypotheses about real-world systems. By evaluating generalization performance on out-of-distribution data, these models provide a principled way to compare competing causal models and generate more reliable synthetic data.

What Problem Does This Paper Address?

In many scientific domains, we possess prior knowledge about causal relationships, often in the form of structural causal models (SCMs) represented as Directed Acyclic Graphs (DAGs). However, rigorously testing these hypothesized structures, especially for their ability to generalize beyond the training data and generate realistic synthetic data, has been a significant challenge. Traditional deep learning models often struggle with out-of-distribution generalization, and existing causal discovery methods can be computationally intensive or require extensive data. This paper aims to bridge this gap by providing a framework to systematically test and compare structural causal hypotheses, using generalization performance as a key metric.

Methods

The core of the proposed solution lies in the Causal Structural Hypothesis Testing (CSHTEST) architecture. This model takes a structural causal prior (a DAG) as input and uses deep neural networks (MLPs) to learn the functional relationships between variables. Crucially, CSHTEST is trained to minimize reconstruction error on a deliberately split dataset, where training and testing data come from different distributions. This out-of-distribution (OOD) generalization error serves as a proxy for evaluating the validity of the hypothesized causal structure.

The authors also introduce Causal Structural Variational Hypothesis Testing (CSVHTEST), an extension that incorporates variational autoencoder (VAE) principles. This allows for more robust performance in low signal-to-noise ratio (SNR) environments and enables the generation of more diverse synthetic data by introducing sampling capabilities.

A key methodological innovation is the use of deliberate, non-random train/test splits. Instead of random splits, the data is split based on quantiles of a specific feature, creating distinct training and testing distributions to better assess generalization. The paper also defines positive and negative structural Hamming distances to quantify how "leaky" (extra edges) or "lossy" (missing edges) a hypothesized causal structure is compared to the ground truth.

Datasets

The paper evaluates its methods on three types of datasets:

  • Simulated DAGs: The authors generate synthetic datasets from various DAGs of different sizes and complexities to rigorously test their framework under controlled conditions where the ground truth causal structure is known.
  • Synthetic Pendulum Dataset: A physics-based tabular dataset is generated to mimic real-world scenarios where causal relationships are well-defined. This dataset is derived from sweeping sun positions and pendulum angles.
  • Real-world Medical Trauma Dataset: Data from ground-level fall trauma patients is used to predict surgery decisions. This dataset is particularly interesting as the ground truth causal structure is unknown, requiring domain expertise to formulate hypotheses.

Key Insights and Ideas

  • OOD generalization as a proxy for causal hypothesis testing: The paper demonstrates that the out-of-distribution generalization error of a model trained with a specific causal prior is a strong indicator of how well that prior reflects the true underlying causal structure.
  • Asymmetry in causal hypotheses: The distinction between "leaky" and "lossy" hypotheses is crucial. Lossy hypotheses (missing edges) are generally easier to detect and lead to worse performance, while leaky hypotheses (extra edges) can sometimes perform well but are more prone to overfitting.
  • Value of structural priors in low-data regimes: The CSHTEST and CSVHTEST models show significantly better generalization performance compared to standard deep learning models (NNs and VAEs) when dealing with smaller datasets, highlighting the benefit of incorporating causal knowledge.
  • Variational models for noisy environments: CSVHTEST proves to be more robust than CSHTEST in low SNR scenarios, suggesting that the added variational component helps in disentangling signal from noise.

Key Results

  • Improved OOD generalization: CSHTEST and CSVHTEST consistently outperformed similarly sized standard Neural Networks (NNs) and Variational Autoencoders (VAEs) on OOD test data across various experiments, including simulated DAGs and the pendulum dataset. For instance, in the pendulum dataset with a random split, CSHTEST achieved a test loss of 0.03, while a standard NN had 0.04, but on a deliberate split, CSHTEST achieved 0.26 compared to NN's 16.97.
  • Effective hypothesis discrimination: The method successfully distinguished between correct and incorrect causal hypotheses, particularly in identifying lossy hypotheses. For example, in the pendulum experiment, hypotheses with missing edges (lossy) showed significantly higher OOD test errors.
  • Medical dataset application: On the trauma surgery dataset, the proposed models were used to compare two hypothesized causal structures. The results suggested that one hypothesis, which included a path from "Age" to "Co-Morbidities," generalized better, indicating it might be a more accurate causal model.
  • Simulated DAG performance: Probability tables generated from extensive simulations showed clear jumps in performance as Hamming distances increased, confirming the sensitivity of the OOD error to structural differences.

Limitations and Future Work

  • Hyperparameter sensitivity: The authors acknowledge that the performance of the $\eta$ neural networks can be influenced by hyperparameter choices, and the "goodness" of an SCM is primarily assessed by the average loss over multiple random initializations.
  • Lossy vs. Leaky distinction: While the method can distinguish lossy hypotheses, further research is needed to better differentiate between various leaky causal models, especially those with zero net Hamming distance.
  • Extending to full causal discovery: The current work focuses on hypothesis testing given a prior. Future work could explore extending CSHTEST and CSVHTEST to automate full or partial causal discovery by integrating recent advancements in differential causal inference and binary sampling.
  • Optimizer investigation: The paper notes that the loss space can be "not very well-behaved" due to the input structure, leading to inconsistencies with different optimizers. While PSGD showed promise, further research into optimizer performance for causally constrained architectures is suggested.

Summary updated

BibTeX
@inproceedings{bhat2022causal,
  author = {Sunay Gajanan Bhat and Omead Pooladzandi and Jeffrey Jiang and Gregory Pottie},
  title = {{Causal Structural Hypothesis Testing and Data Generation Models}},
  booktitle = {SyntheticData4ML @ NeurIPS},
  year = {2022},
  url = {https://openreview.net/forum?id=diB-RsDQJeG},
}
Figure