Normalizing Flows for Knockoff-free Controlled Feature Selection

Derek Hansen, Brian Manzo, Jeffrey Regier

TL;DR

FLOWSELECT is a new method for controlled feature selection that avoids the pitfalls of deep-learning-based "knockoff" methods. By combining state-of-the-art normalizing flows for density estimation with an MCMC-based procedure to calculate p-values directly, it consistently controls the false discovery rate (FDR) and achieves higher power than existing approaches on complex, high-dimensional data.

What Problem Does This Paper Address?

In fields like genomics or social science, researchers don't just want to predict an outcome; they want to know which specific features (like genetic variants) are driving it. The challenge is doing this while strictly limiting the False Discovery Rate (FDR)—the proportion of selected features that are actually irrelevant.

The current gold standard for this is the Model-X knockoff framework. It works by creating "fake" versions of features (knockoffs) that mimic the original data's structure but are independent of the response. However, for knockoffs to be valid, they must satisfy a strict mathematical "swap" property. The authors demonstrate that recent deep-learning methods (like DeepKnockoff or KnockoffGAN) often fail to control FDR because they can't perfectly model complex feature distributions or enforce this swap property, especially in high-dimensional settings.

Methods

The authors propose FLOWSELECT, which sidesteps the need to generate knockoffs entirely. Its architecture consists of three main steps:

  1. Modeling with Normalizing Flows: Instead of trying to generate fake data, FLOWSELECT uses normalizing flows (specifically a combination of Gaussianization layers and Masked Autoregressive Flows) to learn the joint probability density of the features. Normalizing flows are powerful because they can approximate almost any complex distribution by transforming a simple base distribution through a series of invertible mappings.
  2. Sampling via MCMC: To test if a feature is significant, the method needs to know what that feature would look like if it were independent of the response, given all other features. FLOWSELECT uses Markov Chain Monte Carlo (MCMC) to draw samples from these conditional distributions directly from the learned normalizing flow model.
  3. Significance Testing: It employs a fast variant of the Conditional Randomization Test (CRT) called the Holdout Randomization Test (HRT). By comparing the actual feature's importance statistic to the statistics of the MCMC-generated null samples, it calculates a p-value for each feature. These p-values are then adjusted using the Benjamini-Hochberg procedure to control the FDR.

Datasets

The researchers evaluated FLOWSELECT against several benchmarks:

  • Synthetic Mixture-of-Gaussians: A dataset with 100 features and 100,000 samples, where features are highly correlated and drawn from a mixture of three Gaussians.
  • Semi-synthetic scRNA-seq: Real gene expression data from 10x Genomics (100 genes) paired with a synthetic response to test performance on realistic, noisy biological data.
  • Soybean GWAS (Real World): A Genome-Wide Association Study dataset (SoyNAM) containing over 5,000 samples and 4,200 genetic markers (SNPs) to identify variants associated with oil content in soybeans.

Key Insights and Ideas

  • The "Swap" Property is a Bottleneck: The authors argue that enforcing the swap property required for knockoffs is a "challenging task as the number of swaps grows exponentially with the number of features." By moving to a "knockoff-free" MCMC approach, they remove this constraint.
  • Density Estimation Matters: Figure 1 illustrates how most knockoff methods fail to capture the basic structure of the feature distribution (suffering from over-dispersion or mode collapse), whereas normalizing flows match the ground truth almost perfectly.
Figure 1: A density plot of the feature distribution with coordinate j = 1 on the x-axis and coordinate j = 2 on the y-axis. The ground truth density is compared to the normalizing flow fitted within FLOWSELECT and the distribution of each knockoff method (DeepKnockoff, KnockoffGAN, MASS, and DDLK). To have FDR control, each distribution should match the distribution of the features.
  • Asymptotic Validity: The paper provides a theoretical proof that as the normalizing flow model improves and the MCMC chain converges, FLOWSELECT produces valid p-values, ensuring FDR control.

Key Results

  • Consistent FDR Control: In both synthetic and semi-synthetic tests, FLOWSELECT was the only deep-learning-based method that consistently kept the FDR below the target threshold (e.g., 0.05 or 0.1). Competing methods like DeepKnockoff and DDLK often had FDRs significantly higher than their targets.
  • Higher Power: Not only was it safer, but it was also more effective. FLOWSELECT showed higher "power" (the ability to find true relevant features) compared to knockoff methods that did manage to control FDR.
Figure 2: Comparison of power and FDR control. FLOWSELECT (purple) maintains the target FDR (dashed lines) while achieving high power, whereas others often exceed the FDR limit.
  • Real-World Discovery: In the soybean GWAS experiment, FLOWSELECT identified seven genetic variants associated with oil content, several of which were cross-referenced and validated by previous independent biological studies. It successfully scaled to over 4,000 features, a feat not demonstrated by the competing empirical knockoff methods.
Figure 3: Manhattan plot showing the p-values for genetic variants in the soybean experiment. The peaks indicate significant discoveries.

Limitations and Future Work

  • Data Requirements: Normalizing flows are flexible but data-hungry. In very low-data regimes, the model might not learn the feature distribution accurately enough to provide valid results.
  • Computational Cost: While faster than some competitors like DDLK, FLOWSELECT is slower than simpler knockoff methods because it requires MCMC sampling for every feature.
  • High Correlation: Like all CRT and knockoff methods, FLOWSELECT can lose power when features are extremely highly correlated with each other. The authors suggest that future work could involve testing "groups" of correlated features rather than individual ones to mitigate this.

Summary updated

BibTeX
@inproceedings{hansen2022normalizing,
  author = {Derek Hansen and Brian Manzo and Jeffrey Regier},
  title = {{Normalizing Flows for Knockoff-free Controlled Feature Selection}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=g2dXxjD9Ucv},
}
Figure