Bjenet: a Fast and Accurate Software Bug Localization Method in Natural Language Semantic Space

Jiaxuan Han,Cheng Huang,Jiayong Liu
DOI: https://doi.org/10.1007/s11219-024-09693-1
2024-01-01
Software Quality Journal
Abstract:Automated software bug localization is a significant technology to improve the efficiency of software repair and ensure software quality while promoting the software ecosystem’s stable development. The main objective is to address the semantic matching problem between bug reports and source codes. The appearance of the Transformer structure provides us with a new idea to solve this problem. Transformer-based deep learning models can provide accurate semantic matching results but with a considerable cost (e.g., time). In this paper, we propose a fast and accurate bug localization method named bjEnet based on natural language semantic matching. bjEnet utilizes a pre-trained code language model to transform source codes into code summaries. Then, a code filtering mechanism is employed to exclude source codes unrelated to bug reports, thereby reducing the number of source codes that need to be combined with bug reports for correlation evaluation. Finally, bjEnet uses a BERT-based cross-encoder to localize bugs in the natural language semantic space. The experimental results show that bjEnet is superior to state-of-the-art methods, with an average time to localize a bug report of less than 1 second.
What problem does this paper attempt to address?