AllenNLP Interpret: A Framework for Explaining Predictions of NLP Models

By Eric Wallace, Jens Tuyls, Junlin Wang, Sanjay Subramanian, Matt Gardner, Sameer Singh. 2019

146 citations recorded by the source corpus.

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.

Subfields: Artificial Intelligence, Natural Language Processing, Safety, Robustness & Interpretability

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Graham Neubig
  2. Mohit Bansal
  3. Noah A. Smith
  4. Yejin Choi
  5. Pengfei Liu
  6. Percy Liang
  7. Luke S. Zettlemoyer
  8. Xiang Ren

In Natural Language Processing

  1. Graham Neubig
  2. Mohit Bansal
  3. Pengfei Liu
  4. Noah A. Smith
  5. Matt Gardner
  6. Caiming Xiong
  7. Yejin Choi
  8. Luke S. Zettlemoyer

In Safety, Robustness & Interpretability

  1. Eric Wallace
  2. Matt Gardner
  3. Ana Marasovic
  4. Noah A. Smith
  5. Sameer Singh
  6. Mohit Bansal
  7. Nazneen Rajani
  8. Sarah Wiegreffe

Citations in the corpus