Abstract
Given independent samples generated from the joint distribution $p(\mathbf{x},\mathbf{y},\mathbf{z})$, we study the problem of Conditional Independence (CI-Testing), i.e., whether the joint equals the CI distribution $p^{CI}(\mathbf{x},\mathbf{y},\mathbf{z})= p(\mathbf{z}) p(\mathbf{y}|\mathbf{z})p(\mathbf{x}|\mathbf{z})$ or not. We cast this problem under the purview of the proposed, provable meta-algorithm, "Mimic and Classify", which is realized in two-steps: (a) Mimic the CI distribution close enough to recover the support, and (b) Classify to distinguish the joint and the CI distribution. Thus, as long as we have a good generative model and a good classifier, we potentially have a sound CI Tester. With this modular paradigm, CI Testing becomes amiable to be handled by state-of-the-art, both generative and classification methods from the modern advances in Deep Learning, which in general can handle issues related to curse of dimensionality and operation in small sample regime. We show intensive numerical experiments on synthetic and real datasets where new mimic methods such conditional GANs, Regression with Neural Nets, outperform the current best CI Testing performance in the literature. Our theoretical results provide analysis on the estimation of null distribution as well as allow for general measures, i.e., when either some of the random variables are discrete and some are continuous or when one or more of them are discrete-continuous mixtures.
Introduction
Conditional Independence (CI) testing—determining if $X$ and $Y$ are independent given $Z$ ($X \perp Y | Z$)—is a fundamental component of causal discovery and statistical inference. Despite its importance, traditional CI tests often fail in modern data environments characterized by high dimensionality, small sample sizes, and mixed data types (continuous and discrete).
Traditional methods, such as the Kernel Conditional Independence Test (KCIT), suffer from the "curse of dimensionality" when the conditioning set $Z$ is large. Furthermore, many existing approaches lack the theoretical flexibility to handle complex data distributions or provide provable performance bounds. This paper introduces "Mimic and Classify," a modular meta-algorithm that leverages advancements in deep learning to overcome these hurdles.
Methodology: The Mimic and Classify Framework
The proposed framework transforms the statistical problem of CI testing into a binary classification task. The process consists of two primary stages:
- Mimic Step: The goal is to generate a synthetic dataset $D'$ that follows the conditionally independent distribution $p(z)p(y|z)p(x|z)$ while sharing the same support as the true joint distribution $p(x, y, z)$. The authors propose two implementations:
- MIMIFY-CGAN: Utilizes Conditional Generative Adversarial Networks to learn the conditional distribution and generate synthetic samples.
- MIMIFY-REG: Employs high-performance regression models (e.g., XGBoost or Neural Networks) to predict $Y$ from $Z$, adding appropriate noise to simulate the conditional distribution.
- Classify Step: A binary classifier is trained to distinguish between the original samples (labeled 0) and the mimicked samples (labeled 1). If the classifier can reliably tell the two apart, the null hypothesis of conditional independence is rejected.
A key theoretical contribution of this work is the proof that the "mimic" step does not need to perfectly replicate the distribution; recovering the support is sufficient for a sound test. This modularity allows the framework to incorporate future improvements in generative modeling and classification.
Experimental Evaluation
The authors evaluated the "Mimic and Classify" approach against state-of-the-art baselines, including KCIT, Randomized Conditional Independence Test (RCIT), and Cluster-based Conditional Independence Test (CCIT), across synthetic and real-world datasets.
High-Dimensional Scaling
Using synthetic data with post-nonlinear noise, the researchers tested the algorithms' performance as the dimensionality of the conditioning set $Z$ increased up to 300. While traditional methods like KCIT saw significant performance degradation or became computationally infeasible at scale, MIMIFY-CGAN maintained high ROC-AUC scores, demonstrating superior scalability.
Real-World Benchmarks
The framework was also tested on several biological datasets:
- Flow-Cytometry Data: A dataset of protein expression levels. MIMIFY-REG achieved an ROC-AUC of 0.7638, outperforming KCIT (0.7328).
- DREAM Dataset: A gene regulatory network benchmark. MIMIFY-REG again led the field with an ROC-AUC of 0.61645.
Conclusion and Future Work
The "Mimic and Classify" meta-algorithm provides a robust, scalable, and theoretically grounded approach to CI testing. By reframing the problem as classification, it effectively utilizes modern deep learning tools to handle high-dimensional and mixed-measure data.
While the computational cost of training generative models for each test is higher than analytical methods, the gains in accuracy and scalability are substantial. Future research will focus on integrating more efficient generative models and applying this framework to full causal discovery pipelines to build more accurate knowledge graphs from complex data.
Summary updated