Interpretable Neural Predictions with Differentiable Binary Variables

Jasmijn Bastings, Wilker Aziz, Ivan Titov
5/20/2019
cs.CL

Official code: bastings/interpretable_predictions (85 stars, Python, MIT, last commit 2021-05-07).

Abstract

The success of neural networks comes hand in hand with a desire for more interpretability. We focus on text classifiers and make them more interpretable by having them provide a justification, a rationale, for their predictions.

Show full abstract

We approach this problem by jointly training two neural network models: a latent model that selects a rationale (i.e. a short and informative part of the input text), and a classifier that learns from the words in the rationale alone. Previous work proposed to assign binary latent masks to input positions and to promote short selections via sparsity-inducing penalties such as L0 regularisation. We propose a latent model that mixes discrete and continuous behaviour allowing at the same time for binary selections and gradient-based training without REINFORCE. In our formulation, we can tractably compute the expected value of penalties such as L0, which allows us to directly optimise the model towards a pre-specified text selection rate. We show that our approach is competitive with previous work on rationale extraction, and explore further uses in attention mechanisms.

View on arXivView PDF

Code Implementations(1)

MIT

Interpretable Neural Predictions with Differentiable Binary Variables

8517Python, ShellMay 17, 20195 years agoMIT

Similar Papers

Cite this paper

@article{bastings2019interpretable,
  title  = {Interpretable Neural Predictions with Differentiable Binary Variables},
  author = {Jasmijn Bastings and Wilker Aziz and Ivan Titov},
  year   = {2019},
  eprint = {1905.08160},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1905.08160}
}

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

Discussion