DreamLoc: A Deep Relevance Matching-Based Framework for bug Localization

被引:0
|
作者
Qi, Binhang [1 ,2 ]
Sun, Hailong [2 ,3 ,4 ]
Yuan, Wei [1 ,2 ]
Zhang, Hongyu [5 ]
Meng, Xiangxin [1 ,2 ]
机构
[1] Beihang Univ, Sch Comp Sci & Engn, SKLSDE Lab, Beijing 100191, Peoples R China
[2] Beijing Adv Innovat Ctr Big Data & Brain Comp, Beijing 100191, Peoples R China
[3] Beihang Univ, SKLSDE Lab, Beijing 100191, Peoples R China
[4] Beihang Univ, Sch Software, Beijing 100191, Peoples R China
[5] Univ Newcastle, Callaghan, NSW 2308, Australia
基金
中国国家自然科学基金; 澳大利亚研究理事会;
关键词
Computer bugs; Semantics; Location awareness; Codes; Natural languages; Deep learning; Debugging; Bug localization; debugging; deep learning; relevance matching; software maintenance; FAULT-LOCALIZATION; PROBABILISTIC RANKING; ACCURACY;
D O I
10.1109/TR.2021.3104728
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
To improve the software debugging efficiency, bug localization techniques have been developed to automatically locate buggy files based on bug reports. Traditional information retrieval-based bug localization cannot deal with the lexical mismatch, thus its performance is limited. In recent years, some deep learning models have been proposed to learn the semantics of bug reports and source files to bridge the lexical gap. However, their accuracy is still limited as building accurate semantic representations of bug reports and source files is very challenging. Recently, relevance matching was proposed to identify whether a document is relevant to a given query by considering both local matching and global matching. In this work, we propose a novel framework DreamLoc, which utilizes a relevance matching model to locate buggy files. Specifically, DreamLoc conducts the local matching by employing an attention-based mechanism to calculate the matching scores between bug report terms and code snippets. It also conducts the global matching by employing a gating mechanism to aggregate results of local matching and obtain the final matching score between a bug report and a source file. Since the local matching considers the relevance between each word and the global matching differentiates the importance of words, DreamLoc can effectively model the characteristics of bug reports and source files. Experimental results on five benchmark datasets show that DreamLoc outperforms five state-of-the-art models. For example, compared with DeepLoc, a recently proposed approach, the evaluation measures Accuracy@10, MAP, and MRR are improved by 6.4%, 7.4%, and 7.2%, respectively.
引用
收藏
页码:235 / 249
页数:15
相关论文
共 50 条
  • [1] SBugLocater: Bug Localization Based on Deep Matching and Information Retrieval
    Huang, Xuxiang
    Xiang, Chen
    Li, Hua
    He, Peng
    [J]. MATHEMATICAL PROBLEMS IN ENGINEERING, 2022, 2022
  • [2] Robust View Matching-Based Markov Localization in Outdoor Environments
    Miura, Jun
    Yamamoto, Koshiro
    [J]. 2008 IEEE/RSJ INTERNATIONAL CONFERENCE ON ROBOTS AND INTELLIGENT SYSTEMS, VOLS 1-3, CONFERENCE PROCEEDINGS, 2008, : 2970 - 2976
  • [3] Scan Matching-Based Particle Filter for LIDAR-Only Localization
    Adurthi, Nagavenkat
    [J]. SENSORS, 2023, 23 (08)
  • [4] Scene Matching-based Localization of Unmanned Aerial Vehicles in Unstructured Environments
    Ebadi, Kamak
    Wood, Sally
    [J]. 2018 CONFERENCE RECORD OF 52ND ASILOMAR CONFERENCE ON SIGNALS, SYSTEMS, AND COMPUTERS, 2018, : 1519 - 1523
  • [5] A block matching-based registration algorithm for localization of locally advanced lung tumors
    Robertson, Scott P.
    Weiss, Elisabeth
    Hugo, Geoffrey D.
    [J]. MEDICAL PHYSICS, 2014, 41 (04)
  • [6] DependLoc: A Dependency-based Framework For Bug Localization
    Yuan, Wei
    Qi, Binhang
    Sun, Hailong
    Liu, Xudong
    [J]. 2020 27TH ASIA-PACIFIC SOFTWARE ENGINEERING CONFERENCE (APSEC 2020), 2020, : 61 - 70
  • [7] Learning-Based Ad Auction Design with Externalities: The Framework and A Matching-Based Approach
    Li, Ningyuan
    Ma, Yunxuan
    Zhao, Yang
    Duan, Zhijian
    Chen, Yurong
    Zhang, Zhilin
    Xu, Jian
    Zheng, Bo
    Deng, Xiaotie
    [J]. PROCEEDINGS OF THE 29TH ACM SIGKDD CONFERENCE ON KNOWLEDGE DISCOVERY AND DATA MINING, KDD 2023, 2023, : 1291 - 1302
  • [8] A Deep Graph Matching-Based Method for Trajectory Association in Vessel Traffic Surveillance
    Lu, Yuchen
    Zhang, Xiangkai
    Yang, Xu
    Lv, Pin
    Sun, Liguo
    Liu, Ryan Wen
    Lv, Yisheng
    [J]. NEURAL INFORMATION PROCESSING, ICONIP 2023, PT II, 2024, 14448 : 413 - 424
  • [9] Deep Transfer Bug Localization
    Huo, Xuan
    Thung, Ferdian
    Li, Ming
    Lo, David
    Shi, Shu-Ting
    [J]. IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2021, 47 (07) : 1368 - 1380
  • [10] A matching-based view interpolation scheme
    Sun, XY
    Dubois, E
    [J]. 2005 IEEE INTERNATIONAL CONFERENCE ON ACOUSTICS, SPEECH, AND SIGNAL PROCESSING, VOLS 1-5: SPEECH PROCESSING, 2005, : 877 - 880