Shapley Value Approximation based on k-Additive Games

Guilherme Dean Pelegrina, Patrick Kolpaczki, Eyke Hüllermeier · Submission to ICLR 2025 · Rejected

TL;DR

Exact computation of the Shapley value requires evaluating an exponential number of player coalitions, making it practically infeasible for large models and feature sets. The authors propose SVA$k_{\text{ADD}}$, a method that fits a structured, $k$-additive surrogate game to a small set of sampled coalitions using weighted least squares. Because the surrogate game restricts interactions to orders up to $k$, its Shapley values can be extracted in polynomial time, delivering state-of-the-art accuracy in low-sample-budget regimes.

What Problem Does This Paper Address?

In Explainable AI (XAI) and cooperative game theory, the Shapley value is the gold-standard metric for dividing credit or attribution fairly among participating entities (such as input features or data points). However, calculating exact Shapley values requires evaluating all $2^n$ possible coalitions of $n$ players—an NP-hard problem.

When evaluating each coalition is expensive (e.g., retraining models or running large neural networks), practitioners must rely on approximations. While standard sampling-based estimators (like permutation or stratified Monte Carlo sampling) are asymptotically unbiased, they typically require many evaluations before their variance drops to an acceptable level.

Methods

SVA$k_{\text{ADD}}$ shifts the approximation problem from standard Monte Carlo mean estimation to surrogate modeling:

  • $k$-Additive Games: A game is $k$-additive if all Shapley interaction indices $I(S)$ vanish for player subsets of size $|S| > k$. This reduces the number of free parameters from $2^n$ to a polynomial number (e.g., $n(n+1)/2$ for $k=2$, and $n(n^2+5)/6$ for $k=3$).
  • Surrogate Fitting via Weighted Least Squares: The algorithm samples $T$ coalitions without replacement using the KernelSHAP sampling distribution $\pi(A) = \frac{n-1}{\binom{n}{|A|}|A|(n-|A|)}$. It then solves a constrained weighted least squares regression to fit the interaction indices of the $k$-additive game, strictly enforcing efficiency by forcing exact equality at the empty coalition $\nu(\emptyset)$ and grand coalition $\nu(N)$ (via heavy weighting, e.g., $10^6$).
  • Closed-Form Shapley Value Retrieval: Once the surrogate game's interaction parameters are estimated, the Shapley values are simply the singleton interaction terms: $\hat{\phi}_i = I^k(\{i\})$.

Datasets

The authors evaluated SVA$k_{\text{ADD}}$ across nine real-world datasets covering three distinct explanation paradigms (no new public benchmarks were introduced):

  1. Global Feature Importance (evaluating accuracy/MSE drop by retraining 20-tree random forests):
  2. Diabetes (10 features, regression)
  3. Titanic (11 features, classification)
  4. Wine (13 features, classification)
  5. Local Feature Attribution (evaluating model output with missing features masked/imputed):
  6. Adult (14 features, classification via gradient-boosted trees)
  7. ImageNet (14 SLIC super-pixels as players, classification via ResNet18)
  8. IMDB (14 token players, sentiment regression via DistilBERT)
  9. Unsupervised Feature Importance (measuring total correlation via Shannon entropy without predictive models):
  10. Breast Cancer (9 features)
  11. Big Five (12 features)
  12. FIFA 21 (12 features)

Key Insights and Ideas

  • The Bias–Variance Trade-Off in Surrogates: Restricting the game to $k$-additivity introduces structural bias (since real-world feature interactions can exceed order $k$), but it drastically lowers estimation variance.
  • The "Sweet Spot" is $k=3$: Setting $k=1$ (purely additive) lacks expressiveness and hits an error floor quickly. Setting $k=2$ often displays non-monotonic error curves—MSE decreases initially but can rise again as more samples are added because fitting coalition values does not directly optimize for Shapley values. Setting $k=3$ consistently provides the best balance of expressiveness and rapid convergence.
  • Sample Size Rule of Thumb: Empirically, the $3$-additive model hits near-optimal accuracy when evaluated on roughly twice its number of parameters: $T \approx \frac{n(n^2+5)}{3}$ coalition evaluations.

Key Results

  • Superior Low-Budget Performance: SVA$k_{\text{ADD}}$ ($k=3$) consistently matches or outperforms strong baselines—including Permutation Sampling (ApproShapley), Stratified Sampling, and Stratified SVARM—in the low-evaluation regime (e.g., within 500 to 2,000 evaluations for $n=14$).
  • Rapid Convergence on Heavy Models: On tasks with complex models like ResNet18 (ImageNet) and DistilBERT (IMDB), SVA$k_{\text{ADD}}$ drops the Mean Squared Error (MSE) orders of magnitude faster than Monte Carlo alternatives, which require thousands more queries to reach comparable error levels.

Limitations and Future Work

  • Minimum Sample Threshold: For a given $k$, SVA$k_{\text{ADD}}$ requires a minimum number of samples to uniquely identify surrogate parameters, preventing its use at extremely small budgets when $k \ge 3$.
  • Asymptotic Error Plateau: Because the surrogate imposes structural bias, methods like Stratified SVARM eventually achieve lower MSE given sufficiently large sample budgets.
  • Unexploited Interaction Indices: The optimization process naturally solves for higher-order interaction indices ($|S| \le k$), but this paper only extracts singleton Shapley values. Utilizing these estimated interactions for detecting redundant and complementary features remains open for future research.

Summary updated

BibTeX
@misc{pelegrina2025shapley,
  author = {Guilherme Dean Pelegrina and Patrick Kolpaczki and Eyke Hüllermeier},
  title = {{Shapley Value Approximation based on k-Additive Games}},
  year = {2025},
  eprint = {2502.04763},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.04763},
}
Figure