Abstract
Controlling false positives (Type I errors) through statistical hypothesis testing is a foundation of modern scientific data analysis. Existing causal structure discovery algorithms either do not provide Type I error control or cannot scale to the size of modern scientific datasets. We consider a variant of the causal discovery problem with two sets of nodes, where the only edges of interest form a bipartite causal subgraph between the sets. We develop Scalable Causal Structure Learning (SCSL), a method for causal structure discovery on bipartite subgraphs that provides Type I error control. SCSL recasts the discovery problem as a simultaneous hypothesis testing problem and uses discrete optimization over the set of possible confounders to obtain an upper bound on the test statistic for each edge. Semi-synthetic simulations demonstrate that SCSL scales to handle graphs with hundreds of nodes while maintaining error control and good power. We demonstrate the practical applicability of the method by applying it to a cancer dataset to reveal connections between somatic gene mutations and metastases to different tissues.
Introduction
In fields ranging from genomics to social science, identifying whether a relationship is truly causal or merely correlational is a fundamental challenge. This "causal discovery" problem typically relies on testing for conditional independence: if a relationship between $X$ and $Y$ persists after accounting for all potential confounders, a causal link is likely. However, modern scientific datasets present two major hurdles: the combinatorial explosion of possible confounder sets and the lack of formal Type I error control in existing scalable algorithms.
Scalable Causal Structure Learning (SCSL) addresses these issues by focusing on bipartite causal subgraphs—where variables are split into two sets with a known temporal or logical direction (e.g., mutations preceding metastases)—and providing frequentist statistical guarantees even at scale.
Methodology
SCSL introduces two primary innovations to make large-scale causal testing feasible: amortized modeling and discrete optimization for p-value calculation.
Amortized Predictive Modeling
Traditionally, testing for conditional independence requires training a new model for every possible subset of confounders, which is computationally prohibitive. SCSL instead utilizes an "amortized" machine learning model. By applying a masking technique during training—randomly hiding different inputs—the model learns to simulate any conditioning set at test time simply by toggling input masks. This allows a single trained model to serve as a "Swiss Army Knife" for all potential independence tests.
P-value Optimization via Gumbel-Softmax
To ensure Type I error control, the algorithm must find the "worst-case" scenario: the specific set of confounders that makes the relationship between $X$ and $Y$ appear weakest. Because selecting a subset is a discrete problem, SCSL employs the Gumbel-Softmax trick to create a continuous relaxation. This allows the use of gradient descent to efficiently search for the most conservative p-value.
The core statistical engine is the Generalized Covariance Measure (GCM), which enables the use of non-linear, "black-box" models (like neural networks) to test for independence without making restrictive assumptions about data distributions.
Experimental Results
The researchers evaluated SCSL using both semi-synthetic simulations and the MSK-IMPACT Cancer Dataset, which tracks 234 gene mutations and 23 metastasis sites across over 22,000 patients.
- Error Control and Scalability: Unlike existing methods like PC-p, which can inflate false positive rates by up to 8x, SCSL consistently maintained Type I error control at the target level (e.g., $\alpha = 0.05$). It successfully scaled to graphs with hundreds of nodes, completing in hours tasks that would take other frequentist methods weeks.
- Biological Discovery: In the MSK-IMPACT dataset, SCSL identified six high-confidence causal links. Notably, it confirmed a causal link between CDH1 mutations and lung metastasis in breast cancer—a finding supported by biological literature but often missed by standard association tests.
Conclusion and Future Work
SCSL demonstrates that it is possible to achieve rigorous statistical guarantees in causal discovery at a scale relevant to modern science. While the current method is conservative due to its "worst-case" p-value approach, future work may incorporate Empirical Bayes methods to improve power. Additionally, extending the framework beyond bipartite subgraphs to general directed acyclic graphs (DAGs) remains an active area for research.
Summary updated