Abstract
Selective inference (SI) has emerged as a vital framework for statistical hypothesis testing in data-driven scenarios. By conditioning on the event that a hypothesis was selected, SI corrects for the selection bias inherent in "double-dipping"—using the same data for both discovery and testing. However, characterizing this selection event often requires either over-conditioning, which reduces statistical power, or exhaustive computation, which is often prohibitively slow. This paper introduces a novel procedure to reduce the computational cost of Parametric Programming-based SI (PP-based SI) by computing upper and lower bounds for p-values. We propose three search strategies to efficiently tighten these bounds, allowing for early termination of the inference process once a statistical decision is reached. Our results demonstrate significant efficiency gains in feature selection and deep neural network attention region identification without sacrificing statistical validity.
Introduction
In modern data science, researchers frequently use the same dataset to identify patterns and subsequently test their significance. This practice, known as data-driven hypothesis testing, introduces selection bias: standard p-values become misleadingly small because the hypothesis itself was chosen because it looked promising in the data. Selective Inference (SI) provides a mathematical framework to correct this bias by conditioning the inference on the selection event.
Traditional SI methods often face a difficult trade-off. To make the selection event mathematically tractable, researchers often resort to "over-conditioning," adding extra constraints that simplify the math but reduce the power of the test. Parametric Programming-based SI (PP-based SI) was developed to avoid over-conditioning, but it requires an exhaustive search along a one-dimensional line in the data space to characterize the selection event. For complex models like Deep Neural Networks (DNNs), this search is computationally intensive.
Proposed Method: Bounded P-values
This study proposes an "anytime" approach to PP-based SI. Rather than searching the entire data space to calculate an exact p-value, we derive mathematical bounds that allow for early decision-making.
Theorem 1 and Early Termination
The core of the proposed method is Theorem 1, which provides formulas for the lower ($L_i$) and upper ($U_i$) bounds of the p-value based on the regions of the data space explored up to iteration $i$. These bounds are monotonic: as more of the data space is searched, $L_i$ non-decreases and $U_i$ non-increases.
This allows for Early Termination: if the goal is to test significance at a level $\alpha$ (e.g., 0.05):
- If $U_i < \alpha$, the null hypothesis can be rejected immediately.
- If $L_i > \alpha$, the null hypothesis cannot be rejected.
In both cases, the computation can stop before the exhaustive search is complete, as the final p-value is guaranteed to stay on the same side of the threshold.
Search Strategies
To tighten these bounds as quickly as possible, we introduced three search strategies:
- $\pi_1$ (Statistic-centered): Prioritizes regions near the observed test statistic.
- $\pi_2$ (Density-centered): Prioritizes regions with high probability density under the null distribution.
- $\pi_3$ (Hybrid Heuristic): Targets the endpoints of the largest unsearched interval containing the observed statistic.
Experimental Evaluation
We evaluated the proposed method across synthetic and real-world datasets, focusing on two primary applications: Forward Stepwise Selection (SFS) in linear models and attention region identification in DNNs.
Linear Models and Feature Selection
Using the Concrete Compressive Strength dataset from the UCI Repository, we tested the method's ability to validate features selected via SFS. The bounded approach maintained the high statistical power characteristic of PP-based SI while significantly reducing the number of iterations required to reach a decision compared to exhaustive searching.
Deep Neural Networks and CAM
We applied the method to a brain image dataset (Buda et al., 2019) to validate "salient regions" (e.g., potential tumors) identified by a DNN using Class Activation Mapping (CAM). In these complex DNN experiments, the search count was frequently reduced by 50% to 70% compared to the exhaustive method.
Key Results and Discussion
- Computational Efficiency: The bounded p-value approach consistently reached statistical decisions with a fraction of the computational effort required by traditional PP-based SI.
- Statistical Validity: The method successfully controlled the Type I error rate at target levels (0.05 and 0.01). Unlike "naive" testing, which ignores selection bias and produces high false-positive rates, our method remains statistically rigorous.
- Power Preservation: By avoiding the over-conditioning found in simpler SI methods, our approach preserves the ability to make real discoveries, ensuring that significant patterns are not lost to mathematical over-simplification.
Conclusion
By framing p-value calculation as a bounded optimization problem, this research transforms PP-based selective inference from a computationally daunting task into a practical tool for data science. The $\pi_3$ strategy, in particular, proved highly effective at quickly narrowing the gap between p-value bounds. Future work will explore the parallelization of these search strategies and the application of similar bounding logic to sampling-based selective inference methods, such as MCMC, to further extend the reach of rigorous statistical validation in complex machine learning workflows.
Summary updated