{"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/stochastic-amortization-a-unified-approach-to","title":"Stochastic Amortization: A Unified Approach to Accelerate Feature and Data Attribution","arxiv_id":"2401.15866","date":"2024-01-29","proceeding":null,"authors":["Ian Covert","Chanwoo Kim","Su-In Lee","James Zou","Tatsunori Hashimoto"],"abstract":"Many tasks in explainable machine learning, such as data valuation and feature attribution, perform expensive computation for each data point and are intractable for large datasets. These methods require efficient approximations, and although amortizing the process by learning a network to directly predict the desired output is a promising solution, training such models with exact labels is often infeasible. We therefore explore training amortized models with noisy labels, and we find that this is inexpensive and surprisingly effective. Through theoretical analysis of the label noise and experiments with various models and datasets, we show that this approach tolerates high noise levels and significantly accelerates several feature attribution and data valuation methods, often yielding an order of magnitude speedup over existing approaches.","url_abs":"https://arxiv.org/abs/2401.15866v2","url_pdf":"https://arxiv.org/pdf/2401.15866v2.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":"stochastic-amortization-a-unified-approach-to","repo_url":"https://github.com/chanwkimlab/amortized-attribution","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"stochastic-amortization-a-unified-approach-to","repo_url":"https://github.com/chanwkimlab/xai-amortization","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"stochastic-amortization-a-unified-approach-to","repo_url":"https://github.com/iancovert/amortized-valuation","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"data-valuation","task_name":"Data Valuation"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2401.15866","atlas_url":"https://app.syntology.ai/?focus=2401.15866","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2401.15866"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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/chanwkimlab/xai-amortization","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/chanwkimlab/amortized-attribution","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/iancovert/amortized-valuation","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":5,"ran_honours":1,"unverified":1},"by_repo_kind":{"official":{"samples":7,"ran":6,"repositories":3}},"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":0,"samples":[{"code_sha256_prefix":"3c70075679568849","entry":"calculate_result_shapley","repo":"chanwkimlab/amortized-attribution","repo_kind":"official","path":"calculate_feature_attribution_using_extracted.py","file_url":"https://github.com/chanwkimlab/amortized-attribution/blob/HEAD/calculate_feature_attribution_using_extracted.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3c70075679568849"}},{"code_sha256_prefix":"ddb5cac385e0f2fb","entry":"default_min_variance_samples","repo":"chanwkimlab/xai-amortization","repo_kind":"official","path":"calculate_feature_attribution_using_extracted.py","file_url":"https://github.com/chanwkimlab/xai-amortization/blob/HEAD/calculate_feature_attribution_using_extracted.py","link_basis":"plan_row","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ddb5cac385e0f2fb"}},{"code_sha256_prefix":"ac3ff5c34c9fc38e","entry":"default_variance_batches","repo":"chanwkimlab/amortized-attribution","repo_kind":"official","path":"calculate_feature_attribution_using_extracted.py","file_url":"https://github.com/chanwkimlab/amortized-attribution/blob/HEAD/calculate_feature_attribution_using_extracted.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ac3ff5c34c9fc38e"}},{"code_sha256_prefix":"78d066869510afc7","entry":"generate_metrics","repo":"iancovert/amortized-valuation","repo_kind":"official","path":"adv/utils.py","file_url":"https://github.com/iancovert/amortized-valuation/blob/HEAD/adv/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"78d066869510afc7"}},{"code_sha256_prefix":"39ca9c029d8bb6b7","entry":"ncr","repo":"chanwkimlab/amortized-attribution","repo_kind":"official","path":"feature_attribution_methods.py","file_url":"https://github.com/chanwkimlab/amortized-attribution/blob/HEAD/feature_attribution_methods.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"39ca9c029d8bb6b7"}},{"code_sha256_prefix":"01daf633dbc6f213","entry":"projection_step","repo":"chanwkimlab/amortized-attribution","repo_kind":"official","path":"feature_attribution_methods.py","file_url":"https://github.com/chanwkimlab/amortized-attribution/blob/HEAD/feature_attribution_methods.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"01daf633dbc6f213"}},{"code_sha256_prefix":"ad8720e6855c6c91","entry":"ShapleySampling","repo":"chanwkimlab/amortized-attribution","repo_kind":"official","path":"feature_attribution_methods.py","file_url":"https://github.com/chanwkimlab/amortized-attribution/blob/HEAD/feature_attribution_methods.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":"ad8720e6855c6c91"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}