Lune

ASE2022顶会

SelfAPR: Self-supervised Program Repair with Test Execution Diagnostics

He Ye, Matias Martinez, Xiapu Luo, Tao Zhang, Martin Monperrus

摘要

Learning-based program repair has achieved good results in a recent series of papers. Yet, we observe that the related work fails to repair some bugs because of a lack of knowledge about 1) the application domain of the program being repaired, and 2) the fault type being repaired. In this paper, we solve both problems by changing the learning paradigm from supervised training to self-supervised training in an approach called SelfAPR. First, SelfAPR generates training samples on disk by perturbing a previous version of the program being repaired, enforcing the neural model to capture project-specific knowledge. This is different from the previous work based on mined past commits. Second, SelfAPR executes all training samples and extracts and encodes test execution diagnostics into the input representation, steering the neural model to fix the kind of fault. This is different from the existing studies that only consider static source code as input. We implement SelfAPR and evaluate it in a systematic manner. We generate 1 039 873 training samples obtained by perturbing 17 open-source projects. We evaluate SelfAPR on 818 bugs from Defects4J, SelfAPR correctly repairs 110 of them, outperforming all the supervised learning repair approaches.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 34 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • 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 引用了 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 引用了 DLFix: context-based code transformation learning for automated program repair
  • Impact of Code Language Models on Automated Program Repair 引用了 A syntax-guided edit decoder for neural program repair
  • Impact of Code Language Models on Automated Program Repair 引用了 Neural Program Repair with Execution-based Backpropagation
  • Automated Program Repair via Conversation: Fixing 162 out of 337 Bugs for $0.42 Each using ChatGPT 引用了 CoCoNuT: combining context-aware neural translation models using ensemble for program repair
  • Automated Program Repair via Conversation: Fixing 162 out of 337 Bugs for $0.42 Each using ChatGPT 引用了 CodeBERT: A Pre-Trained Model for Programming and Natural Languages
  • Automated Program Repair via Conversation: Fixing 162 out of 337 Bugs for $0.42 Each using ChatGPT 引用了 CURE: Code-Aware Neural Machine Translation for Automatic Program Repair
  • Automated Program Repair via Conversation: Fixing 162 out of 337 Bugs for $0.42 Each using ChatGPT 引用了 DLFix: context-based code transformation learning for automated program repair
  • Automated Program Repair via Conversation: Fixing 162 out of 337 Bugs for $0.42 Each using ChatGPT 引用了 A syntax-guided edit decoder for neural program repair
  • Automated Program Repair via Conversation: Fixing 162 out of 337 Bugs for $0.42 Each using ChatGPT 引用了 Neural Program Repair with Execution-based Backpropagation
  • CURE: Code-Aware Neural Machine Translation for Automatic Program Repair 引用了 CoCoNuT: combining context-aware neural translation models using ensemble for program repair
  • CURE: Code-Aware Neural Machine Translation for Automatic Program Repair 引用了 DLFix: context-based code transformation learning for automated program repair
  • A syntax-guided edit decoder for neural program repair 引用了 CoCoNuT: combining context-aware neural translation models using ensemble for program repair
  • A syntax-guided edit decoder for neural program repair 引用了 DLFix: context-based code transformation learning for automated program repair
  • Neural Program Repair with Execution-based Backpropagation 引用了 CoCoNuT: combining context-aware neural translation models using ensemble for program repair
  • Neural Program Repair with Execution-based Backpropagation 引用了 CURE: Code-Aware Neural Machine Translation for Automatic Program Repair
  • Neural Program Repair with Execution-based Backpropagation 引用了 DLFix: context-based code transformation learning for automated program repair
  • Neural Program Repair with Execution-based Backpropagation 引用了 A syntax-guided edit decoder for neural 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 引用了 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 引用了 DLFix: context-based code transformation learning for automated 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
  • An Empirical Study on Fine-Tuning Large Language Models of Code for Automated Program Repair 引用了 Neural Program Repair with Execution-based Backpropagation
  • RAP-Gen: Retrieval-Augmented Patch Generation with CodeT5 for Automatic Program Repair 引用了 CoCoNuT: combining context-aware neural translation models using ensemble for program repair
  • RAP-Gen: Retrieval-Augmented Patch Generation with CodeT5 for Automatic Program Repair 引用了 CodeBERT: A Pre-Trained Model for Programming and Natural Languages
  • RAP-Gen: Retrieval-Augmented Patch Generation with CodeT5 for Automatic Program Repair 引用了 CURE: Code-Aware Neural Machine Translation for Automatic Program Repair
  • RAP-Gen: Retrieval-Augmented Patch Generation with CodeT5 for Automatic Program Repair 引用了 DLFix: context-based code transformation learning for automated program repair
  • RAP-Gen: Retrieval-Augmented Patch Generation with CodeT5 for Automatic Program Repair 引用了 A syntax-guided edit decoder for neural program repair
  • RAP-Gen: Retrieval-Augmented Patch Generation with CodeT5 for Automatic Program Repair 引用了 Neural Program Repair with Execution-based Backpropagation
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper34

  1. Impact of Code Language Models on Automated Program RepairNan Jiang, Kevin Liu, Thibaud Lutellier, Lin TanICSE 2023 · 164 次引用
  2. Neural Program Repair with Execution-based BackpropagationHe Ye, Matias Martinez, Martin MonperrusICSE 2022 · 146 次引用
  3. Automated Program Repair via Conversation: Fixing 162 out of 337 Bugs for $0.42 Each using ChatGPTChunqiu Steven Xia, Lingming ZhangISSTA 2024 · 105 次引用
  4. 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 次引用
  5. RAP-Gen: Retrieval-Augmented Patch Generation with CodeT5 for Automatic Program RepairWeishi Wang, Yue Wang, Shafiq Joty, Steven C. H. HoiFSE 2023 · 84 次引用

它引用的 Paper16

  1. CodeBERT: A Pre-Trained Model for Programming and Natural LanguagesZhangyin Feng, Daya Guo, Duyu Tang, Nan Duan 等EMNLP Findings 2020 · 2,828 次引用
  2. CoCoNuT: combining context-aware neural translation models using ensemble for program repairThibaud Lutellier, Hung Viet Pham, Lawrence Pang, Yitong Li 等ISSTA 2020 · 325 次引用
  3. CURE: Code-Aware Neural Machine Translation for Automatic Program RepairNan Jiang, Thibaud Lutellier, Lin TanICSE 2021 · 267 次引用
  4. A syntax-guided edit decoder for neural program repairQihao Zhu, Zeyu Sun, Yuan-an Xiao, Wenjie Zhang 等FSE 2021 · 214 次引用
  5. DLFix: context-based code transformation learning for automated program repairYi Li, Shaohua Wang, Tien N. NguyenICSE 2020 · 201 次引用

相关 Paper

  1. KNOD: Domain Knowledge Distilled Tree Decoder for Automated Program RepairNan Jiang, Thibaud Lutellier, Yiling Lou, Lin Tan 等ICSE 2023 · 55 次引用
  2. ITER: Iterative Neural Repair for Multi-Location PatchesHe Ye, Martin MonperrusICSE 2024 · 39 次引用
  3. Towards Low-Resource Automatic Program Repair with Meta-Learning and Pretrained Language ModelsWeishi Wang, Yue Wang, Steven C. H. Hoi, Shafiq JotyEMNLP 2023 · 2 次引用
  4. Improving Fault Localization and Program Repair with Deep Semantic Features and Transferred KnowledgeXiangxin Meng, Xu Wang, Hongyu Zhang, Hailong Sun 等ICSE 2022 · 77 次引用
  5. Self-Supervised Bug Detection and RepairMiltiadis Allamanis, Henry Jackson-Flux, Marc BrockschmidtNeurIPS 2021 · 145 次引用
黄昏的海面,两侧是细线勾勒的悬崖