CLJan 1, 2021

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

arXiv:2101.00288v2777 citations
Originality Highly original
AI Analysis

This work addresses the problem of efficiently generating diverse counterfactual examples for NLP model developers and researchers, aiming to reduce manual annotation effort and improve model analysis.

This paper introduces Polyjuice, a counterfactual generator based on finetuned GPT-2, designed to create diverse and realistic counterfactuals for NLP models. It demonstrates that Polyjuice can improve model training and evaluation across three tasks with approximately 70% less annotation effort compared to manual generation, and also enhances explanation techniques and error analysis.

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.

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