NoMatterXAI:为解释黑盒文本分类模型生成“无论如何”的反事实示例
NoMatterXAI: Generating "No Matter What" Alterfactual Examples for Explaining Black-Box Text Classification Models
AI总结:
本文提出MoMatterXAI算法,将反事实解释生成视为优化问题,为黑盒文本分类器生成“无论如何”的替代事实示例,实现高达95%的保真度与90%以上的上下文相似性,并通过人工研究验证其有效性。
摘要:
在可解释人工智能(XAI)中,反事实解释(CEs)是一种经过充分研究的方法,通过“如果……会怎样”的对比推理来传达特征相关性,以解释AI模型的预测。然而,它们只关注重要(即相关)特征,而在很大程度上忽略了不太重要(即不相关)的特征。这些不相关的特征在许多应用中可能至关重要,尤其是当用户需要确保AI模型的决策不受性别、种族、宗教或政治派别等特定属性的影响或偏见时。为了解决这一空白,人们提出了反事实解释(AEs)的概念。AEs探索了一种“无论如何”的替代现实,其中不相关的特征被同一属性(如“政治”)内的替代特征(如“共和党人”->“民主党人”)所替换,同时保持相似的预测输出。这用于验证AI模型的预测是否受到指定属性的影响。尽管AEs具有前景,但缺乏系统生成它们的计算方法,尤其是在文本领域,为AI文本分类器创建AEs提出了独特的挑战。本文通过将AE生成表述为一个优化问题并引入MoMatterXAI(一种为文本分类任务生成AEs的新算法)来应对这一挑战。我们的方法在多个模型和数据集上实现了高达95%的高保真度,同时保持了超过90%的上下文相似性。一项人工研究进一步验证了AEs在向最终用户解释AI文本分类器方面的有效性。所有代码将公开提供。
英文摘要:
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 MoMatterXAI, 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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。