Explaining Question Answering Models through Text Generation

Veronica Latcinnik, Jonathan Berant
4/12/2020
cs.CLcs.AIcs.LG

Official code: nika2312/qa_explaination (13 stars, Python, MIT, last commit 2020-07-08).

Abstract

Large pre-trained language models (LMs) have been shown to perform surprisingly well when fine-tuned on tasks that require commonsense and world knowledge. However, in end-to-end architectures, it is difficult to explain what is the knowledge in the LM that allows it to make a correct prediction.

Show full abstract

In this work, we propose a model for multi-choice question answering, where a LM-based generator generates a textual hypothesis that is later used by a classifier to answer the question. The hypothesis provides a window into the information used by the fine-tuned LM that can be inspected by humans. A key challenge in this setup is how to constrain the model to generate hypotheses that are meaningful to humans. We tackle this by (a) joint training with a simple similarity classifier that encourages meaningful hypotheses, and (b) by adding loss functions that encourage natural text without repetitions. We show on several tasks that our model reaches performance that is comparable to end-to-end architectures, while producing hypotheses that elucidate the knowledge used by the LM for answering the question.

View on arXivView PDF

Code Implementations(1)

MIT
132Python, JsonnetApr 7, 20206 years agoMIT

Similar Papers

Cite this paper

@article{latcinnik2020explaining,
  title  = {Explaining Question Answering Models through Text Generation},
  author = {Veronica Latcinnik and Jonathan Berant},
  year   = {2020},
  eprint = {2004.05569},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2004.05569}
}

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

Discussion