arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.07586cs.AI
收藏

AI驱动的自动程序修复与代码生成进展和技术的全面综述

A Comprehensive Survey of AI-Driven Advancements and Techniques in Automated Program Repair and Code Generation

Indraprastha Institute of Information Technology(英迪拉普拉萨德信息技术学院)

Avinash Anand, Akshit Gupta, Nishchay Yadav, Shaurya Bajaj

AI总结:

本综述回顾27篇近期论文,系统对比了大型语言模型在自动程序修复与代码生成中的集成方法、技术趋势及未来挑战。

摘要:

错误修复和代码生成多年来一直是软件开发的核心研究课题。最近大型语言模型(LLM)的爆发式增长彻底改变了这些领域,使两者都能用上极其强大的工具。在本综述中,回顾了27篇近期论文,并将其分为两组:一组致力于自动程序修复(APR)与LLM的集成,另一组致力于使用LLM进行代码生成。第一组包括用于错误检测和修复的新方法,包括定位语义错误、安全漏洞和运行时故障错误。这项工作强调了LLM在减少手动调试工作量方面的作用,通过APR实现上下文感知的修复,并提出了提高自动调试准确性和效率的创新。第二组侧重于代码生成,概述了针对编程进行微调的通用LLM和特定任务模型。它还介绍了改进代码生成的方法,如标识符感知训练、指令级微调以及结合语义代码结构。本综述工作对比了APR和代码生成中的方法,以识别趋势,如使用LLM、实现迭代代码改进的反馈循环和开源模型。它还讨论了实现功能正确性和安全性的挑战,并概述了基于LLM的软件开发的未来研究方向。

英文摘要:

Bug fixing and code generation have been core research topics in software development for many years. The recent explosive growth in Large Language Models has completely transformed these spaces, putting in reach incredibly powerful tools for both. In this survey, 27 recent papers have been reviewed and split into two groups: one dedicated to Automated Program Repair (APR) and LLM integration and the other to code generation using LLMs. The first group consists of new methods for bug detection and repair, which include locating semantic errors, security vulnerabilities, and runtime failure bugs. The place of LLMs in reducing manual debugging efforts is emphasized in this work by APR toward context-aware fixes, with innovations that boost accuracy and efficiency in automatic debugging. The second group dwells on code generation, providing an overview of both general-purpose LLMs fine-tuned for programming and task-specific models. It also presents methods to improve code generation, such as identifier-aware training, fine-tuning at the instruction level, and incorporating semantic code structures. This survey work contrasts the methodologies in APR and code generation to identify trends such as using LLMs, feedback loops to enable iterative code improvement and open-source models. It also discusses the challenges of achieving functional correctness and security and outlines future directions for research in LLM-based software development.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑