From Shapley Values to Generalized Additive Models and back

Sebastian Bordt, Ulrike von Luxburg
9/8/2022
cs.LG

Official code: tml-tuebingen/nshap (20 stars, Jupyter Notebook, MIT, last commit 2023-09-25).

Abstract

In explainable machine learning, local post-hoc explanation algorithms and inherently interpretable models are often seen as competing approaches. This work offers a partial reconciliation between the two by establishing a correspondence between Shapley Values and Generalized Additive Models (GAMs).

Show full abstract

We introduce $n$-Shapley Values, a parametric family of local post-hoc explanation algorithms that explain individual predictions with interaction terms up to order $n$. By varying the parameter $n$, we obtain a sequence of explanations that covers the entire range from Shapley Values up to a uniquely determined decomposition of the function we want to explain. The relationship between $n$-Shapley Values and this decomposition offers a functionally-grounded characterization of Shapley Values, which highlights their limitations. We then show that $n$-Shapley Values, as well as the Shapley Taylor- and Faith-Shap interaction indices, recover GAMs with interaction terms up to order $n$. This implies that the original Shapely Values recover GAMs without variable interactions. Taken together, our results provide a precise characterization of Shapley Values as they are being used in explainable machine learning. They also offer a principled interpretation of partial dependence plots of Shapley Values in terms of the underlying functional decomposition. A package for the estimation of different interaction indices is available at \url{https://github.com/tml-tuebingen/nshap}.

View on arXivView PDF

Code Implementations(1)

MIT

Python package to compute interaction indices that extend the Shapley Value. AISTATS 2023.

202Jupyter Notebook, PythonSep 4, 20223 years agoMIT

Similar Papers

Cite this paper

@article{bordt2022from,
  title  = {From Shapley Values to Generalized Additive Models and back},
  author = {Sebastian Bordt and Ulrike von Luxburg},
  year   = {2022},
  eprint = {2209.04012},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2209.04012}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2209.04012.svg)](https://codeofpaper.com/paper/2209.04012)

Discussion