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. Sewall Wright further developed variable importance, by introducing path analysis in 1921, to understand causal influences in complex systems. Path analysis determines correlative influences along direct paths by decomposing correlation and partial correlation coefficients into their path-based components. 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.
Efficiency (Local Accuracy): The sum of the importance scores ϕj for all features must equal the difference between the model's prediction for an instance f(x) and the expected prediction E[f(X)]. Symmetry: If two features i and j contribute exactly the same value to every possible subset of other features, they must receive the same importance score: ϕi=ϕj. 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. Additivity (Linearity): If the value function is the sum of two functions v=v1+v2, then the importance scores must be the sum of the scores calculated for each function: ϕj(v)=ϕj(v1)+ϕj(v2).
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.
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
By Purpose 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). 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.
By Scope Feature importance methods have been classified into four distinct settings based on two axes: Global vs. Local and Data vs. Model.
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.
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, 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. 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.
… excerpt ends here. Continue reading the full article.