Feature Importance

Feature Importance (or Variable Importance or Feature Attribution) refers to a set of techniques and mathematical frameworks used in machine learning, statistics, and their applications to quantify the contribution of input variables (features) to a model's output or to the underlying data-generating process. It is a component of Explainable artificial intelligence (XAI) and interpretable machine learning (IML) and is used for model improvement, scientific inference, and feature selection.

Feature importance is a context-dependent score that varies based on the scope of the explanation, the model (or data) of interest, and the ultimate purpose of the analysis.

History

The earliest forms of feature importance assessed the strength of the relationships between pairs of variables within animal biology or human psychology using methods such as Francis Galton's correlation coefficient.[non-primary source needed] Sewall Wright further developed variable importance, by introducing path analysis in 1921, to understand causal influences in complex systems.[non-primary source needed] Path analysis determines correlative influences along direct paths by decomposing correlation and partial correlation coefficients into their path-based components.[citation needed]

With Leo Breiman’s introduction of random forests, feature importance expanded to more nonlinear models and explanations. He introduced "permutation importance" sometimes measured by gini index. Simultaneously in 2001, Lipovetsky and Conklin applied the Shapley value from cooperative game theory to regression, providing a consistent method for variance attribution in the presence of multicollinearity.

Axioms for Feature Importance

Formal feature importance frameworks use mathematical axioms to define consistent scoring criteria and validate the theoretical properties of different estimation methods.

The Shapley Axioms (S1–S4)

Shapley values are the unique solution that satisfies four core game-theoretic axioms, which describe how to fairly distribute the "total gain" of a model's prediction among the participating features.

  1. Efficiency (Local Accuracy): The sum of the importance scores for all features must equal the difference between the model's prediction for an instance and the expected prediction .
  2. Symmetry: If two features and contribute exactly the same value to every possible subset of other features, they must receive the same importance score: .
  3. Dummy (Null Player): If a feature contributes nothing to the value function for any subset of features, its importance score must be zero. This is crucial for identifying irrelevant features.
  4. Additivity (Linearity): If the value function is the sum of two functions , then the importance scores must be the sum of the scores calculated for each function: .

Axioms for Explaining the Data

While the Dummy (Null Player) axiom is desirable for obtaining feature importance scores that can be used to optimize a model, this is not the case for explaining the data, since variables may be highly correlated (and hence offer little value to the existing model), yet remain causally linked to the response variable. Alternative axioms have been proposed for feature importance methods that intend to explain the data.

Classification of Methods

By Purpose

The choice of method is categorized based on the user's objective.

By Scope

Feature importance methods have been classified into four distinct settings based on two axes: Global vs. Local and Data vs. Model.

Reference: ModelReference: Data
Global Global-model importance: Explains how a trained model behaves across the entire dataset. It identifies which features the model generally relies on for its predictions. Global-data importance: Explains the true relationships in the underlying phenomenon. It seeks to identify the intrinsic predictive power of features within the population, regardless of a specific model's choices.
Local Local-model importance: Explains why a specific prediction was made for a single instance. It quantifies the influence of each feature on that a specific model's specific outcome. Local-data importance: Explains the role of a feature for a specific individual in the real world (e.g., why a specific patient developed a disease), focusing on the causal or statistical dependencies for that point.

Methods like SHAP and LIME are local-model. Global-model importance metrics include permutation importance and SAGE. Global-data methods include MCI and UMFI.

By Treatment of Correlated Features

Feature importance methods often differ in how they treat the correlation between features. In the presence of correlated features, predictive credit can be distributed in a variety of ways. Methods can therefore be classified based on how they assign credit to correlated features, where one end of the spectrum is given by Marginal feature importance, and the other is given by Conditional feature importance.

Methods such as SHAP and permutation importance are somewhere in between the two extremes, as importance is shared among correlated features.

Gradient vs. Non-Gradient

The technical implementation of the importance measure often dictates its applicability to different model architectures.

MechanismDescriptionExamples
Gradient-based Utilizes the derivatives (gradients) of the model's output with respect to its input features. These are typically model-specific and used for differentiable models like neural networks. Saliency Maps, Integrated Gradients, Grad-CAM, DeepLIFT.
Non-gradient based Treats the model as a "black box" and relies on perturbations, shuffling, or submodel training. These are typically model-agnostic and applicable to any algorithm. Permutation Importance, KernelSHAP, LOCO, MCI.

Other Classifications

Achen (1982) introduced a classification of linear regression-based feature importance methods: "dispersion importance" (explained variance), "level importance" (impact on the mean), and "theoretical importance" (the change in response for a given change in regressor).

Applications

See also

References

  1. 1 2 3 Holzinger, Andreas; Goebel, Randy; Fong, Ruth; Moon, Taesup; Müller, Klaus-Robert; Samek, Wojciech (2022). xxAI - Beyond Explainable Artificial Intelligence. International Workshop on Extending Explainable AI Beyond Deep Models and Classifiers. Cham: Springer International Publishing. pp. 3–10. doi:10.1007/978-3-031-04083-2_1. ISBN 978-3-031-04082-5.
  2. ↑ Galton, Francis (1889). "Co-relations and their measurement, chiefly from anthropometric data". Proceedings of the Royal Society of London. 45 (273–279): 135–145. doi:10.1098/rspl.1888.0082.
  3. ↑ Wright, S. (1921). "Correlation and Causation". Journal of Agricultural Research. 20: 557–585.
  4. ↑ Boulesteix, Anne-Laure; Janitza, Silke; Kruppa, Jochen; König, Inke R. (November 2012). "Overview of random forest methodology and practical guidance with emphasis on computational biology and bioinformatics". Wiley Interdisciplinary Reviews: Data Mining and Knowledge Discovery. 2 (6): 493–507. doi:10.1002/widm.1072.
  5. ↑ Babic, Boris; Cohen, I. Glenn; Savulescu, Julian (2026). "Justifiability and AI: putting explainability in its place". AI & SOCIETY: 1–13. doi:10.1007/s00146-026-03030-9.
  6. ↑ Verdinelli, Isabella; Wasserman, Larry (1 November 2024). "Feature Importance: A Closer Look at Shapley Values and LOCO". Statistical Science. 39 (4). arXiv:2303.05981. doi:10.1214/24-STS937.
  7. ↑ Lundberg, S. M.; Lee, S. I. (2017). A unified approach to interpreting model predictions. Advances in Neural Information Processing Systems. Vol. 30.
  8. 1 2 Catav, Amnon; Fu, Boyang; Zoabi, Yazeed; Meilik, Ahuva Libi Weiss; Shomron, Noam; Ernst, Jason; Sankararaman, Sriram; Gilad-Bachrach, Ran (2021). Marginal contribution feature importance: an axiomatic approach for explaining data. International Conference on Machine Learning. Proceedings of Machine Learning Research. pp. 1324–1335.
  9. ↑ Janssen, J.; Guan, V.; Robeva, E. (2023). Ultra-marginal feature importance: Learning from data with causal guarantees. International Conference on Artificial Intelligence and Statistics. Proceedings of Machine Learning Research. pp. 10782–10814.
  10. ↑ "A SYSTEMATIC LITERATURE REVIEW: RECURSIVE FEATURE ELIMINATION ALGORITHMS".
  11. 1 2 Harel, N.; Obolski, U.; Gilad-Bachrach, R. Inherent Inconsistencies of Feature Importance. XAI in Action: Past, Present, and Future Applications.
  12. ↑ Chen, H.; Janizek, J. D.; Lundberg, S.; Lee, S. I. (2020). "True to the model or true to the data?". arXiv:2006.16234 [cs.LG].
  13. 1 2 Covert, I.; Lundberg, S. M.; Lee, S. I. (2020). Understanding global feature contributions with additive importance measures. Advances in Neural Information Processing Systems. Vol. 33. pp. 17212–17223.
  14. 1 2 Strobl, C.; Boulesteix, A. L.; Kneib, T.; Augustin, T.; Zeileis, A. (2008). "Conditional variable importance for random forests". BMC Bioinformatics. 9 (1): 307. doi:10.1186/1471-2105-9-307. PMC 2491635.
  15. ↑ Grömping, U. (2015). "Variable importance in regression models". Wiley Interdisciplinary Reviews: Computational Statistics. 7 (2): 137–152. doi:10.1002/wics.1346.
  16. ↑ Molnar, C.; König, G.; Bischl, B.; Casalicchio, G. (2024). "Model-agnostic feature importance and effects with dependent features: a conditional subgroup approach". Data Mining and Knowledge Discovery. 38 (5): 2903–2941. arXiv:2006.04628. doi:10.1007/s10618-022-00901-9.
  17. ↑ "MASE: Interpretable NLP Models via Model-Agnostic Saliency Estimation", arXiv.
  18. ↑ Achen, C. H. (1982). Interpreting and Using Regression. Newbury Park, CA: Sage.
  19. ↑ García Andreu, A.; Costa, M.; Pastor, O. (2025). "Feature Selection in Medical Imaging: A Comprehensive Review". International Conference on Advanced Information Systems Engineering. Cham: Springer Nature Switzerland. pp. 142–154.
  20. ↑ Vimbi, V.; Shaffi, N.; Mahmud, M. (2024). "Interpreting artificial intelligence models: a systematic review on the application of LIME and SHAP in Alzheimer's disease detection". Brain Informatics. 11 (1): 10.
  21. ↑ Ibebuchi, C. C. (2025). "Uncertainty in machine learning feature importance for climate science: a comparative analysis of SHAP, PDP, and gain-based methods". Theoretical and Applied Climatology. 156 (9): 476.
  22. ↑ Samek, W.; Montavon, G.; Lapuschkin, S.; Anders, C. J.; Müller, K.-R. (2021). "Explaining deep neural networks and beyond: A review of methods and applications". Proceedings of the IEEE. 109 (3): 247–278.