The Explanation Game: Explaining Machine Learning Models with Cooperative Game Theory

Luke Merrick, Ankur TalyarXiv 2019

Introduction

As machine learning (ML) is increasingly deployed in high-stakes domains such as credit scoring and medical diagnosis, the need for interpretability has become paramount. Feature attribution—the process of assigning a score to each input feature based on its contribution to a specific prediction—is a leading approach. Shapley values, derived from cooperative game theory, are often considered the gold standard for attribution due to their unique mathematical guarantees of fairness (axioms).

However, a significant challenge remains: to calculate Shapley values, one must define a "game" where features act as players. Current popular methods like SHAP, KernelSHAP, QII, and IME each define this game differently, particularly regarding how they handle "missing" features. This inconsistency leads to a paradox where different methods, all claiming to be the "unique" Shapley solution, provide divergent answers for the same prediction.

The Problem: Inconsistent Game Formulations

The core issue identified is that existing methods can produce counter-intuitive results and even violate fundamental axioms like the Insensitivity (Dummy) Axiom. This axiom states that a feature not used by the model should receive zero credit. Yet, some methods assign significant credit to irrelevant features simply because they are correlated with influential ones in the training data. This "correlation trap" can mislead practitioners into believing a model relies on features it actually ignores.

The FAE Framework: Formulate, Approximate, Explain

To address these inconsistencies, the authors propose a unified framework called FAE (Formulate, Approximate, Explain). This framework is built on three technical pillars:

  1. Unified Formulation: Most existing attribution methods can be represented as a single game formulation parameterized by a reference distribution ($\mathcal{D}^{ref}$). By selecting different distributions, one can recover various existing methods, providing a common language for comparison.
  2. Decomposition into Single-Reference Games: The Shapley value of a complex game is shown to be the average of Shapley values from "single-reference games." In these games, a feature's absence is simulated by replacing it with a value from a specific reference point.
  3. The FAE Process:
    • Formulate: Users choose a "contrastive" reference distribution based on the specific question they want to answer (e.g., "Why was this loan rejected compared to accepted applicants?").
  4. Approximate: Using the decomposition property, the framework samples references to compute attributions. This allows for the calculation of the Standard Error of the Mean (SEM), providing confidence intervals for feature importance—a critical addition for reliable explanations.
  5. Explain: Rather than a single point estimate, the authors suggest summarizing the distribution of attributions through means, clustering, or visualization to capture the full impact of a feature.

Key Results and Validation

The FAE framework was evaluated using both toy models and real-world datasets, including UCI Bike Sharing, UCI Adult Income, and Lending Club.

Fairness and Sanity Checks

A toy "mover hiring" model was used to test adherence to the Dummy axiom. In this scenario, a model $f_{male}$ only considers whether a candidate is male, ignoring their lifting ability.

Data distribution and model definitions for the toy 'mover hiring' example.

As shown in the results below, traditional SHAP assigns equal credit to "is male" and "is a good lifter" for $f_{male}$, despite the model ignoring the latter. The unified formulation allows for identifying methods that correctly assign zero credit to the irrelevant feature.

Feature attributions across different payoff formulations for the toy model.

Contextual Explanations and Uncertainty

In the Lending Club dataset, FAE demonstrated that explanations are inherently contrastive. Changing the reference distribution from "all applications" to "accepted applications" shifted the focus to features like credit score and debt-to-income ratio. Furthermore, the inclusion of confidence intervals highlighted that some "mean" attributions are misleadingly near zero because their effects across different references cancel out, despite the feature having high variance and impact.

Conclusion

The FAE framework provides a rigorous foundation for feature attribution by clarifying the role of the reference distribution. By treating explanations as contrastive and accounting for sampling uncertainty, FAE offers a more robust and interpretable approach to understanding machine learning models. Future work will focus on optimal ways to summarize attribution distributions for end-users and improving the computational efficiency of these sampling-based methods.

Summary updated

BibTeX
@misc{merrick2019explanation,
  author = {Luke Merrick and Ankur Taly},
  title = {{The Explanation Game: Explaining Machine Learning Models with Cooperative Game Theory}},
  year = {2019},
  eprint = {1909.08128},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1909.08128},
}
Figure