Modeling function-level interactions for file-level bug localization
In: Empirical Software Engineering, Jg. 27 (2022-12-01), Heft 7
Online
serialPeriodical
Zugriff:
Automatic bug localization, i.e., automatically locating potential buggy source files given a bug report, plays an essential role in software engineering. For instance, bug localization helps developers fix bugs quickly. Although information retrieval-based bug localization methods are simple and easy to understand, it is difficult for them to bridge the lexical gap between bug reports and programs and capture the rich structural information in programs. Deep learning-based bug localization (DLBL) methods can utilize the structural information of the program, but they cannot handle long code sequences well. For example, CNN fails to capture remote code interaction features, while RNN (like LSTM, GRU) is vulnerable to gradient disappearance or burst when facing long code sequences. Additionally, DLBL methods fail to model metadata features such as bug-fixing recency and frequency. In this paper, we research how to locate buggy files by learning function-level features. Specifically, we propose a new framework called FLIM that can extract semantic features of a program at the function level and then calculates the relevance between natural and programming language by aggregating function-level interactions. We leverage a fine-tuned language model to treat the bug localization task as a code retrieval task, and use a learning-to-rank model to fuse the function-level semantic features with IR features to calculate the final relevance. We evaluate FLIM by conducting extensive experiments on widely-used six software projects. Experimental results demonstrate that FLIM outperforms six state-of-the-art methods of bug localization.
Titel: |
Modeling function-level interactions for file-level bug localization
|
---|---|
Autor/in / Beteiligte Person: | Liang, Hongliang ; Hang, Dengji ; Li, Xiangyu |
Link: | |
Zeitschrift: | Empirical Software Engineering, Jg. 27 (2022-12-01), Heft 7 |
Veröffentlichung: | 2022 |
Medientyp: | serialPeriodical |
ISSN: | 1382-3256 (print) ; 1573-7616 (print) |
DOI: | 10.1007/s10664-022-10237-z |
Sonstiges: |
|