What is feature importance?

Feature importance is a set of model-level values measuring how much each input feature contributes to a model's overall predictive performance or output; a common method is permutation importance, which shuffles a feature's values and measures the drop in performance.

Unlike feature attribution, which explains one prediction, feature importance shows which features a model relies on in general. High importance does not mean a feature causes the outcome in the real world.

Topic
Responsible AI and governance
Also known as
Variable importance, permutation importance

How feature importance works

  1. Measure the model's baseline performance on evaluation data.
  2. Shuffle one feature's values across rows and re-evaluate the model.
  3. Record the performance drop as that feature's importance; repeat for each feature.
  4. Interpret results carefully for correlated features and variables on different scales.

In more detail

Permutation importance on training versus held-out data

Computing permutation importance on training data versus a held-out test set answers two different questions: training importance reveals which features the model used during fitting (including noisy or high-cardinality features it memorised), whereas test-set importance reveals which features actually contribute to generalisation performance. Standard practice evaluates importance on held-out data with multiple shuffle repeats to estimate variance.

Comparing methods: MDI, permutation, conditional permutation and LOCO

Tree-based models offer fast built-in impurity importance (Mean Decrease in Impurity / Gini gain), which is computed during training at zero extra inference cost but systematically inflates continuous and high-cardinality categorical features. Alternatives include Drop-Column (Leave-One-Covariate-Out / LOCO) retraining importance, conditional permutation importance for correlated predictors and mean absolute SHAP values across samples.

Out-of-distribution extrapolation and grouped permutation

Independent row-wise shuffling breaks joint feature dependencies and forces the model to evaluate impossible out-of-distribution combinations (such as extreme height paired with infant weight). Grouping correlated features and permuting them together or using conditional permutation within strata of correlated variables, prevents artificial extrapolation artefacts.

Commonly confused terms

TermHow it differs
Feature attributionFeature importance summarises a feature's global influence across the whole model or dataset, whereas feature attribution decomposes one individual prediction into per-feature contributions.
Feature selectionFeature selection is the process of choosing which variables to keep or discard to improve model accuracy, latency or simplicity, whereas feature importance is a diagnostic score describing how heavily a trained model relies on each variable.
Partial dependence and ALEPartial dependence (PDP) and ALE plots show the directional shape and marginal effect of a feature across its value range (e.g., risk rising non-linearly above age 60), whereas feature importance compresses that relationship into a single scalar magnitude.

Why feature importance matters for on-premises AI

A study of variable importance across a whole class of models shows variables important for one well-performing model may be unimportant for another, defining importance as the range of values across well-performing models. A study of bias in random forest importance measures shows they are unreliable when predictors vary in scale of measurement or number of categories. A book on interpretable machine learning lists permutation importance among methods for understanding general relations between features and predictions.

ON-PREMISES EXAMPLE

A logistics firm adds feature importances to the model card of its delivery delay model; weather and depot congestion rank top, though it notes the two are correlated.

Common questions

Can feature importance guide model selection?

As one input, yes. But importance values are model-specific; another good model may rely on different features.

How do correlated features affect importance?

When one is shuffled, a correlated feature may carry the information, so both can look less important than they are.

Sources

In the glossary: Glossary, E to L

What does this term mean for your infrastructure?

We can work out together in a technical assessment how it maps onto your data, hardware and security requirements.

Request a technical assessment →

This site sets no cookies. Visitor numbers are counted in aggregate using a cookieless method that does not identify anyone. See the Privacy Policy for details.