KnockoffGAN: Generating Knockoffs for Feature Selection using Generative Adversarial Networks

James Jordon, Jinsung Yoon, Mihaela van der SchaarICLR 2019

TL;DR

KnockoffGAN leverages the power of Generative Adversarial Networks (GANs) to perform feature selection without making strict assumptions about the underlying data distribution. By generating "knockoff" variables that mimic real features, it provides a robust way to discover relevant factors while strictly controlling the False Discovery Rate (FDR). This approach outperforms traditional methods on complex, non-Gaussian datasets.

What Problem Does This Paper Address?

In fields like genomics or medicine, identifying which features (e.g., specific genes or lifestyle habits) actually drive an outcome (e.g., a disease) is a massive challenge. Researchers use feature selection to narrow the field, but they face two major hurdles:

  1. False Discovery Rate (FDR) Control: It is crucial to ensure that most of the selected features are actually relevant, rather than just statistical noise.
  2. Distributional Assumptions: The state-of-the-art "Knockoff" framework is excellent for controlling FDR, but it typically requires knowing the exact probability distribution of the features. In the real world, data is rarely a perfect Gaussian distribution, and assuming it is can lead to poor results or invalid discoveries.

The authors of KnockoffGAN aim to bridge this gap by creating a "model-free" way to generate these knockoffs using deep learning.

Methods

The core idea of the Knockoff framework is to create a synthetic version of every feature—a "knockoff"—that is just as correlated with all other features as the original but is independent of the outcome. By comparing how well a predictive model performs with the real feature versus its knockoff, we can statistically prove which features are truly relevant.

KnockoffGAN uses a specialized GAN architecture consisting of four interacting networks:

  • The Generator ($G$): Learns to produce knockoff features $\tilde{X}$ that are indistinguishable from the real features $X$ in terms of their joint distribution.
  • The Swap Discriminator ($D$): This is the core innovation. Instead of just guessing "real vs. fake," this discriminator looks at a set of features where some have been swapped with their knockoffs. It tries to identify which specific variables were swapped. If the discriminator cannot tell, the generator has successfully satisfied the "swap condition" required for valid knockoffs.
  • MINE (Mutual Information Neural Estimation): To maximize the "power" of the test, knockoffs should be as independent from their original counterparts as possible. MINE acts as a power network that penalizes the generator if the knockoffs are too similar to the originals.
  • WGAN-GP Regularizer: A stability network that ensures the marginal distributions of the knockoffs match the real data.
KnockoffGAN Architecture

To handle high-dimensional data, the authors introduce a "hinting" mechanism, providing the discriminator with partial information about the swaps to guide its learning process during training.

Datasets

The authors evaluated KnockoffGAN across a wide range of scenarios:

  • Synthetic Data: They tested various distributions including AR(1) Gaussian, i.i.d. Gaussian, Uniform, Dirichlet, and several Gaussian Mixture Models (GMMs). These were used to compare against the original "Gaussian Knockoff" method.
  • Real-World Biobank Data: A large-scale dataset containing 86,082 patients and 387 features. The goal was to identify features relevant to Cardiovascular Disease (CVD) and Diabetes, using PubMed literature to validate the findings.

Key Insights and Ideas

  • The "Swap" is the Secret Sauce: By re-framing the GAN discriminator's task from "real/fake" to "which one is swapped," the authors directly optimize for the mathematical definition of a knockoff.
  • Independence Equals Power: If a knockoff is an exact copy of the original, it is useless for testing. By using MINE to minimize mutual information, the authors ensure the knockoffs are "different enough" to provide high statistical power (the ability to actually find the true features).
  • Breaking the Gaussian Shackles: Traditional knockoff methods fall apart when data is multi-modal or skewed. KnockoffGAN’s ability to learn these complex structures from the data itself makes it far more versatile for real-world biological and social science data.

Key Results

  • Gaussian Parity: In settings where data was actually Gaussian, KnockoffGAN performed just as well as the original framework, proving that the deep learning approach doesn't lose efficacy by being more flexible.
  • Non-Gaussian Superiority: On Uniform, Dirichlet, and Mixture Model distributions, KnockoffGAN achieved a significantly higher True Positive Rate (TPR) while maintaining the target 10% FDR.
Performance comparison showing TPR and FDR control
  • Biobank Success: On the real-world dataset, the original Gaussian-based method failed to select any features for CVD, even when the FDR threshold was loosened to 20%. In contrast, KnockoffGAN identified 9 relevant features (like Age, Sex, and Smoking) at a strict 5% FDR, all of which were confirmed by existing medical literature.

Limitations and Future Work

  • Computational Complexity: Training four interacting neural networks is more computationally intensive than traditional statistical methods, though the authors mitigated this using minibatches.
  • Hyper-parameter Sensitivity: While the paper shows some robustness, GANs are notoriously finicky to train. Finding the right balance between the four losses (Generator, Discriminator, MINE, and WGAN) can be challenging.
  • Time-Series Data: The current model is designed for static features. The authors suggest that extending this framework to handle time-series data (where features change over time) is a non-trivial but promising next step.

Summary updated

BibTeX
@inproceedings{jordon2019knockoffgan,
  author = {James Jordon and Jinsung Yoon and Mihaela van der Schaar},
  title = {{KnockoffGAN: Generating Knockoffs for Feature Selection using Generative Adversarial Networks}},
  booktitle = {International Conference on Learning Representations},
  year = {2019},
}
Figure