A Comparative Analysis of Counterfactual Explanation Methods for Text Classifiers
Not on the map. Why?
Abstract (arXiv)
Counterfactual explanations can be used to interpret and debug text classifiers by producing minimally altered text inputs that change a classifier's output. In this work, we evaluate five methods for generating counterfactual explanations for a BERT text classifier on two datasets using three evaluation metrics. The results of our experiments suggest that established white-box substitution-based methods are effective at generating valid counterfactuals that change the classifier's output. In contrast, newer methods based on large language models (LLMs) excel at producing natural and linguistically plausible text counterfactuals but often fail to generate valid counterfactuals that alter the classifier's output. Based on these results, we recommend developing new counterfactual explanation methods that combine the strengths of established gradient-based approaches and newer LLM-based techniques to generate high-quality, valid, and plausible text counterfactual explanations.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 21 of its 34 references that are in the map. First posted on arXiv 4 Nov 2024.
Builds on
21 of 34 references.
References · 21
- 2014Explaining and Harnessing Adversarial Examplescited by 7,364
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
- 2013Deep Inside Convolutional Networks: Visualising Image Classification Models and Saliency Mapscited by 2,371
- 2019Explainable Artificial Intelligence (XAI): Concepts, Taxonomies, Opportunities and Challenges toward Responsible AIcited by 1,552
- 2017Towards A Rigorous Science of Interpretable Machine Learningcited by 1,416
- 2017SmoothGrad: removing noise by adding noisecited by 1,109
- 2017Counterfactual Explanations without Opening the Black Box: Automated Decisions and the GDPRcited by 1,089
- 2019Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailmentcited by 671
- 2018Explaining Explanations: An Overview of Interpretability of Machine Learningcited by 508
- 2017Methods for Interpreting and Understanding Deep Neural Networkscited by 345
- 2021Polyjuice: Generating Counterfactuals for Explaining, Evaluating, and Improving Modelscited by 222
- 2022Compute Trends Across Three Eras of Machine Learningcited by 163
9 more
- 2020Explaining NLP Models via Minimal Contrastive Editing (MiCE)cited by 106
- 2022Interpreting Language Models with Contrastive Explanationscited by 92
- 2021If Only We Had Better Counterfactual Explanations: Five Key Deficits to Rectify in the Evaluation of Counterfactual XAI Techniquescited by 82
- 2020Generate Your Counterfactuals: Towards Controlled Counterfactual Generation for Textcited by 75
- 2021Contrastive Explanations for Model Interpretabilitycited by 75
- 2017What Does Explainable AI Really Mean? A New Conceptualization of Perspectivescited by 72
- 2020On Generating Plausible Counterfactual and Semi-Factual Explanations for Deep Learningcited by 60
- 2020Generating Plausible Counterfactual Explanations for Deep Transformers in Financial Text Classificationcited by 40
- 2021Text Counterfactuals via Latent Optimization and Shapley-Guided Searchcited by 16
Built on by
Citing papers per year: 2025: 2; 2026: 3.
5 papers.
- 2025LLMs Don't Know Their Own Decision Boundaries: The Unreliability of Self-Generated Counterfactual Explanationscited by 16
- 2025Few-Shot Knowledge Distillation of LLMs With Counterfactual Explanationscited by 4
- 2026Parallel Universes, Parallel Languages: A Comprehensive Study on LLM-based Multilingual Counterfactual Example Generationcited by 1
- 2026iFlip: Iterative Feedback-driven Counterfactual Example Refinementcited by 1
- 2026COFFEQA: Counterfactual-Guided Few-Shot Distillation for LLM Question Answeringcited by 0
- 2026COFFEQA: Counterfactual-Guided Few-Shot Distillation for LLM Question Answering9 Oct 2026
- 2026iFlip: Iterative Feedback-driven Counterfactual Example Refinement4 Jan 2026
- 2026Parallel Universes, Parallel Languages: A Comprehensive Study on LLM-based Multilingual Counterfactual Example Generation1 Jan 2026
- 2025Few-Shot Knowledge Distillation of LLMs With Counterfactual Explanations24 Oct 2025
- 2025LLMs Don't Know Their Own Decision Boundaries: The Unreliability of Self-Generated Counterfactual Explanations11 Sep 2025