[Paper Review] Scalable and Efficient Hypothesis Testing with Random Forests
This paper proposes a computationally efficient and statistically valid permutation-based hypothesis test for assessing feature significance in random forests, leveraging exchangeability and subsampling to achieve asymptotic validity with orders-of-magnitude fewer computations than prior methods. The approach maintains high power and scales naturally to big data, enabling formal inference without restrictive assumptions or prohibitive computational costs.
Throughout the last decade, random forests have established themselves as among the most accurate and popular supervised learning methods. While their black-box nature has made their mathematical analysis difficult, recent work has established important statistical properties like consistency and asymptotic normality by considering subsampling in lieu of bootstrapping. Though such results open the door to traditional inference procedures, all formal methods suggested thus far place severe restrictions on the testing framework and their computational overhead precludes their practical scientific use. Here we propose a permutation-style testing approach to formally assess feature significance. We establish asymptotic validity of the test via exchangeability arguments and show that the test maintains high power with orders of magnitude fewer computations. As importantly, the procedure scales easily to big data settings where large training and testing sets may be employed without the need to construct additional models. Simulations and applications to ecological data where random forests have recently shown promise are provided.
Motivation & Objective
- To develop a statistically valid and computationally efficient hypothesis test for feature significance in random forests.
- To overcome the limitations of existing parametric methods, which are computationally prohibitive and restrict testing frameworks.
- To address the shortcomings of heuristic out-of-bag importance measures, which can be misleading under correlation or categorical covariates.
- To enable formal inference in large-scale data settings without retraining models or estimating nuisance parameters.
- To establish asymptotic validity of the test using exchangeability arguments and subsampling in random forests.
Proposed method
- The method uses permutation tests to assess feature significance by randomly shuffling predictor values and measuring the resulting change in mean squared error (MSE).
- It relies on exchangeability of random forest trees under subsampling, which allows asymptotic justification of the permutation distribution.
- The test statistic is based on the difference in MSE between original and permuted data, with p-values computed via the empirical permutation distribution.
- The procedure uses a fixed number of trees (e.g., B=250 or 500) and mtry parameter tuned to the sample size, avoiding full model retraining.
- Theoretical validity is established through asymptotic normality and convergence arguments, drawing on results from Chung and Romano (2013) on linear forms of exchangeable arrays.
- The method is implemented via a two-step process: first, compute importance scores via permutation; second, conduct a global test on the full set of features using the same framework.
Experimental results
Research questions
- RQ1Can a permutation-based hypothesis test for feature importance in random forests be both statistically valid and computationally efficient?
- RQ2Does the proposed method maintain high statistical power while reducing computational cost by orders of magnitude compared to existing parametric approaches?
- RQ3Is the test asymptotically valid under general null hypotheses, even when the data are not i.i.d., by leveraging exchangeability in subsampled trees?
- RQ4Can the method be scaled to large datasets without requiring additional model fitting or nuisance parameter estimation?
- RQ5How does the method compare to heuristic out-of-bag importance measures in terms of reliability under correlated or categorical predictors?
Key findings
- The proposed permutation test achieved asymptotic validity under exchangeability assumptions, with p-values conditionally unbiased under the null.
- The method required orders of magnitude fewer computations than existing parametric inference methods, enabling practical use in big data settings.
- On the eBird data, the global test yielded a p-value of 0.0004, indicating strong evidence of signal in the data, with eff.hours and date being significant predictors.
- On the forest fire data, the global test yielded a p-value of 0.0040, indicating detectable signal, with wind speed being the only significant feature at α=0.05.
- The method outperformed heuristic out-of-bag importance measures in detecting true signal, especially in the presence of correlated or categorical covariates.
- The procedure remained computationally feasible even when testing all features individually, as it required only a small number of trees per test, making repeated testing efficient.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.