FACT: High-Dimensional Random Forests Inference

Chien-Ming Chi, Yingying Fan, Jinchi LvarXiv 2022

Abstract

Quantifying the usefulness of individual features in random forests learning can greatly enhance its interpretability. Existing studies have shown that some popularly used feature importance measures for random forests suffer from the bias issue. In addition, there lack comprehensive size and power analyses for most of these existing methods. In this paper, we approach the problem via hypothesis testing, and suggest a framework of the self-normalized feature-residual correlation test (FACT) for evaluating the significance of a given feature in the random forests model with bias-resistance property, where our null hypothesis concerns whether the feature is conditionally independent of the response given all other features. Such an endeavor on random forests inference is empowered by some recent developments on high-dimensional random forests consistency. Under a fairly general high-dimensional nonparametric model setting with dependent features, we formally establish that FACT can provide theoretically justified feature importance test with controlled type I error and enjoy appealing power property. The theoretical results and finite-sample advantages of the newly suggested method are illustrated with several simulation examples and an economic forecasting application.

Introduction

Random Forests (RF) have established themselves as a cornerstone of modern machine learning due to their predictive power. However, their "black-box" nature poses significant challenges for interpretability. Traditional feature importance measures, such as Mean Decrease Impurity (MDI) and Mean Decrease Accuracy (MDA), are widely used but fundamentally flawed. Specifically, when features are highly correlated, these methods exhibit a significant bias, often assigning high importance to "spurious" variables that share no causal link with the outcome but are merely correlated with a true predictor.

While newer techniques like Conditional Permutation Importance (CPI) attempt to mitigate these issues, they often lack rigorous theoretical guarantees, particularly in high-dimensional settings where the number of features ($p$) exceeds the number of observations ($n$). This paper introduces the FACT (self-normalized Feature-residual Correlation Test) framework to provide a theoretically grounded, bias-resistant alternative for feature inference in Random Forests.

The FACT Framework

FACT redefines feature importance as a formal statistical hypothesis test: is a specific feature $X_j$ conditionally independent of the response $Y$, given all other features $X_{-j}$? The framework builds upon the Generalized Covariance Measure (GCM) but introduces several critical innovations for the RF context:

  • Residual-Based Testing: FACT calculates residuals for both the response ($Y$) and the feature of interest ($X_j$) by regressing them against all other features using Random Forests. It then evaluates the correlation between these residuals.
  • Honest Inference via OOB Predictions: To ensure theoretical validity, the data used to train the RF models must be independent of the data used for testing. FACT achieves this efficiently using Out-of-Bag (OOB) predictions, which serve as a computationally cheaper alternative to traditional sample splitting.
  • Capturing Non-linearity: Standard correlation tests often fail to detect complex interactions. FACT applies multiple nonlinear transformations (e.g., quadratic $x^2$ or hyperbolic tangent $\tanh(x)$) to the residuals, allowing it to identify signals that linear-based tests would miss.
  • E-value Aggregation: To maintain strict error control while aggregating results across different data splits and transformations, FACT utilizes e-values rather than simple p-value averaging.
  • Stability: The "Stable FACT" variant repeats the process multiple times to ensure that findings are not artifacts of the inherent randomness in RF construction.

Empirical Results and Bias Resistance

The authors evaluated FACT against MDI, MDA, and CPI using synthetic data based on the Friedman regression model, incorporating Gaussian copulas to simulate complex feature dependencies. The results highlight a stark contrast in performance when dealing with spurious correlations.

Table 1: Probability of ranking a spurious feature ($X_2$) higher than a true signal ($X_{11}$) across three simulation scenarios.

As shown in the table above, in Scenario III, traditional measures like MDI and MDA fail completely, ranking a spurious feature over a relevant one 100% of the time. In contrast, FACT maintains a 0% error rate in this scenario, demonstrating its robust bias-resistance property. Furthermore, FACT showed significantly higher statistical power than the standard GCM, particularly in identifying features with quadratic or interactive effects.

Real-World Application: Macroeconomic Forecasting

To demonstrate its practical utility, FACT was applied to the FRED-MD macroeconomic database, analyzing 126 major U.S. economic time series from 2013 to 2023. The goal was to identify key predictors of inflation during a period of high volatility (2018–2020).

FACT successfully identified the U.S./U.K. exchange rate and various industrial production indices as significant predictors. Notably, FACT flagged these as nonlinear indicators, a nuance that traditional linear models and standard RF importance measures often overlook. This highlights FACT's ability to provide deeper insights into the underlying mechanisms of complex economic systems.

Conclusion

The FACT framework represents a significant step forward in making Random Forests interpretable and statistically rigorous. By providing a nonasymptotic theory that holds even in high-dimensional, finite-sample settings, FACT offers a reliable tool for researchers to distinguish true signals from spurious correlations. Future work may focus on automating the selection of optimal nonlinear transformations to further enhance the framework's flexibility.

Summary updated

BibTeX
@misc{chi2022fact,
  author = {Chien-Ming Chi and Yingying Fan and Jinchi Lv},
  title = {{FACT: High-Dimensional Random Forests Inference}},
  year = {2022},
  eprint = {2207.01678},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2207.01678},
}
Figure