Learning to Faithfully Rationalize by Construction

Sarthak Jain, Sarah Wiegreffe, Yuval Pinter, Byron C. Wallace
4/30/2020
183 citations
cs.CLcs.AIcs.LG

Official code: successar/FRESH (27 stars, Python, MIT, last commit 2023-06-12).

Abstract

In many settings it is important for one to be able to understand why a model made a particular prediction. In NLP this often entails extracting snippets of an input text `responsible for' corresponding model output; when such a snippet comprises tokens that indeed informed the model's prediction, it is a faithful explanation.

Show full abstract

In some settings, faithfulness may be critical to ensure transparency. Lei et al. (2016) proposed a model to produce faithful rationales for neural text classification by defining independent snippet extraction and prediction modules. However, the discrete selection over input tokens performed by this method complicates training, leading to high variance and requiring careful hyperparameter tuning. We propose a simpler variant of this approach that provides faithful explanations by construction. In our scheme, named FRESH, arbitrary feature importance scores (e.g., gradients from a trained model) are used to induce binary labels over token inputs, which an extractor can be trained to predict. An independent classifier module is then trained exclusively on snippets provided by the extractor; these snippets thus constitute faithful explanations, even if the classifier is arbitrarily complex. In both automatic and manual evaluations we find that variants of this simple framework yield predictive performance superior to `end-to-end' approaches, while being more general and easier to train. Code is available at https://github.com/successar/FRESH

View on arXivView PDF

Code Implementations(1)

successar/FRESHOfficial100%
MIT
275Python, Jupyter NotebookMay 2, 20203 years agoMIT

Similar Papers

Cite this paper

@article{jain2020learning,
  title  = {Learning to Faithfully Rationalize by Construction},
  author = {Sarthak Jain and Sarah Wiegreffe and Yuval Pinter and Byron C. Wallace},
  year   = {2020},
  eprint = {2005.00115},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2005.00115}
}

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

Discussion