arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2108.05341cs.SEcs.IRcs.LG
收藏

搜索引擎在基于IR的缺陷定位中被遗忘的作用:一项实证研究

The Forgotten Role of Search Queries in IR-based Bug Localization: An Empirical Study

Dalhousie University(达尔豪斯大学);Polytechnique Montreal(蒙特利尔理工学院);University of Saskatchewan(萨斯喀彻温大学)

Mohammad Masudur Rahman, Foutse Khomh, Shamima Yeasmin, Chanchal K. Roy

摘要:

基于信息检索的缺陷定位方法具有体积小、成本低等优点,在发现软件缺陷方面有着广阔的应用前景。然而,这些方法的准确性在很大程度上取决于它们使用的错误报告。大量的bug报告只包含普通的自然语言文本。根据现有的研究,基于IR的方法不能很好地执行时,他们使用这些错误报告作为搜索查询。另一方面,最近有一项证据表明,即使是这些仅使用自然语言的报告也包含足够好的关键字,可以帮助成功地定位错误。一方面,这些发现表明,只有自然语言的错误报告可能是一个足够的来源,良好的查询关键字。另一方面,他们对基于IR的错误定位中的查询选择实践提出了严重质疑。在本文中,我们试图通过进行深入的实证研究来澄清这方面的问题,该研究批判性地考察了基于IR的错误定位中最先进的查询选择实践。特别是,我们使用的数据集的2,320个错误报告,采用现有的方法从文献中,利用遗传算法为基础的方法来构建最佳的,接近最佳的搜索查询,从这些错误报告,然后回答三个研究问题。我们证实,国家的最先进的查询构造方法确实是不足以从某些自然语言的错误报告,虽然他们包含这样的查询构建适当的查询(错误定位)。我们还证明了从错误报告文本中选择的最佳查询和非最佳查询在几个关键字特征方面有显着不同,这使我们获得了可操作的见解。此外,我们证明了27%-34%的改进,通过我们的可操作的见解,他们的非最佳查询的性能。

英文摘要:

Being light-weight and cost-effective, IR-based approaches for bug localization have shown promise in finding software bugs. However, the accuracy of these approaches heavily depends on their used bug reports. A significant number of bug reports contain only plain natural language texts. According to existing studies, IR-based approaches cannot perform well when they use these bug reports as search queries. On the other hand, there is a piece of recent evidence that suggests that even these natural language-only reports contain enough good keywords that could help localize the bugs successfully. On one hand, these findings suggest that natural language-only bug reports might be a sufficient source for good query keywords. On the other hand, they cast serious doubt on the query selection practices in the IR-based bug localization. In this article, we attempted to clear the sky on this aspect by conducting an in-depth empirical study that critically examines the state-of-the-art query selection practices in IR-based bug localization. In particular, we use a dataset of 2,320 bug reports, employ ten existing approaches from the literature, exploit the Genetic Algorithm-based approach to construct optimal, near-optimal search queries from these bug reports, and then answer three research questions. We confirmed that the state-of-the-art query construction approaches are indeed not sufficient for constructing appropriate queries (for bug localization) from certain natural language-only bug reports although they contain such queries. We also demonstrate that optimal queries and non-optimal queries chosen from bug report texts are significantly different in terms of several keyword characteristics, which has led us to actionable insights. Furthermore, we demonstrate 27%--34% improvement in the performance of non-optimal queries through the application of our actionable insights to them.

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

↑