Large Language Models for Automated Program Repair

被引:2
|
作者
Ribeiro, Francisco [1 ]
机构
[1] Univ Minho, HASLab INESC TEC, Braga, Portugal
关键词
automated program repair; fault localization; code generation; type systems;
D O I
10.1145/3618305.3623587
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
This paper introduces two methods for automated program repair (APR) utilizing pre-trained language models. The first method demonstrates program repair as a code completion task and is validated on a dataset of Java programs. The second method, Mentat, leverages OCaml's parser and type system as fault localization techniques to generate prompts for GPT-3, producing candidate patches. Evaluation results show promising repair rates, with 27% and 39.2% effectiveness, respectively. For OCaml, a comparative study employing an automated validation strategy is presented in which the technique outperforms other tools. Language models are effective at APR, enhancing bug fixing and freeing developers to focus on other critical aspects of software engineering.
引用
收藏
页码:7 / 9
页数:3
相关论文
共 50 条
  • [21] Opinion On Program Synthesis and Large Language Models
    Huttel, Hans
    COMMUNICATIONS OF THE ACM, 2025, 68 (01) : 33 - 35
  • [22] Large language models direct automated chemistry laboratory
    Ana Laura Dias
    Tiago Rodrigues
    Nature, 2023, 624 : 530 - 531
  • [23] Leveraging Large Language Models for Automated Dialogue Analysis
    Finch, Sarah E.
    Paek, Ellie S.
    Choi, Jinho D.
    24TH MEETING OF THE SPECIAL INTEREST GROUP ON DISCOURSE AND DIALOGUE, SIGDIAL 2023, 2023, : 202 - 215
  • [24] Large language models direct automated chemistry laboratory
    Dias, Ana Laura
    Rodrigues, Tiago
    NATURE, 2023, 624 (7992) : 530 - 531
  • [25] Automated Disentangled Sequential Recommendation with Large Language Models
    Wang, Xin
    Chen, Hong
    Pan, Zirui
    Zhou, Yuwei
    Guan, Chaoyu
    Sun, Lifeng
    Zhu, Wenwu
    ACM TRANSACTIONS ON INFORMATION SYSTEMS, 2025, 43 (02)
  • [26] Automated Program Repair Using Generative Models for Code Infilling
    Koutcheme, Charles
    Sarsa, Sami
    Leinonen, Juho
    Hellas, Arto
    Denny, Paul
    ARTIFICIAL INTELLIGENCE IN EDUCATION, AIED 2023, 2023, 13916 : 798 - 803
  • [27] Automated Program Repair
    Le Goues, Claire
    Pradel, Michael
    Roychoudhury, Abhik
    COMMUNICATIONS OF THE ACM, 2019, 62 (12) : 56 - 65
  • [28] Jigsaw: Large Language Models meet Program Synthesis
    Jain, Naman
    Vaidyanath, Skanda
    Iyer, Arun
    Natarajan, Nagarajan
    Parthasarathy, Suresh
    Rajamani, Sriram
    Sharma, Rahul
    2022 ACM/IEEE 44TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE 2022), 2022, : 1219 - 1231
  • [29] Guiding Enumerative Program Synthesis with Large Language Models
    Li, Yixuan
    Parsert, Julian
    Polgreen, Elizabeth
    COMPUTER AIDED VERIFICATION, PT II, CAV 2024, 2024, 14682 : 280 - 301
  • [30] Training Language Models for Programming Feedback Using Automated Repair Tools
    Koutcheme, Charles
    ARTIFICIAL INTELLIGENCE IN EDUCATION, AIED 2023, 2023, 13916 : 830 - 835