Counterfactual Shapley Additive Explanations

Emanuele Albini, Jason Long, Danial Dervovic, Daniele Magazzeni
10/27/2021
80 citations
cs.LGcs.AI

Official code: jpmorganchase/cf-shap (22 stars, HTML, Apache-2.0, last commit 2023-07-06).

Abstract

Feature attributions are a common paradigm for model explanations due to their simplicity in assigning a single numeric score for each input feature to a model. In the actionable recourse setting, wherein the goal of the explanations is to improve outcomes for model consumers, it is often unclear how feature attributions should be correctly used.

Show full abstract

With this work, we aim to strengthen and clarify the link between actionable recourse and feature attributions. Concretely, we propose a variant of SHAP, Counterfactual SHAP (CF-SHAP), that incorporates counterfactual information to produce a background dataset for use within the marginal (a.k.a. interventional) Shapley value framework. We motivate the need within the actionable recourse setting for careful consideration of background datasets when using Shapley values for feature attributions with numerous synthetic examples. Moreover, we demonstrate the efficacy of CF-SHAP by proposing and justifying a quantitative score for feature attributions, counterfactual-ability, showing that as measured by this metric, CF-SHAP is superior to existing methods when evaluated on public datasets using tree ensembles.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Counterfactual SHAP: a framework for counterfactual feature importance

229HTML, PythonJul 28, 20223 years agoApache-2.0
algorithmic-recoursecounterfactual-explanationscounterfactualsexplainabilityexplainable-ai+13 more

Similar Papers

Cite this paper

@article{albini2021counterfactual,
  title  = {Counterfactual Shapley Additive Explanations},
  author = {Emanuele Albini and Jason Long and Danial Dervovic and Daniele Magazzeni},
  year   = {2021},
  eprint = {2110.14270},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2110.14270}
}

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/2110.14270.svg)](https://codeofpaper.com/paper/2110.14270)

Discussion