KNOD: Domain Knowledge Distilled Tree Decoder for Automated Program Repair
Nan Jiang, Thibaud Lutellier, Yiling Lou, Lin Tan, Dan Goldwasser, Xiangyu Zhang
摘要
Automated Program Repair (APR) improves soft-ware reliability by generating patches for a buggy program automatically. Recent APR techniques leverage deep learning (DL) to build models to learn to generate patches from existing patches and code corpora. While promising, DL-based APR techniques suffer from the abundant syntactically or semantically incorrect patches in the patch space. These patches often disobey the syntactic and semantic domain knowledge of source code and thus cannot be the correct patches to fix a bug. We propose a DL-based APR approach KNOD, which in-corporates domain knowledge to guide patch generation in a direct and comprehensive way. KNOD has two major novelties, including (1) a novel three-stage tree decoder, which directly generates Abstract Syntax Trees of patched code according to the inherent tree structure, and (2) a novel domain-rule distillation, which leverages syntactic and semantic rules and teacher-student distributions to explicitly inject the domain knowledge into the decoding procedure during both the training and inference phases. We evaluate KNOD on three widely-used benchmarks. KNOD fixes 72 bugs on the Defects4J v1.2, 25 bugs on the QuixBugs, and 50 bugs on the additional Defects4J v2.0 benchmarks, outperforming all existing APR tools.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 23 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- ITER: Iterative Neural Repair for Multi-Location Patches 引用了 CoCoNuT: combining context-aware neural translation models using ensemble for program repair
- ITER: Iterative Neural Repair for Multi-Location Patches 引用了 CURE: Code-Aware Neural Machine Translation for Automatic Program Repair
- ITER: Iterative Neural Repair for Multi-Location Patches 引用了 A syntax-guided edit decoder for neural 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 引用了 CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generation
- Impact of Code Language Models on Automated Program Repair 引用了 CodeBERT: A Pre-Trained Model for Programming and Natural Languages
- Impact of Code Language Models on Automated Program Repair 引用了 CURE: Code-Aware Neural Machine Translation for Automatic Program Repair
- Impact of Code Language Models on Automated Program Repair 引用了 A syntax-guided edit decoder for neural program repair
- CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generation 引用了 CodeBERT: A Pre-Trained Model for Programming and Natural Languages
- A Deep Dive into Large Language Models for Automated Bug Localization and Repair 引用了 CoCoNuT: combining context-aware neural translation models using ensemble for program repair
- A Deep Dive into Large Language Models for Automated Bug Localization and Repair 引用了 Impact of Code Language Models on Automated Program Repair
- A Deep Dive into Large Language Models for Automated Bug Localization and Repair 引用了 CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generation
- A Deep Dive into Large Language Models for Automated Bug Localization and Repair 引用了 CodeBERT: A Pre-Trained Model for Programming and Natural Languages
- A Deep Dive into Large Language Models for Automated Bug Localization and Repair 引用了 How Effective Are Neural Networks for Fixing Security Vulnerabilities
- A Deep Dive into Large Language Models for Automated Bug Localization and Repair 引用了 CURE: Code-Aware Neural Machine Translation for Automatic Program Repair
- A Deep Dive into Large Language Models for Automated Bug Localization and Repair 引用了 A syntax-guided edit decoder for neural program repair
- How Effective Are Neural Networks for Fixing Security Vulnerabilities 引用了 CoCoNuT: combining context-aware neural translation models using ensemble for program repair
- How Effective Are Neural Networks for Fixing Security Vulnerabilities 引用了 Impact of Code Language Models on Automated Program Repair
- How Effective Are Neural Networks for Fixing Security Vulnerabilities 引用了 CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generation
- How Effective Are Neural Networks for Fixing Security Vulnerabilities 引用了 CodeBERT: A Pre-Trained Model for Programming and Natural Languages
- How Effective Are Neural Networks for Fixing Security Vulnerabilities 引用了 CURE: Code-Aware Neural Machine Translation for Automatic Program Repair
- How Effective Are Neural Networks for Fixing Security Vulnerabilities 引用了 A syntax-guided edit decoder for neural program repair
- CURE: Code-Aware Neural Machine Translation for Automatic Program Repair 引用了 CoCoNuT: combining context-aware neural translation models using ensemble for program repair
- A syntax-guided edit decoder for neural program repair 引用了 CoCoNuT: combining context-aware neural translation models using ensemble for program repair
- An Empirical Study on Fine-Tuning Large Language Models of Code for Automated Program Repair 引用了 CoCoNuT: combining context-aware neural translation models using ensemble for program repair
- An Empirical Study on Fine-Tuning Large Language Models of Code for Automated Program Repair 引用了 Impact of Code Language Models on Automated Program Repair
- An Empirical Study on Fine-Tuning Large Language Models of Code for Automated Program Repair 引用了 CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generation
- An Empirical Study on Fine-Tuning Large Language Models of Code for Automated Program Repair 引用了 CodeBERT: A Pre-Trained Model for Programming and Natural Languages
- An Empirical Study on Fine-Tuning Large Language Models of Code for Automated Program Repair 引用了 CURE: Code-Aware Neural Machine Translation for Automatic Program Repair
- An Empirical Study on Fine-Tuning Large Language Models of Code for Automated Program Repair 引用了 A syntax-guided edit decoder for neural program repair
引用它的顶会 Paper23
- Impact of Code Language Models on Automated Program RepairNan Jiang, Kevin Liu, Thibaud Lutellier, Lin TanICSE 2023 · 164 次引用
- An Empirical Study on Fine-Tuning Large Language Models of Code for Automated Program RepairKai Huang, Xiangxin Meng, Jian Zhang, Yang Liu 等ASE 2023 · 91 次引用
- How Effective Are Neural Networks for Fixing Security VulnerabilitiesYi Wu, Nan Jiang, Hung Viet Pham, Thibaud Lutellier 等ISSTA 2023 · 86 次引用
- A Deep Dive into Large Language Models for Automated Bug Localization and RepairSoneya Binta Hossain, Nan Jiang, Qiang Zhou, Xiaopeng Li 等FSE 2024 · 60 次引用
- ITER: Iterative Neural Repair for Multi-Location PatchesHe Ye, Martin MonperrusICSE 2024 · 39 次引用
它引用的 Paper15
- CodeBERT: A Pre-Trained Model for Programming and Natural LanguagesZhangyin Feng, Daya Guo, Duyu Tang, Nan Duan 等EMNLP Findings 2020 · 2,828 次引用
- CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and GenerationYue Wang, Weishi Wang, Shafiq R. Joty, Steven C. H. HoiEMNLP 2021 · 1,224 次引用
- CoCoNuT: combining context-aware neural translation models using ensemble for program repairThibaud Lutellier, Hung Viet Pham, Lawrence Pang, Yitong Li 等ISSTA 2020 · 325 次引用
- CURE: Code-Aware Neural Machine Translation for Automatic Program RepairNan Jiang, Thibaud Lutellier, Lin TanICSE 2021 · 267 次引用
- A syntax-guided edit decoder for neural program repairQihao Zhu, Zeyu Sun, Yuan-an Xiao, Wenjie Zhang 等FSE 2021 · 214 次引用
相关 Paper
- Tare: Type-Aware Neural Program RepairQihao Zhu, Zeyu Sun, Wenjie Zhang, Yingfei Xiong 等ICSE 2023 · 29 次引用
- SelfAPR: Self-supervised Program Repair with Test Execution DiagnosticsHe Ye, Matias Martinez, Xiapu Luo, Tao Zhang 等ASE 2022 · 75 次引用
- DEAR: A Novel Deep Learning-based Approach for Automated Program RepairYi Li, Shaohua Wang, Tien N. NguyenICSE 2022 · 91 次引用
- RAP-Gen: Retrieval-Augmented Patch Generation with CodeT5 for Automatic Program RepairWeishi Wang, Yue Wang, Shafiq Joty, Steven C. H. HoiFSE 2023 · 84 次引用
- Debugging Engine Enhanced by Prior Knowledge: Can We Teach LLM How to Debug?Kunyi Li, Sai Wu, Xiu Tang, Chang Yao 等FSE 2026 · 1 次引用
