CLLGSep 19, 2019

AllenNLP Interpret: A Framework for Explaining Predictions of NLP Models

arXiv:1909.09251v11064 citations
Originality Synthesis-oriented
AI Analysis

This addresses the problem of limited adoption and usability of interpretation methods for NLP practitioners and researchers, though it is incremental as it builds on existing interpretation techniques.

The paper tackles the opacity of neural NLP models by introducing AllenNLP Interpret, a flexible framework that provides interpretation primitives, built-in methods, and visualization components, demonstrated through live demos for five methods on various models and tasks.

Neural NLP models are increasingly accurate but are imperfect and opaque---they break in counterintuitive ways and leave end users puzzled at their behavior. Model interpretation methods ameliorate this opacity by providing explanations for specific model predictions. Unfortunately, existing interpretation codebases make it difficult to apply these methods to new models and tasks, which hinders adoption for practitioners and burdens interpretability researchers. We introduce AllenNLP Interpret, a flexible framework for interpreting NLP models. The toolkit provides interpretation primitives (e.g., input gradients) for any AllenNLP model and task, a suite of built-in interpretation methods, and a library of front-end visualization components. We demonstrate the toolkit's flexibility and utility by implementing live demos for five interpretation methods (e.g., saliency maps and adversarial attacks) on a variety of models and tasks (e.g., masked language modeling using BERT and reading comprehension using BiDAF). These demos, alongside our code and tutorials, are available at https://allennlp.org/interpret .

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes