Polyjuice: Generating Counterfactuals for Explaining, Evaluating, and Improving Models

By Tongshuang Sherry Wu, Marco Tulio Ribeiro, Jeffrey Heer, Daniel S. Weld. 2021

310 citations recorded by the source corpus.

While counterfactual examples are useful for analysis and training of NLP models, current generation methods either rely on manual labor to create very few counterfactuals, or only instantiate limited types of perturbations such as paraphrases or word substitutions. We present Polyjuice, a general-purpose counterfactual generator that allows for control over perturbation types and locations, trained by finetuning GPT-2 on multiple datasets of paired sentences. We show that Polyjuice produces diverse sets of realistic counterfactuals, which in turn are useful in various distinct applications: improving training and evaluation on three different tasks (with around 70% less annotation effort than manual generation), augmenting state-of-the-art explanation techniques, and supporting systematic counterfactual error analysis by revealing behaviors easily missed by human experts.

Subfields: Artificial Intelligence, Natural Language Processing

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. Mohit Bansal
  2. Luke S. Zettlemoyer
  3. Yejin Choi
  4. Noah A. Smith
  5. Percy Liang
  6. Douwe Kiela
  7. Graham Neubig
  8. Hannaneh Hajishirzi

In Natural Language Processing

  1. Mohit Bansal
  2. Luke S. Zettlemoyer
  3. Douwe Kiela
  4. Yejin Choi
  5. Sebastian Riedel
  6. Sebastian Gehrmann
  7. Matt Gardner
  8. Graham Neubig

Citations in the corpus