Game-Theoretic Feature Attribution for Machine Learning Interpretability

99 concepts94 papers4 proposals

Modern machine learning models—such as deep neural networks and gradient-boosted decision trees—excel at capturing complex, non-linear relationships within data. However, this predictive power comes at a cost: opacity. When an ensemble model predicts a high risk of surgical mortality or flags a specific region for mineral exploration, understanding why the model arrived at that conclusion is critical.

To open these "black boxes," researchers across diverse fields have converged on game-theoretic feature attribution, primarily operationalized through SHAP (Shapley Additive exPlanations) values. This framework provides a mathematically rigorous way to assign credit to individual input features for a specific model prediction.

The Core Intuition: Features as Players in a Cooperative Game

To understand why game-theoretic feature attribution works, we can translate a machine learning prediction problem into the language of cooperative game theory.

Imagine a team of players collaborating to win a cash prize. In a machine learning context:

  • The game is the model's prediction task for a single data point.
  • The players are the individual input features (e.g., a patient's blood pressure, a molecule's spin state, or a region's soil salinity).
  • The payout is the difference between the model's actual prediction for that data point and the expected (average) prediction across the entire dataset.

The fundamental challenge is fairness: how do we distribute the payout among the players in a way that accurately reflects each player's true contribution?

We cannot simply look at a feature's effect in isolation, nor can we just drop it from the final model. Features interact. For instance, a high body temperature might only be alarming to a diagnostic model if a specific blood marker is also elevated. To capture these interactions, we must evaluate a feature's marginal contribution across every possible combination (or coalition) of features.

The Shapley Value Formula

To compute the exact contribution of a feature $i$, we calculate how much the model's prediction changes when feature $i$ is added to a subset of other features $S$ (where $S$ does not contain $i$).

The marginal contribution of feature $i$ to a specific sub-coalition $S$ is expressed as:

$$\Delta_i(S) = f(S \cup \{i\}) - f(S)$$

Where $f(S)$ is the model's prediction given only the features in subset $S$.

To find the overall contribution—the Shapley value—we take a weighted average of this marginal contribution over all possible subsets $S$ of the total feature set $F \setminus \{i\}$:

$$\phi_i = \sum_{S \subseteq F \setminus \{i\}} \frac{|S|!(|F| - |S| - 1)!}{|F|!} \left[ f(S \cup \{i\}) - f(S) \right]$$

The combinatorial weight $\frac{|S|!(|F| - |S| - 1)!}{|F|!}$ accounts for the number of different ways the subset $S$ can be formed. By averaging over all possible sequences in which features can join the coalition, the formula eliminates any bias introduced by the order in which features are evaluated.

The Axioms of Fairness

What makes this specific formulation uniquely powerful is that it is the only attribution method guaranteed to satisfy four fundamental axioms of fairness:

  1. Efficiency (Local Accuracy): The sum of the attributions of all features must equal the difference between the model's output $f(x)$ and the base expected value $E[f(x)]$. No credit is left unassigned.
  2. Symmetry: If two features contribute identically to all possible coalitions, their assigned attributions must be equal.
  3. Dummy (Null Player): If a feature never changes the model's prediction regardless of which coalition it joins, its attribution is exactly zero.
  4. Additivity: If a prediction is the result of adding two separate models together, the feature attributions of the combined model must equal the sum of the attributions from the individual models.

As noted in a broad overview of explainable AI by Andreas Holzinger et al., these mathematical guarantees have made game-theoretic attribution the preferred choice for developers requiring stable, legally defensible, and theoretically sound explanations (Explainable AI Methods - A Brief Overview).

From Theory to Practice: SHAP and Its Variants

Computing exact Shapley values requires evaluating $2^{|F|}$ feature subsets, an exponential complexity that quickly becomes intractable. For a model with only 30 features, this means calculating over a billion model predictions for a single data point.

To bridge the gap between theory and practice, the SHAP framework introduces clever approximation methods. KernelSHAP uses a weighted linear regression as a local surrogate model to approximate Shapley values for any black-box model, a technique utilized by Chang Liu et al. to interpret critical organ dysfunction predictions in intensive care units (Early prediction of MODS interventions in the intensive care unit using machine learning).

For tree-based ensembles like Random Forests, XGBoost, and CatBoost, TreeSHAP optimizes this process by tracking the internal structure of decision trees, reducing the computational complexity from exponential to polynomial time. This allows for exact, rapid calculations even on large datasets.

Beyond explaining individual predictions, aggregating local Shapley values across an entire dataset yields global explanations. This allows researchers to see not just how a feature affects a single instance, but how its impact scales across the entire population.

Uncovering Non-linearities and Threshold Effects

Because Shapley values evaluate features within the context of all possible feature combinations, they excel at revealing non-linear relationships and threshold effects that traditional global importance metrics (like Gini importance) completely obscure.

For example, in urban planning, Linggui Liu et al. demonstrated how combining XGBoost with SHAP uncovers specific environmental thresholds where the demand for elderly care facilities changes drastically (Data-Driven Spatial Optimization of Elderly Care Facilities: A Study on Nonlinear Threshold Effects Based on XGBoost and SHAP - A Case Study of Xi'an, China). Similarly, Cong Li et al. used SHAP interaction values to isolate how pairs of built-environment features jointly influence block-level urban vitality, mapping out exactly where psychological and physical barriers manifest (Exploring Nonlinear Threshold Effects and Interactions Between Built Environment and Urban Vitality at the Block Level Using Machine Learning).

A Unified Framework Across Domains

The versatility of game-theoretic feature attribution is evident in its widespread adoption across vastly different scientific and engineering domains. Because the framework is model-agnostic, it serves as a universal translator for machine learning insights:

By grounding interpretability in the axiomatic rigor of cooperative game theory, feature attribution transforms machine learning from a purely predictive exercise into a diagnostic tool capable of generating verifiable scientific hypotheses.

Key Foundational Work

Understanding the factors related to the opioid epidemic using machine learning (2021) — contributed 1 concept elements to this direction.
History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_feature_contribution_analysis_fd3409f0,
  title = {feature contribution analysis},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/feature-contribution-analysis/rdr_fd3409f0968c412d8e8ad77ec2d3b226},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-24},
}

This exact version (version 1, frozen text):

@misc{lacuna_feature_contribution_analysis_fd3409f0_v1,
  title = {feature contribution analysis},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/feature-contribution-analysis/rdr_fd3409f0968c412d8e8ad77ec2d3b226/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-24},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake