Research map / Large language models / Language, safety and interpretability
Polyjuice: Generating Counterfactuals for Explaining, Evaluating, and Improving Models
Tongshuang Wu, Marco Tulio Ribeiro, Jeffrey Heer, Daniel S. Weld
University of Washington · Microsoft · Allen Institute for Artificial Intelligence
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| finetune GPT-2 on paired sentences with control codes (Polyjuice) vs non-finetuned GPT-2 | counterfactual generator · 300 sentences | Levenshtein / syntactic tree distance: 0.70 -> 0.25 and 6.35 -> 2.13 | Improved |
| add control codes to prompts (ablation) | Polyjuice finetuning · desired perturbation types | success rate: up to +42% | Improved |
| use Polyjuice instead of RoBERTa infilling | counterfactual generator · 300 sentences | Self-BLEU (lower is more diverse): 0.47 -> 0.34 | Improved |
| augment SST-2 training with Polyjuice counterfactuals (vs n+m original examples) | roberta-base · Senti140 | accuracy: 88.9 -> 90.7 | Improved |
| augment SST-2 training with Polyjuice counterfactuals | roberta-base · SST-2 (in-domain) | accuracy: 92.9 -> 92.7 | No clear effect |
| augment SNLI training with Polyjuice counterfactuals | roberta-base · DNC | accuracy: 54.5 -> 57.7 | Improved |
| augment SNLI training with Polyjuice instead of manual counterfactuals (CAD) | roberta-base · DNC | accuracy: 55.8 -> 57.7 | Improved |
| augment SNLI training with Polyjuice counterfactuals | roberta-base · SNLI (in-domain) | accuracy: 85.7 -> 85.3 | No clear effect |
| augment QQP training with Polyjuice counterfactuals | roberta-base · PAWS-QQP | accuracy: 37.0 -> 38.7 | Improved |
| augment QQP training with Polyjuice counterfactuals | roberta-base · QQP CheckList tests | tests with lower failure rate: better on 11 of 27 tests, worse on 2 | Mixed |
| augment SST-2 training with Polyjuice counterfactuals | roberta-base · Sentiment CheckList tests | tests improved: improves 5 of 15 tests, hurts 1 | Mixed |
| use a very high ratio of counterfactuals to original data (m=n) (ablation) | roberta-base · augmentation experiments | accuracy | Hurt |
Later papers that compared with this method
1 later accepted paper reports Polyjuice as a baseline in their results tables; 1 of them report a better number on most of the results they share with it.
- FitCF: A Framework for Automatic Feature Importance-guided Counterfactual Example Generation (ACL 2025 · better on 2 of 2 shared results)
Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.
Open problems in faithfulness of LLM explanations
Do explanation and dialogue evaluations hold beyond English, one dataset and a few models?
- Data and tests are in English or a few languages only. · 37 papers state it
- Labels and scores come from an LLM judge that may carry bias. · 21 papers state it
- Results come from a few models, mostly around 10B or smaller. · 18 papers state it
Closest papers by meaning
- A Survey on Natural Language Counterfactual Generation (EMNLP 2024 · similarity 0.90)
- FitCF: A Framework for Automatic Feature Importance-guided Counterfactual Example Generation (ACL 2025 · similarity 0.89)
- DISCO: Distilling Counterfactuals with Large Language Models (ACL 2023 · similarity 0.89)
- Faithful Explanations of Black-box NLP Models Using LLM-generated Counterfactuals (ICLR 2024 · similarity 0.88)
- Gumbel Counterfactual Generation From Language Models (ICLR 2025 · similarity 0.87)
- A General Search-Based Framework for Generating Textual Counterfactual Explanations (AAAI 2024 · similarity 0.87)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.