A General Search-Based Framework for Generating Textual Counterfactual Explanations
Abstract
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.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
1 top-tier paper has cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Tailor: Generating and Perturbing Text with Semantic Controls cites Explaining NLP Models via Minimal Contrastive Editing (MiCE)
- Explaining NLP Models via Minimal Contrastive Editing (MiCE) cites Generate Your Counterfactuals: Towards Controlled Counterfactual Generation for Text
- Generating Realistic Natural Language Counterfactuals cites Explaining NLP Models via Minimal Contrastive Editing (MiCE)
Cited by top-tier papers1
Builds on10
- Generate Your Counterfactuals: Towards Controlled Counterfactual Generation for TextNishtha Madaan, Inkit Padhi, Naveen Panwar, Diptikalyan SahaAAAI 2021 · 115 citations
- Explaining NLP Models via Minimal Contrastive Editing (MiCE)Alexis Ross, Ana Marasovic, Matthew E. PetersACL Findings 2021 · 86 citations
- Explaining Black-Box Algorithms Using Probabilistic Contrastive CounterfactualsSainyam Galhotra, Romila Pradhan, Babak SalimiSIGMOD 2021 · 85 citations
- Tailor: Generating and Perturbing Text with Semantic ControlsAlexis Ross, Tongshuang Wu, Hao Peng, Matthew E. Peters et al.ACL 2022 · 85 citations
- Generating Realistic Natural Language CounterfactualsMarcel Robeer, Floris Bex, Ad FeeldersEMNLP Findings 2021 · 21 citations
Related papers
- GeCo: Quality Counterfactual Explanations in Real TimeMaximilian Schleich, Zixuan Geng, Yihong Zhang, Dan SuciuVLDB 2021 · 77 citations
- FOCUS: Flexible Optimizable Counterfactual Explanations for Tree EnsemblesAna Lucic, Harrie Oosterhuis, Hinda Haned, Maarten de RijkeAAAI 2022 · 87 citations
- Text Counterfactuals via Latent Optimization and Shapley-Guided SearchXiaoli Z. Fern, Quintin PopeEMNLP 2021 · 14 citations
- Feature-based Learning for Diverse and Privacy-Preserving Counterfactual ExplanationsVy Vo, Trung Le, Van Nguyen, He Zhao et al.KDD 2023 · 6 citations
- Grounding Counterfactual Explanation of Image Classifiers to Textual Concept SpaceSiwon Kim, Jinoh Oh, Sungjin Lee, Seunghak Yu et al.CVPR 2023
