arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2306.09892cs.SE
收藏

通过迭代测试套件缩减改进基于频谱的多故障定位

Improving Spectrum-Based Localization of Multiple Faults by Iterative Test Suite Reduction

Dylan Callaghan, Bernd Fischer

AI总结:

本文提出FLITSR方法,通过迭代缩减测试套件改进SBFL在多故障场景下的定位能力,实验表明其能显著减少浪费工作量并提升精确率与召回率。

摘要:

基于频谱的故障定位(SBFL)在单故障程序中表现良好,但随着故障数量的增加,其准确性会下降。我们提出了FLITSR(通过迭代测试套件缩减进行故障定位),这是一种新颖的SBFL扩展,专门在存在多个故障的情况下改进给定基础度量的定位能力。FLITSR迭代地选择测试套件的缩减版本,以更好地定位系统中的各个故障。这使其能够识别并重新排序那些因被其他程序元素掩盖而被基础度量排名过低的故障。我们在一个现有的大型合成数据集上评估了FLITSR,该数据集包含15个开源项目的75000个变体,注入故障多达32个,并使用方法级频谱;同时也在一个新数据集上进行了评估,该数据集包含来自Defects4J基准集的326个真实多故障版本,含有最多14个真实故障,覆盖方法级和语句级频谱。对于所有三种频谱类型,我们一致观察到在不同故障级别上平均浪费工作量大幅减少,相对于最佳基础度量减少了30%–90%,并且精确率和召回率普遍有同样大幅度的提升,尽管在不同底层项目之间存在较大方差。对于方法级真实故障,FLITSR还显著优于GRACE——一种最先进的基于学习的故障定位器。

英文摘要:

Spectrum-based fault localization (SBFL) works well for single-fault programs but its accuracy decays for increasing fault numbers. We present FLITSR (Fault Localization by Iterative Test Suite Reduction), a novel SBFL extension that improves the localization of a given base metric specifically in the presence of multiple faults. FLITSR iteratively selects reduced versions of the test suite that better localize the individual faults in the system. This allows it to identify and re-rank faults ranked too low by the base metric because they were masked by other program elements. We evaluated FLITSR over method-level spectra from an existing large synthetic dataset comprising 75000 variants of 15 open-source projects with up to 32 injected faults, as well as method-level and statement-level spectra from a new dataset with 326 true multi-fault versions from the Defects4J benchmark set containing up to 14 real faults. For all three spectrum types we consistently see substantial reductions of the average wasted efforts at different fault levels, of 30%-90% over the best base metric, and generally similarly large increases in precision and recall, albeit with larger variance across the underlying projects. For the method-level real faults, FLITSR also substantially outperforms GRACE, a state-of-the-art learning-based fault localizer.

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

↑