本文指出 ML 与 LLM 在自动化程序修复中的普及使传统 APR 基准面临有效性和泛化性挑战,尤其是训练数据可能包含评测问题的数据泄露风险。
摘要:
机器学习(ML)如今已遍及自动化程序修复(APR)领域。各类算法采用神经机器翻译和大型语言模型(LLM)来生成软件补丁,并完成其他任务。但是,这些 ML 应用与早期工作之间存在重要差异。评估和比较必须谨慎,以确保结果有效且具有推广可能。一个挑战在于,最流行的 APR 评估基准在设计时并未考虑 ML 技术。对 LLM 而言尤其如此,因为它们规模庞大且往往披露不足的训练数据集可能包含其被评估所用的问题。
英文摘要:
Machine learning (ML) now pervades the field of Automated Program Repair (APR). Algorithms deploy neural machine translation and large language models (LLMs) to generate software patches, among other tasks. But, there are important differences between these applications of ML and earlier work. Evaluations and comparisons must take care to ensure that results are valid and likely to generalize. A challenge is that the most popular APR evaluation benchmarks were not designed with ML techniques in mind. This is especially true for LLMs, whose large and often poorly-disclosed training datasets may include problems on which they are evaluated.
Unlocking LLM Repair Capabilities Through Cross-Language Translation and Multi-Agent Refinement
City University of Hong Kong(香港城市大学);Beijing JudaoYouda Network Technology Co. Ltd.(北京极道有道网络科技有限公司);SnT, University of Luxembourg(卢森堡大学科学与技术学院);Aalto University(阿尔托大学);University of Melbourne(墨尔本大学)
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(阿尔托大学计算机科学系)
K. N. Toosi University of Technology(肯恩·托基大学);Ferdowsi University of Mashhad(马什哈德费尔多西大学);Simon Fraser University(西蒙菲莎大学);Amirkabir University of Technology(阿米尔卡比尔理工大学)
Towards Secure Logging: Characterizing and Benchmarking Logging Code Security Issues with LLMs
York University(约克大学);The Hong Kong University of Science and Technology (Guangzhou)(香港科学与技术大学(广州));University of Waterloo(滑铁卢大学);University of Alberta(阿尔伯塔大学)