{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/fastshap-real-time-shapley-value-estimation","title":"FastSHAP: Real-Time Shapley Value Estimation","arxiv_id":"2107.07436","date":"2021-07-15","proceeding":"ICLR 2022 4","authors":["Neil Jethani","Mukund Sudarshan","Ian Covert","Su-In Lee","Rajesh Ranganath"],"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. 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.","url_abs":"https://arxiv.org/abs/2107.07436v3","url_pdf":"https://arxiv.org/pdf/2107.07436v3.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"fastshap-real-time-shapley-value-estimation","repo_url":"https://github.com/iancovert/fastshap","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"fastshap-real-time-shapley-value-estimation","repo_url":"https://github.com/iclr1814/fastshap","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"tf","reach":null},{"paper_slug":"fastshap-real-time-shapley-value-estimation","repo_url":"https://github.com/neiljethani/fastshap","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"tf","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"fastshap-real-time-shapley-value-estimation","repo_url":"https://github.com/davidenapolitano/bones","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"fastshap-real-time-shapley-value-estimation","repo_url":"https://github.com/tml-tuebingen/nshap","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":null}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2107.07436","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2107.07436"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/iancovert/fastshap","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/tml-tuebingen/nshap","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/neiljethani/fastshap","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/davidenapolitano/bones","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/iclr1814/fastshap","reach":null}],"summary":{"ran":2,"ran_draft_wrong":5,"unverified":10},"by_repo_kind":{"official":{"samples":9,"ran":5,"repositories":3},"listed":{"samples":8,"ran":2,"repositories":2}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"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"},"n_pointer_only_for_licence":9,"samples":[{"code_sha256_prefix":"03059e06ad890351","entry":"DatasetRepeat","repo":"davidenapolitano/bones","repo_kind":"listed","path":"bones/sv/image/explainers/fastshap/fastshap.py","file_url":"https://github.com/davidenapolitano/bones/blob/HEAD/bones/sv/image/explainers/fastshap/fastshap.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"03059e06ad890351"}},{"code_sha256_prefix":"199c28206c728459","entry":"ShapleySampler","repo":"davidenapolitano/bones","repo_kind":"listed","path":"bones/sv/image/explainers/fastshap/fastshap.py","file_url":"https://github.com/davidenapolitano/bones/blob/HEAD/bones/sv/image/explainers/fastshap/fastshap.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"199c28206c728459"}},{"code_sha256_prefix":"06435d9aa451885d","entry":"additive_efficient_normalization","repo":"iclr1814/fastshap","repo_kind":"official","path":"fastshap_torch/fastshap.py","file_url":"https://github.com/iclr1814/fastshap/blob/HEAD/fastshap_torch/fastshap.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"06435d9aa451885d"}},{"code_sha256_prefix":"5b767f2708a31ef1","entry":"additive_efficient_normalization","repo":"iancovert/fastshap","repo_kind":"official","path":"fastshap/fastshap.py","file_url":"https://github.com/iancovert/fastshap/blob/HEAD/fastshap/fastshap.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5b767f2708a31ef1"}},{"code_sha256_prefix":"358ac40db44f149b","entry":"calculate_grand_coalition","repo":"iclr1814/fastshap","repo_kind":"official","path":"fastshap_torch/fastshap.py","file_url":"https://github.com/iclr1814/fastshap/blob/HEAD/fastshap_torch/fastshap.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"358ac40db44f149b"}},{"code_sha256_prefix":"6005c5a15fab0e21","entry":"evaluate_explainer","repo":"iancovert/fastshap","repo_kind":"official","path":"fastshap/fastshap.py","file_url":"https://github.com/iancovert/fastshap/blob/HEAD/fastshap/fastshap.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6005c5a15fab0e21"}},{"code_sha256_prefix":"fe249de8c0fc0cfc","entry":"multiplicative_efficient_normalization","repo":"iancovert/fastshap","repo_kind":"official","path":"fastshap/fastshap.py","file_url":"https://github.com/iancovert/fastshap/blob/HEAD/fastshap/fastshap.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fe249de8c0fc0cfc"}},{"code_sha256_prefix":"42ef60c2b0ecb9e0","entry":"FastSHAP","repo":"davidenapolitano/bones","repo_kind":"listed","path":"bones/sv/image/explainers/fastshap/fastshap.py","file_url":"https://github.com/davidenapolitano/bones/blob/HEAD/bones/sv/image/explainers/fastshap/fastshap.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"42ef60c2b0ecb9e0"}},{"code_sha256_prefix":"8b43828947a6b7c7","entry":"FastSHAP","repo":"iancovert/fastshap","repo_kind":"official","path":"fastshap/fastshap.py","file_url":"https://github.com/iancovert/fastshap/blob/HEAD/fastshap/fastshap.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8b43828947a6b7c7"}},{"code_sha256_prefix":"77cf20ef4a967db3","entry":"calculate_grand_coalition","repo":"davidenapolitano/bones","repo_kind":"listed","path":"bones/sv/image/explainers/fastshap/fastshap.py","file_url":"https://github.com/davidenapolitano/bones/blob/HEAD/bones/sv/image/explainers/fastshap/fastshap.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"77cf20ef4a967db3"}},{"code_sha256_prefix":"33d1e5512f0ec7db","entry":"convert_to_link","repo":"neiljethani/fastshap","repo_kind":"official","path":"fastshap/utils.py","file_url":"https://github.com/neiljethani/fastshap/blob/HEAD/fastshap/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"33d1e5512f0ec7db"}},{"code_sha256_prefix":"037b77174710c143","entry":"convert_to_linkTF","repo":"neiljethani/fastshap","repo_kind":"official","path":"fastshap/utils.py","file_url":"https://github.com/neiljethani/fastshap/blob/HEAD/fastshap/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"037b77174710c143"}},{"code_sha256_prefix":"cb7acdc5c56bb613","entry":"generate_validation_data","repo":"davidenapolitano/bones","repo_kind":"listed","path":"bones/sv/image/explainers/fastshap/fastshap.py","file_url":"https://github.com/davidenapolitano/bones/blob/HEAD/bones/sv/image/explainers/fastshap/fastshap.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"cb7acdc5c56bb613"}},{"code_sha256_prefix":"5fbfb8cc1069b5d8","entry":"shapley_values","repo":"tml-tuebingen/nshap","repo_kind":"listed","path":"src/nshap/functions.py","file_url":"https://github.com/tml-tuebingen/nshap/blob/HEAD/src/nshap/functions.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5fbfb8cc1069b5d8"}},{"code_sha256_prefix":"b2c2b9597b4b23d6","entry":"validate","repo":"iclr1814/fastshap","repo_kind":"official","path":"fastshap_torch/fastshap.py","file_url":"https://github.com/iclr1814/fastshap/blob/HEAD/fastshap_torch/fastshap.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b2c2b9597b4b23d6"}},{"code_sha256_prefix":"437f02dec06a9d31","entry":"validate","repo":"davidenapolitano/bones","repo_kind":"listed","path":"bones/sv/image/explainers/fastshap/fastshap.py","file_url":"https://github.com/davidenapolitano/bones/blob/HEAD/bones/sv/image/explainers/fastshap/fastshap.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"437f02dec06a9d31"}},{"code_sha256_prefix":"1e573273e29afab1","entry":"validate_inputs","repo":"tml-tuebingen/nshap","repo_kind":"listed","path":"src/nshap/functions.py","file_url":"https://github.com/tml-tuebingen/nshap/blob/HEAD/src/nshap/functions.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1e573273e29afab1"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}