arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1901.01808cs.SEcs.LGstat.ML
收藏

SequenceR:用于端到端程序修复的序列到序列学习

SequenceR: Sequence-to-Sequence Learning for End-to-End Program Repair

KTH Royal Institute of Technology(瑞典皇家理工学院);Colorado State University(科罗拉多州立大学);The College of William and Mary(威廉与玛丽学院)

Zimin Chen, Steve Kommrusch, Michele Tufano, Louis-Noël Pouchet, Denys Poshyvanyk, Martin Monperrus

摘要:

提出了一种基于序列到序列学习的端到端程序修复方法。我们设计,实现和评估一个系统,称为SequenceR,用于修复基于序列到序列学习源代码的错误。这种方法使用复制机制来克服大型代码中出现的无限词汇表问题。我们的系统是数据驱动的;我们用35,578个样本对它进行训练,这些样本是从提交到开源存储库中精心挑选的。我们评估了4,711个独立的真实错误修复,以及用于程序修复研究的Defects 4J基准。SequenceR能够完美地预测950/4711测试样本的固定线,并为Defects 4J中的14个bug找到正确的补丁。它捕获了广泛的修复操作符,而没有任何特定于域的自顶向下设计。

英文摘要:

This paper presents a novel end-to-end approach to program repair based on sequence-to-sequence learning. We devise, implement, and evaluate a system, called SequenceR, for fixing bugs based on sequence-to-sequence learning on source code. This approach uses the copy mechanism to overcome the unlimited vocabulary problem that occurs with big code. Our system is data-driven; we train it on 35,578 samples, carefully curated from commits to open-source repositories. We evaluate it on 4,711 independent real bug fixes, as well on the Defects4J benchmark used in program repair research. SequenceR is able to perfectly predict the fixed line for 950/4711 testing samples, and find correct patches for 14 bugs in Defects4J. It captures a wide range of repair operators without any domain-specific top-down design.

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

↑