ENCORE:面向自动程序修复的基于卷积神经机器翻译的集成学习
ENCORE: Ensemble Learning using Convolution Neural Machine Translation for Automatic Program Repair
AI总结:
针对传统生成-验证程序修复技术规则固化、适配语言有限的问题,提出基于卷积神经机器翻译集成学习的ENCORE方法,可跨多语言修复缺陷,在多个基准上修复效果优于现有技术。
摘要:
自动化生成-验证(G&V)程序修复技术通常依赖硬编码规则,仅能修复符合特定模式的缺陷,且难以适配不同编程语言。我们提出ENCORE这一新型G&V技术,它在卷积神经机器翻译(NMT)模型上运用集成学习,自动修复多编程语言中的缺陷。我们利用超参数调优中的随机性构建多个可修复不同缺陷的模型,并通过集成学习将其结合。这种新型卷积NMT方法优于此前研究中使用的标准长短期记忆(LSTM)方法,因为它能更好地捕捉词元之间的局部与长距离关联。我们在两个流行基准Defects4J和QuixBugs上的评估显示,ENCORE修复了42个缺陷,其中16个是现有技术尚未修复的。此外,ENCORE是首个应用于四种流行编程语言(Java、C++、Python和JavaScript)的G&V修复技术,在五个基准上共修复了67个缺陷。
英文摘要:
Automated generate-and-validate (G&V) program repair techniques typically rely on hard-coded rules, only fix bugs following specific patterns, and are hard to adapt to different programming languages. We propose ENCORE, a new G&V technique, which uses ensemble learning on convolutional neural machine translation (NMT) models to automatically fix bugs in multiple programming languages. We take advantage of the randomness in hyper-parameter tuning to build multiple models that fix different bugs and combine them using ensemble learning. This new convolutional NMT approach outperforms the standard long short-term memory (LSTM) approach used in previous work, as it better captures both local and long-distance connections between tokens. Our evaluation on two popular benchmarks, Defects4J and QuixBugs, shows that ENCORE fixed 42 bugs, including 16 that have not been fixed by existing techniques. In addition, ENCORE is the first G&V repair technique to be applied to four popular programming languages (Java, C++, Python, and JavaScript), fixing a total of 67 bugs across five benchmarks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。