A Software Bug Fixing Approach Based on Knowledge-Enhanced Large Language Models

被引:0
|
作者
Bo, Lili [1 ]
He, Yuting [1 ]
Sun, Xiaobing [1 ]
Ji, Wangjie [1 ]
Wu, Xiaohan [1 ]
机构
[1] Yangzhou Univ, Yangzhou, Jiangsu, Peoples R China
关键词
Bug fixing; Knowledge Graph; Generative AI; Explainable;
D O I
10.1109/QRS62785.2024.00026
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Software Bug Fixing is a time-consuming task in software development and maintenance. Despite the success of Large Language Models (LLMs) using in Automatic Program Repair (APR), they still have the limitations of generating patches with low accuracy and explainability. In this paper, we propose a software bug-fixing approach based on knowledge-enhanced large language models. First, we collect bugs as well as their fix information from bug tracking systems, such as Github and Stack Overflow. Then, we extract bug entities and inter-entity relationships using Named Entity Recognition (NER) to construct a Bug Knowledge Graph (BKG). Finally, we utilize LLMs (e.g., GPT-4) which is enhanced by the knowledge of the similar historical bugs as well as fix information from BKG to generate patches for new bugs. The experimental results show that the our approach can fix 28.52% (85/298) bugs correctly, which is significantly better than the state-of-the-art approaches. Furthermore, the generated patches are explainable and more credible.
引用
收藏
页码:169 / 179
页数:11
相关论文
共 50 条
  • [21] KELLM: Knowledge-Enhanced Label-Wise Large Language Model for Safe and Interpretable Drug Recommendation
    Xu, Tianhan
    Li, Bin
    ELECTRONICS, 2025, 14 (01):
  • [22] Knowledge-enhanced software refinement: leveraging reinforcement learning for search-based quality engineering
    Abadeh, Maryam Nooraei
    AUTOMATED SOFTWARE ENGINEERING, 2024, 31 (02)
  • [23] KEPLET: Knowledge-Enhanced Pretrained Language Model with Topic Entity Awareness
    Li, Yichuan
    Han, Jialong
    Lee, Kyumin
    Ma, Chengyuan
    Yao, Benjamin
    Liu, Derek
    FINDINGS OF THE ASSOCIATION FOR COMPUTATIONAL LINGUISTICS - EMNLP 2023, 2023, : 6864 - 6876
  • [24] Affective Knowledge-enhanced Emotion Detection in Arabic Language: A Comparative Study
    Serrano-Guerrero, Jesus
    Alshouha, Bashar
    Romero, Francisco P.
    Olivas, Jose A.
    JOURNAL OF UNIVERSAL COMPUTER SCIENCE, 2022, 28 (07) : 733 - 757
  • [25] Monitoring the software bug-fixing process through the process mining approach
    Ozdagoglu, Guzin
    Kavuncubasi, Ece
    JOURNAL OF SOFTWARE-EVOLUTION AND PROCESS, 2019, 31 (07)
  • [26] A Point Process Approach of Bug Fixing Analysis in Open Source Software Projects
    Ushiroda, Takahiro
    Dohi, Tadashi
    Saito, Yasuhiro
    Okamura, Hiroyuki
    2019 IEEE 19TH INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY AND SECURITY (QRS 2019), 2019, : 83 - 88
  • [27] Multimodal Dialog Systems with Dual Knowledge-enhanced Generative Pretrained Language Model
    Chen, Xiaolin
    Song, Xuemeng
    Jing, Liqiang
    Li, Shuo
    Hu, Linmei
    Nie, Liqiang
    ACM TRANSACTIONS ON INFORMATION SYSTEMS, 2024, 42 (02)
  • [28] DKPLM: Decomposable Knowledge-Enhanced Pre-trained Language Model for Natural Language Understanding
    Zhang, Taolin
    Wang, Chengyu
    Hu, Nan
    Qiu, Minghui
    Tang, Chengguang
    He, Xiaofeng
    Huang, Jun
    THIRTY-SIXTH AAAI CONFERENCE ON ARTIFICIAL INTELLIGENCE / THIRTY-FOURTH CONFERENCE ON INNOVATIVE APPLICATIONS OF ARTIFICIAL INTELLIGENCE / TWELVETH SYMPOSIUM ON EDUCATIONAL ADVANCES IN ARTIFICIAL INTELLIGENCE, 2022, : 11703 - 11711
  • [29] A knowledge-enhanced contextual bandit approach for personalized recommendation in dynamic domains
    Gan, Mingxin
    Kwon, O-Chol
    KNOWLEDGE-BASED SYSTEMS, 2022, 251
  • [30] Towards Architecture-Agnostic Neural Transfer: a Knowledge-Enhanced Approach
    Quinn, Sean
    Mileo, Alessandra
    PROCEEDINGS OF THE TWENTY-EIGHTH INTERNATIONAL JOINT CONFERENCE ON ARTIFICIAL INTELLIGENCE, 2019, : 6452 - 6453