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 条
  • [31] Exploring Automated Assertion Generation via Large Language Models
    Zhang, Quanjun
    Sun, Weifeng
    Fang, Chunrong
    Yu, Bowen
    Li, Hongyan
    Yan, Meng
    Zhou, Jianyi
    Chen, Zhenyu
    ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2025, 34 (03)
  • [32] Automated Grading in Coding Exercises Using Large Language Models
    Lagakis, Paraskevas
    Demetriadis, Stavros
    Psathas, Georgios
    SMART MOBILE COMMUNICATION & ARTIFICIAL INTELLIGENCE, VOL 1, IMCL 2023, 2024, 936 : 363 - 373
  • [33] ConnectGPT: Connect Large Language Models with Connected and Automated Vehicles
    Tong, Kailin
    Solmaz, Selim
    2024 35TH IEEE INTELLIGENT VEHICLES SYMPOSIUM, IEEE IV 2024, 2024, : 581 - 588
  • [34] Automated Programming Exercise Generation in the Era of Large Language Models
    Meissner, Niklas
    Speth, Sandro
    Becker, Steffen
    2024 36TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING EDUCATION AND TRAINING, CSEE & T 2024, 2024,
  • [35] Leveraging Large Language Models for the Automated Documentation of Hardware Designs
    Fernando, Saruni
    Kunzelmann, Robert
    Lopera, Daniela Sanchez
    Al Halabi, Jad
    Ecker, Wolfgang
    2024 13TH MEDITERRANEAN CONFERENCE ON EMBEDDED COMPUTING, MECO 2024, 2024, : 165 - 170
  • [36] Leveraging Large Language Models for Automated Chinese Essay Scoring
    Feng, Haiyue
    Du, Sixuan
    Zhu, Gaoxia
    Zou, Yan
    Poh Boon Phua
    Feng, Yuhong
    Zhong, Haoming
    Shen, Zhiqi
    Liu, Siyuan
    ARTIFICIAL INTELLIGENCE IN EDUCATION, PT I, AIED 2024, 2024, 14829 : 454 - 467
  • [37] Revisiting Automated Topic Model Evaluation with Large Language Models
    Stammbach, Dominik
    Zouhar, Vilem
    Hoyle, Alexander
    Sachan, Mrinmaya
    Ash, Elliott
    2023 CONFERENCE ON EMPIRICAL METHODS IN NATURAL LANGUAGE PROCESSING (EMNLP 2023), 2023, : 9348 - 9357
  • [38] A Study of Vulnerability Repair in JavaScript Programs with Large Language Models
    Le, Tan Khang
    Alimadadi, Saba
    Ko, Steven Y.
    arXiv,
  • [39] Performance of Large Language Models in a Computer Science Degree Program
    Krueger, Tim
    Gref, Michael
    ARTIFICIAL INTELLIGENCE-ECAI 2023 INTERNATIONAL WORKSHOPS, PT 2, XAI3, TACTIFUL, XI-ML, SEDAMI, RAAIT, AI4S, HYDRA, AI4AI, 2023, 2024, 1948 : 409 - 424
  • [40] Mathematical discoveries from program search with large language models
    Bernardino Romera-Paredes
    Mohammadamin Barekatain
    Alexander Novikov
    Matej Balog
    M. Pawan Kumar
    Emilien Dupont
    Francisco J. R. Ruiz
    Jordan S. Ellenberg
    Pengming Wang
    Omar Fawzi
    Pushmeet Kohli
    Alhussein Fawzi
    Nature, 2024, 625 : 468 - 475