Efficient nonparametric statistical inference on population feature importance using Shapley values

Brian D. Williamson, Jean FengICML 2020

Introduction

In machine learning, determining which features drive model predictions is a fundamental challenge. Most existing tools, such as standard SHAP or Permutation Importance, provide algorithmic importance—they explain how a specific trained model utilizes a feature. Consequently, if you train a different model on the exact same data, the importance rankings might change completely.

However, scientists and clinicians often require population importance: the intrinsic predictive value of a variable within the underlying data-generating mechanism, independent of the chosen model. Existing methods for population importance either rely on overly simplistic linear assumptions or struggle with highly correlated features. Furthermore, while Shapley values are considered the gold standard for fair attribution, they are typically computationally expensive (scaling exponentially with the number of features) and lack a formal statistical framework for calculating p-values or confidence intervals.

This paper introduces a mathematically rigorous method to measure population-level feature importance. By combining Shapley values with nonparametric statistics, the authors provide a computationally efficient method that estimates feature importance while providing confidence intervals and hypothesis tests.

The SPVIM Methodology

The authors propose the Shapley Population Variable Importance Measure (SPVIM), built on three key pillars:

  1. Model Agnosticism: SPVIM can be used with any measure of predictiveness (e.g., $R^2$, AUC, or accuracy). It defines importance based on an "oracle" model—the best possible theoretical model for the data—rather than a specific algorithmic implementation.
  2. Computational Efficiency: Calculating exact Shapley values requires evaluating all $2^p$ possible feature combinations (where $p$ is the number of features). The authors prove a "linear sampling miracle": to achieve an asymptotically optimal convergence rate, you only need to sample a number of subsets proportional to your number of observations ($\Theta(n)$). The error from sampling subsets is no larger than the error inherent in having a finite sample size.
  3. Statistical Inference: The core contribution is deriving the asymptotic distribution of the SPVIM estimator. This allows feature importance to be treated like a classical statistical parameter, enabling the construction of 95% confidence intervals and formal hypothesis testing (e.g., determining if a variable's importance is significantly greater than zero). Furthermore, SPVIM utilizes the Shapley property of "symmetry" to ensure that correlated, predictive variables are treated fairly, rather than arbitrarily splitting importance or ignoring one entirely.

Validation and Key Results

The authors validated SPVIM using both complex synthetic data (200 covariates, including highly correlated and pure noise features) and real-world clinical data from MIMIC-II (~4,000 ICU patients, 37 features predicting in-hospital mortality).

Simulation results demonstrating the statistical validity and accuracy of SPVIM compared to standard SHAP.

The results highlight several major advantages of the SPVIM approach:

  • Consistency Across Models: Algorithmic Variable Importance Measures (VIMs) are poor proxies for population VIMs. In the ICU mortality task, different models (Boosted Trees vs. Neural Networks) yielded wildly different standard SHAP values. However, SPVIM estimates remained consistent. The correlation (Kendall’s tau) between importance rankings across different model types was 0.71 for SPVIM, compared to only 0.37 for SHAP and 0.39 for LIME.
  • Statistical Validity: As demonstrated in the synthetic simulations, the 95% confidence intervals successfully covered the true importance value approximately 95% of the time as the sample size increased, confirming the theoretical proofs. The empirical power also correctly rejected null features while identifying true predictors.
  • Computational Speed: Despite its rigorous statistical foundation, SPVIM is highly efficient. For the ICU dataset, computing SPVIM took about 2 hours—significantly faster than general-purpose Kernel SHAP (20 hours) and comparable to LIME.

Limitations and Future Work

While SPVIM provides a robust framework for population-level inference, the authors note a few limitations. First, the paper focuses on global importance; providing valid statistical inference for local importance (e.g., explaining a single patient's prediction) remains a difficult, unsolved challenge. Second, SPVIM measures predictive importance, not causal importance. A variable with high SPVIM is a strong predictor but does not necessarily cause the outcome. Finally, while the method is efficient, it still requires fitting multiple models on feature subsets. In very small datasets with thousands of features, the computational burden of fitting $O(n)$ models could still be substantial.

Summary updated

BibTeX
@inproceedings{williamson2020efficient,
  author = {Brian D. Williamson and Jean Feng},
  title = {{Efficient nonparametric statistical inference on population feature importance using Shapley values}},
  booktitle = {International Conference on Machine Learning},
  year = {2020},
}
Figure