Considering Likelihood in NLP Classification Explanations with Occlusion and Language Modeling
@misc{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},
primaryClass = {cs.CL},
url = {https://arxiv.org/abs/2004.09890}
}
Harbecke, D., & Alt, C. (2020). Considering Likelihood in NLP Classification Explanations with Occlusion and Language Modeling [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2004.09890
HARBECKE D, ALT C. Considering Likelihood in NLP Classification Explanations with Occlusion and Language Modeling[EB/OL]. (2020-04-21)[2026-11-30]. https://arxiv.org/abs/2004.09890.
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. 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.