Affiliation:
1. State Key Laboratory for Novel Software Technology, Nanjing University, China
Abstract
Automated program repair (APR) aims to fix software bugs automatically and plays a crucial role in software development and maintenance. With the recent advances in deep learning (DL), an increasing number of APR techniques have been proposed to leverage neural networks to learn bug-fixing patterns from massive open-source code repositories. Such learning-based techniques usually treat APR as a neural machine translation (NMT) task, where buggy code snippets (i.e., source language) are translated into fixed code snippets (i.e., target language) automatically. Benefiting from the powerful capability of DL to learn hidden relationships from previous bug-fixing datasets, learning-based APR techniques have achieved remarkable performance.
In this article, we provide a systematic survey to summarize the current state-of-the-art research in the learning-based APR community. We illustrate the general workflow of learning-based APR techniques and detail the crucial components, including fault localization, patch generation, patch ranking, patch validation, and patch correctness phases. We then discuss the widely adopted datasets and evaluation metrics and outline existing empirical studies. We discuss several critical aspects of learning-based APR techniques, such as repair domains, industrial deployment, and the open science issue. We highlight several practical guidelines on applying DL techniques for future APR studies, such as exploring explainable patch generation and utilizing code features. Overall, our article can help researchers gain a comprehensive understanding about the achievements of the existing learning-based APR techniques and promote the practical application of these techniques. Our artifacts are publicly available at the repository:
https://github.com/iSEngLab/AwesomeLearningAPR
.
Funder
National Natural Science Foundation of China
CCF-Huawei Populus Grove Fund
Science, Technology and Innovation Commission of Shenzhen Municipality
Publisher
Association for Computing Machinery (ACM)
Reference243 articles.
1. Unified Pre-training for Program Understanding and Generation
2. Learning lenient parsing & typing via indirect supervision;Ahmed Toufique;Empirical Software Engineering (EMSE),2021
3. Synshine: Improved fixing of syntax errors;Ahmed Toufique;IEEE Transactions on Software Engineering (TSE),2022
4. Verifix: Verified Repair of Programming Assignments
Cited by
18 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Enhanced automated code vulnerability repair using large language models;Engineering Applications of Artificial Intelligence;2024-12
2. Learning the Effects of Software Changes;Proceedings of the 33rd ACM SIGSOFT International Symposium on Software Testing and Analysis;2024-09-11
3. CoSec: On-the-Fly Security Hardening of Code LLMs via Supervised Co-decoding;Proceedings of the 33rd ACM SIGSOFT International Symposium on Software Testing and Analysis;2024-09-11
4. T5APR: Empowering automated program repair across languages through checkpoint ensemble;Journal of Systems and Software;2024-08
5. Automated program repair for variability bugs in software product line systems;Journal of Systems and Software;2024-08