Statistical Significance of Feature Importance Rankings

Jeremy Goldwasser, Giles Hooker · DOI

Abstract

Feature importance scores are ubiquitous tools for understanding the predictions of machine learning models. However, many popular attribution methods suffer from high instability due to random sampling. Leveraging novel ideas from hypothesis testing, we devise techniques that ensure the most important features are correct with high-probability guarantees. These assess the set of $K$ top-ranked features, as well as the order of its elements. Given a set of local or global importance scores, we demonstrate how to retrospectively verify the stability of the highest ranks. We then introduce two efficient sampling algorithms that identify the $K$ most important features, perhaps in order, with probability exceeding $1-\alpha$. The theoretical justification for these procedures is validated empirically on SHAP and LIME.

Introduction

In high-stakes domains such as healthcare and finance, interpretability is paramount. Feature importance methods like SHAP and LIME are frequently employed to explain "black-box" model decisions. However, these methods rely on Monte Carlo sampling, introducing inherent randomness. Consequently, re-running an explanation algorithm on the same instance can yield different feature rankings, leading to a "credibility crisis" in model interpretability. If a ranking is a statistical fluke rather than a robust signal, its utility for decision-making is severely compromised.

Methodology

We address this instability by framing feature importance within a statistical framework of unbiasedness and asymptotic normality. We treat importance scores as random variables that converge to a Gaussian distribution as the sample size increases.

Retrospective Verification

We provide tools to calculate p-values for existing scores, allowing users to verify if an observed ranking is likely the "true" population ranking. This retrospective check helps determine if the top-$K$ features are statistically distinguishable.

Stabilized Sampling Algorithms

We introduce two algorithms designed to achieve a target confidence level ($1-\alpha$):

  1. SPRT-SHAP: Utilizes the Sequential Probability Ratio Test (SPRT) to sample data points until there is sufficient evidence to confirm the ranking. This "anytime-valid" approach allows for stopping as soon as the statistical threshold is met.
  2. StableSHAP: An adaptive resampling approach that identifies "ambiguous pairs"—features with nearly identical scores—and concentrates the computational budget on resolving these specific conflicts.

Key Insights: Adaptive Budgeting

A core innovation of StableSHAP is the move away from uniform sampling. Traditional methods sample all features equally, which is inefficient if the top features are easily distinguishable. By focusing samples on features that are "neck-and-neck" in rank, we achieve stability with significantly fewer total samples.

Figure 3: StableSHAP demonstrates adaptive budgeting by allocating more samples to features with ambiguous rankings (e.g., Sex, Education-Num) while minimizing effort on clearly ranked features (e.g., Marital Status).

Experimental Results

We evaluated our methods on five benchmark datasets (Adult, Bank, BRCA, WBC, and Credit) using neural network classifiers.

Stability and Error Control

Our algorithms successfully maintained the Family-Wise Error Rate (FWER) below the user-specified threshold $\alpha$. As shown in Figure 1, while standard methods like LIME and Shapley Sampling see a sharp decline in selection frequency for lower ranks (4th and 5th), our proposed methods (StableSHAP and SPRT-SHAP) maintain high stability, ensuring that the identified top features are consistent across runs.

Figure 1: Frequency of top-5 feature rankings. Proposed methods like StableSHAP and SPRT-SHAP maintain significantly higher selection frequency for lower ranks compared to standard Shapley Sampling and LIME.

Efficiency

StableSHAP proved more efficient than standard sampling by leveraging selective inference. It avoids the conservative nature of traditional corrections (like Bonferroni) while providing rigorous guarantees.

Conclusion and Future Work

This work provides a necessary statistical foundation for feature importance rankings. By offering high-probability guarantees, we move from "best-guess" explanations to statistically verified insights. Future research will explore "anytime-valid" procedures that further reduce computational overhead, potentially incorporating techniques from clinical trial design to speed up convergence in extremely high-dimensional or noisy settings.

Summary updated

BibTeX
@inproceedings{goldwasser2025statistical,
  author = {Jeremy Goldwasser and Giles Hooker},
  title = {{Statistical Significance of Feature Importance Rankings}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2025},
  url = {https://openreview.net/forum?id=32BLljqMbd},
}
Figure