Skip to main content
QUICK REVIEW

[Paper Review] A Refutation of Shapley Values for Explainability

Xuanxiang Huang, João Marques‐Silva|arXiv (Cornell University)|Sep 6, 2023
Explainable Artificial Intelligence (XAI)Computer Science3 citations
TL;DR

This paper refutes the use of Shapley values for feature attribution in explainable AI by proving that, for any number of features beyond a small threshold, there exist Boolean functions where irrelevant features are assigned higher Shapley values than relevant ones—demonstrating that Shapley values can systematically misrepresent feature importance in rule-based explanations.

ABSTRACT

Recent work demonstrated the existence of Boolean functions for which Shapley values provide misleading information about the relative importance of features in rule-based explanations. Such misleading information was broadly categorized into a number of possible issues. Each of those issues relates with features being relevant or irrelevant for a prediction, and all are significant regarding the inadequacy of Shapley values for rule-based explainability. This earlier work devised a brute-force approach to identify Boolean functions, defined on small numbers of features, and also associated instances, which displayed such inadequacy-revealing issues, and so served as evidence to the inadequacy of Shapley values for rule-based explainability. However, an outstanding question is how frequently such inadequacy-revealing issues can occur for Boolean functions with arbitrary large numbers of features. It is plain that a brute-force approach would be unlikely to provide insights on how to tackle this question. This paper answers the above question by proving that, for any number of features, there exist Boolean functions that exhibit one or more inadequacy-revealing issues, thereby contributing decisive arguments against the use of Shapley values as the theoretical underpinning of feature-attribution methods in explainability.

Motivation & Objective

  • To investigate whether misleading feature importance assignments via Shapley values are common or rare in Boolean functions with arbitrary numbers of features.
  • To address the limitation of prior work that relied on brute-force enumeration for small functions, which could not generalize to larger feature sets.
  • To formally prove that Shapley values can produce incorrect relative importance rankings between relevant and irrelevant features for any number of features beyond a small threshold.
  • To provide constructive proofs showing how to build such misleading examples systematically, not just empirically.
  • To challenge the theoretical foundation of Shapley values in explainability by demonstrating their fundamental incompatibility with feature selection principles in rule-based models.

Proposed method

  • Constructs a family of Boolean functions with $ n $ variables where the structure ensures that one irrelevant feature (e.g., $ x_{n-1} $) is assigned a higher Shapley value than a relevant feature (e.g., $ x_n $).
  • Uses a layered function definition: $ \kappa(x_{1..m}, x_{n-1}, x_n) $, where the output depends on $ \kappa_1 $, $ \kappa_2 $, and $ \kappa_3 $, with $ \kappa_3 $ set to 1 within a Hamming distance of 2 from a target point.
  • Applies the Shapley value formula: $ \mathsf{Sv}(i) = \sum_{\mathcal{S} \subseteq \mathcal{F} \setminus \{i\}} \frac{|\mathcal{S}|!(m - |\mathcal{S}|)!}{(m+1)!} \left( \phi(\mathcal{S} \cup \{i\}) - \phi(\mathcal{S}) \right) $, focusing on subsets of size $ m-4 $ to $ m+1 $.
  • Analyzes marginal contributions across subsets to show that the Shapley value for an irrelevant feature $ x_{n-1} $ exceeds that of a relevant feature $ x_n $, even though $ x_n $ is essential for the prediction.
  • Proves $ \mathsf{Sv}(n-1) > \mathsf{Sv}(n) > 0 $ by computing the sum of contributions over critical subsets and showing it is positive.
  • Demonstrates that such counterexamples exist for any $ m \geq 5 $, with $ 2^{2^{n-2} - (n-2) - 1} - 1 $ possible constructions for $ \kappa_1 $, ensuring a large number of such functions.

Experimental results

Research questions

  • RQ1Can Shapley values systematically misrank the importance of features in rule-based models, assigning higher values to irrelevant features than to relevant ones?
  • RQ2Are such misleading cases rare or common across Boolean functions with arbitrary numbers of features?
  • RQ3Can we construct explicit Boolean functions with arbitrarily large numbers of features where Shapley values fail to reflect true feature relevance?
  • RQ4Is the inadequacy of Shapley values for explainability a structural flaw or limited to small, edge-case functions?
  • RQ5What is the size of the set of functions that exhibit such misleading behavior, and how does it scale with the number of features?

Key findings

  • For any number of features $ n > 3 $, there exist Boolean functions where an irrelevant feature is assigned a higher Shapley value than a relevant feature.
  • The paper constructs such functions explicitly, proving that the issue is not limited to small or rare cases but occurs generically for large $ n $.
  • The Shapley value of an irrelevant feature $ x_{n-1} $ is shown to be greater than that of a relevant feature $ x_n $, with $ \mathsf{Sv}(n-1) > \mathsf{Sv}(n) > 0 $, using subset contribution analysis.
  • The sum of marginal contributions for $ x_n $ over subsets of size $ m-4 $ to $ m+1 $ is shown to be positive, proving $ \mathsf{Sv}(n) > 0 $, while $ \mathsf{Sv}(n-1) $ remains larger.
  • There are at least $ 2^{2^{n-2} - (n-2) - 1} - 1 $ distinct functions where this misranking occurs, indicating a significant number of such counterexamples.
  • The results hold for all $ m \geq 5 $, and the construction method ensures that the issue persists regardless of the number of features, undermining the general applicability of Shapley values in explainability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.