Lune

AAAI2025Top-tier venue

NOMATTERXAI: Generating "No Matter What" Alterfactual Examples for Explaining Black-Box Text Classification Models

Tuc Van Nguyen, James Michels, Hua Shen, Thai Le

Abstract

In Explainable AI (XAI), counterfactual explanations (CEs) are a well-studied method to communicate feature relevance through contrastive reasoning of "what if" to explain AI models' predictions. However, they only focus on important (i.e., relevant) features and largely disregard less important (i.e., irrelevant) ones. Such irrelevant features can be crucial in many applications, especially when users need to ensure that an AI model's decisions are not affected or biased against specific attributes such as gender, race, religion, or political affiliation. To address this gap, the concept of alterfactual explanations (AEs) has been proposed. AEs explore an alternative reality of "no matter what", where irrelevant features are substituted with alternative features (e.g., "republicans"→"democrats") within the same attribute (e.g., "politics") while maintaining a similar prediction output. This serves to validate whether AI model predictions are influenced by the specified attributes. Despite the promise of AEs, there is a lack of computational approaches to systematically generate them, particularly in the text domain, where creating AEs for AI text classifiers presents unique challenges. This paper addresses this challenge by formulating AE generation as an optimization problem and introducing NOMATTERXAI, a novel algorithm that generates AEs for text classification tasks. Our approach achieves high fidelity of up to 95% while preserving context similarity of over 90% across multiple models and datasets. A human study further validates the effectiveness of AEs in explaining AI text classifiers to end users. All codes will be publicly available.

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.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • The Utility of "Even if" Semifactual Explanation to Optimise Positive Outcomes cites On Generating Plausible Counterfactual and Semi-Factual Explanations for Deep Learning
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on4

  1. On Generating Plausible Counterfactual and Semi-Factual Explanations for Deep LearningEoin M. Kenny, Mark T. KeaneAAAI 2021 · 122 citations
  2. GRACE: Generating Concise and Informative Contrastive Sample to Explain Neural Network Model's PredictionThai Le, Suhang Wang, Dongwon LeeKDD 2020 · 49 citations
  3. The Utility of "Even if" Semifactual Explanation to Optimise Positive OutcomesEoin M. Kenny, Weipeng HuangNeurIPS 2023 · 16 citations
  4. Multi-Dimensional Gender Bias ClassificationEmily Dinan, Angela Fan, Ledell Wu, Jason Weston et al.EMNLP 2020 · 7 citations

Related papers

  1. Improve Interpretability of Neural Networks via Sparse Contrastive CodingJunhong Liu, Yijie Lin, Liang Jiang, Jia Liu et al.EMNLP Findings 2022 · 6 citations
  2. Grounding Counterfactual Explanation of Image Classifiers to Textual Concept SpaceSiwon Kim, Jinoh Oh, Sungjin Lee, Seunghak Yu et al.CVPR 2023
  3. FitCF: A Framework for Automatic Feature Importance-guided Counterfactual Example GenerationQianli Wang, Nils Feldhus, Simon Ostermann, Luis Felipe Villa-Arenas et al.ACL Findings 2025 · 1 citation
  4. A General Search-Based Framework for Generating Textual Counterfactual ExplanationsDaniel Gilo, Shaul MarkovitchAAAI 2024 · 3 citations
  5. Fooling Explanations in Text ClassifiersAdam Ivankay, Ivan Girardi, Chiara Marchiori, Pascal FrossardICLR 2022 · 23 citations
Dusk over the sea between two cliffs drawn in fine vertical lines