NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Conditional Independence Testing using Generative Adversarial Networks

Alexis Bellot, Mihaela van der Schaar

Conditional independence is a cornerstone of causal inference and statistics. If we want to know if a specific genetic mutation ($X$) causes a disease ($Y$), we have to account for "confounders" ($Z$)—other factors like age or environment that might influence both. We ask: is $X$ independent of $Y$ given $Z$?

While this sounds simple, it becomes a nightmare in high-dimensional settings. As the number of confounders grows, traditional statistical tests break down, seeing patterns where none exist or missing real connections entirely. The paper "Conditional Independence Testing using Generative Adversarial Networks" introduces a clever way to solve this using the power of deep generative models.

TL;DR

The authors introduce the Generative Conditional Independence Test (GCIT), which uses Generative Adversarial Networks (GANs) to simulate how data would look if two variables were truly independent. By comparing real-world data against these "synthetic null" samples, GCIT achieves significantly higher statistical power in high-dimensional settings than traditional kernel-based or permutation tests.

What Problem Does This Paper Address?

The core challenge is testing the hypothesis $H_0: X \perp Y | Z$. In plain English: "Once we know $Z$, does knowing $X$ tell us anything new about $Y$?"

Existing methods struggle when $Z$ is high-dimensional (e.g., hundreds of genetic markers):

  1. Kernel-based tests (like KCIT) suffer from the "curse of dimensionality"; their ability to distinguish between hypotheses vanishes as the number of variables increases.
  2. Permutation tests try to shuffle the data to break the link between $X$ and $Y$, but finding "similar" samples to swap in high-dimensional space is computationally expensive and often inaccurate.

The authors identify a critical gap: we need a test that makes no assumptions about the shape of the data distribution and remains "sharp" even when dealing with complex, high-dimensional confounders.

Methods

The authors propose GCIT, which leverages the generative prowess of GANs to construct a robust test statistic.

GCIT Architecture and Testing Pipeline
  1. The Generative Null: Under the null hypothesis ($H_0$), $X$ only depends on $Z$, not $Y$. GCIT trains a GAN to learn the conditional distribution $P(X|Z)$.
  2. Sampling: Once trained, the generator creates synthetic versions of $X$ (denoted as $\tilde{X}$) based on the observed $Z$. Because the generator doesn't "see" $Y$, these synthetic samples are guaranteed to be independent of $Y$ given $Z$.
  3. The Statistic: The framework computes a dependency measure (like distance correlation) between the real $X$ and $Y$, and compares it to the dependency between the synthetic $\tilde{X}$ and $Y$. If the real dependency is much stronger than the synthetic ones, the null hypothesis is rejected.
  4. The "Power Boost": Standard GANs just try to mimic the distribution. GCIT adds a novel Information Network. This component encourages the generator to produce samples that have low mutual information with the original $X$. This "pushes" the synthetic samples away from the real ones in a way that makes any actual dependence on $Y$ stand out more clearly, maximizing the test's power to detect a real effect.

Datasets

The researchers evaluated GCIT using both controlled simulations and a complex real-world biological dataset:

  • Synthetic Simulations: They created three scenarios—Multivariate Gaussian (linear), Multivariate Laplace (heavy-tailed), and "Arbitrary" (complex non-linear functions). These tested how the model handles increasing dimensions of $Z$.
  • Genetic Data (CCLE): The Cancer Cell Line Encyclopedia dataset. They focused on the drug PLX4720 and 466 genetic mutations across 474 cancer cell lines to identify which mutations truly influence drug response.

Key Insights and Ideas

  • The GAN as a Null Model: Instead of using complex math to approximate a distribution, GCIT builds a machine that can sample from it. This shifts the problem from "statistical estimation" to "generative modeling."
  • Provable Error Control: The authors provide a theoretical bound showing that the "Type I error" (false positives) is directly linked to how well the GAN converges. If you have a good generative model, you have a valid statistical test.
  • The Power/Error Trade-off: By introducing a hyperparameter $\lambda$ in the Information Network, users can tune the test. A higher $\lambda$ makes the test more sensitive (higher power) but risks slightly more false positives if the generative model isn't perfect.

Key Results

  • Superior Power in High Dimensions: In synthetic tests, as the dimension of $Z$ increased toward 500, traditional tests like KCIT and CRT saw their power drop toward zero. GCIT maintained high power, significantly outperforming all competitors in non-linear scenarios.
Power vs. Dimension of Z
  • Computational Efficiency: GCIT scales much better than permutation-based methods (CCIT). For 1,000 samples and 500 dimensions, GCIT took about 60 seconds, while the best-performing benchmark took over 600 seconds.
  • Biological Discovery: In the genetic study, GCIT identified mutations (like MAP3K5) as significant that were missed by standard linear models (Elastic Net) and other independence tests. These findings were later supported by independent biological literature, suggesting GCIT can find "hidden" non-linear drivers of disease.

Limitations and Future Work

  • GAN Training Stability: Like all GAN-based methods, GCIT's performance depends on the stability of the adversarial training. If the GAN fails to converge or suffers from mode collapse, the test results could be unreliable.
  • Hyperparameter Selection: Choosing the right $\lambda$ and the specific test statistic $\rho$ (e.g., distance correlation vs. MMD) still requires some expert intuition, as there is no "ground truth" in real-world testing to cross-validate against.
  • Future Directions: The authors suggest that this framework could be adapted using other generative architectures, such as Variational Autoencoders (VAEs) or Normalizing Flows, which might offer more stable training for certain types of data.

Summary updated

BibTeX
@inproceedings{bellot2019conditional,
  author = {Alexis Bellot and Mihaela van der Schaar},
  title = {{Conditional Independence Testing using Generative Adversarial Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
}
Figure