Making Heads or Tails: Towards Semantically Consistent Visual Counterfactuals

Simon Vandenhende, Dhruv Mahajan, Filip Radenovic, Deepti Ghadiyaram
3/24/2022
cs.CV

Official code: facebookresearch/visual-counterfactuals (31 stars, Python, last commit 2022-08-14).

Abstract

A visual counterfactual explanation replaces image regions in a query image with regions from a distractor image such that the system's decision on the transformed image changes to the distractor class. In this work, we present a novel framework for computing visual counterfactual explanations based on two key ideas.

Show full abstract

First, we enforce that the replaced and replacer regions contain the same semantic part, resulting in more semantically consistent explanations. Second, we use multiple distractor images in a computationally efficient way and obtain more discriminative explanations with fewer region replacements. Our approach is 27 % more semantically consistent and an order of magnitude faster than a competing method on three fine-grained image recognition datasets. We highlight the utility of our counterfactuals over existing works through machine teaching experiments where we teach humans to classify different bird species. We also complement our explanations with the vocabulary of parts and attributes that contributed the most to the system's decision. In this task as well, we obtain state-of-the-art results when using our counterfactual explanations relative to existing works, reinforcing the importance of semantically consistent explanations. Source code is available at https://github.com/facebookresearch/visual-counterfactuals.

View on arXivView PDF

Code Implementations(1)

Making Heads or Tails Towards Semantically Consistent Visual Counterfactuals

313PythonJul 15, 20224 years agoNOASSERTION

Similar Papers

Cite this paper

@article{vandenhende2022making,
  title  = {Making Heads or Tails: Towards Semantically Consistent Visual Counterfactuals},
  author = {Simon Vandenhende and Dhruv Mahajan and Filip Radenovic and Deepti Ghadiyaram},
  year   = {2022},
  eprint = {2203.12892},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.12892}
}

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

Discussion