bjXnet: an improved bug localization model based on code property graph and attention mechanism

被引:11
作者
Han, Jiaxuan [1 ]
Huang, Cheng [1 ]
Sun, Siqi [1 ]
Liu, Zhonglin [1 ]
Liu, Jiayong [1 ]
机构
[1] Sichuan Univ, Sch Cyber Sci & Engn, Chengdu 610207, Sichuan, Peoples R China
关键词
Bug localization; Graph semantics; Attention mechanism; !text type='Java']Java[!/text] project; RETRIEVAL;
D O I
10.1007/s10515-023-00379-9
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Bug localization technologies and tools are widely used in software engineering. Although state-of-the-art methods have achieved great progress, they only consider the source code information at the text level, which may establish a wrong correlation between the source code and the bug report, affecting the localization accuracy and reliability. In this paper, we propose an improved bug localization model, which uses the semantics of source codes at the graph level to supplement its semantics at the text level, optimizing and adjusting the graph semantics in combination with the attention mechanism to obtain the code semantic feature including the shallow and deep semantics of the source code. Finally, the correlation between code semantic feature and report semantic feature is measured by cosine similarity. We conduct experiments on three open source Java projects to comprehensively evaluate the performance of proposed model. The experimental results show that the model is significantly better than state-of-the-art methods.
引用
收藏
页数:23
相关论文
共 50 条
[1]  
Arong, 2014, PROCEEDINGS OF 2014 IEEE INTERNATIONAL CONFERENCE ON PROGRESS IN INFORMATICS AND COMPUTING (PIC), P51, DOI 10.1109/PIC.2014.6972294
[2]   Multimodal Machine Learning: A Survey and Taxonomy [J].
Baltrusaitis, Tadas ;
Ahuja, Chaitanya ;
Morency, Louis-Philippe .
IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE, 2019, 41 (02) :423-443
[3]   SinkFinder: Harvesting Hundreds of Unknown Interesting Function Pairs with Just One Seed [J].
Bian, Pan ;
Liang, Bin ;
Huang, Jianjun ;
Shi, Wenchang ;
Wang, Xidong ;
Zhang, Jian .
PROCEEDINGS OF THE 28TH ACM JOINT MEETING ON EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING (ESEC/FSE '20), 2020, :1101-1113
[4]   On Multi-Modal Learning of Editing Source Code [J].
Chakraborty, Saikat ;
Ray, Baishakhi .
2021 36TH IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING ASE 2021, 2021, :443-455
[5]   Cross-Modal Image-Text Retrieval with Semantic Consistency [J].
Chen, Hui ;
Ding, Guiguang ;
Lin, Zijin ;
Zhao, Sicheng ;
Han, Jungong .
PROCEEDINGS OF THE 27TH ACM INTERNATIONAL CONFERENCE ON MULTIMEDIA (MM'19), 2019, :1749-1757
[6]   Fine-grained Video-Text Retrieval with Hierarchical Graph Reasoning [J].
Chen, Shizhe ;
Zhao, Yida ;
Jin, Qin ;
Wu, Qi .
2020 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION (CVPR 2020), 2020, :10635-10644
[7]  
Chen ZL., 2020, J CYBER SECUR, V5, P13
[8]   DeepWukong: Statically Detecting Software Vulnerabilities Using Deep Graph Neural Network [J].
Cheng, Xiao ;
Wang, Haoyu ;
Hua, Jiayi ;
Xu, Guoai ;
Sui, Yulei .
ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2021, 30 (03)
[9]  
Feng HT, 2020, IEEE CONF COMPUT, P722, DOI 10.1109/INFOCOMWKSHPS50562.2020.9163061
[10]  
Ghadery E, 2019, AAAI CONF ARTIF INTE, P6441