Program Repair with Minimal Edits Using CodeT5

CoRR(2023)

引用 0|浏览7
暂无评分
摘要
Programmers often struggle to identify and fix bugs in their programs. In recent years, many language models (LMs) have been proposed to fixe rroneous programs and support error recovery. However, the LMs tend to generate solutions that differ from the original input programs. This leads to potential comprehension difficulties for users.In this paper, we propose an approach to suggest a correct program with minimal repair edits using CodeT5. We fine-tune a pre-trained CodeT5 on code pairs consisting of wrong and correct programs and evaluate its performance against several baseline models.The experimental results show that the fine-tuned CodeT5 achieves a pass@100 of 91.95% and an average edit distance of the most similar correct program of 6.84, which indicates that at least one correct program can be suggested by generating 100 candidate programs. We demonstrate the effectiveness of LMs in suggesting program repair with minimal edits for solving introductory programming problems.
更多
查看译文
关键词
program repair,minimal edits
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要