14
510

Counterfactual Visual Explanations

Abstract

In this work, we develop a technique to produce counterfactual visual explanations. Given a 'query' image II for which a vision system predicts class cc, a counterfactual visual explanation identifies how II could change such that the system would output a different specified class cc'. To do this, we select a 'distractor' image II' that the system predicts as class cc' and identify spatial regions in II and II' such that replacing the identified region in II with the identified region in II' would push the system towards classifying II as cc'. We apply our approach to multiple image classification datasets generating qualitative results showcasing the interpretability and discriminativeness of our counterfactual explanations. To explore the effectiveness of our explanations in teaching humans, we present machine teaching experiments for the task of fine-grained bird classification. We find that users trained to distinguish bird species fare better when given access to counterfactual explanations in addition to training examples.

View on arXiv
Comments on this paper