Abstract
In contemporary problems involving genetic or neuroimaging data, thousands of hypotheses need to be tested. Due to their high power, and finite sample guarantees on type-I error under weak assumptions, Monte Carlo permutation tests are often considered as gold standard for these settings. However, the enormous computational effort required for (thousands of) permutation tests is a major burden. In this paper, we integrate recently constructed anytime-valid permutation p-values into a broad class of multiple testing procedures, including the Benjamini-Hochberg procedure. This allows to fully adapt the number of permutations to the underlying data and thus, for example, to the number of rejections made by the multiple testing procedure. Even though this data-adaptive stopping can induce dependencies between the p-values that violate the usual assumptions of the Benjamini-Hochberg procedure, we prove that our approach controls the false discovery rate under mild assumptions. Furthermore, our method provably decreases the required number of permutations substantially without compromising power. On a real genomics data set, our method reduced the computational time from more than three days to less than four minutes while increasing the number of rejections.
Introduction
In fields such as genomics and neuroimaging, researchers frequently encounter the challenge of testing thousands of hypotheses simultaneously. Monte Carlo permutation tests have long been the "gold standard" for these tasks because they provide exact error rate guarantees without requiring strong parametric assumptions. However, their computational cost is often prohibitive. To achieve significance after correcting for thousands of tests, extremely small p-values are required, necessitating a number of permutations that typically scales linearly with the number of hypotheses ($M$). For a dataset with 50,000 genes, this can translate into millions of permutations per gene, leading to analyses that take days or even weeks on high-performance computing clusters.
Methodology: Anytime-Valid P-Values
This paper addresses the computational bottleneck by integrating anytime-valid p-values with multiple testing procedures (MTPs) like the Benjamini-Hochberg (BH) procedure.
Anytime-Valid BC P-Values
The authors generalize the classical Besag-Clifford (BC) sequential p-value into an "anytime-valid" version (avBC). Unlike standard p-values, avBC values remain statistically valid even if the permutation process is stopped early based on intermediate results.
Data-Adaptive Stopping
The core innovation is an algorithm that integrates these p-values into the BH procedure. This allows the system to stop permuting for a specific hypothesis as soon as it becomes clear whether it will be rejected or accepted by the overall procedure. While sequential testing usually introduces dependencies that might break False Discovery Rate (FDR) proofs, the authors mathematically prove that their method maintains FDR control under the assumption of Positive Regression Dependence on a Subset (PRDS).
Testing by Betting
The framework also incorporates a "binomial mixture strategy" derived from a "testing by betting" approach. This allows for even more aggressive early stopping and the ability to report unambiguous rejections before the entire computation is complete.
Key Insights: Logarithmic Scaling
The most significant finding is the shift in computational complexity. While classical permutation testing requires a number of samples that grows linearly with $M$, this adaptive method's average number of permutations scales logarithmically with $M$.
There is a natural synergy between the BH procedure and anytime-valid p-values: as more hypotheses are rejected, the significance threshold for individual tests becomes more lenient, allowing the algorithm to terminate permutations even earlier.
Empirical Results
The method was evaluated using both simulated data and a real-world RNA-sequencing (RNA-seq) dataset from the GTEx project, involving 54,591 genes across 1,050 human adipose tissue samples.
- Massive Speedup: On the RNA-seq dataset, the classical permutation approach required over 3 days and 14 hours. The anytime-valid BC method completed the same task in just 3 minutes and 27 seconds.
- Maintained Power: The method identified slightly more rejections (56.9%) than the classical approach (56.4%) while strictly maintaining FDR control.
- Efficiency: Simulations confirmed that the anytime-valid BC method matches the power of fixed tests using 10,000 permutations while using orders of magnitude fewer actual computations.
Conclusion and Future Work
By allowing the number of permutations to adapt to the data, this approach transforms permutation testing from a "computational nightmare" into a practical tool for large-scale discovery. Future research may extend these anytime-valid guarantees to more complex structures, such as spatial neuroimaging or hierarchical genetic models, and investigate FDR control under arbitrary dependence structures.
Summary updated