mlsanityData to 7 Oct 2026

A General Search-based Framework for Generating Textual Counterfactual Explanations

arXiv 2211.00369 ↗First posted 1 Nov 2022cs.LG cs.CLcited by 2

Not on the map. Why?

Abstract (arXiv)

One of the prominent methods for explaining the decision of a machine-learning classifier is by a counterfactual example. Most current algorithms for generating such examples in the textual domain are based on generative language models. Generative models, however, are trained to minimize a specific loss function in order to fulfill certain requirements for the generated texts. Any change in the requirements may necessitate costly retraining, thus potentially limiting their applicability. In this paper, we present a general search-based framework for generating counterfactual explanations in the textual domain. Our framework is model-agnostic, domain-agnostic, anytime, and does not require retraining in order to adapt to changes in the user requirements. We model the task as a search problem in a space where the initial state is the classified text, and the goal state is a text in a given target class. Our framework includes domain-independent modification operators, but can also exploit domain-specific knowledge through specialized operators. The search algorithm attempts to find a text from the target class with minimal user-specified distance from the original classified object.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 21 of its 47 references that are in the map. First posted on arXiv 1 Nov 2022.

Builds on

21 of 47 references.

References · 21

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  4. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
  5. 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
  6. 2017Explanation in Artificial Intelligence: Insights from the Social Sciencescited by 1,201
  7. 2017Counterfactual Explanations without Opening the Black Box: Automated Decisions and the GDPRcited by 1,086
  8. 2019Explaining Machine Learning Classifiers through Diverse Counterfactual Explanationscited by 612
  9. 2021Polyjuice: Generating Counterfactuals for Explaining, Evaluating, and Improving Modelscited by 219
  10. 2019Model-Agnostic Counterfactual Explanations for Consequential Decisionscited by 204
  11. 2020Explaining NLP Models via Minimal Contrastive Editing (MiCE)cited by 105
  12. 2021Contrastive Explanations for Model Interpretabilitycited by 75
9 more
  1. 2021Tailor: Generating and Perturbing Text with Semantic Controlscited by 67
  2. 2021Explaining Black-Box Algorithms Using Probabilistic Contrastive Counterfactualscited by 55
  3. 2020Generating Plausible Counterfactual Explanations for Deep Transformers in Financial Text Classificationcited by 40
  4. 2020Explaining Data-Driven Decisions made by AI Systems: The Counterfactual Approachcited by 26
  5. 2021Text Counterfactuals via Latent Optimization and Shapley-Guided Searchcited by 16
  6. 2021Generative Counterfactuals for Neural Networks via Attribute-Informed Perturbationcited by 11
  7. 2019Weight of Evidence as a Basis for Human-Oriented Explanationscited by 10
  8. 2021Let the CAT out of the bag: Contrastive Attributed explanations for Textcited by 9
  9. 2018Textual Membership Queriescited by 2

Built on by

Cited by year

Citing papers per year: 2023: 1; 2024: 0; 2025: 1.

2 papers.