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

MUFIN:通过反向翻译改进神经修复模型

MUFIN: Improving Neural Repair Models with Back-Translation

André Silva, João F. Ferreira, He Ye, Martin Monperrus

AI总结:

本文提出使用反向翻译技术并设计MUFIN框架,通过专门的代码评估器选择高质量样本,在自监督学习下自动生成超50万对错误/修复数据,有效提升了神经程序修复模型的训练效果。

摘要:

自动程序修复是自动修复软件错误的任务。该领域一个有前景的方向是自监督学习,这是一种在无需表示错误/修复对的提交的情况下训练修复模型的学习范式。在自监督神经程序修复中,这些错误/修复对以某种方式生成。主要问题在于生成有趣且多样的对,以最大化训练的有效性。作为对该问题的贡献,我们提出使用反向翻译,一种源自神经机器翻译的技术。我们设计并实现了 MUFIN,一种用于程序修复的反向翻译训练技术,带有专门设计的代码评估器以选择高质量训练样本。我们的结果表明,MUFIN 的反向翻译循环以完全自动化的自监督方式生成了有价值的训练样本,生成了超过 50 万对错误/修复。代码评估器的设计是关键,因为在评估器的限制程度与反向翻译期间可用于优化的样本数量之间存在一个基本的权衡。

英文摘要:

Automated program repair is the task of automatically repairing software bugs. A promising direction in this field is self-supervised learning, a learning paradigm in which repair models are trained without commits representing pairs of bug/fix. In self-supervised neural program repair, those bug/fix pairs are generated in some ways. The main problem is to generate interesting and diverse pairs that maximize the effectiveness of training. As a contribution to this problem, we propose to use back-translation, a technique coming from neural machine translation. We devise and implement MUFIN, a back-translation training technique for program repair, with specifically designed code critics to select high-quality training samples. Our results show that MUFIN's back-translation loop generates valuable training samples in a fully automated, self-supervised manner, generating more than half-a-million pairs of bug/fix. The code critic design is key because of a fundamental trade-off between how restrictive a critic is and how many samples are available for optimization during back-translation.

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

↑