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
来源
PROCEEDINGS OF THE 35TH ANNUAL ACM SYMPOSIUM ON APPLIED COMPUTING (SAC'20) | 2020年
基金
新加坡国家研究基金会;
关键词
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] 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
  • [2] 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
  • [3] 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
  • [4] 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)
  • [5] Deep Learning With Customized Abstract Syntax Tree for Bug Localization
    Liang, Hongliang
    Sun, Lu
    Wang, Meilin
    Yang, Yuxing
    IEEE ACCESS, 2019, 7 : 116309 - 116320
  • [6] 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
  • [7] A deep multimodal model for bug localization
    Zhu, Ziye
    Li, Yun
    Wang, Yu
    Wang, Yaojing
    Tong, Hanghang
    DATA MINING AND KNOWLEDGE DISCOVERY, 2021, 35 (04) : 1369 - 1392
  • [8] A deep multimodal model for bug localization
    Ziye Zhu
    Yun Li
    Yu Wang
    Yaojing Wang
    Hanghang Tong
    Data Mining and Knowledge Discovery, 2021, 35 : 1369 - 1392
  • [9] RLocator: Reinforcement Learning for Bug Localization
    Chakraborty, Partha
    Alfadel, Mahmoud
    Nagappan, Meiyappan
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2024, 50 (10) : 2695 - 2708
  • [10] Deep Transfer Bug Localization
    Huo, Xuan
    Thung, Ferdian
    Li, Ming
    Lo, David
    Shi, Shu-Ting
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2021, 47 (07) : 1368 - 1380