Abstract
A vast amount of expert and domain knowledge is captured by causal structural priors, yet there has been little research on testing such priors for generalization and data synthesis purposes. We propose a novel model architecture, Causal Structural Hypothesis Testing (CSHTEST), that can use nonparametric, structural causal knowledge and approximate a causal model's functional relationships using deep neural networks. We use these architectures for comparing structural priors, akin to hypothesis testing, using a deliberate (non-random) split of training and testing data. Extensive simulations demonstrate the effectiveness of out-of-distribution generalization error as a proxy for causal structural prior hypothesis testing and offers a statistical baseline for interpreting results. We show that the variational version of the architecture, Causal Structural Variational Hypothesis Testing (CSVHTEST), can improve performance in low SNR regimes. Due to the simplicity and low parameter count of the models, practitioners can test and compare structural prior hypotheses on small datasets and use the priors with the best generalization capacity to synthesize much larger, causally-informed datasets. Finally, we validate our methods on a synthetic pendulum dataset and show a use-case on a real-world trauma surgery ground-level falls dataset.
Introduction
In high-stakes domains like medicine and economics, experts often possess significant domain knowledge regarding the causal structure of a system—for instance, knowing that smoking causes lung cancer. However, the exact functional relationships between these variables are frequently unknown. While standard machine learning models excel at identifying correlations, they often overfit to spurious patterns in training data, leading to failure when the data distribution shifts (Out-of-Distribution, or OOD).
The central challenge addressed in this work is how to verify a hypothesized causal graph using only observational data. Rather than attempting "causal discovery" from scratch, which is often computationally prohibitive, this paper proposes a framework for "hypothesis testing"—comparing a set of expert-provided graphs to determine which one best represents the underlying causal mechanisms.
Methodology
The authors introduce two primary architectures designed to incorporate causal constraints:
- CSHTEST (Causal Structural Hypothesis Testing): This model implements a "Causal Layer" where each variable in the dataset is only permitted to receive inputs from its causal parents, as defined by a hypothesized Directed Acyclic Graph (DAG). This is achieved via a Hadamard product with a structural prior matrix (mask). These masked inputs are then processed by small, independent neural networks ($\eta$) that learn the functional relationships.
- CSVHTEST (Causal Structural Variational Hypothesis Testing): A variational extension that incorporates an encoder-decoder structure. This version is specifically designed to handle "noisy" environments with a low Signal-to-Noise Ratio (SNR).
The Testing Strategy
A key innovation of this framework is the use of a deliberate non-random split for evaluation. Instead of a standard random train/test split, the data is partitioned based on the range of a specific variable (e.g., training on the bottom 75% of values and testing on the top 25%). Because true causal relationships are invariant across distributions, a model with the correct causal structure should generalize significantly better to these unseen OOD regions than a model with an incorrect structure.
Experimental Validation
The proposed methods were validated across three distinct scenarios:
- Simulated DAGs: Synthetic 4-node and 5-node graphs were used to establish statistical baselines for performance degradation when the hypothesized graph is incorrect.
- Sun Pendulum Image Dataset: A physics-based dataset where variables like sun position, pendulum angle, and shadow location follow known physical laws, providing a ground-truth benchmark.
- Medical Trauma Dataset: A real-world dataset involving brain-trauma patients. Hypotheses were tested regarding surgical decisions based on factors like the Glasgow Coma Scale (GCS), age, and blood pressure.
Key Insights and Results
The experiments revealed several critical findings:
- OOD Error as a Proxy: Out-of-distribution generalization error proved to be a highly reliable proxy for structural correctness. On the Pendulum dataset, a standard neural network had an OOD test error of 10.27, whereas CSHTEST with the correct causal prior achieved an error of just 0.26.
- Causal Asymmetry: The authors identified two types of incorrect hypotheses: Leaky (extra, unnecessary links) and Lossy (missing vital links). "Lossy" models performed significantly worse and were easily rejected. "Leaky" models were harder to distinguish as they could still approximate the truth but were more prone to overfitting.
- Hypothesis Ranking: In the medical trauma case, the framework identified that including a path from "Age" to "Co-morbidities" improved generalization, suggesting a more accurate causal representation of surgical decision-making.
- Noise Robustness: CSVHTEST consistently outperformed the deterministic CSHTEST in low SNR (10dB) scenarios, highlighting its utility for noisy real-world data.
Conclusion and Future Work
The CSHTEST and CSVHTEST frameworks offer a computationally efficient way to validate expert knowledge on small datasets. While highly effective at identifying missing causal links, future work is needed to better differentiate between "leaky" models that contain the ground truth plus extra edges. Potential directions include integrating minimum entropy properties and moving toward differential causal inference to automate the discovery of unknown graph components.
Summary updated