Papers › FastSHAP: Real-Time Shapley Value Estimation

FastSHAP: Real-Time Shapley Value Estimation

15 Jul 2021ICLR 2022 4arXiv:2107.07436archive 2025-07-28

Neil Jethani, Mukund Sudarshan, Ian Covert, Su-In Lee, Rajesh Ranganath

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. 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.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2107.07436")

Code

Syntology Ran 7 of 17 code samples harvested from 5 repositories linked to this paper; 10 have no recorded run. Of those that ran: 5 ran · our draft was wrong; 2 ran with no contract checked.

By repository: official repository: 9 samples from 3 repositories, 5 ran; community (archive-listed): 8 samples from 2 repositories, 2 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

iancovert/fastshap officialmentioned in papermentioned on GitHubpytorch report
iclr1814/fastshap officialmentioned in papertf report
neiljethani/fastshap officialmentioned in papertfMIT report
davidenapolitano/bones mentioned on GitHubpytorch report
tml-tuebingen/nshap mentioned on GitHub report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

17 samples harvested; 7 ran; 0 honoured the contract we drafted; 10 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

5ran · our draft was wrong
2ran
10unverified

Licence: 9 of the 17 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 5 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

additive_efficient_normalization iclr1814/fastshap/fastshap_torch/fastshap.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 06435d9aa451885d · report
additive_efficient_normalization iancovert/fastshap/fastshap/fastshap.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 5b767f2708a31ef1 · report
calculate_grand_coalition iclr1814/fastshap/fastshap_torch/fastshap.py official repository ran · our draft was wrong no licence file found · pointer only · 358ac40db44f149b · report
evaluate_explainer iancovert/fastshap/fastshap/fastshap.py official repository ran · our draft was wrong MIT (permissive) · 6005c5a15fab0e21 · report
multiplicative_efficient_normalization iancovert/fastshap/fastshap/fastshap.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · fe249de8c0fc0cfc · report
FastSHAP iancovert/fastshap/fastshap/fastshap.py official repository unverified MIT (permissive) · 8b43828947a6b7c7 · report
convert_to_link neiljethani/fastshap/fastshap/utils.py official repository unverified MIT (permissive) · 33d1e5512f0ec7db · report
convert_to_linkTF neiljethani/fastshap/fastshap/utils.py official repository unverified MIT (permissive) · 037b77174710c143 · report
validate iclr1814/fastshap/fastshap_torch/fastshap.py official repository unverified no licence file found · pointer only · b2c2b9597b4b23d6 · report
DatasetRepeat davidenapolitano/bones/bones/sv/image/explainers/fastshap/fastshap.py community (archive-listed) ran no licence file found · pointer only · 03059e06ad890351 · report
ShapleySampler davidenapolitano/bones/bones/sv/image/explainers/fastshap/fastshap.py community (archive-listed) ran no licence file found · pointer only · 199c28206c728459 · report
FastSHAP davidenapolitano/bones/bones/sv/image/explainers/fastshap/fastshap.py community (archive-listed) unverified no licence file found · pointer only · 42ef60c2b0ecb9e0 · report
calculate_grand_coalition davidenapolitano/bones/bones/sv/image/explainers/fastshap/fastshap.py community (archive-listed) unverified no licence file found · pointer only · 77cf20ef4a967db3 · report
generate_validation_data davidenapolitano/bones/bones/sv/image/explainers/fastshap/fastshap.py community (archive-listed) unverified no licence file found · pointer only · cb7acdc5c56bb613 · report
shapley_values tml-tuebingen/nshap/src/nshap/functions.py community (archive-listed) unverified MIT (permissive) · 5fbfb8cc1069b5d8 · report
validate davidenapolitano/bones/bones/sv/image/explainers/fastshap/fastshap.py community (archive-listed) unverified no licence file found · pointer only · 437f02dec06a9d31 · report
validate_inputs tml-tuebingen/nshap/src/nshap/functions.py community (archive-listed) unverified MIT (permissive) · 1e573273e29afab1 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections