[Paper Review] WeightedSHAP: analyzing and improving Shapley based feature attributions
This paper proposes WeightedSHAP, a generalization of the SHAP method that learns data-dependent weights for marginal contributions in Shapley value attribution, addressing the limitation of uniform weighting that can lead to suboptimal feature importance rankings. Experiments show WeightedSHAP significantly improves prediction recovery and performance on multiple evaluation metrics across diverse datasets, outperforming standard Shapley and other baselines.
Shapley value is a popular approach for measuring the influence of individual features. While Shapley feature attribution is built upon desiderata from game theory, some of its constraints may be less natural in certain machine learning settings, leading to unintuitive model interpretation. In particular, the Shapley value uses the same weight for all marginal contributions -- i.e. it gives the same importance when a large number of other features are given versus when a small number of other features are given. This property can be problematic if larger feature sets are more or less informative than smaller feature sets. Our work performs a rigorous analysis of the potential limitations of Shapley feature attribution. We identify simple settings where the Shapley value is mathematically suboptimal by assigning larger attributions for less influential features. Motivated by this observation, we propose WeightedSHAP, which generalizes the Shapley value and learns which marginal contributions to focus directly from data. On several real-world datasets, we demonstrate that the influential features identified by WeightedSHAP are better able to recapitulate the model's predictions compared to the features identified by the Shapley value.
Motivation & Objective
- To identify and analyze the limitations of the standard Shapley value in machine learning interpretation, particularly its uniform weighting of marginal contributions.
- To demonstrate that uniform weighting can lead to mathematically suboptimal feature attributions, assigning higher influence to less relevant features in certain settings.
- To propose a flexible, data-driven generalization of SHAP that learns optimal weights for marginal contributions to improve attribution quality.
- To empirically validate that WeightedSHAP better identifies influential features that recapitulate model predictions compared to standard SHAP.
- To show that WeightedSHAP adapts effectively to different downstream evaluation objectives, such as prediction recovery and inclusion/exclusion performance.
Proposed method
- WeightedSHAP generalizes the Shapley value by replacing the uniform average of marginal contributions with a weighted average, where weights are learned from data.
- The method optimizes a utility function (e.g., prediction recovery error or AUC) to learn the optimal weights for marginal contributions based on the model's behavior.
- The weights are learned via a differentiable optimization process that adjusts to the signal-to-noise ratio of marginal contributions across different coalition sizes.
- The framework is compatible with existing SHAP implementations and can be applied to any model-agnostic explanation task.
- The approach supports both local and global interpretation by learning feature attributions that reflect the model’s behavior under various feature subsets.
- It uses a flexible utility function in the optimization step, allowing adaptation to different evaluation metrics such as Inclusion AUC or Exclusion MSE.
Experimental results
Research questions
- RQ1Does the uniform weighting of marginal contributions in the standard Shapley value lead to suboptimal feature importance rankings in real-world ML models?
- RQ2Can learning data-dependent weights for marginal contributions improve the accuracy of feature attribution in recapitulating model predictions?
- RQ3How does WeightedSHAP perform compared to standard SHAP and other baselines on diverse real-world datasets and evaluation metrics?
- RQ4To what extent can WeightedSHAP adapt to different downstream objectives such as prediction recovery or feature inclusion/exclusion performance?
- RQ5Is the improvement of WeightedSHAP consistent across different types of models and data distributions?
Key findings
- WeightedSHAP achieves significantly lower prediction recovery error than standard Shapley value across four binary classification datasets, with a consistent 10-20% improvement in mean error.
- On the Inclusion AUC metric, WeightedSHAP outperforms Shapley value in all four classification datasets, with p-values < 0.05 in paired t-tests, indicating statistical significance.
- In Exclusion performance evaluation, WeightedSHAP shows substantially lower MSE than both Shapley and MCI baselines, especially in high-dimensional settings.
- The method achieves superior performance on both masked-feature Inclusion and Exclusion metrics, demonstrating robustness across different evaluation objectives.
- WeightedSHAP consistently identifies more influential features that better explain model predictions, as validated through 50 independent runs with 95% confidence intervals.
- The improvement is not limited to a single metric; WeightedSHAP outperforms standard Shapley across multiple evaluation criteria, including AUC, MSE, and recovery error.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.