Polyjuice: Generating Counterfactuals for Explaining, Evaluating, and Improving Models
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 219 papers in the map (data through 7 Oct 2026). Builds on 39 of its 66 references that are in the map. First posted on arXiv 1 Jan 2021.
Builds on
39 of 66 references.
References · 39
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2017A Unified Approach to Interpreting Model Predictionscited by 6,488
- 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,040
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
- 2015A large annotated corpus for learning natural language inferencecited by 1,837
- 2017Explanation in Artificial Intelligence: Insights from the Social Sciencescited by 1,201
- 2020Beyond Accuracy: Behavioral Testing of NLP models with CheckListcited by 979
- 2019Right for the Wrong Reasons: Diagnosing Syntactic Heuristics in Natural Language Inferencecited by 864
- 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 793
27 more
- 2019CTRL: A Conditional Transformer Language Model for Controllable Generationcited by 754
- 2018Annotation Artifacts in Natural Language Inference Datacited by 656
- 2019Attention is not not Explanationcited by 629
- 2018Texygen: A Benchmarking Platform for Text Generation Modelscited by 484
- 2019Learning the Difference that Makes a Difference with Counterfactually-Augmented Datacited by 428
- 2020Does the Whole Exceed its Parts? The Effect of AI Explanations on Complementary Team Performancecited by 396
- 2019PAWS: Paraphrase Adversaries from Word Scramblingcited by 395
- 2018Adversarial Example Generation with Syntactically Controlled Paraphrase Networkscited by 282
- 2018Stress Test Evaluation for Natural Language Inferencecited by 211
- 2020Evaluating Explainable AI: Which Algorithmic Explanations Help Users Predict Model Behavior?cited by 189
- 2018Counterfactual Fairness in Text Classification through Robustnesscited by 150
- 2020Contextualized Perturbation for Textual Adversarial Attackcited by 136
- 2018Breaking NLI Systems with Sentences that Require Simple Lexical Inferencescited by 134
- 2020Enabling Language Models to Fill in the Blankscited by 121
- 2019Learning to Deceive with Attention-Based Explanationscited by 111
- 2020Explaining NLP Models via Minimal Contrastive Editing (MiCE)cited by 105
- 2019Counterfactual Story Reasoning and Generationcited by 87
- 2016Yelp Dataset Challenge: Review Rating Predictioncited by 84
- 2020Politeness Transfer: A Tag and Generate Approachcited by 78
- 2020Generate Your Counterfactuals: Towards Controlled Counterfactual Generation for Textcited by 75
- 2020Learning What Makes a Difference from Counterfactual Examples and Gradient Supervisioncited by 66
- 2020Generating Fluent Adversarial Examples for Natural Languagescited by 49
- 2019Probing What Different NLP Tasks Teach Machines about Function Word Comprehensioncited by 44
- 2020How Effective is Task-Agnostic Data Augmentation for Pretrained Transformers?cited by 41
- 2020Counterfactually-Augmented SNLI Training Data Does Not Yield Better Generalization Than Unaugmented Datacited by 27
- 2019Slice-based Learning: A Programming Model for Residual Learning in Critical Data Slicescited by 23
- 2019SemEval-2013 Task 2: Sentiment Analysis in Twittercited by 22
Built on by
Citing papers per year: 2021: 20; 2022: 47; 2023: 57; 2024: 47; 2025: 24; 2026: 24.
219 papers.
Sort:
By area:
- 2022Red Teaming Language Models with Language Modelscited by 983
- 2022Discovering Language Model Behaviors with Model-Written Evaluationscited by 805
- 2021Recent Advances in Natural Language Processing via Large Pre-Trained Language Models: A Surveycited by 457
- 2023Explainability for Large Language Models: A Surveycited by 331
- 2021AI Chains: Transparent and Controllable Human-AI Interaction by Chaining Large Language Model Promptscited by 265
- 2023Clever Hans or Neural Theory of Mind? Stress Testing Social Reasoning in Large Language Modelscited by 161
- 2021Post-hoc Interpretability for Neural NLP: A Surveycited by 155
- 2022Rich Knowledge Sources Bring Complex Knowledge Conflicts: Recalibrating Models to Reflect Conflicting Evidencecited by 142
- 2021Benchmarking and Survey of Explanation Methods for Black Box Modelscited by 136
- 2022Towards Faithful Model Explanation in NLP: A Surveycited by 129
- 2021Teach Me to Explain: A Review of Datasets for Explainable Natural Language Processingcited by 126
- 2021Measure and Improve Robustness in NLP Models: A Surveycited by 107
38 more
- 2023Faithfulness Tests for Natural Language Explanationscited by 107
- 2024Are self-explanations from Large Language Models faithful?cited by 101
- 2023Revisiting Out-of-distribution Robustness in NLP: Benchmark, Analysis, and LLMs Evaluationscited by 96
- 2023Do Models Explain Themselves? Counterfactual Simulatability of Natural Language Explanationscited by 85
- 2021Counterfactual Invariance to Spurious Correlations: Why and How to Pass Stress Testscited by 77
- 2021Contrastive Explanations for Model Interpretabilitycited by 75
- 2023EvalLM: Interactive Evaluation of Large Language Model Prompts on User-Defined Criteriacited by 73
- 2021NL-Augmenter: A Framework for Task-Sensitive Natural Language Augmentationcited by 72
- 2022GLUE-X: Evaluating Natural Language Understanding Models from an Out-of-distribution Generalization Perspectivecited by 72
- 2025Interactive Debugging and Steering of Multi-Agent AI Systemscited by 68
- 2021Tailor: Generating and Perturbing Text with Semantic Controlscited by 67
- 2023From Language Modeling to Instruction Following: Understanding the Behavior Shift in LLMs after Instruction Tuningcited by 56
- 2023SocialCounterfactuals: Probing and Mitigating Intersectional Social Biases in Vision-Language Models with Counterfactual Examplescited by 53
- 2022Leveraging Explanations in Interactive Machine Learning: An Overviewcited by 52
- 2022Perturbation Augmentation for Fairer NLPcited by 51
- 2023TIBET: Identifying and Evaluating Biases in Text-to-Image Generative Modelscited by 51
- 2023Towards LLM-guided Causal Explainability for Black-box Text Classifierscited by 44
- 2021An Investigation of the (In)effectiveness of Counterfactually Augmented Datacited by 42
- 2023COCO-Counterfactuals: Automatically Constructed Counterfactual Examples for Image-Text Pairscited by 39
- 2022DoCoGen: Domain Counterfactual Generation for Low Resource Domain Adaptationcited by 36
- 2023Interpreting Pretrained Language Models via Concept Bottleneckscited by 33
- 2023Using Captum to Explain Generative Language Modelscited by 33
- 2021Local Interpretations for Explainable Natural Language Processing: A Surveycited by 31
- 2021Models in the Loop: Aiding Crowdworkers with Generative Annotation Assistantscited by 31
- 2023On Evaluating and Mitigating Gender Biases in Multilingual Settingscited by 31
- 2023Quantifying Uncertainty in Natural Language Explanations of Large Language Modelscited by 31
- 2024LLMs for Generating and Evaluating Counterfactuals: A Comprehensive Studycited by 30
- 2022Causal Proxy Models for Concept-Based Model Explanationscited by 29
- 2022DISCO: Distilling Counterfactuals with Large Language Modelscited by 29
- 2021Retrieval-guided Counterfactual Generation for QAcited by 28
- 2023LLMs as Workers in Human-Computational Algorithms? Replicating Crowdsourcing Pipelines with LLMscited by 27
- 2025Is Conversational XAI All You Need? Human-AI Decision Making With a Conversational XAI Assistantcited by 26
- 2021Counterfactual Explanations for Models of Codecited by 24
- 2023CREST: A Joint Framework for Rationalization and Counterfactual Text Generationcited by 24
- 2024On Behalf of the Stakeholders: Trends in NLP Model Interpretability in the Era of LLMscited by 24
- 2022CORE: A Retrieve-then-Edit Framework for Counterfactual Data Generationcited by 23
- 2022NeuroCounterfactuals: Beyond Minimal-Edit Counterfactuals for Richer Data Augmentationcited by 23
- 2024XAI meets LLMs: A Survey of the Relation between Explainable AI and Large Language Modelscited by 23
50 most cited of 219 All 219 (JSON)
- 2026Evaluating Whether LLMs Can Reliably Connect the DOTs?29 Sep 2026
- 2026Beyond Accuracy: Counterfactual Fragility and Demographic Bias in Clinical Evaluation of LLMs26 Sep 2026
- 2026JevOut: Natural Context Can Flip Decision Models24 Sep 2026
- 2026Virgil: Navigating Explainability for Transformer-based Language Models26 Aug 2026
- 2026Which Modality Decides? Counterfactual Modality Attribution for Multimodal LLMs29 Jul 2026
- 2026When Audit Quality Fails to Predict Downstream Utility: A Counterfactual Study of Synthetic-Data Selectors for Low-Resource African NLP15 Jul 2026
- 2026Constraint-Aware Counterfactual Editing for Aspect-Based Sentiment Analysis15 Jul 2026
- 2026Not All Explanations Simulate Equally: Comparing Verbalized Feature Attributions and Self-Generated Rationales31 May 2026
- 2026Same Patient, Different Words, Different Diagnosis? Evaluating Semantic Stability in Clinical LLMs28 May 2026
- 2026Beyond Consensus: Trace-Level Synthesis in Mixture of Agents27 May 2026
- 2026Gumbel Machine: Counterfactual Student Writing Generation via Gumbel Noise Steering26 May 2026
- 2026AuditRepairBench: A Paired-Execution Trace Corpus for Evaluator-Channel Ranking Instability in Agent Repair6 May 2026
38 more
- 2026DRIV-EX: Counterfactual Explanations for Driving LLMs28 Feb 2026
- 2026Context-Aware Counterfactual Data Augmentation for Gender Bias Mitigation in Language Models10 Feb 2026
- 2026Counterfactual Training: Teaching Models Plausible and Actionable Explanations22 Jan 2026
- 2026Responsible AI for General-Purpose Systems: Overview, Challenges, and A Path Forward19 Jan 2026
- 2026Retrieval-Augmented Large Language Models for Evidence-Informed Guidance on Cannabidiol Use in Older Adults16 Jan 2026
- 2026Interactive Narrative Analytics: Bridging Computational Narrative Extraction and Human Sensemaking16 Jan 2026
- 2026LIBERTy: A Causal Framework for Benchmarking Concept-Based Explanations of LLMs with Structural Counterfactuals15 Jan 2026
- 2026Beyond Transfer Accuracy: Mechanism-Guided Controlled Adaptation for Low-Resource Languages13 Jan 2026
- 2026Do LLM Self-Explanations Help Users Predict Model Behavior? Evaluating Counterfactual Simulatability with Pragmatic Perturbations7 Jan 2026
- 2026iFlip: Iterative Feedback-driven Counterfactual Example Refinement4 Jan 2026
- 2026Can Large Language Models Still Explain Themselves? Investigating the Impact of Quantization on Self-Explanations1 Jan 2026
- 2026Parallel Universes, Parallel Languages: A Comprehensive Study on LLM-based Multilingual Counterfactual Example Generation1 Jan 2026
- 2025Bounding Hallucinations: Merlin-Arthur Protocols for Mutual-Information Bounds in Language Models12 Dec 2025
- 2025Bot Meets Shortcut: How Can LLMs Aid in Handling Unknown Invariance OOD Scenarios?11 Nov 2025
- 2025Few-Shot Knowledge Distillation of LLMs With Counterfactual Explanations24 Oct 2025
- 2025Evalet: Evaluating Large Language Models through Functional Fragmentation14 Sep 2025
- 2025LLMs Don't Know Their Own Decision Boundaries: The Unreliability of Self-Generated Counterfactual Explanations11 Sep 2025
- 2025Automatic Reviewers Fail to Detect Faulty Reasoning in Research Papers: A New Counterfactual Evaluation Framework29 Aug 2025
- 2025CoBA: Counterbias Text Augmentation for Mitigating Various Spurious Correlations via Semantic Triples26 Aug 2025
- 2025Counterfactual Probing for Hallucination Detection and Mitigation in Large Language Models3 Aug 2025
- 2025Teach a Reward Model to Correct Itself: Reward Guided Adversarial Failure Discovery for Robust Reward Modeling8 Jul 2025
- 2025Argumentative Ensembling for Robust Recourse under Model Multiplicity25 Jun 2025
- 2025SCISSOR: Mitigating Semantic Bias through Cluster-Aware Siamese Networks for Robust Classification17 Jun 2025
- 2025UGCE: User-Guided Incremental Counterfactual Exploration27 May 2025
- 2025Truth or Twist? Optimal Model Selection for Reliable Label Flipping Evaluation in LLM-based Counterfactuals20 May 2025
- 2025Reasoning-Grounded Natural Language Explanations for Language Models14 Mar 2025
- 2025Biases in Large Language Model-Elicited Text: A Case Study in Natural Language Inference6 Mar 2025
- 2025Guiding LLMs to Generate High-Fidelity and High-Quality Counterfactual Explanations for Text Classification6 Mar 2025
- 2025Interactive Debugging and Steering of Multi-Agent AI Systems3 Mar 2025
- 2025Conceptual Contrastive Edits in Textual and Vision-Language Retrieval1 Mar 2025
- 2025LinguaLens: Towards Interpreting Linguistic Mechanisms of Large Language Models via Sparse Auto-Encoder27 Feb 2025
- 2025Conversational Explanations: Discussing Explainable AI with Non-AI Experts16 Feb 2025
- 2025CAMEF: Causal-Augmented Multi-Modality Event-Driven Financial Forecasting by Integrating Time Series Patterns and Salient Macroeconomic Announcements7 Feb 2025
- 2025Is Conversational XAI All You Need? Human-AI Decision Making With a Conversational XAI Assistant29 Jan 2025
- 2025Can Hallucinations Help? Boosting LLMs for Drug Discovery23 Jan 2025
- 2025FitCF: A Framework for Automatic Feature Importance-guided Counterfactual Example Generation1 Jan 2025
- 2024The Evolution of LLM Adoption in Industry Data Curation Practices20 Dec 2024
- 2024Interpreting Language Reward Models via Contrastive Explanations25 Nov 2024
50 newest of 219 All 219 (JSON)
- 2023Clever Hans or Neural Theory of Mind? Stress Testing Social Reasoning in Large Language Modelscited by 161
- 2023COLA: Contextualized Commonsense Causal Reasoning from the Causal Inference Perspectivecited by 22
- 2022ROCK: Causal Inference Principles for Reasoning about Commonsense Causalitycited by 16
- 2025Automatic Reviewers Fail to Detect Faulty Reasoning in Research Papers: A New Counterfactual Evaluation Frameworkcited by 10
- 2024CSCE: Boosting LLM Reasoning by Simultaneous Enhancing of Causal Significance and Consistencycited by 7
- 2025Reasoning-Grounded Natural Language Explanations for Language Modelscited by 4
- 2023CommonsenseVIS: Visualizing and Understanding Commonsense Reasoning Capabilities of Natural Language Modelscited by 2
- 2026DRIV-EX: Counterfactual Explanations for Driving LLMscited by 1
- 2026DRIV-EX: Counterfactual Explanations for Driving LLMs28 Feb 2026
- 2025Automatic Reviewers Fail to Detect Faulty Reasoning in Research Papers: A New Counterfactual Evaluation Framework29 Aug 2025
- 2025Reasoning-Grounded Natural Language Explanations for Language Models14 Mar 2025
- 2024CSCE: Boosting LLM Reasoning by Simultaneous Enhancing of Causal Significance and Consistency20 Sep 2024
- 2023CommonsenseVIS: Visualizing and Understanding Commonsense Reasoning Capabilities of Natural Language Models23 Jul 2023
- 2023Clever Hans or Neural Theory of Mind? Stress Testing Social Reasoning in Large Language Models24 May 2023
- 2023COLA: Contextualized Commonsense Causal Reasoning from the Causal Inference Perspective9 May 2023
- 2022ROCK: Causal Inference Principles for Reasoning about Commonsense Causality31 Jan 2022
- 2022Discovering Language Model Behaviors with Model-Written Evaluationscited by 805
- 2024Interpreting Language Reward Models via Contrastive Explanationscited by 9
- 2024RATE: Causal Explainability of Reward Models with Imperfect Counterfactualscited by 6
- 2025Teach a Reward Model to Correct Itself: Reward Guided Adversarial Failure Discovery for Robust Reward Modelingcited by 2
- 2025Teach a Reward Model to Correct Itself: Reward Guided Adversarial Failure Discovery for Robust Reward Modeling8 Jul 2025
- 2024Interpreting Language Reward Models via Contrastive Explanations25 Nov 2024
- 2024RATE: Causal Explainability of Reward Models with Imperfect Counterfactuals15 Oct 2024
- 2022Discovering Language Model Behaviors with Model-Written Evaluations19 Dec 2022
- 2022Red Teaming Language Models with Language Modelscited by 983
- 2024Exploring Empty Spaces: Human-in-the-Loop Data Augmentationcited by 6
- 2024Exploring Empty Spaces: Human-in-the-Loop Data Augmentation1 Oct 2024
- 2022Red Teaming Language Models with Language Models7 Feb 2022
- 2021Recent Advances in Natural Language Processing via Large Pre-Trained Language Models: A Surveycited by 457
- 2023Explainability for Large Language Models: A Surveycited by 331
- 2021AI Chains: Transparent and Controllable Human-AI Interaction by Chaining Large Language Model Promptscited by 265
- 2021Post-hoc Interpretability for Neural NLP: A Surveycited by 155
- 2022Rich Knowledge Sources Bring Complex Knowledge Conflicts: Recalibrating Models to Reflect Conflicting Evidencecited by 142
- 2021Benchmarking and Survey of Explanation Methods for Black Box Modelscited by 136
- 2022Towards Faithful Model Explanation in NLP: A Surveycited by 129
- 2021Teach Me to Explain: A Review of Datasets for Explainable Natural Language Processingcited by 126
- 2021Measure and Improve Robustness in NLP Models: A Surveycited by 107
- 2023Faithfulness Tests for Natural Language Explanationscited by 107
- 2024Are self-explanations from Large Language Models faithful?cited by 101
- 2023Revisiting Out-of-distribution Robustness in NLP: Benchmark, Analysis, and LLMs Evaluationscited by 96
12 most cited of 198 All 198 (JSON)
- 2026Evaluating Whether LLMs Can Reliably Connect the DOTs?29 Sep 2026
- 2026Beyond Accuracy: Counterfactual Fragility and Demographic Bias in Clinical Evaluation of LLMs26 Sep 2026
- 2026JevOut: Natural Context Can Flip Decision Models24 Sep 2026
- 2026Virgil: Navigating Explainability for Transformer-based Language Models26 Aug 2026
- 2026When Audit Quality Fails to Predict Downstream Utility: A Counterfactual Study of Synthetic-Data Selectors for Low-Resource African NLP15 Jul 2026
- 2026Constraint-Aware Counterfactual Editing for Aspect-Based Sentiment Analysis15 Jul 2026
- 2026Same Patient, Different Words, Different Diagnosis? Evaluating Semantic Stability in Clinical LLMs28 May 2026
- 2026Gumbel Machine: Counterfactual Student Writing Generation via Gumbel Noise Steering26 May 2026
- 2026AuditRepairBench: A Paired-Execution Trace Corpus for Evaluator-Channel Ranking Instability in Agent Repair6 May 2026
- 2026Context-Aware Counterfactual Data Augmentation for Gender Bias Mitigation in Language Models10 Feb 2026
- 2026Counterfactual Training: Teaching Models Plausible and Actionable Explanations22 Jan 2026
- 2026Responsible AI for General-Purpose Systems: Overview, Challenges, and A Path Forward19 Jan 2026
12 newest of 198 All 198 (JSON)