Polyjuice: Generating Counterfactuals for Explaining, Evaluating, and Improving Models
Tongshuang Wu, Marco Túlio Ribeiro, Jeffrey Heer, Daniel S. Weld
摘要
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.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 64 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Tailor: Generating and Perturbing Text with Semantic Controls 引用了 Plug and Play Language Models: A Simple Approach to Controlled Text Generation
- Tailor: Generating and Perturbing Text with Semantic Controls 引用了 Learning The Difference That Makes A Difference With Counterfactually-Augmented Data
- Tailor: Generating and Perturbing Text with Semantic Controls 引用了 Evaluating Models' Local Decision Boundaries via Contrast Sets
- AI Chains: Transparent and Controllable Human-AI Interaction by Chaining Large Language Model Prompts 引用了 Does the Whole Exceed its Parts? The Effect of AI Explanations on Complementary Team Performance
- Evaluating Models' Local Decision Boundaries via Contrast Sets 引用了 Learning The Difference That Makes A Difference With Counterfactually-Augmented Data
- Red Teaming Language Models with Language Models 引用了 Tailor: Generating and Perturbing Text with Semantic Controls
- Adaptive Testing and Debugging of NLP Models 引用了 Learning The Difference That Makes A Difference With Counterfactually-Augmented Data
- Adaptive Testing and Debugging of NLP Models 引用了 Evaluating Models' Local Decision Boundaries via Contrast Sets
- Counterfactual Invariance to Spurious Correlations in Text Classification 引用了 Learning The Difference That Makes A Difference With Counterfactually-Augmented Data
引用它的顶会 Paper64
- AI Chains: Transparent and Controllable Human-AI Interaction by Chaining Large Language Model PromptsTongshuang Wu, Michael Terry, Carrie Jun CaiCHI 2022 · 465 次引用
- Red Teaming Language Models with Language ModelsEthan Perez, Saffron Huang, H. Francis Song, Trevor Cai 等EMNLP 2022 · 239 次引用
- Counterfactual Invariance to Spurious Correlations in Text ClassificationVictor Veitch, Alexander D'Amour, Steve Yadlowsky, Jacob EisensteinNeurIPS 2021 · 108 次引用
- Adaptive Testing and Debugging of NLP ModelsMarco Túlio Ribeiro, Scott M. LundbergACL 2022 · 99 次引用
- Tailor: Generating and Perturbing Text with Semantic ControlsAlexis Ross, Tongshuang Wu, Hao Peng, Matthew E. Peters 等ACL 2022 · 85 次引用
它引用的 Paper14
- WinoGrande: An Adversarial Winograd Schema Challenge at ScaleKeisuke Sakaguchi, Ronan Le Bras, Chandra Bhagavatula, Yejin ChoiAAAI 2020 · 3,037 次引用
- Plug and Play Language Models: A Simple Approach to Controlled Text GenerationSumanth Dathathri, Andrea Madotto, Janice Lan, Jane Hung 等ICLR 2020 · 1,166 次引用
- Does the Whole Exceed its Parts? The Effect of AI Explanations on Complementary Team PerformanceGagan Bansal, Tongshuang Wu, Joyce Zhou, Raymond Fok 等CHI 2021 · 713 次引用
- Learning The Difference That Makes A Difference With Counterfactually-Augmented DataDivyansh Kaushik, Eduard H. Hovy, Zachary Chase LiptonICLR 2020 · 625 次引用
- Evaluating Models' Local Decision Boundaries via Contrast SetsMatt Gardner, Yoav Artzi, Victoria Basmova, Jonathan Berant 等EMNLP Findings 2020 · 260 次引用
相关 Paper
- People Make Better Edits: Measuring the Efficacy of LLM-Generated Counterfactually Augmented Data for Harmful Language DetectionIndira Sen, Dennis Assenmacher, Mattia Samory, Isabelle Augenstein 等EMNLP 2023 · 7 次引用
- JoPA: Explaining Large Language Model's Generation via Joint Prompt AttributionYurui Chang, Bochuan Cao, Yujia Wang, Jinghui Chen 等ACL 2025
- Exploring the Efficacy of Automatically Generated Counterfactuals for Sentiment AnalysisLinyi Yang, Jiazheng Li, Padraig Cunningham, Yue Zhang 等ACL 2021
- DISCO: Distilling Counterfactuals with Large Language ModelsZeming Chen, Qiyue Gao, Antoine Bosselut, Ashish Sabharwal 等ACL 2023 · 27 次引用
- Counterfactual Generator: A Weakly-Supervised Method for Named Entity RecognitionXiangji Zeng, Yunliang Li, Yuchen Zhai, Yin ZhangEMNLP 2020 · 55 次引用
