Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Draft:Feature Importance

From Wikipedia, the free encyclopedia



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.[1]

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.[1]

History

[edit]

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.[2] Sewall Wright further developed variable importance, by introducing path analysis in 1921, to understand causal influences in complex systems.[3] Path analysis determines correlative influences along direct paths by decomposing correlation and partial correlation coefficients into their path-based components.

For decades, the inspection of standardized regression coefficients (or regression weights) were the dominant approach to variable importance. These weights, however, were unstable in the presence of multicollinearity (i.e., when there is high correlation between predictor variables). This led to a problem where the importance assigned to a variable depended on the order in which it was entered into a sequential regression model.[4] In the 1980s, William Kruskal proposed that relative importance should be averaged over all possible orderings of the independent variables to ensure that no single variable was unfairly penalized or elevated by its position in the model.[5] This approach was formalized as the LMG method, named after Lindeman, Merenda, and Gold.[6]

The Random Forest and XAI Era (2001–Present)

[edit]

With Leo Breiman’s introduction of Random Forests, feature importance expanded to more nonlinear models and explanations. Instead of model parameters (coefficients) and linear importance, he introduced "permutation importance" (Mean Decrease Accuracy or GINI), which assessed nonlinear importance by measuring the drop in model performance when a feature's values were randomly shuffled.[7] 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.[8]

Gradient-based feature importance methods emerged from early sensitivity analysis in neural networks and have become a popular family of feature importance following the deep learning revolution. Gradient-based feature importance relies on the computation of the partial derivatives of a model’s output with respect to its inputs in order to quantify how small input changes affect predictions. Simple input gradients and gradient/input methods were among the earliest and most widely used due to their computational efficiency. Integrated Gradients were later introduced to address instability and noise, which was especially observed in deep, non-linear models [9]. These methods average gradients along a path from a baseline input to the actual input. Closely related methods include DeepLIFT, which propagates contribution scores relative to a reference activation, and Layer-wise Relevance Propagation (LRP), which redistributes prediction scores backward through the network. Variants such as SmoothGrad further improve robustness by averaging gradients over noisy perturbations.

In 2017, Scott Lundberg and Su-In Lee introduced SHAP (SHapley Additive exPlanations). SHAP unified various local attribution methods (like LIME and DeepLIFT) under the umbrella of Shapley values, providing the first mathematically consistent framework for local feature importance in any machine learning model.[10]

While the majority of modern feature importance methods are directly derived from machine learning models, and are often used for feature selection and model optimization, machine learning-based methods have also been developed specifically for the task of interpreting relationships in the data. [11]

Axioms for Feature Importance

[edit]

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)

[edit]

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.[12] [10]

  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

[edit]

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.[13]

  • Blood Relation (Causal Graph Association): A feature should have non-zero importance if and only if the feature is blood related (associated) with the response in the ground-truth causal graph.
  • Marginal Contribution: The importance of a feature must be at least as high as the gain it provides when added to the set of all other features.
  • Elimination: Removing other features from the feature set can only decrease (or leave unchanged) the importance of a remaining feature. It cannot increase it.
  • Invariance under Redundant Information and Symmetry under Duplication: Adding a redundant feature should not change the importance of preexisting features, and identical features should receive equal importance.


Classification of Methods

[edit]

By Purpose

[edit]

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

  • Model Explanation: The goal is to understand the "logic" of a black-box model to ensure safety, fairness, and reliability. Methods like SHAP, LIME, and Accumulated local effects are standard here.
  • Data Explanation (Scientific Inference): The goal is to learn about the real world. Researchers prioritize methods that handle redundancy and correlation in a way that reflects the true underlying relationships (e.g., MCI, UMFI).[14]
  • Model Optimization (Feature Selection): The goal is to improve the model's performance by removing irrelevant or redundant features. Techniques like Recursive Feature Elimination (RFE) use importance scores as a selection criterion.[15]

By Scope

[edit]

Feature importance methods have been classified into four distinct settings based on two axes: Global vs. Local[1] and Data vs. Model.[11] [16] [17]

Reference: Model Reference: 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.[17] Global-data methods include MCI and UMFI. [11]

By Treatment of Correlated Features

[edit]

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.[18] [4] [19]

  • Conditional Feature Importance: Evaluates a feature by conditioning on the values of all other features. This approach respects the dependence structure of the data and measures the unique information a feature provides that is not already captured by other variables. Methods in this category include conditional permutation importance[18], Leave-One-Covariate-Out, and partial correlation.
  • Marginal Feature Importance: Relies on associations between the response and predictors, regardless of multicollinearity. Purely marginal methods assign the same high importance to all features. Examples include correlation, marginal contribution feature importance, and ultra-marginal feature importance.[13]

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

[edit]

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

Mechanism Description Examples
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

[edit]

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).[21]

Applications

[edit]

See also

[edit]

References

[edit]
  1. ^ a b c 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. ^ a b Grömping, U. (2015). "Variable importance in regression models". Wiley Interdisciplinary Reviews: Computational Statistics. 7 (2): 137–152. doi:10.1002/wics.1346.
  5. ^ Kruskal, W. (1987). "Relative importance by averaging over orderings". The American Statistician. 41: 6–10. doi:10.1080/00031305.1987.10475432.
  6. ^ Lindeman, R. H.; Merenda, P. F.; Gold, R. Z. (1980). Introduction to Bivariate and Multivariate Analysis. Glenview, IL: Scott, Foresman.
  7. ^ 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.
  8. ^ 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.
  9. ^ Sundararajan, M.; Taly, A.; Yan, Q. (2017). Axiomatic attribution for deep networks. International Conference on Machine Learning. Proceedings of Machine Learning Research. pp. 3319–3328.
  10. ^ a b Lundberg, S. M.; Lee, S. I. (2017). A unified approach to interpreting model predictions. Advances in Neural Information Processing Systems. Vol. 30.
  11. ^ a b c Harel, N.; Obolski, U.; Gilad-Bachrach, R. Inherent Inconsistencies of Feature Importance. XAI in Action: Past, Present, and Future Applications.
  12. ^ "Feature Importance: A Closer Look at Shapley Values and LOCO", arXiv, 2023. [1]
  13. ^ a b 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.
  14. ^ 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.
  15. ^ "A SYSTEMATIC LITERATURE REVIEW: RECURSIVE FEATURE ELIMINATION ALGORITHMS". [2]
  16. ^ 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].
  17. ^ a b 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.
  18. ^ a b 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.
  19. ^ 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. doi:10.1007/s10618-022-00901-9.
  20. ^ "MASE: Interpretable NLP Models via Model-Agnostic Saliency Estimation", arXiv. [3]
  21. ^ Achen, C. H. (1982). Interpreting and Using Regression. Newbury Park, CA: Sage.
  22. ^ 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.
  23. ^ 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.
  24. ^ 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.
  25. ^ 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.