Papers › Understanding Black-box Predictions via Influence Functions

Understanding Black-box Predictions via Influence Functions

14 Mar 2017ICML 2017 8arXiv:1703.04730archive 2025-07-28

Pang Wei Koh, Percy Liang

How can we explain the predictions of a black-box model? In this paper, we use influence functions -- a classic technique from robust statistics -- to trace a model's prediction through the learning algorithm and back to its training data, thereby identifying training points most responsible for a given prediction. To scale up influence functions to modern machine learning settings, we develop a simple, efficient implementation that requires only oracle access to gradients and Hessian-vector products. We show that even on non-convex and non-differentiable models where the theory breaks down, approximations to influence functions can still provide valuable information. On linear models and convolutional neural networks, we demonstrate that influence functions are useful for multiple purposes: understanding model behavior, debugging models, detecting dataset errors, and even creating visually-indistinguishable training-set attacks.

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="1703.04730")

Code

Syntology Ran 6 of 28 code samples harvested from 5 repositories linked to this paper; 22 have no recorded run. Of those that ran: 1 ran · honoured contract; 5 ran · our draft was wrong.

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

19 repositories listed; official and paper-mentioned ones first.

TooTouch/WhiteBox-Part2 mentioned on GitHubtf report
alstonlo/torch-influence mentioned on GitHubpytorch report
bsharchilev/influence_boosting mentioned on GitHubtf report
darkonhub/darkon mentioned on GitHubtfApache-2.0 report
giladcohen/NNIF_adv_defense mentioned on GitHubtf report
goldin2008/modeling-project mentioned on GitHubMIT report
kohpangwei/influence-release mentioned on GitHubtfMIT report
nimarb/pytorch_influence_functions mentioned on GitHubpytorchNOASSERTION report
pomonam/kronfluence mentioned on GitHubpytorch report
qmkakaxi/FederatedLearning mentioned on GitHubpytorch report
ryokamoi/pytorch_influence_functions mentioned on GitHubpytorchNOASSERTION report
sillwood/voicemos mentioned on GitHubpytorchBSD-3-Clause report
aai-institute/pyDVL pytorchLGPL-3.0 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

28 samples harvested; 6 ran; 1 honoured the contract we drafted; 22 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.

1ran · honoured contract
5ran · our draft was wrong
22unverified

Licence: 2 of the 28 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.

fit_model alstonlo/torch-influence/examples/analyze_dogfish.py community (archive-listed) ran · our draft was wrong Apache-2.0 (permissive) · 7795d93831d5b4cc · report
flatten sillwood/voicemos/swag/utils.py community (archive-listed) ran · honoured contract BSD-3-Clause (permissive) · cdc64e98aaf2dd54 · report
get_projection_to_box_around_orig_point kohpangwei/influence-release/influence/dataset_poisoning.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 68ad19597304e430 · report
load_characteristics AnonymizedAuthor663/NNIF_adv_defense/detect_adv_examples.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · 2273561bedb78034 · report
poison_with_influence_proj_gradient_step kohpangwei/influence-release/influence/dataset_poisoning.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 5a433e963babd1cc · report
select_examples_to_attack kohpangwei/influence-release/influence/dataset_poisoning.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 09fe17271407a870 · report
LogSumExp sillwood/voicemos/swag/utils.py community (archive-listed) unverified BSD-3-Clause (permissive) · 8cb1d24a1cf29e11 · report
candidate_featuremap_op_names darkonhub/darkon/darkon/gradcam/candidate_ops.py community (archive-listed) unverified Apache-2.0 (permissive) · 595b26ff4249e79b · report
candidate_predict_op_names darkonhub/darkon/darkon/gradcam/candidate_ops.py community (archive-listed) unverified Apache-2.0 (permissive) · 53e33a945dc79c29 · report
collate_fn sillwood/voicemos/tabula.py community (archive-listed) unverified BSD-3-Clause (permissive) · 117bcf11311105a1 · report
conv2d kohpangwei/influence-release/influence/all_CNN_c.py community (archive-listed) unverified MIT (permissive) · 96c7e834b1c28650 · report
conv2d_bn kohpangwei/influence-release/influence/inception_v3.py community (archive-listed) unverified MIT (permissive) · f9e794caff5e0303 · report
create_logger sillwood/voicemos/utils.py community (archive-listed) unverified BSD-3-Clause (permissive) · a94486d150d21b95 · report
filter_dataset kohpangwei/influence-release/influence/dataset.py community (archive-listed) unverified MIT (permissive) · b7bb16565ce87f23 · report
find_distances kohpangwei/influence-release/influence/dataset.py community (archive-listed) unverified MIT (permissive) · 85ac80e88451f57c · report
find_ranks AnonymizedAuthor663/NNIF_adv_defense/attack.py community (archive-listed) unverified no licence file found · pointer only · b562ca4a9ba10631 · report
get_confusion_matrix sillwood/voicemos/utils.py community (archive-listed) unverified BSD-3-Clause (permissive) · 4b658dacb22598db · report
get_optimizer sillwood/voicemos/utils.py community (archive-listed) unverified BSD-3-Clause (permissive) · 91a4342f9b6fca79 · report
guided_grad darkonhub/darkon/darkon/gradcam/guided_grad.py community (archive-listed) unverified Apache-2.0 (permissive) · 49edeb9a747b92b3 · report
hessian sillwood/voicemos/swag/posteriors/laplace.py community (archive-listed) unverified BSD-3-Clause (permissive) · 6ac3796e940e0642 · report
hessian_vector_product kohpangwei/influence-release/influence/hessians.py community (archive-listed) unverified MIT (permissive) · 694572cd0b96e981 · report
hessians kohpangwei/influence-release/influence/hessians.py community (archive-listed) unverified MIT (permissive) · c8388330a135479b · report
jacobian sillwood/voicemos/swag/posteriors/laplace.py community (archive-listed) unverified BSD-3-Clause (permissive) · 365de65d02067f52 · report
preprocess_input kohpangwei/influence-release/influence/imagenet_utils.py community (archive-listed) unverified MIT (permissive) · 64eb4bea3d3127c4 · report
process_fn sillwood/voicemos/data.py community (archive-listed) unverified BSD-3-Clause (permissive) · ca0d20b6bf151cb8 · report
process_fn_mean sillwood/voicemos/data.py community (archive-listed) unverified BSD-3-Clause (permissive) · 94cda808be1f21b0 · report
softplus kohpangwei/influence-release/influence/all_CNN_c.py community (archive-listed) unverified MIT (permissive) · 9005c9773d16f9b9 · report
unflatten_like sillwood/voicemos/swag/utils.py community (archive-listed) unverified BSD-3-Clause (permissive) · 2da33912415648f3 · 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