Applying Deep Learning Algorithm to Automatic Bug Localization and Repair

被引:13
|
作者
Yang, Geunseok [1 ]
Min, Kyeongsic [1 ]
Lee, Byungjeong [1 ]
机构
[1] Univ Seoul, Dept Comp Sci, Seoul, South Korea
基金
新加坡国家研究基金会;
关键词
Bug Localization; Bug Repair; Bug Report; Deep Learning;
D O I
10.1145/3341105.3374005
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Owing to the increasing size and complexity of software, large/small bugs have become inevitable. To fix software bugs in some cases, developers may need to spend a considerable amount of time debugging. Some studies have reported that typographical errors in natural and programming languages are nearly identical. We herein propose a method to solve these mistakes automatically. We perform bug localization using an autoencoder and CNN to compute a rank score. In details, we extract features from bug reports and program source code. Then, we input these features into the autoencoder. Next, the output of autoencoder applies to the CNN. Finally, we compute a rank score between the bug report and program source code. Regarding bug repair, we utilize Seq-GAN algorithm. In details, first, we convert program source code into multiple lines with tokens. Then, we apply the Seq-GAN algorithm to generate the candidate buggy patches. To evaluate the effectiveness of the proposed method, performance comparisons with similar related studies were conducted. The comparison shows that our approach produces better results compared to other studies.
引用
收藏
页码:1634 / 1641
页数:8
相关论文
共 50 条
  • [1] Applying Deep Learning Based Automatic Bug Triager to Industrial Projects
    Lee, Sun-Ro
    Heo, Min-Jae
    Lee, Chan-Gun
    Kim, Milhan
    Jeong, Gaeul
    ESEC/FSE 2017: PROCEEDINGS OF THE 2017 11TH JOINT MEETING ON FOUNDATIONS OF SOFTWARE ENGINEERING, 2017, : 926 - 931
  • [2] WELL: Applying bug detectors to bug localization via weakly supervised learning
    Zhang, Huangzhao
    Li, Zhuo
    Li, Jia
    Jin, Zhi
    Li, Ge
    JOURNAL OF SOFTWARE-EVOLUTION AND PROCESS, 2024, 36 (09)
  • [3] An Imbalanced Deep Learning Model for Bug Localization
    Bui Thi Mai Anh
    Nguyen Viet Luyen
    2021 28TH ASIA-PACIFIC SOFTWARE ENGINEERING CONFERENCE WORKSHOPS (APSECW 2021), 2021, : 32 - 40
  • [4] Automatic bug localization using a combination of deep learning and model transformation through node classification
    Yousofvand, Leila
    Soleimani, Seyfollah
    Rafe, Vahid
    SOFTWARE QUALITY JOURNAL, 2023, 31 (04) : 1045 - 1063
  • [5] Automatic bug localization using a combination of deep learning and model transformation through node classification
    Leila Yousofvand
    Seyfollah Soleimani
    Vahid Rafe
    Software Quality Journal, 2023, 31 : 1045 - 1063
  • [6] Automatic Bug Triaging via Deep Reinforcement Learning
    Liu, Yong
    Qi, Xuexin
    Zhang, Jiali
    Li, Hui
    Ge, Xin
    Ai, Jun
    APPLIED SCIENCES-BASEL, 2022, 12 (07):
  • [7] Applying Genetic Programming with Similar Bug Fix Information to Automatic Fault Repair
    Yang, Geunseok
    Jeong, Youngjun
    Min, Kyeongsic
    Lee, Jung-won
    Lee, Byungjeong
    SYMMETRY-BASEL, 2018, 10 (04):
  • [8] Bug Localization with Combination of Deep Learning and Information Retrieval
    An Ngoc Lam
    Anh Tuan Nguyen
    Hoan Anh Nguyen
    Nguyen, Tien N.
    2017 IEEE/ACM 25TH INTERNATIONAL CONFERENCE ON PROGRAM COMPREHENSION (ICPC), 2017, : 218 - 229
  • [9] AstroBug: Automatic Game Bug Detection Using Deep Learning
    Azizi, Elham
    Zaman, Loutfouz
    IEEE TRANSACTIONS ON GAMES, 2024, 16 (04) : 793 - 806
  • [10] Deep Learning With Customized Abstract Syntax Tree for Bug Localization
    Liang, Hongliang
    Sun, Lu
    Wang, Meilin
    Yang, Yuxing
    IEEE ACCESS, 2019, 7 : 116309 - 116320