EMNLP Findings2021
Generating Realistic Natural Language Counterfactuals
Marcel Robeer, Floris Bex, Ad Feelders
Abstract
Counterfactuals are a valuable means for understanding decisions made by ML systems. However, the counterfactuals generated by the methods currently available for natural language text are either unrealistic or introduce imperceptible changes. We propose Counter-factualGAN: a method that combines a conditional GAN and the embeddings of a pretrained BERT encoder to model-agnostically generate realistic natural language text counterfactuals for explaining regression and classification tasks. Experimental results show that our method produces perceptibly distinguishable counterfactuals, while outperforming four baseline methods on fidelity and human judgments of naturalness, across multiple datasets and multiple predictive models.
Ask Lune
Ask anything. The answer quotes the paper.
Lune reads all of it and the papers around it, then shows you the passages behind every answer.
Lune answers from
the full paper · 12 top-tier papers that cite it · related work
Free to start. No credit card required.
Cited by top-tier papers12
- Towards Model Robustness: Generating Contextual Counterfactuals for Entities in Relation ExtractionMi Zhang, Tieyun Qian, Ting Zhang, Xin MiaoWWW 2023 · 9 citations
- People Make Better Edits: Measuring the Efficacy of LLM-Generated Counterfactually Augmented Data for Harmful Language DetectionIndira Sen, Dennis Assenmacher, Mattia Samory, Isabelle Augenstein et al.EMNLP 2023 · 7 citations
- CREST: A Joint Framework for Rationalization and Counterfactual Text GenerationMarcos V. Treviso, Alexis Ross, Nuno Miguel Guerreiro, André F. T. MartinsACL 2023 · 7 citations
- Impact of Explanation Techniques and Representations on Users' Comprehension and Confidence in Explainable AIJulien Delaunay, Luis Galárraga, Christine Largouët, Niels van BerkelCSCW 2025 · 6 citations
- Understanding Large Language Model Behaviors Through Interactive Counterfactual Generation and AnalysisFurui Cheng, Vilém Zouhar, Robin Shing Moon Chan, Daniel Fürst et al.IEEE VIS 2025 · 5 citations
Builds on5
- The Curious Case of Neural Text DegenerationAri Holtzman, Jan Buys, Li Du, Maxwell Forbes et al.ICLR 2020 · 4,112 citations
- Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and EntailmentDi Jin, Zhijing Jin, Joey Tianyi Zhou, Peter SzolovitsAAAI 2020 · 1,333 citations
- TextBugger: Generating Adversarial Text Against Real-world ApplicationsJinfeng Li, Shouling Ji, Tianyu Du, Bo Li et al.NDSS 2019 · 876 citations
- Explaining NLP Models via Minimal Contrastive Editing (MiCE)Alexis Ross, Ana Marasovic, Matthew E. PetersACL Findings 2021 · 86 citations
- Beyond Accuracy: Behavioral Testing of NLP Models with CheckListMarco Túlio Ribeiro, Tongshuang Wu, Carlos Guestrin, Sameer SinghACL 2020 · 51 citations
Related papers
- What if This Modified That? Syntactic Interventions with Counterfactual EmbeddingsMycal Tucker, Peng Qian, Roger LevyACL Findings 2021 · 16 citations
- Let the CAT out of the bag: Contrastive Attributed explanations for TextSaneem A. Chemmengath, Amar Prakash Azad, Ronny Luss, Amit DhurandharEMNLP 2022 · 6 citations
- Towards Counterfactual Image Manipulation via CLIPYingchen Yu, Fangneng Zhan, Rongliang Wu, Jiahui Zhang et al.ACM MM 2022 · 33 citations
- LeapFactual: Reliable Visual Counterfactual Explanation Using Conditional Flow MatchingZhuo Cao, Xuan Zhao, Lena Krieger, Hanno Scharr et al.NeurIPS 2025 · 5 citations
- LLMs Don't Know Their Own Decision Boundaries: The Unreliability of Self-Generated Counterfactual ExplanationsHarry Mayne, Ryan Othniel Kearns, Yushi Yang, Andrew M. Bean et al.EMNLP 2025 · 9 citations
