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.
Neural Program Repair: Systems, Challenges and Solutions
自动程序修复(APR)旨在自动修复源代码中的错误。近年来,随着深度学习(Deep Learning,DL)领域的发展,神经程序修复(Neural Program Repair,NPR)研究兴起,它将APR描述为从错误代码到正确代码的翻译任务,并采用基于编码器-解码器架构的神经网络。与其他APR技术相比,NPR方法在适用性方面具有很大的优势,因为它们不需要任何规范(即,测试套件)。虽然非线性重构已经成为一个热门的研究方向,但目前还没有对这一领域的研究综述。为了帮助感兴趣的读者了解现有的NPR系统的架构,挑战和相应的解决方案,我们在本文中的最新研究进行了文献综述。首先介绍了该领域的背景知识。接下来,为了便于理解,我们将NPR过程分解为一系列模块,并详细说明每个模块上的各种设计选择。此外,我们确定了几个挑战,并讨论现有解决方案的效果。最后,我们总结并提出了一些有前途的研究方向。
Provable Repair of Deep Neural Network Defects by Preimage Synthesis and Property Refinement
Hangzhou Dianzi University(杭州电子科技大学);Zhejiang University(浙江大学);Institute of Cyberspace Security, Zhejiang University of Technology(浙江工业大学网络空间安全学院);Binjiang Institute of AI, ZJUT(浙江工业大学滨江人工智能研究院);School of Cyberspace, Hangzhou Dianzi University(杭州电子科技大学网络空间学院)
How Different Is It Between Machine-Generated and Developer-Provided Patches? An Empirical Study on The Correct Patches Generated by Automated Program Repair Techniques
背景资料:多年来,自动程序修复(Automated Program Repair,APR)由于能够降低修复错误的成本而受到学术界和工业界的广泛关注。然而,如何评估补丁的正确性仍然是一个开放的挑战。两种广泛采用的方法来应对这一挑战,包括手动检查和使用自动生成的测试进行验证,都是有偏见的(即,分别遭受主观性和低精度)。目的:为了解决这一问题,我们建议进行实证研究,了解正确的补丁,由现有的国家的最先进的APR技术,旨在为未来的补丁评估提供指导方针。方法:为此,我们首先提出了一个文献综述(LR)报告的正确补丁生成的最新技术的缺陷4J基准和收集177个正确的补丁后,健全检查的过程。我们研究了这些机器生成的正确补丁是如何实现语义等价的,但与开发人员提供的补丁相比在语法上存在差异,这些补丁如何在不同的项目和APR技术中分布,以及错误的特征如何影响为其生成的补丁。我们的主要发现包括:1)我们不需要像开发人员那样修复bug,因为我们观察到25.4%(45/177)2)机器生成的正确补丁的分布在Defects 4J项目和APR技术方面存在差异;以及3)APR技术倾向于生成与开发者针对具有大补丁大小的错误所生成的补丁不同的补丁。结论:我们的研究不仅验证了以前的研究结论,但也强调了未来的研究对评估补丁的正确性的影响。
Form, Not Content? A Preregistered, Placebo-Controlled Evaluation of Learned Error-Conditioned Self-Repair Through Prompts and Weights in Frozen Small Code Models
PythaLab, Yıldız Technical University, Istanbul, Turkey(PythaLab,Yıldız技术大学,伊斯坦布尔,土耳其)
TeleGen: Improving LLM-Based Web Application Generation via Runtime Telemetry
The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州));University of Waterloo(滑铁卢大学);The Hong Kong University of Science and Technology(香港科技大学)