arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2502.16429cs.SE
收藏

一种桥接缺陷预测与解释的联合学习框架

A Joint Learning Framework for Bridging Defect Prediction and Interpretation

Guifang Xu, Zhiling Zhu, Xingcheng Guo, Wei Wang

AI总结:

本文提出一种联合学习框架,通过反馈回路和将解释结果作为损失函数惩罚项,同时训练缺陷预测器与解释器,在多个数据集上验证了其在缺陷预测和可解释性方面的有效性。

摘要:

在过去的五十年中,人们提出了大量软件缺陷预测(SDP)方法。然而,解释预测器为何做出特定预测的能力仍然有限。可解释的SDP作为一种有前景的解决方案应运而生,它利用可解释人工智能(XAI)方法来阐明预测器的决策过程。尽管取得了这些进展,现有方法的可靠性仍有很大的提升空间。为了解决这一局限,我们将缺陷预测和相应的解释视为两个不同但密切相关的任务,并提出了一种联合学习框架,允许同时训练预测器及其解释器。我们方法的新颖性主要体现在两个方面:1. 我们设计了反馈回路,将决策逻辑从预测器传递给解释器。这确保了预测器和解释器在决策逻辑和特征工程方面具有高度的简洁性,使解释器能够实现可靠的局部和全局可解释性。2. 我们将解释结果作为惩罚项纳入联合学习框架的损失函数中。这不仅提高了预测器的准确性,而且对解释器的可靠性施加了更强的约束。我们在多个数据集上对照几种现有的可解释SDP方法验证了我们提出的方法。结果表明,该方法在解释和缺陷预测方面均具有有效性。所提出方法的源代码可在以下地址获取:https://github.com/BugPredictor/software-defect-prediction.git

英文摘要:

Over the past fifty years, numerous software defect prediction (SDP) approaches have been proposed. However, the ability to explain why predictors make certain predictions remains limited. Explainable SDP has emerged as a promising solution by using explainable artificial intelligence (XAI) methods to clarify the decision-making processes of predictors. Despite this progress, there is still significant potential to enhance the reliability of existing approaches. To address this limitation, we treat defect prediction and the corresponding interpretation as two distinct but closely related tasks and propose a joint learning framework that allows for the simultaneous training of the predictor and its interpreter. The novelty of our approach lies in two main aspects: 1. We design feedback loops that convey the decision-making logic from the predictor to the interpreter. This ensures a high level of conciseness in decision logic and feature engineering for both the predictor and the interpreter, enabling the interpreter to achieve reliable local and global interpretability. 2. We incorporate the interpretation results as a penalty term in the loss function of the joint-learning framework. This not only improves the accuracy of the predictor but also imposes a stronger constraint on the reliability of the interpreter. We validated our proposed method against several existing explainable SDPs across multiple datasets. The results demonstrate its effectiveness in both interpretation and defect prediction. The source code for the proposed method is available at: https://github.com/BugPredictor/software-defect-prediction.git

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

↑