CLeBPI:缺陷优先级推理的对比学习
CLeBPI: Contrastive Learning for Bug Priority Inference
摘要:
自动化的错误优先级推理可以减少错误诊断器分配优先级的时间开销,提高软件维护的效率。目前,这项任务有两条正交线,即,传统的基于机器学习(基于TML)和基于神经网络(基于NN)的方法。尽管这些方法取得了很好的性能,但我们发现现有的方法面临以下两个问题:1)基于TML的方法需要大量的人工特征工程,无法学习错误报告的语义信息; 2)基于TML和基于NN的方法都不能有效解决标签不平衡问题,因为它们很难区分具有不同优先级的错误报告之间的语义差异。在本文中,我们提出了CLeBPI(错误优先级推理的对比学习),它利用预训练的语言模型和对比学习来解决上述两个问题。具体而言,CLeBPI首先以自监督的方式在大规模错误报告语料库上进行预训练,因此它可以自动学习错误报告的上下文表示,而无需手动特征工程。之后,它进一步通过对比学习目标进行预训练,这使它能够区分错误报告之间的语义差异,为每个错误报告学习更精确的上下文表示。当完成预训练时,我们可以将分类层连接到CLeBPI,并以监督的方式对其进行微调以进行bug优先级推断。为了验证CLeBPI的有效性,我们选择了四种基线方法,并在公共数据集上进行了比较实验。实验结果表明,CLeBPI在加权平均F1分数方面优于所有基线方法23.86%-77.80%,显示了其有效性。
英文摘要:
Automated bug priority inference can reduce the time overhead of bug triagers for priority assignments, improving the efficiency of software maintenance. Currently, there are two orthogonal lines for this task, i.e., traditional machine learning based (TML-based) and neural network based (NN-based) approaches. Although these approaches achieve competitive performance, our observation finds that existing approaches face the following two issues: 1) TML-based approaches require much manual feature engineering and cannot learn the semantic information of bug reports; 2) Both TML-based and NN-based approaches cannot effectively address the label imbalance problem because they are difficult to distinguish the semantic difference between bug reports with different priorities. In this paper, we propose CLeBPI (Contrastive Learning for Bug Priority Inference), which leverages pre-trained language model and contrastive learning to tackle the above-mentioned two issues. Specifically, CLeBPI is first pre-trained on a large-scale bug report corpus in a self-supervised way, thus it can automatically learn contextual representations of bug reports without manual feature engineering. Afterward, it is further pre-trained by a contrastive learning objective, which enables it to distinguish semantic differences between bug reports, learning more precise contextual representations for each bug report. When finishing pre-training, we can connect a classification layer to CLeBPI and fine-tune it for bug priority inference in a supervised way. To verify the effectiveness of CLeBPI, we choose four baseline approaches and conduct comparison experiments on a public dataset. The experimental results show that CLeBPI outperforms all baseline approaches by 23.86%-77.80% in terms of weighted average F1-score, showing its effectiveness.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。