arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.15374cs.CLcs.AIcs.CYcs.LG
收藏

评估 XAI 技术对基于编码器的语言模型的有效性

Evaluating the Effectiveness of XAI Techniques for Encoder-Based Language Models

College of Engineering and Applied Science, University of Colorado Colorado Springs(科罗拉多大学科罗拉多斯普林斯分校工程与应用科学学院)

Melkamu Abay Mersha, Mesay Gemeda Yigezu, Jugal Kalita

AI总结:

本文构建含 HA、鲁棒性、一致性和对比性的 XAI 评估框架,跨五种编码器语言模型和两个数据集比较六类解释方法,发现 LIME 综合最佳,AMV 与 LRP 分别在鲁棒性、一致性和对比性上领先。

摘要:

大型语言模型(LLM)的黑箱性质使得有必要开发可解释 AI(XAI)技术,以提升透明度和可信度。然而,评估这些技术仍然是一项挑战。本研究提出了一个通用评估框架,使用四个关键指标:人类推理一致性(HA)、鲁棒性、一致性和对比性。我们在五个基于编码器的语言模型(TinyBERT、BERTbase、BERTlarge、XLM-R large 和 DeBERTa-xlarge)上,使用 IMDB Movie Reviews 和 Tweet Sentiment Extraction(TSE)数据集,评估了来自五个不同 XAI 类别的六种可解释性技术:模型简化(LIME)、基于扰动的方法(SHAP)、基于梯度的方法(InputXGradient、Grad-CAM)、层级相关性传播(LRP)以及基于注意力机制的可解释性方法(注意力机制可视化,AMV)。研究结果表明,随着大型语言模型复杂度的增加,基于模型简化的 XAI 方法(LIME)在多个指标和模型上始终表现更优,并在 HA、鲁棒性和一致性方面显著突出,其中在 DeBERTa-xlarge 上的 HA 得分为 0.9685。AMV 表现出最佳鲁棒性,得分低至 0.0020;它在一致性方面也表现优异,在所有模型上取得接近完美的 0.9999 分。在对比性方面,LRP 表现最好,尤其是在更复杂的模型上,得分最高达 0.9371。

英文摘要:

The black-box nature of large language models (LLMs) necessitates the development of eXplainable AI (XAI) techniques for transparency and trustworthiness. However, evaluating these techniques remains a challenge. This study presents a general evaluation framework using four key metrics: Human-reasoning Agreement (HA), Robustness, Consistency, and Contrastivity. We assess the effectiveness of six explainability techniques from five different XAI categories model simplification (LIME), perturbation-based methods (SHAP), gradient-based approaches (InputXGradient, Grad-CAM), Layer-wise Relevance Propagation (LRP), and attention mechanisms-based explainability methods (Attention Mechanism Visualization, AMV) across five encoder-based language models: TinyBERT, BERTbase, BERTlarge, XLM-R large, and DeBERTa-xlarge, using the IMDB Movie Reviews and Tweet Sentiment Extraction (TSE) datasets. Our findings show that the model simplification-based XAI method (LIME) consistently outperforms across multiple metrics and models, significantly excelling in HA with a score of 0.9685 on DeBERTa-xlarge, robustness, and consistency as the complexity of large language models increases. AMV demonstrates the best Robustness, with scores as low as 0.0020. It also excels in Consistency, achieving near-perfect scores of 0.9999 across all models. Regarding Contrastivity, LRP performs the best, particularly on more complex models, with scores up to 0.9371.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑