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

补丁正确性评估的可靠性研究

On Reliability of Patch Correctness Assessment

Xuan Bach D. Le, Lingfeng Bao, David Lo, Xin Xia, Shanping Li

摘要:

当前最先进的自动软件修复(ASR)技术严重依赖于不完整的规范,例如,测试套件,以生成修复。然而,这可能使ASR工具生成不泛化的不正确的修复。为了评估补丁的正确性,研究人员分别遵循两种典型的方法:(1)自动注释,其中补丁由独立测试套件(ITS)自动标记-通过ITS的补丁被认为是正确的或可推广的,否则不正确,(2)作者注释,其中ASR技术的作者注释他们自己和竞争工具生成的补丁的正确性标签。虽然自动注释无法证明补丁实际上是正确的,但作者注释容易主观。这一问题引起了持续的辩论,适当的方法来评估最近提出的许多ASR技术的有效性。为了解决这个问题,我们建议评估作者的可靠性和自动注释补丁的正确性评估。我们这样做,首先构建一个黄金集的正确性标签189随机选择的补丁生成的8个国家的最先进的ASR技术,通过用户研究,涉及35个专业开发人员作为独立的注释。通过测量评分者之间的一致性作为注释质量的代理-正如文献中常见的那样-我们证明了我们构建的黄金集与其他高质量的黄金集不相上下。然后,我们将作者生成的标签和自动注释与此黄金集进行比较,以评估补丁评估方法的可靠性。随后,我们报告了几项发现,并强调了对未来研究的影响。

英文摘要:

Current state-of-the-art automatic software repair (ASR) techniques rely heavily on incomplete specifications, e.g., test suites, to generate repairs. This, however, may render ASR tools to generate incorrect repairs that do not generalize. To assess patch correctness, researchers have been following two typical ways separately: (1) Automated annotation, wherein patches are automatically labeled by an independent test suite (ITS) - a patch passing the ITS is regarded as correct or generalizable, and incorrect otherwise, (2) Author annotation, wherein authors of ASR techniques annotate correctness labels of patches generated by their and competing tools by themselves. While automated annotation fails to prove that a patch is actually correct, author annotation is prone to subjectivity. This concern has caused an on-going debate on appropriate ways to assess the effectiveness of numerous ASR techniques proposed recently. To address this concern, we propose to assess reliability of author and automated annotations on patch correctness assessment. We do this by first constructing a gold set of correctness labels for 189 randomly selected patches generated by 8 state-of-the-art ASR techniques through a user study involving 35 professional developers as independent annotators. By measuring inter-rater agreement as a proxy for annotation quality - as commonly done in the literature - we demonstrate that our constructed gold set is on par with other high-quality gold sets. We then compare labels generated by author and automated annotations with this gold set to assess reliability of the patch assessment methodologies. We subsequently report several findings and highlight implications for future studies.

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

↑