Abstract
As datasets grow richer, an important challenge is to leverage the full features in the data to maximize the number of useful discoveries while controlling for false positives. We address this problem in the context of multiple hypotheses testing, where for each hypothesis, we observe a p-value along with a set of features specific to that hypothesis. For example, in genetic association studies, each hypothesis tests the correlation between a variant and the trait. We have a rich set of features for each variant (e.g. its location, conservation, epigenetics etc.) which could inform how likely the variant is to have a true association. However popular testing approaches, such as Benjamini-Hochberg's procedure (BH) and independent hypothesis weighting (IHW), either ignore these features or assume that the features are categorical or uni-variate. We propose a new algorithm, NeuralFDR, which automatically learns a discovery threshold as a function of all the hypothesis features. We parametrize the discovery threshold as a neural network, which enables flexible handling of multi-dimensional discrete and continuous features as well as efficient end-to-end optimization. We prove that NeuralFDR has strong false discovery rate (FDR) guarantees, and show that it makes substantially more discoveries in synthetic and real datasets. Moreover, we demonstrate that the learned discovery threshold is directly interpretable.
Introduction
In modern data science, researchers frequently perform thousands of statistical tests simultaneously. For instance, in genomics, one might test 30,000 genes for association with a specific disease. To prevent a surge of false positives, standard procedures like the Benjamini-Hochberg (BH) method are employed to set a global p-value threshold.
However, these traditional methods often treat every hypothesis as equally likely to be a true discovery. In practice, we often possess "side information" or features for each hypothesis—such as a mutation’s genomic location or its evolutionary conservation. This metadata can significantly inform the likelihood of a hypothesis being a "hit." Existing methods that attempt to incorporate this information are typically limited to single, categorical features and struggle with high-dimensional, continuous data. NeuralFDR addresses this by providing a flexible, end-to-end system capable of handling complex features to maximize discovery power.
The NeuralFDR Framework
The core innovation of NeuralFDR is the parametrization of the discovery threshold as a function of hypothesis features using a neural network.
Instead of a constant threshold, NeuralFDR learns a function $t(x; \theta)$, where $x$ represents the feature vector and $\theta$ denotes the neural network weights. A hypothesis $i$ is rejected if its p-value $P_i$ is less than the learned threshold $t(x_i; \theta)$. This allows the model to "spend" its significance budget more effectively on hypotheses that are more likely to be true alternatives based on their features.
Ensuring FDR Control: Mirroring and Cross-Validation
A primary challenge in training such a model is that the ground truth (which hypotheses are truly null) is unknown. NeuralFDR overcomes this using a "mirroring" estimator. Under the null hypothesis, p-values are uniformly distributed between 0 and 1. Consequently, the number of p-values in the "mirror" region $(1-t(x), 1)$ serves as a reliable proxy for the number of false discoveries in the rejection region $(0, t(x))$.
To prevent the network from overfitting to specific p-values, the authors implement an M-fold cross-validation strategy. The threshold function is optimized on training folds, rescaled on a validation fold to ensure conservative FDR control, and finally applied to a held-out test fold. This rigorous process ensures that the estimated False Discovery Proportion (FDP) remains below a user-defined level $\alpha$.
Empirical Evaluation and Key Results
NeuralFDR was evaluated on both synthetic simulations and high-stakes biological datasets, including Airway RNA-Seq and the Genotype-Tissue Expression (GTEx) project.
- Handling High Dimensionality: Unlike methods like Independent Hypothesis Weighting (IHW) which rely on data binning and suffer from the "curse of dimensionality," NeuralFDR's neural network architecture enables it to learn smooth, non-linear mappings across many features simultaneously.
- Substantial Power Gains: In synthetic 2D "slope" tests, NeuralFDR achieved 90% more discoveries than the standard BH procedure. On the GTEx dataset, NeuralFDR’s discovery count increased as more features were added (from 1D to 3D), whereas IHW’s performance declined due to data sparsity in higher dimensions.
- Interpretability: The learned thresholds are directly interpretable. In the GTEx eQTL analysis, the model automatically learned to assign higher thresholds to SNPs located closer to target genes ("cis-eQTLs"), aligning perfectly with known biological priors.
Conclusion
NeuralFDR represents a significant step forward in multiple hypothesis testing. By leveraging the representational power of neural networks, it maximizes discoveries while maintaining rigorous statistical guarantees. While it requires more computational resources and a sufficient number of hypotheses for effective training, the substantial increase in discovery power makes it a valuable tool for modern large-scale data analysis.
Summary updated