A syntax-guided edit decoder for neural program repair
Qihao Zhu, Zeyu Sun, Yuan-an Xiao, Wenjie Zhang, Kang Yuan, Yingfei Xiong, Lu Zhang
摘要
Automated Program Repair (APR) helps improve the efficiency of software development and maintenance. Recent APR techniques use deep learning, particularly the encoder-decoder architecture, to generate patches. Though existing DL-based APR approaches have proposed different encoder architectures, the decoder remains to be the standard one, which generates a sequence of tokens one by one to replace the faulty statement. This decoder has multiple limitations: 1) allowing to generate syntactically incorrect programs, 2) inefficiently representing small edits, and 3) not being able to generate project-specific identifiers.
In this paper, we propose Recoder, a syntax-guided edit decoder with placeholder generation. Recoder is novel in multiple aspects: 1) Recoder generates edits rather than modified code, allowing efficient representation of small edits; 2) Recoder is syntax-guided, with the novel provider/decider architecture to ensure the syntactic correctness of the patched program and accurate generation; 3) Recoder generates placeholders that could be instantiated as projectspecific identifiers later.
We conduct experiments to evaluate Recoder on 395 bugs from Defects4J v1.2, 420 additional bugs from Defects4J v2.0, 297 bugs from IntroClassJava and 40 bugs from QuixBugs. Our results show that Recoder repairs 51 bugs on Defects4J v1.2, which achieves HCST: High Confidence Software Technologies.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 85 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- CoCoNuT: combining context-aware neural translation models using ensemble for program repair 引用了 On the efficiency of test suite based program repair: A Systematic Assessment of 16 Automated Repair Systems for Java Programs
- CoCoNuT: combining context-aware neural translation models using ensemble for program repair 引用了 DLFix: context-based code transformation learning for automated program repair
- Impact of Code Language Models on Automated Program Repair 引用了 CoCoNuT: combining context-aware neural translation models using ensemble for program repair
- Impact of Code Language Models on Automated Program Repair 引用了 Less training, more repairing please: revisiting automated program repair via zero-shot learning
- Impact of Code Language Models on Automated Program Repair 引用了 DLFix: context-based code transformation learning for automated program repair
- Retrieval-Based Prompt Selection for Code-Related Few-Shot Learning 引用了 CoCoNuT: combining context-aware neural translation models using ensemble for program repair
- Retrieval-Based Prompt Selection for Code-Related Few-Shot Learning 引用了 Graph-based, Self-Supervised Program Repair from Diagnostic Feedback
- Retrieval-Based Prompt Selection for Code-Related Few-Shot Learning 引用了 DLFix: context-based code transformation learning for automated program repair
- Less training, more repairing please: revisiting automated program repair via zero-shot learning 引用了 CoCoNuT: combining context-aware neural translation models using ensemble for program repair
- Less training, more repairing please: revisiting automated program repair via zero-shot learning 引用了 DLFix: context-based code transformation learning for automated program repair
- Automated Repair of Programs from Large Language Models 引用了 CoCoNuT: combining context-aware neural translation models using ensemble for program repair
- Automated Repair of Programs from Large Language Models 引用了 DLFix: context-based code transformation learning for automated program repair
- Automated Program Repair in the Era of Large Pre-trained Language Models 引用了 CoCoNuT: combining context-aware neural translation models using ensemble for program repair
- Automated Program Repair in the Era of Large Pre-trained Language Models 引用了 Less training, more repairing please: revisiting automated program repair via zero-shot learning
- Automated Program Repair in the Era of Large Pre-trained Language Models 引用了 DLFix: context-based code transformation learning for automated program repair
引用它的顶会 Paper85
- Automated Program Repair in the Era of Large Pre-trained Language ModelsChunqiu Steven Xia, Yuxiang Wei, Lingming ZhangICSE 2023 · 321 次引用
- Less training, more repairing please: revisiting automated program repair via zero-shot learningChunqiu Steven Xia, Lingming ZhangFSE 2022 · 223 次引用
- Automated Repair of Programs from Large Language ModelsZhiyu Fan, Xiang Gao, Martin Mirchev, Abhik Roychoudhury 等ICSE 2023 · 213 次引用
- Impact of Code Language Models on Automated Program RepairNan Jiang, Kevin Liu, Thibaud Lutellier, Lin TanICSE 2023 · 164 次引用
- Retrieval-Based Prompt Selection for Code-Related Few-Shot LearningNoor Nashid, Mifta Sintaha, Ali MesbahICSE 2023 · 156 次引用
它引用的 Paper8
- CoCoNuT: combining context-aware neural translation models using ensemble for program repairThibaud Lutellier, Hung Viet Pham, Lawrence Pang, Yitong Li 等ISSTA 2020 · 325 次引用
- DLFix: context-based code transformation learning for automated program repairYi Li, Shaohua Wang, Tien N. NguyenICSE 2020 · 201 次引用
- Graph-based, Self-Supervised Program Repair from Diagnostic FeedbackMichihiro Yasunaga, Percy LiangICML 2020 · 198 次引用
- TreeGen: A Tree-Based Transformer Architecture for Code GenerationZeyu Sun, Qihao Zhu, Yingfei Xiong, Yican Sun 等AAAI 2020 · 196 次引用
- On the efficiency of test suite based program repair: A Systematic Assessment of 16 Automated Repair Systems for Java ProgramsKui Liu, Shangwen Wang, Anil Koyuncu, Kisub Kim 等ICSE 2020 · 116 次引用
相关 Paper
- KNOD: Domain Knowledge Distilled Tree Decoder for Automated Program RepairNan Jiang, Thibaud Lutellier, Yiling Lou, Lin Tan 等ICSE 2023 · 55 次引用
- Grammar-Based Patches Generation for Automated Program RepairYu Tang, Long Zhou, Ambrosio Blanco, Shujie Liu 等ACL Findings 2021 · 13 次引用
- Tare: Type-Aware Neural Program RepairQihao Zhu, Zeyu Sun, Wenjie Zhang, Yingfei Xiong 等ICSE 2023 · 29 次引用
- ITER: Iterative Neural Repair for Multi-Location PatchesHe Ye, Martin MonperrusICSE 2024 · 39 次引用
- RAP-Gen: Retrieval-Augmented Patch Generation with CodeT5 for Automatic Program RepairWeishi Wang, Yue Wang, Shafiq Joty, Steven C. H. HoiFSE 2023 · 84 次引用
