NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A general framework for inference on algorithm-agnostic variable importance

Brian D. Williamson, Peter B. Gilbert, Noah Simon, Marco Carone

Abstract

In many applications, it is of interest to assess the relative contribution of features (or subsets of features) toward the goal of predicting a response - in other words, to gauge the variable importance of features. Most recent work on variable importance assessment has focused on describing the importance of features within the confines of a given prediction algorithm. However, such assessment does not necessarily characterize the prediction potential of features, and may provide a misleading reflection of the intrinsic value of these features. To address this limitation, we propose a general framework for nonparametric inference on interpretable algorithm-agnostic variable importance. We define variable importance as a population-level contrast between the oracle predictiveness of all available features versus all features except those under consideration. We propose a nonparametric efficient estimation procedure that allows the construction of valid confidence intervals, even when machine learning techniques are used. We also outline a valid strategy for testing the null importance hypothesis. Through simulations, we show that our proposal has good operating characteristics, and we illustrate its use with data from a study of an antibody against HIV-1 infection.

Introduction

In modern data science, identifying which features drive a model's predictions is often as important as the predictions themselves. However, traditional methods for assessing variable importance are typically tied to specific algorithms. For instance, Gini importance is specific to Random Forests, while standardized coefficients are specific to linear models. These measures describe how a particular model utilizes data, which may not reflect the true underlying relationship if the model is misspecified or poorly tuned.

This paper introduces a rigorous statistical framework for "intrinsic" variable importance—a measure of a feature's value that is independent of any specific machine learning algorithm. By focusing on the population-level predictive potential, the authors provide a way to generate valid p-values and confidence intervals even when using complex, "black-box" ensembles.

Defining Intrinsic Variable Importance

The authors define variable importance ($\psi$) as a contrast between two "oracles"—the best possible prediction models achievable in the population. Specifically:

$$\psi = (\text{Predictiveness of the best possible model using all features}) - (\text{Predictiveness of the best possible model excluding feature } S)$$

This definition shifts the focus from "how did this model use the feature?" to "how much predictive power is lost if this information is unavailable to the best possible learner?" The framework is flexible enough to accommodate various performance metrics, or V-measures, including $R^2$, Area Under the Curve (AUC), classification accuracy, and deviance.

Methodology and Inference

Estimating these population-level oracles requires flexible machine learning (ML), but ML models typically lack the smooth statistical properties needed to build confidence intervals. The authors address this through several key technical innovations:

  1. Nonparametric Efficient Estimation: The paper demonstrates that for many common metrics like $R^2$, a simple "plug-in" estimator—where ML is used to predict outcomes and the metric is calculated on those predictions—is statistically efficient. This holds true provided the ML model converges to the truth at a sufficient rate.
  2. Cross-fitting: To prevent overfitting and ensure valid inference when using highly flexible learners (such as XGBoost or Deep Learning), the authors employ $K$-fold cross-fitting. This allows the model to learn from one portion of the data while the importance is evaluated on another.
  3. Addressing the Null Hypothesis: Testing whether a variable has exactly zero importance is statistically challenging because the distribution of the estimator can collapse at the boundary. The authors propose a sample-splitting strategy to ensure that p-values remain valid and calibrated even when a feature provides no predictive value.

Empirical Validation

Simulation Studies

Through simulations using probit models with varying dimensions (up to $p=200$) and sample sizes (up to $n=4000$), the authors verified the framework's robustness. A key finding was that the proposed cross-fitted estimators achieved near-perfect 95% coverage for confidence intervals. In contrast, standard importance measures that did not use cross-fitting failed to maintain coverage as model complexity increased, leading to overconfident and potentially false conclusions.

Case Study: HIV-1 Neutralization

The framework was applied to data from a study of the VRC01 antibody, which aims to prevent HIV-1 infection. The goal was to predict viral sensitivity to the antibody based on approximately 800 amino acid sequence features of the HIV-1 envelope protein.

Using a "Super Learner" ensemble (an automated combination of multiple ML algorithms), the framework identified the CD4 binding site and the VRC01 binding footprint as the most critical features. These results provided a vital "sanity check," as they align with established biological knowledge of how the virus interacts with antibodies, demonstrating that the method can extract meaningful signal from high-dimensional biological data.

Discussion and Limitations

While the framework provides a powerful tool for interpretable ML, it involves certain trade-offs:

  • Data Requirements: The sample-splitting required for valid null-hypothesis testing can reduce the effective power of the dataset. Future research may focus on data-adaptive splitting to improve efficiency.
  • Feature Correlation: Like most importance measures, high correlation between features can dilute individual importance scores. If two features provide redundant information, the "oracle" may perform nearly as well with either one, potentially marking both as individually "unimportant."
  • Computational Cost: The reliance on cross-fitting and ensemble methods makes this approach more computationally intensive than model-specific heuristics.

Conclusion

This framework bridges the gap between high-performance machine learning and rigorous statistical inference. By providing algorithm-agnostic measures of importance, researchers can move beyond describing how a specific model works and begin to uncover the intrinsic predictive value of their features with quantified uncertainty.

Summary updated

BibTeX
@article{williamson2020general,
  author = {Brian D. Williamson and Peter B. Gilbert and Noah Simon and Marco Carone},
  title = {{A general framework for inference on algorithm-agnostic variable importance}},
  journal = {Journal of the American Statistical Association},
  year = {2020},
}
Figure