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

基于网络的多模态缺陷定位

Network-Clustered Multi-Modal Bug Localization

Singapore Management University(新加坡管理大学)

Thong Hoang, Richard J. Oentaryo, Tien-Duy B. Le, David Lo

摘要:

开发人员经常花费大量的精力和资源来调试程序。为了帮助开发人员调试,许多基于信息检索(IR)和基于频谱的错误定位技术已经被设计出来。基于IR的技术处理错误报告中的文本信息,而基于谱的技术处理程序谱(即,对于每个测试用例执行哪些程序元素的记录)。虽然这两种技术最终都会生成一个可能包含bug的程序元素的排序列表,但它们只考虑一个信息源--bug报告或程序谱--这不是最佳的。针对这一不足,本文提出了一种新的网络聚类多模态错误定位方法(NetML),该方法利用来自错误报告和程序谱的多模态信息对错误进行定位。NetML通过执行错误定位误差的联合优化以及错误报告和程序元素的聚类(即,方法)。聚类是通过结合网络Lasso正则化来实现的,它激励相似错误报告和相似程序元素的模型参数靠近在一起。为了估计错误报告和方法的模型参数,NetML采用了一种基于牛顿方法的自适应学习过程,该过程在每个特征的基础上更新参数。我们对来自7个软件系统的355个真实错误进行了广泛的实验,以针对各种最先进的本地化方法对NetML进行基准测试。结果显示,NetML在开发人员检查前1、5和10种方法时成功定位的错误数量以及平均平均精度(MAP)方面分别超过了最佳性能基线31.82%、22.35%、19.72%和19.24%。

英文摘要:

Developers often spend much effort and resources to debug a program. To help the developers debug, numerous information retrieval (IR)-based and spectrum-based bug localization techniques have been devised. IR-based techniques process textual information in bug reports, while spectrum-based techniques process program spectra (i.e., a record of which program elements are executed for each test case). While both techniques ultimately generate a ranked list of program elements that likely contain a bug, they only consider one source of information--either bug reports or program spectra--which is not optimal. In light of this deficiency, this paper presents a new approach dubbed Network-clustered Multi-modal Bug Localization (NetML), which utilizes multi-modal information from both bug reports and program spectra to localize bugs. NetML facilitates an effective bug localization by carrying out a joint optimization of bug localization error and clustering of both bug reports and program elements (i.e., methods). The clustering is achieved through the incorporation of network Lasso regularization, which incentivizes the model parameters of similar bug reports and similar program elements to be close together. To estimate the model parameters of both bug reports and methods, NetML employs an adaptive learning procedure based on Newton method that updates the parameters on a per-feature basis. Extensive experiments on 355 real bugs from seven software systems have been conducted to benchmark NetML against various state-of-the-art localization methods. The results show that NetML surpasses the best-performing baseline by 31.82%, 22.35%, 19.72%, and 19.24%, in terms of the number of bugs successfully localized when a developer inspects the top 1, 5, and 10 methods and Mean Average Precision (MAP), respectively.

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

↑