Powerful Knockoffs via Minimizing Reconstructability

Asher Spector, Lucas Janson
11/30/2020
49 citations
stat.ME

Official code: amspector100/knockpy (42 stars, Python, MIT, last commit 2025-07-12). 1 more implementation below.

Abstract

Model-X knockoffs allows analysts to perform feature selection using almost any machine learning algorithm while still provably controlling the expected proportion of false discoveries. To apply model-X knockoffs, one must construct synthetic variables, called knockoffs, which effectively act as controls during feature selection.

Show full abstract

The gold standard for constructing knockoffs has been to minimize the mean absolute correlation (MAC) between features and their knockoffs, but, surprisingly, we prove this procedure can be powerless in extremely easy settings, including Gaussian linear models with correlated exchangeable features. The key problem is that minimizing the MAC creates strong joint dependencies between the features and knockoffs, which allow machine learning algorithms to partially or fully reconstruct the effect of the features on the response using the knockoffs. To improve the power of knockoffs, we propose generating knockoffs which minimize the reconstructability (MRC) of the features, and we demonstrate our proposal for Gaussian features by showing it is computationally efficient, robust, and powerful. We also prove that certain MRC knockoffs minimize a natural definition of estimation error in Gaussian linear models. Furthermore, in an extensive set of simulations, we find many settings with correlated features in which MRC knockoffs dramatically outperform MAC-minimizing knockoffs and no settings in which MAC-minimizing knockoffs outperform MRC knockoffs by more than a very slight margin. We implement our methods and a host of others from the knockoffs literature in a new open source python package knockpy.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
amspector100/knockpyOfficial42PythonMIT2025-07-12
amspector100/mrcrepOfficial1Jupyter Notebook–2021-07-16
MIT

Knockoffs for controlled variable selection

426Python, CythonNov 15, 20201 years agoMIT

Replications for MRC

10Jupyter Notebook, PythonNov 16, 20205 years ago

Similar Papers

Cite this paper

@article{spector2020powerful,
  title  = {Powerful Knockoffs via Minimizing Reconstructability},
  author = {Asher Spector and Lucas Janson},
  year   = {2020},
  eprint = {2011.14625},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2011.14625}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2011.14625.svg)](https://codeofpaper.com/paper/2011.14625)

Discussion