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

一种贝叶斯自动推理框架

A Bayesian Framework for Automated Debugging

Sungmin Kang, Wonkeun Choi, Shin Yoo

摘要:

这占用了开发人员很大一部分时间。因此,包括故障定位(FL)和自动程序修复(APR)的自动调试技术由于其在调试任务中帮助开发人员的潜力而获得了显著的关注。尽管对这些主题进行了深入的研究,但我们并不知道一个理论框架,它强调了自动调试背后的原则,并允许对技术进行抽象分析。这样一个框架将提高我们对这一努力的理解,并提供一种正式分析技术和方法的方法。为此,我们首先提出了一个贝叶斯框架的理解自动化修复,并发现,结合具体声明的目标,自动化调试,我们可以恢复最大的故障定位公式从以前的工作,以及分析现有的APR技术和他们的基本假设。作为一种手段,实证证明我们的框架,我们进一步提出BAPP,贝叶斯补丁优先级技术,采用中间程序值来分析可能的补丁位置和修复行动,其核心方程是由我们的贝叶斯框架。我们发现,将程序值允许BAPP更精确地识别正确的补丁:当应用到kPAR生成的补丁,排名产生的BAPP减少了68%的补丁验证所需的数量,从而减少了平均34分钟的修复时间。此外,BAPP提高了FL的精度,将所研究的错误的acc@5从8增加到11。这些结果突出了价值认知自动调试技术的潜力,并进一步验证了我们的理论框架。最后,提供了框架建议的未来方向。

英文摘要:

Debugging takes up a significant portion of developer time. As a result, automated debugging techniques including Fault Localization (FL) and Automated Program Repair (APR) have garnered significant attention due to their potential to aid developers in debugging tasks. Despite intensive research on these subjects, we are unaware of a theoretic framework that highlights the principles behind automated debugging and allows abstract analysis of techniques. Such a framework would heighten our understanding of the endeavor and provide a way to formally analyze techniques and approaches. To this end, we first propose a Bayesian framework of understanding automated repair and find that in conjunction with a concrete statement of the objective of automated debugging, we can recover maximal fault localization formulae from prior work, as well as analyze existing APR techniques and their underlying assumptions. As a means of empirically demonstrating our framework, we further propose BAPP, a Bayesian Patch Prioritization technique that incorporates intermediate program values to analyze likely patch locations and repair actions, with its core equations being derived by our Bayesian framework. We find that incorporating program values allows BAPP to identify correct patches more precisely: when applied to the patches generated by kPAR, the rankings produced by BAPP reduce the number of required patch validation by 68% and consequently reduce the repair time by 34 minutes on average. Further, BAPP improves the precision of FL, increasing acc@5 on the studied bugs from 8 to 11. These results highlight the potential of value-cognizant automated debugging techniques, and further validates our theoretical framework. Finally, future directions that the framework suggests are provided.

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

↑