Considering Likelihood in NLP Classification Explanations with Occlusion and Language Modeling

David Harbecke, Christoph Alt
4/21/2020
cs.CLcs.LG

Official code: DFKI-NLP/OLM (8 stars, Jupyter Notebook, MIT, last commit 2020-04-22).

Abstract

Recently, state-of-the-art NLP models gained an increasing syntactic and semantic understanding of language, and explanation methods are crucial to understand their decisions. Occlusion is a well established method that provides explanations on discrete language data, e.g. by removing a language unit from an input and measuring the impact on a model's decision.

Show full abstract

We argue that current occlusion-based methods often produce invalid or syntactically incorrect language data, neglecting the improved abilities of recent NLP models. Furthermore, gradient-based explanation methods disregard the discrete distribution of data in NLP. Thus, we propose OLM: a novel explanation method that combines occlusion and language models to sample valid and syntactically correct replacements with high likelihood, given the context of the original input. We lay out a theoretical foundation that alleviates these weaknesses of other explanation methods in NLP and provide results that underline the importance of considering data likelihood in occlusion-based explanation.

View on arXivView PDF

Code Implementations(1)

DFKI-NLP/OLMOfficial100%
MIT

Explanation Method for Neural Models in NLP

81Jupyter Notebook, PythonApr 21, 20206 years agoMIT

Similar Papers

Cite this paper

@article{harbecke2020considering,
  title  = {Considering Likelihood in NLP Classification Explanations with Occlusion and Language Modeling},
  author = {David Harbecke and Christoph Alt},
  year   = {2020},
  eprint = {2004.09890},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2004.09890}
}

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

Discussion