Bug Localization Based on Context-Aware Code Translation and Feature Fusion

Bug localization refers to the process of identifying the locations of bugs in software through a series of testing and analysis methods during software development or maintenance. An important research direction focuses on localizing buggy components given a bug report. Existing bug localization methods can be broadly categorized into two approaches. The first is traditional information retrieval-based bug localization, which treats bug reports and source files as plain text and relies on keyword matching for localization. The second is deep learning-based bug localization, which leverages deep learning models to capture semantic information in bug reports and source files. Although deep learning models have advantages in semantic understanding, a significant semantic gap still exists between source files (written in programming languages) and bug reports (written in natural language), which impacts model performance. In this work, we propose a novel bug localization framework named WisdomLoc. This framework matches bug reports with the source files by extracting both information retrieval features and semantic features from the source files. Furthermore, WisdomLoc enhances the semantic representation of source files by incorporating natural language descriptions translated from the corresponding program instructions, using context-aware code translation techniques. This helps further bridge the semantic gap between source files and bug reports. Specifically, WisdomLoc consists of four modules. The first module extracts shallow semantic features from the source files based on their textual content and structural information. The second module captures deep semantic features by translating program instructions into natural language descriptions. The third module incorporates traditional IR-based software features. Finally, the fourth module integrates the outputs of the previous three modules to compute the final matching score between the bug reports and the source files. We evaluated the performance of WisdomLoc on four benchmark datasets. Experimental results demonstrate that WisdomLoc outperforms eight state-of-the-art models.

Authors

Institutions

Publication Details

Journal
International Journal of Software Engineering and Knowledge Engineering
Published
2026-01-05
DOI
https://doi.org/10.1142/s0218194025501153
Primary Topic
Software Engineering Research
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Bug Localization Based on Context-Aware Code Translation and Feature Fusion

Ruixuan Zhang, Gaofeng Wang, Wenyuan Cheng, Yuqian Chen
International Journal of Software Engineering and Knowledge Engineering
Software Engineering Research
article

Bug Localization Based on Context-Aware Code Translation and Feature Fusion

Ruixuan Zhang, Gaofeng Wang, Wenyuan Cheng, Yuqian Chen
article en

Abstract

Bug localization refers to the process of identifying the locations of bugs in software through a series of testing and analysis methods during software development or maintenance. An important research direction focuses on localizing buggy components given a bug report. Existing bug localization methods can be broadly categorized into two approaches. The first is traditional information retrieval-based bug localization, which treats bug reports and source files as plain text and relies on keyword matching for localization. The second is deep learning-based bug localization, which leverages deep learning models to capture semantic information in bug reports and source files. Although deep learning models have advantages in semantic understanding, a significant semantic gap still exists between source files (written in programming languages) and bug reports (written in natural language), which impacts model performance. In this work, we propose a novel bug localization framework named WisdomLoc. This framework matches bug reports with the source files by extracting both information retrieval features and semantic features from the source files. Furthermore, WisdomLoc enhances the semantic representation of source files by incorporating natural language descriptions translated from the corresponding program instructions, using context-aware code translation techniques. This helps further bridge the semantic gap between source files and bug reports. Specifically, WisdomLoc consists of four modules. The first module extracts shallow semantic features from the source files based on their textual content and structural information. The second module captures deep semantic features by translating program instructions into natural language descriptions. The third module incorporates traditional IR-based software features. Finally, the fourth module integrates the outputs of the previous three modules to compute the final matching score between the bug reports and the source files. We evaluated the performance of WisdomLoc on four benchmark datasets. Experimental results demonstrate that WisdomLoc outperforms eight state-of-the-art models.

International Journal of Software Engineering and Knowledge Engineering
Aviation Industry Corporation of China (China) (CN), Hangzhou Dianzi University (CN)
Openalex Percentile: Top 98%
Software Engineering Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.