Understanding Black-box Predictions via Influence Functions

Pang Wei Koh, Percy Liang
3/14/2017
4,041 citations
stat.MLcs.AIcs.LG

No official code found. Best implementation: nimarb/pytorch_influence_functions (348 stars, Python, PyTorch, last commit 2023-10-29). 3 more below.

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(4)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
nimarb/pytorch_influence_functionsCommunity348Python–2023-10-29
ShinKyuY/Understanding_Black_box_Predictions_via_Influence_Functions_tutorial_MNISTCommunity14–––
eolecvk/InfluenceFunctionsCommunity12–––
mr3coi/influence_fn_pytorchCommunity4–––
PyTorch

This is a PyTorch reimplementation of Influence Functions from the ICML2017 best paper: Understanding Black-box Predictions via Influence Functions by Pang Wei Koh and Percy Liang.

34874PythonNov 30, 20193 years agoNOASSERTION
deep-learninginfluence-functionspytorchpytorch-implementation

Tiny Tutorial on https://arxiv.org/abs/1703.04730

142

Review and analysis of the ICML 2017 best paper: "Understanding Black-box Predictions via Influence Functions"

122

PyTorch implementation of "Understanding Black-box Predictions via Influence Functions" (Koh & Liang, 2017)

40

Similar Papers

Cite this paper

@article{koh2017understanding,
  title  = {Understanding Black-box Predictions via Influence Functions},
  author = {Pang Wei Koh and Percy Liang},
  year   = {2017},
  eprint = {1703.04730},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1703.04730}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1703.04730.svg)](https://codeofpaper.com/paper/1703.04730)

Discussion