KNOD: Domain Knowledge Distilled Tree Decoder for Automated Program Repair
Nan Jiang, Thibaud Lutellier, Yiling Lou, Lin Tan, Dan Goldwasser, Xiangyu Zhang
Abstract
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.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
23 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- ITER: Iterative Neural Repair for Multi-Location Patches cites CoCoNuT: combining context-aware neural translation models using ensemble for program repair
- ITER: Iterative Neural Repair for Multi-Location Patches cites CURE: Code-Aware Neural Machine Translation for Automatic Program Repair
- ITER: Iterative Neural Repair for Multi-Location Patches cites A syntax-guided edit decoder for neural program repair
- Impact of Code Language Models on Automated Program Repair cites CoCoNuT: combining context-aware neural translation models using ensemble for program repair
- Impact of Code Language Models on Automated Program Repair cites CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generation
- Impact of Code Language Models on Automated Program Repair cites CodeBERT: A Pre-Trained Model for Programming and Natural Languages
- Impact of Code Language Models on Automated Program Repair cites CURE: Code-Aware Neural Machine Translation for Automatic Program Repair
- Impact of Code Language Models on Automated Program Repair cites A syntax-guided edit decoder for neural program repair
- CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generation cites CodeBERT: A Pre-Trained Model for Programming and Natural Languages
- A Deep Dive into Large Language Models for Automated Bug Localization and Repair cites 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 cites Impact of Code Language Models on Automated Program Repair
- A Deep Dive into Large Language Models for Automated Bug Localization and Repair cites 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 cites CodeBERT: A Pre-Trained Model for Programming and Natural Languages
- A Deep Dive into Large Language Models for Automated Bug Localization and Repair cites How Effective Are Neural Networks for Fixing Security Vulnerabilities
- A Deep Dive into Large Language Models for Automated Bug Localization and Repair cites CURE: Code-Aware Neural Machine Translation for Automatic Program Repair
- A Deep Dive into Large Language Models for Automated Bug Localization and Repair cites A syntax-guided edit decoder for neural program repair
- How Effective Are Neural Networks for Fixing Security Vulnerabilities cites CoCoNuT: combining context-aware neural translation models using ensemble for program repair
- How Effective Are Neural Networks for Fixing Security Vulnerabilities cites Impact of Code Language Models on Automated Program Repair
- How Effective Are Neural Networks for Fixing Security Vulnerabilities cites CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generation
- How Effective Are Neural Networks for Fixing Security Vulnerabilities cites CodeBERT: A Pre-Trained Model for Programming and Natural Languages
- How Effective Are Neural Networks for Fixing Security Vulnerabilities cites CURE: Code-Aware Neural Machine Translation for Automatic Program Repair
- How Effective Are Neural Networks for Fixing Security Vulnerabilities cites A syntax-guided edit decoder for neural program repair
- CURE: Code-Aware Neural Machine Translation for Automatic Program Repair cites CoCoNuT: combining context-aware neural translation models using ensemble for program repair
- A syntax-guided edit decoder for neural program repair cites 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 cites 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 cites Impact of Code Language Models on Automated Program Repair
- An Empirical Study on Fine-Tuning Large Language Models of Code for Automated Program Repair cites 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 cites 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 cites 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 cites A syntax-guided edit decoder for neural program repair
Cited by top-tier papers23
- Impact of Code Language Models on Automated Program RepairNan Jiang, Kevin Liu, Thibaud Lutellier, Lin TanICSE 2023 · 164 citations
- An Empirical Study on Fine-Tuning Large Language Models of Code for Automated Program RepairKai Huang, Xiangxin Meng, Jian Zhang, Yang Liu et al.ASE 2023 · 91 citations
- How Effective Are Neural Networks for Fixing Security VulnerabilitiesYi Wu, Nan Jiang, Hung Viet Pham, Thibaud Lutellier et al.ISSTA 2023 · 86 citations
- A Deep Dive into Large Language Models for Automated Bug Localization and RepairSoneya Binta Hossain, Nan Jiang, Qiang Zhou, Xiaopeng Li et al.FSE 2024 · 60 citations
- ITER: Iterative Neural Repair for Multi-Location PatchesHe Ye, Martin MonperrusICSE 2024 · 39 citations
Builds on15
- CodeBERT: A Pre-Trained Model for Programming and Natural LanguagesZhangyin Feng, Daya Guo, Duyu Tang, Nan Duan et al.EMNLP Findings 2020 · 2,828 citations
- 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 citations
- CoCoNuT: combining context-aware neural translation models using ensemble for program repairThibaud Lutellier, Hung Viet Pham, Lawrence Pang, Yitong Li et al.ISSTA 2020 · 325 citations
- CURE: Code-Aware Neural Machine Translation for Automatic Program RepairNan Jiang, Thibaud Lutellier, Lin TanICSE 2021 · 267 citations
- A syntax-guided edit decoder for neural program repairQihao Zhu, Zeyu Sun, Yuan-an Xiao, Wenjie Zhang et al.FSE 2021 · 214 citations
Related papers
- Tare: Type-Aware Neural Program RepairQihao Zhu, Zeyu Sun, Wenjie Zhang, Yingfei Xiong et al.ICSE 2023 · 29 citations
- SelfAPR: Self-supervised Program Repair with Test Execution DiagnosticsHe Ye, Matias Martinez, Xiapu Luo, Tao Zhang et al.ASE 2022 · 75 citations
- DEAR: A Novel Deep Learning-based Approach for Automated Program RepairYi Li, Shaohua Wang, Tien N. NguyenICSE 2022 · 91 citations
- RAP-Gen: Retrieval-Augmented Patch Generation with CodeT5 for Automatic Program RepairWeishi Wang, Yue Wang, Shafiq Joty, Steven C. H. HoiFSE 2023 · 84 citations
- Debugging Engine Enhanced by Prior Knowledge: Can We Teach LLM How to Debug?Kunyi Li, Sai Wu, Xiu Tang, Chang Yao et al.FSE 2026 · 1 citation
