Contrastive Explanations for Model Interpretability

Alon Jacovi, Swabha Swayamdipta, Shauli Ravfogel, Yanai Elazar, Yejin Choi +1 more
3/2/2021
cs.CLcs.AIcs.LG

Official code: allenai/contrastive-explanations (24 stars, Jupyter Notebook, Apache-2.0, last commit 2021-03-18).

Abstract

Contrastive explanations clarify why an event occurred in contrast to another. They are more inherently intuitive to humans to both produce and comprehend.

Show full abstract

We propose a methodology to produce contrastive explanations for classification models by modifying the representation to disregard non-contrastive information, and modifying model behavior to only be based on contrastive reasoning. Our method is based on projecting model representation to a latent space that captures only the features that are useful (to the model) to differentiate two potential decisions. We demonstrate the value of contrastive explanations by analyzing two different scenarios, using both high-level abstract concept attribution and low-level input token/span attribution, on two widely used text classification tasks. Specifically, we produce explanations for answering: for which label, and against which alternative label, is some aspect of the input useful? And which aspects of the input are useful for and against particular decisions? Overall, our findings shed light on the ability of label-contrastive explanations to provide a more accurate and finer-grained interpretability of a model's decision.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Explaining neural decisions contrastively to alternative decisions.

243Jupyter Notebook, PythonFeb 28, 20215 years agoApache-2.0

Similar Papers

Cite this paper

@article{jacovi2021contrastive,
  title  = {Contrastive Explanations for Model Interpretability},
  author = {Alon Jacovi and Swabha Swayamdipta and Shauli Ravfogel and Yanai Elazar and Yejin Choi and Yoav Goldberg},
  year   = {2021},
  eprint = {2103.01378},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2103.01378}
}

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

Discussion