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
- Measure the model's baseline performance on evaluation data.
- Shuffle one feature's values across rows and re-evaluate the model.
- Record the performance drop as that feature's importance; repeat for each feature.
- 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
| Term | How it differs |
|---|---|
| Feature attribution | Feature 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 selection | Feature 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 ALE | Partial 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.
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.
Related terms
- Feature attribution
- Global interpretability
- SHapley Additive exPlanations
- Feature engineering
- Explainable AI
- Model card
Sources
- Fisher, Rudin and Dominici, All Models are Wrong, but Many are Useful: Learning a Variable's Importance by Studying an Entire Class of Prediction Models Simultaneously, 2019
- Strobl et al., Bias in random forest variable importance measures: Illustrations, sources and a solution, BMC Bioinformatics, 2007
- Molnar, Interpretable Machine Learning
In the glossary: Glossary, E to L