Unrestricted permutation forces extrapolation: variable importance requires at least one more model, or there is no free variable importance

Giles Hooker, Lucas Mentch, Siyu Zhou

Abstract

Standard "permute-and-predict" methods for explaining machine learning models—such as Random Forest variable importance and Partial Dependence Plots—are fundamentally flawed when features are correlated. This paper demonstrates that these methods force models to extrapolate into "empty" regions of the feature space, leading to highly misleading results. To obtain a true measure of feature importance, the authors argue that there is no "free lunch": one must train at least one additional model to account for the feature distribution.

The Problem: The "Permute-and-Predict" Logic

As machine learning models become increasingly complex "black boxes," researchers have turned to model-agnostic interpretation tools to understand the drivers of predictions. The most popular tools, including Permutation Variable Importance, Partial Dependence Plots (PDPs), and Individual Conditional Expectation (ICE) plots, follow a "permute-and-predict" (PaP) logic. These methods take a pre-trained model, shuffle the values of a specific feature to break its relationship with the outcome, and measure the resulting drop in model performance or change in average prediction.

The fundamental issue with this approach is statistical dependence. When features are correlated (e.g., height and weight), permuting one feature independently creates synthetic data points that are physically or logically impossible—often referred to as the "pregnant man" problem. Because the model never encountered such points during training, it is forced to extrapolate.

The Extrapolation Trap

Flexible models like Random Forests or Neural Networks are "local" learners; they are only reliable in regions where training data is dense. Permutation moves query points into sparse or empty regions of the feature space. For these models, extrapolation is often arbitrary and unstable. This instability artificially inflates the importance of correlated features and creates "ghost" effects in diagnostic plots.

Partial Dependence and ICE plots showing the volatility of flexible models (Random Forest and Neural Network) compared to Linear Models when features are correlated.

Interestingly, linear models often appear immune to this trap because their global structure (the slope) remains constant across the entire space. This has given practitioners a false sense of security, leading them to apply the same logic to non-linear models where the assumption of global stability does not hold.

Methods for Robust Interpretation

The authors critique the standard PaP approach and evaluate several alternatives designed to avoid the extrapolation trap:

  1. Conditional Permutation: Shuffling a feature only within groups of observations that have similar values for other features, thereby preserving the correlation structure.
  2. Dropped Variable Importance (LOCO): Also known as "Leave-One-Covariate-Out," this involves training a completely new model without the feature in question and comparing its performance to the original model.
  3. Permute-and-Relearn: Shuffling the feature in the training set and then retraining the model on this corrupted data.
  4. Condition-and-Relearn: The authors' "gold standard" approach. The feature is replaced with a sample from its conditional distribution (given the other features), and the model is then retrained.

Key Results

Inflated Importance in Random Forests

In simulations with high correlation ($\rho=0.9$), standard Random Forest importance ranked correlated features $x_1$ and $x_2$ as the most important, even when their true coefficients were smaller than other, uncorrelated features. As shown in the figure below, the importance rank of these features is heavily influenced by the correlation coefficient $\rho$ rather than the true underlying signal.

Average importance rank of correlated features in a Random Forest as a function of correlation (rho) and sample size (n). Higher correlation leads to artificially inflated importance ranks.

Neural Network Volatility

Neural networks exhibited extreme variance in ICE plots in correlated regions (the "Gibbs effect"). This makes interpretation plots look like noisy scribbles rather than meaningful trends, reflecting the model's erratic behavior in regions where it lacks data.

Recovery via Re-learning

Methods that involved retraining the model (like LOCO or Permute-and-Relearn) successfully recovered the correct importance rankings, regardless of the correlation strength. On real-world data, such as the UCI Bike Sharing dataset, these "re-learn" methods significantly changed the perceived importance of features like temperature, which standard metrics had over-emphasized due to its correlation with seasonal variables.

Conclusion: No Free Variable Importance

The paper’s central thesis is that there is "no free variable importance." One cannot reliably interpret a complex model using only that model's output if features are dependent. Reliable interpretation requires incorporating the feature distribution into the process, which necessitates training additional models. While computationally more expensive, this approach is essential to avoid the misleading artifacts of extrapolation.

Summary updated

BibTeX
@article{hooker2021unrestricted,
  author = {Giles Hooker and Lucas Mentch and Siyu Zhou},
  title = {{Unrestricted permutation forces extrapolation: variable importance requires at least one more model, or there is no free variable importance}},
  journal = {Stat. Comput.},
  year = {2021},
  doi = {10.1007/s11222-021-10057-z},
}
Figure