Explaining NLP Models via Minimal Contrastive Editing (MiCE)

Alexis Ross, Ana Marasović, Matthew E. Peters
12/27/2020
cs.CLcs.AI

Official code: allenai/mice (26 stars, Python, last commit 2022-11-08).

Abstract

Humans have been shown to give contrastive explanations, which explain why an observed event happened rather than some other counterfactual event (the contrast case). Despite the influential role that contrastivity plays in how humans explain, this property is largely missing from current methods for explaining NLP models.

Show full abstract

We present Minimal Contrastive Editing (MiCE), a method for producing contrastive explanations of model predictions in the form of edits to inputs that change model outputs to the contrast case. Our experiments across three tasks--binary sentiment classification, topic classification, and multiple-choice question answering--show that MiCE is able to produce edits that are not only contrastive, but also minimal and fluent, consistent with human contrastive edits. We demonstrate how MiCE edits can be used for two use cases in NLP system development--debugging incorrect model outputs and uncovering dataset artifacts--and thereby illustrate that producing contrastive explanations is a promising research direction for model interpretability.

View on arXivView PDF

Code Implementations(1)

allenai/miceOfficial100%
2612Python, Jupyter NotebookJun 23, 20214 years ago

Similar Papers

Cite this paper

@article{ross2020explaining,
  title  = {Explaining NLP Models via Minimal Contrastive Editing (MiCE)},
  author = {Alexis Ross and Ana Marasović and Matthew E. Peters},
  year   = {2020},
  eprint = {2012.13985},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2012.13985}
}

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

Discussion