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

基于大型语言模型的自动程序修复综述:分类、设计范式与应用

A Survey of LLM-based Automated Program Repair: Taxonomies, Design Paradigms, and Applications

School of Artificial Intelligence (School of Software), Yanshan University(燕山大学人工智能学院(软件学院));School of Computer Science, China University of Mining and Technology(中国矿业大学计算机学院);School of Computing and Information Systems, University of Melbourne(墨尔本大学计算与信息系统的学院);Department of Computer Science, University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校计算机科学系);SnT, University of Luxembourg(卢森堡大学科学与技术研究院);School of Computer Science and Engineering, Nanyang Technological University(南洋理工大学计算机科学与工程学院);Department of Computer Science, Aalto University(阿尔托大学计算机科学系)

Boyang Yang, Zijian Cai, Fengling Liu, Bach Le, Lingming Zhang, Tegawendé F. Bissyandé, Yang Liu, Haoye Tian

AI总结:

本文综述了基于LLM的自动程序修复,提出统一分类法,涵盖四种范式,并讨论了评估实践和未来研究方向。

摘要:

大型语言模型(LLMs)正在重塑自动程序修复。我们提出了一种统一的分类法,将62个最近的基于LLM的修复系统分为四种范式,这些范式由参数适应和对修复循环的控制权定义,并叠加了两个交叉切面层用于检索和分析增强。先前的综述要么专注于经典的软件修复技术,要么专注于LLM在软件工程中的更广泛应用,或者专注于LLM基于软件修复的子集,如微调策略或漏洞修复。我们通过将微调、提示、过程管道和代理框架作为第一类范式,并系统地将代表性系统映射到每个范式中,来补充这些工作。我们还通过记录基准范围、pass@k和故障定位假设来巩固评估实践在常见基准上的表现,以支持对报告成功率的更有意义的比较。我们澄清了范式之间的权衡,包括任务对齐、部署成本、可控性和修复多块或跨文件错误的能力。我们讨论了当前基于LLM的软件修复的挑战,并概述了研究方向。我们的成果,包括表示论文和脚本综述流程,可在https://github.com/GLEAM-Lab/ProgramRepair上公开获取。

英文摘要:

Large language models (LLMs) are reshaping automated program repair. We present a reproducible hierarchical taxonomy that organizes 66 LLM-based repair systems according to where repair capability and control logic principally reside: task-adapted parameters, prompt and context design, designer-specified workflows, or LLM-directed runtime control. Adaptation, generation pattern, runtime control, and auxiliary evidence are preserved as separate coded dimensions. This representation exposes control distinctions hidden by utilization labels and supports cross-paradigm analysis of system design and evaluation evidence. To the best of our knowledge, it is the first publicly available LLM-based software repair survey to operationalize Fine-Tuning, Prompting, Procedural, and Agentic as one corpus-wide primary classification. Our hierarchy complements prior surveys through one corpus-wide primary decision rule, while the result-level protocol audit bounds which reported results are defensibly comparable. To analyze how repair systems use benchmarks, we record benchmark variants, metrics, base models, and fault-localization assumptions for each system's primary reported result, identifying protocol-aligned comparison windows and benchmark-family fragments. We clarify paradigm trade-offs in task alignment, deployment cost, controllability, and multi-hunk or cross-file repair. We outline open challenges and research directions. Our artifacts and scripted survey pipeline are publicly available at https://github.com/GLEAM-Lab/ProgramRepair.

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

↑