Explaining Image Classifiers by Counterfactual Generation

Chun-Hao Chang, Elliot Creager, Anna Goldenberg, David Duvenaud
7/20/2018
cs.CV

Official code: zzzace2000/FIDO-saliency (27 stars, Jupyter Notebook, PyTorch, last commit 2022-04-23).

Abstract

When an image classifier makes a prediction, which parts of the image are relevant and why? We can rephrase this question to ask: which parts of the image, if they were not seen by the classifier, would most change its decision?

Show full abstract

Producing an answer requires marginalizing over images that could have been seen but weren't. We can sample plausible image in-fills by conditioning a generative model on the rest of the image. We then optimize to find the image regions that most change the classifier's decision after in-fill. Our approach contrasts with ad-hoc in-filling approaches, such as blurring or injecting noise, which generate inputs far from the data distribution, and ignore informative relationships between different parts of the image. Our method produces more compact and relevant saliency maps, with fewer artifacts compared to previous methods.

View on arXivView PDF

Code Implementations(1)

PyTorch

Explaining Image Classifiers by Counterfactual Generation

272Jupyter Notebook, PythonJul 16, 20184 years ago
interpretabilitymachine-learningpytorch

Similar Papers

Cite this paper

@article{chang2018explaining,
  title  = {Explaining Image Classifiers by Counterfactual Generation},
  author = {Chun-Hao Chang and Elliot Creager and Anna Goldenberg and David Duvenaud},
  year   = {2018},
  eprint = {1807.08024},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1807.08024}
}

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/1807.08024.svg)](https://codeofpaper.com/paper/1807.08024)

Discussion