EvaluateXAI:评估基于规则的XAI技术在软件分析任务中可靠性与一致性的框架
EvaluateXAI: A Framework to Evaluate the Reliability and Consistency of Rule-based XAI Techniques for Software Analytics Tasks
AI总结:
针对软件分析任务中基于规则的XAI技术(如PyExplainer和LIME)生成解释的可靠性和一致性问题,提出EvaluateXAI框架及细粒度评估指标,实验表明现有技术解释不可靠且不一致,需进一步研究。
摘要:
机器学习(ML)模型的进步推动了基于ML的方法的发展,以改进软件维护和演化中的众多软件工程任务。然而,研究表明,尽管这些模型具有潜在的成功之处,但由于它们对从业者而言往往仍是黑盒,缺乏推理的可解释性,因此可能无法在实际场景中应用。近年来,各种基于规则的模型无关的可解释人工智能(XAI)技术,如PyExplainer和LIME,已被用于解释软件分析任务中ML模型的预测。本文评估了这些技术(例如PyExplainer和LIME)为各种软件分析任务中的ML模型生成可靠且一致的解释的能力,这些任务包括即时(JIT)缺陷预测、克隆检测以及有用代码审查评论的分类。我们的手动调查发现这些技术生成的解释存在不一致和异常。因此,我们设计了一个新颖的框架:可解释人工智能评估(EvaluateXAI),以及细粒度评估指标,以自动评估基于规则的XAI技术在软件分析任务中为ML模型生成可靠且一致解释的有效性。在进行了涉及七个最先进的ML模型、五个数据集和六个评估指标的深入实验后,我们发现没有一个评估指标达到100%,这表明XAI技术生成的解释不可靠。此外,PyExplainer和LIME分别未能为86.11%和77.78%的实验组合提供一致的解释。因此,我们的实验发现强调了在XAI领域进行进一步研究的必要性,以为软件分析任务中的ML模型生成可靠且一致的解释。
英文摘要:
The advancement of machine learning (ML) models has led to the development of ML-based approaches to improve numerous software engineering tasks in software maintenance and evolution. Nevertheless, research indicates that despite their potential successes, ML models may not be employed in real-world scenarios because they often remain a black box to practitioners, lacking explainability in their reasoning. Recently, various rule-based model-agnostic Explainable AI (XAI) techniques, such as PyExplainer and LIME, have been employed to explain the predictions of ML models in software analytics tasks. This paper assesses the ability of these techniques (e.g., PyExplainer and LIME) to generate reliable and consistent explanations for ML models across various software analytics tasks, including Just-in-Time (JIT) defect prediction, clone detection, and the classification of useful code review comments. Our manual investigations find inconsistencies and anomalies in the explanations generated by these techniques. Therefore, we design a novel framework: Evaluation of Explainable AI (EvaluateXAI), along with granular-level evaluation metrics, to automatically assess the effectiveness of rule-based XAI techniques in generating reliable and consistent explanations for ML models in software analytics tasks. After conducting in-depth experiments involving seven state-of-the-art ML models trained on five datasets and six evaluation metrics, we find that none of the evaluation metrics reached 100\%, indicating the unreliability of the explanations generated by XAI techniques. Additionally, PyExplainer and LIME failed to provide consistent explanations for 86.11% and 77.78% of the experimental combinations, respectively. Therefore, our experimental findings emphasize the necessity for further research in XAI to produce reliable and consistent explanations for ML models in software analytics tasks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。