FastSHAP: Real-Time Shapley Value Estimation

Neil Jethani, Mukund Sudarshan, Ian Covert, Su-In Lee, Rajesh Ranganath
7/15/2021
222 citations
stat.MLcs.CVcs.LG

Official code: iancovert/fastshap (107 stars, Python, MIT, last commit 2023-11-29). 2 more implementations below.

Abstract

Shapley values are widely used to explain black-box models, but they are costly to calculate because they require many model evaluations. We introduce FastSHAP, a method for estimating Shapley values in a single forward pass using a learned explainer model.

Show full abstract

FastSHAP amortizes the cost of explaining many inputs via a learning approach inspired by the Shapley value's weighted least squares characterization, and it can be trained using standard stochastic gradient optimization. We compare FastSHAP to existing estimation approaches, revealing that it generates high-quality explanations with orders of magnitude speedup.

View on arXivView PDF

Code Implementations(3)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
iancovert/fastshapOfficial107PythonMIT2023-11-29
neiljethani/fastshapOfficial10Jupyter NotebookMIT2023-03-30
iclr1814/fastshapOfficial3Jupyter Notebook–2021-10-04
iancovert/fastshapOfficial100%
MIT

An amortized approach for calculating local Shapley value explanations

10723PythonJul 10, 20213 years agoMIT
MIT
104Jupyter Notebook, PythonJul 14, 20213 years agoMIT
iclr1814/fastshapOfficial100%
30Jupyter Notebook, PythonMay 27, 20215 years ago

Similar Papers

Cite this paper

@article{jethani2021fastshap,
  title  = {FastSHAP: Real-Time Shapley Value Estimation},
  author = {Neil Jethani and Mukund Sudarshan and Ian Covert and Su-In Lee and Rajesh Ranganath},
  year   = {2021},
  eprint = {2107.07436},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2107.07436}
}

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

Discussion