kernelPSI: a Post-Selection Inference Framework for Nonlinear Variable Selection

Lotfi Slim, Clément Chatelain, Chloé-Agathe Azencott, Jean-Philippe VertICML 2019

When researchers use the same dataset to both select "interesting" features and test their statistical significance, they run into a "double-dipping" problem that produces overly optimistic p-values. kernelPSI provides a novel mathematical framework to correct this bias for nonlinear models, allowing for valid post-selection inference (PSI) when using kernels to capture complex, non-additive relationships in high-dimensional data.

The "Double-Dipping" Problem

In fields like genomics or drug discovery, datasets often contain thousands of variables (like genes or SNPs) but only a few dozen samples. To make sense of this high-dimensional data, researchers perform variable selection: they pick the features that seem most strongly associated with an outcome, such as a disease state.

The statistical trap occurs when you use the same data to select features and then run a standard statistical test on them. Because the features were specifically chosen for looking good in that exact sample, a standard test will almost always declare them "significant," even if they are just noise. This is known as the post-selection inference problem.

While solutions exist for linear models (like the Lasso), real-world biological data is rarely perfectly linear; genes interact in complex, nonlinear ways (epistasis). Prior to this research, there was no general, robust way to perform PSI for nonlinear selection methods that use "kernels"—mathematical tools used to map data into high-dimensional spaces to find hidden patterns.

The kernelPSI Framework

The authors introduce kernelPSI, a framework that treats the selection process as a geometric constraint to calculate unbiased p-values.

  1. Quadratic Association Scores: The authors define a broad family of "association scores" (metrics of how much a feature relates to an outcome) that can be written as quadratic forms of the outcome variable $Y$. This family is expansive, encompassing popular methods like the Hilbert-Schmidt Independence Criterion (HSIC), Kernel Ridge Regression (KRR), and Kernel Principal Component Regression (KPCR).
  2. Selection as Geometry: The core breakthrough is proving that common selection strategies—like picking the top $K$ features (filtering) or adding them one by one (forward stepwise)—can be described as a series of quadratic constraints on $Y$. Essentially, the "selection event" carves out a specific, mathematically definable region in the space of all possible outcomes.
  3. The Hit-and-Run Sampler: To calculate a valid p-value, you need to know what the test statistic would look like if there were no real effect (the null distribution). Because the selection process "truncates" this distribution, standard statistical tables (like the $\chi^2$ distribution) fail. The authors developed a specialized Hypersphere Directions hit-and-run sampler to efficiently generate "fake" data that satisfies the selection constraints, allowing them to estimate the correct, unbiased p-values.

Experimental Validation

The authors evaluated kernelPSI across several datasets:

  • Synthetic Gaussian Data: 100 samples with 50 features grouped into 10 sets, used to verify that the p-values are "uniform" (statistically valid) under the null hypothesis.
  • Synthetic Binary Data: Simulating genetic markers (SNPs) to test the power of the method in a discrete setting.
  • Arabidopsis thaliana GWAS: A real-world genome-wide association study dataset with 166 samples and 174 candidate genes, aiming to identify genes associated with flowering time.

Key Findings

1. Statistical Validity Unlike some previous attempts at nonlinear PSI that only work as the number of samples approaches infinity, kernelPSI is valid even for small sample sizes. In simulations where there was no real effect (the null hypothesis), kernelPSI produced a perfectly diagonal Q-Q plot. This demonstrates that it successfully controls the false positive rate, avoiding the "false discoveries" that plague standard tests.

Q-Q plot demonstrating valid, uniform p-values under the null hypothesis for kernelPSI.

2. Superior Statistical Power Beyond just being statistically valid, kernelPSI showed significantly higher statistical power—the ability to successfully find real effects—compared to non-selective methods like SKAT or linear selective methods like protoLasso.

Statistical power comparison showing kernelPSI methods outperforming standard and linear selective methods.

3. Real-World Discovery In the Arabidopsis dataset, standard non-selective methods failed to find any significant genes after correcting for multiple testing. kernelPSI, however, successfully identified the FRI gene and AT5G57360, both of which are biologically known to regulate flowering time.

Limitations and Future Work

While kernelPSI represents a major step forward for nonlinear variable selection, challenges remain:

  • Computational Cost: The hit-and-run sampler is much faster than simple rejection sampling, but it still requires thousands of iterations. Scaling this framework to "full-scale" GWAS involving millions of SNPs remains computationally demanding.
  • The "Winner's Curse": While the p-values generated are valid, the framework does not yet address the bias in estimating the magnitude of the effect (effect size), which is often inflated after selection.
  • Future Directions: The authors suggest exploring "Multiple Kernel Learning" to integrate the selection and inference steps even more tightly, which could potentially increase statistical power even further.

Summary updated

BibTeX
@inproceedings{slim2019kernelpsi,
  author = {Lotfi Slim and Clément Chatelain and Chloé-Agathe Azencott and Jean-Philippe Vert},
  title = {{kernelPSI: a Post-Selection Inference Framework for Nonlinear Variable Selection}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
}
Figure