{"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/estimating-training-data-influence-by","title":"Estimating Training Data Influence by Tracing Gradient Descent","arxiv_id":"2002.08484","date":"2020-02-19","proceeding":"NeurIPS 2020 12","authors":["Garima Pruthi","Frederick Liu","Mukund Sundararajan","Satyen Kale"],"abstract":"We introduce a method called TracIn that computes the influence of a training example on a prediction made by the model. The idea is to trace how the loss on the test point changes during the training process whenever the training example of interest was utilized. We provide a scalable implementation of TracIn via: (a) a first-order gradient approximation to the exact computation, (b) saved checkpoints of standard training procedures, and (c) cherry-picking layers of a deep neural network. In contrast with previously proposed methods, TracIn is simple to implement; all it needs is the ability to work with gradients, checkpoints, and loss functions. The method is general. It applies to any machine learning model trained using stochastic gradient descent or a variant of it, agnostic of architecture, domain and task. We expect the method to be widely useful within processes that study and improve training data.","url_abs":"https://arxiv.org/abs/2002.08484v3","url_pdf":"https://arxiv.org/pdf/2002.08484v3.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":"estimating-training-data-influence-by","repo_url":"https://github.com/frederick0329/TracIn","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"estimating-training-data-influence-by","repo_url":"https://github.com/frederick0329/TrackIn","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"estimating-training-data-influence-by","repo_url":"https://github.com/pytorch/captum","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"BSD-3-Clause"}},{"paper_slug":"estimating-training-data-influence-by","repo_url":"https://github.com/rollovd/TracIn-PyTorch","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[],"methods":[{"method_slug":"test","method_name":"Test"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2002.08484","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2002.08484"}},"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/pytorch/captum","reach":{"status":"ok","spdx":"BSD-3-Clause"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/rollovd/TracIn-PyTorch","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/frederick0329/TrackIn","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/frederick0329/TracIn","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran_draft_wrong":1,"unverified":12},"by_repo_kind":{"official":{"samples":8,"ran":0,"repositories":1},"listed":{"samples":5,"ran":1,"repositories":1}},"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":5,"samples":[{"code_sha256_prefix":"6def3c9b3d79c36d","entry":"calculate_train_grads_per_checkpoint","repo":"rollovd/TracIn-PyTorch","repo_kind":"listed","path":"src/tracin.py","file_url":"https://github.com/rollovd/TracIn-PyTorch/blob/HEAD/src/tracin.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":"6def3c9b3d79c36d"}},{"code_sha256_prefix":"a3908ed79b55f793","entry":"configure_cluster","repo":"frederick0329/TracIn","repo_kind":"official","path":"imagenet/resnet50/distribution_utils.py","file_url":"https://github.com/frederick0329/TracIn/blob/HEAD/imagenet/resnet50/distribution_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"a3908ed79b55f793"}},{"code_sha256_prefix":"6418d1ea781bab93","entry":"conv_block","repo":"frederick0329/TracIn","repo_kind":"official","path":"imagenet/resnet50/resnet.py","file_url":"https://github.com/frederick0329/TracIn/blob/HEAD/imagenet/resnet50/resnet.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"6418d1ea781bab93"}},{"code_sha256_prefix":"db9d71dd2270776a","entry":"get_distribution_strategy","repo":"frederick0329/TracIn","repo_kind":"official","path":"imagenet/resnet50/distribution_utils.py","file_url":"https://github.com/frederick0329/TracIn/blob/HEAD/imagenet/resnet50/distribution_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"db9d71dd2270776a"}},{"code_sha256_prefix":"bc5c578afb5bb8b6","entry":"identity_block","repo":"frederick0329/TracIn","repo_kind":"official","path":"imagenet/resnet50/resnet.py","file_url":"https://github.com/frederick0329/TracIn/blob/HEAD/imagenet/resnet50/resnet.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"bc5c578afb5bb8b6"}},{"code_sha256_prefix":"425a8b4fb346cc50","entry":"load_checkpoint","repo":"rollovd/TracIn-PyTorch","repo_kind":"listed","path":"src/tracin.py","file_url":"https://github.com/rollovd/TracIn-PyTorch/blob/HEAD/src/tracin.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":"425a8b4fb346cc50"}},{"code_sha256_prefix":"e8512af53323cac3","entry":"mean_image_subtraction","repo":"frederick0329/TracIn","repo_kind":"official","path":"imagenet/resnet50/preprocessing.py","file_url":"https://github.com/frederick0329/TracIn/blob/HEAD/imagenet/resnet50/preprocessing.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"e8512af53323cac3"}},{"code_sha256_prefix":"1ae302f00326beec","entry":"normalize_images","repo":"frederick0329/TracIn","repo_kind":"official","path":"imagenet/resnet50/preprocessing.py","file_url":"https://github.com/frederick0329/TracIn/blob/HEAD/imagenet/resnet50/preprocessing.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"1ae302f00326beec"}},{"code_sha256_prefix":"cd0404df91f2edcf","entry":"precompute_models_with_weights","repo":"rollovd/TracIn-PyTorch","repo_kind":"listed","path":"src/tracin.py","file_url":"https://github.com/rollovd/TracIn-PyTorch/blob/HEAD/src/tracin.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":"cd0404df91f2edcf"}},{"code_sha256_prefix":"ba995f8393ec29e3","entry":"precompute_test_gradients","repo":"rollovd/TracIn-PyTorch","repo_kind":"listed","path":"src/tracin.py","file_url":"https://github.com/rollovd/TracIn-PyTorch/blob/HEAD/src/tracin.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":"ba995f8393ec29e3"}},{"code_sha256_prefix":"4c1214758a0f6151","entry":"resnet50","repo":"frederick0329/TracIn","repo_kind":"official","path":"imagenet/resnet50/resnet.py","file_url":"https://github.com/frederick0329/TracIn/blob/HEAD/imagenet/resnet50/resnet.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"4c1214758a0f6151"}},{"code_sha256_prefix":"252a762d9fe4f7a2","entry":"standardize_image","repo":"frederick0329/TracIn","repo_kind":"official","path":"imagenet/resnet50/preprocessing.py","file_url":"https://github.com/frederick0329/TracIn/blob/HEAD/imagenet/resnet50/preprocessing.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"252a762d9fe4f7a2"}},{"code_sha256_prefix":"bd5f57e1f5a91dc3","entry":"vectorized_calculate_tracin_score","repo":"rollovd/TracIn-PyTorch","repo_kind":"listed","path":"src/tracin.py","file_url":"https://github.com/rollovd/TracIn-PyTorch/blob/HEAD/src/tracin.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":"bd5f57e1f5a91dc3"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}