NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Explainability is NOT a Game

João Marques-Silva, Xuanxiang Huang · DOI

Abstract

Machine learning explainability often relies on Shapley values to attribute feature importance. This paper demonstrates that Shapley values can fundamentally fail to respect logical feature relevancy, often assigning higher importance to irrelevant features than to relevant ones. Through an exhaustive study of 4-variable boolean functions, the authors show these failures are systemic, advocating for a shift toward logic-based "Formal Explainability."

Introduction

As machine learning (ML) models grow in complexity, the need for eXplainable AI (XAI) becomes paramount. Feature attribution methods, particularly those based on Shapley values (like SHAP), have become the industry standard. These methods treat features as players in a cooperative game, distributing the "payout" (the prediction) among them. However, this paper argues that the game-theoretic framework is ill-suited for classification logic. In a classifier, some features may be logically irrelevant to a specific decision, a distinction Shapley values often fail to make.

Formal vs. Heuristic Explainability

The authors contrast popular heuristic methods with Formal Explainability, which utilizes rigorous logic. Two key concepts are introduced:

  1. Abductive Explanations (AXp): The minimal set of features that guarantees a prediction remains unchanged, regardless of other feature values.
  2. Contrastive Explanations (CXp): The minimal set of features that, if altered, could change the prediction.

To evaluate Shapley values, the authors tested them against these logical ground truths across all 65,534 possible non-constant 4-variable boolean functions.

Illustration of logical relevancy testing using templates and point sets.

The Decision Tree Counter-Example

A core contribution is a specific Decision Tree (DT) counter-example. In this model, a feature can be logically irrelevant to a prediction yet receive a higher Shapley value than features that are strictly necessary for that prediction.

A Decision Tree and its corresponding truth table used to demonstrate the 'Irrelevancy Paradox.'

In this example, an irrelevant feature was found to have an absolute Shapley value of 0.1719, while all relevant features were valued at only 0.1198. This "smearing" of importance occurs because Shapley values average over all possible feature subsets, including those that are logically impossible or irrelevant in the context of a specific decision boundary.

Key Results from Exhaustive Analysis

The study of over a million unique instances across 4-variable functions revealed that these issues are not rare edge cases:

  • 99.67% of functions assigned non-zero Shapley values to at least one logically irrelevant feature.
  • 61.72% of functions contained instances where an irrelevant feature was deemed more important than a relevant one.
  • 11.90% of functions had cases where a relevant feature was assigned a Shapley value of zero, rendering it invisible to the user.

Conclusion

The findings suggest that Shapley values—and their popular approximations like SHAP—may be fundamentally flawed for high-stakes XAI. If the underlying mathematical concept does not respect logical relevancy, its use in fields like medicine or law could lead to grave consequences. The authors call for a move toward formal methods that provide rigorous guarantees of feature importance.

Summary updated

BibTeX
@article{marquessilva2024explainability,
  author = {João Marques-Silva and Xuanxiang Huang},
  title = {{Explainability is NOT a Game}},
  journal = {Communications of the ACM},
  year = {2024},
  doi = {10.1145/3635301},
}
Figure