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 条
  • [41] Image Matching and Localization Based on Fusion of Handcrafted and Deep Features
    Song, Xianfeng
    Zou, Yi
    Shi, Zheng
    Yang, Yanfeng
    [J]. IEEE SENSORS JOURNAL, 2023, 23 (19) : 22967 - 22983
  • [42] Bug Localization with Features Crossing and Structured Semantic Information Matching
    Xu, Guoqing
    Wang, Xingqi
    Wei, Dan
    Shao, Yanli
    Chen, Bin
    [J]. INTERNATIONAL JOURNAL OF SOFTWARE ENGINEERING AND KNOWLEDGE ENGINEERING, 2023, 33 (08) : 1261 - 1291
  • [43] An Empirical Study of IR-based Bug Localization for Deep Learning-based Software
    Kim, Misoo
    Kim, Youngkyoung
    Lee, Eunseok
    [J]. 2022 IEEE 15TH INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION (ICST 2022), 2022, : 128 - 139
  • [44] Ensuring Minimum Spectrum Requirement in Matching-Based Spectrum Allocation
    Chen, Yanjiao
    Xiong, Yuxuan
    Wang, Qian
    Yin, Xiaoyan
    Li, Baochun
    [J]. IEEE TRANSACTIONS ON MOBILE COMPUTING, 2018, 17 (09) : 2028 - 2040
  • [45] Dynamic Matching-Based Spectrum Detection in Cognitive Radio Networks
    Gu, Yu
    Pei, Qingqi
    Li, Hongning
    [J]. CHINA COMMUNICATIONS, 2019, 16 (04) : 47 - 58
  • [46] Matching-Based Selection With Incomplete Lists for Decomposition Multiobjective Optimization
    Wu, Mengyuan
    Li, Ke
    Kwong, Sam
    Zhou, Yu
    Zhang, Qingfu
    [J]. IEEE TRANSACTIONS ON EVOLUTIONARY COMPUTATION, 2017, 21 (04) : 554 - 568
  • [47] A computationally efficient approach for template matching-based image registration
    Gaidhane, Vilas H.
    Hote, Yogesh V.
    Singh, Vijander
    [J]. SADHANA-ACADEMY PROCEEDINGS IN ENGINEERING SCIENCES, 2014, 39 (02): : 317 - 331
  • [48] A fast template matching-based algorithm for railway bolts detection
    Dou, Yunguang
    Huang, Yaping
    Li, Qingyong
    Luo, Siwei
    [J]. INTERNATIONAL JOURNAL OF MACHINE LEARNING AND CYBERNETICS, 2014, 5 (06) : 835 - 844
  • [49] A computationally efficient approach for template matching-based image registration
    VILAS H GAIDHANE
    YOGESH V HOTE
    VIJANDER SINGH
    [J]. Sadhana, 2014, 39 : 317 - 331
  • [50] A Pseudo-relevance feedback framework combining relevance matching and semantic matching for information retrieval
    Wang, Junmei
    Pan, Min
    He, Tingting
    Huang, Xiang
    Wang, Xueyan
    Tu, Xinhui
    [J]. INFORMATION PROCESSING & MANAGEMENT, 2020, 57 (06)