0

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

Polyjuice, a GPT-2 fine-tuned generative model, creates diverse and realistic counterfactuals useful for various NLP tasks and error analysis with reduced annotation effort.

Year
2021
Venue
ACL 2021 5
Authors
4
Hosting
Abstract onlyARXIV-DEFAULT

Cite

Notes

Only stored in your browser.

Attribution

Abstract & full text
arxiv.org/abs/2101.00288v2ARXIV-DEFAULT
TL;DR
Semantic Scholar
Attribution policy →

Abstract

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.

Authors

4