可解释性对于机器学习模型在关键领域中获得信任并部署至关重要。然而,现有的文本模型解释方法通常较为复杂,缺乏数学基础,且其性能无法得到保证。本文提出 FRED(Faithful and Robust Explainer for textual Documents,面向文本文档的忠实且鲁棒解释器),这是一种用于解释文本预测的新颖方法。FRED 为解释模型预测提供三个关键洞见:(1)它识别文档中最小的词语集合,移除这些词语会对预测产生最强影响;(2)它为每个 token 分配重要性分数,以反映其对模型输出的影响;(3)它通过生成与原始文档相似但会导致不同预测的示例,提供反事实解释。我们通过关于可解释分类器的形式化定义和理论分析,确立了 FRED 的可靠性。此外,我们针对最先进方法进行的实证评估证明了 FRED 在提供文本模型洞见方面的有效性。
英文摘要:
Interpretability is essential for machine learning models to be trusted and deployed in critical domains. However, existing methods for interpreting text models are often complex, lack mathematical foundations, and their performance is not guaranteed. In this paper, we propose FRED (Faithful and Robust Explainer for textual Documents), a novel method for interpreting predictions over text. FRED offers three key insights to explain a model prediction: (1) it identifies the minimal set of words in a document whose removal has the strongest influence on the prediction, (2) it assigns an importance score to each token, reflecting its influence on the model's output, and (3) it provides counterfactual explanations by generating examples similar to the original document, but leading to a different prediction. We establish the reliability of FRED through formal definitions and theoretical analyses on interpretable classifiers. Additionally, our empirical evaluation against state-of-the-art methods demonstrates the effectiveness of FRED in providing insights into text models.
Gnothi Seauton: Empowering Faithful Self-Interpretability in Black-Box Transformers
School of Artificial Intelligence, Shanghai Jiao Tong University(上海交通大学人工智能学院);Shanghai Jiao Tong University(上海交通大学);Sichuan University(四川大学);Big Data and AI Lab, ICBC(中国工商银行大数据与人工智能实验室);Hong Kong University of Science and Technology, Guangzhou(香港科技大学广州校区)
Don't Believe Everything You Read: Enhancing Summarization Interpretability through Automatic Identification of Hallucinations in Large Language Models