Leveraging Large Language Model for Information Retrieval-based Bug Localization
Preprint
Abstract
Information Retrieval-based Bug Localization aims to identify buggy source files for a given bug report. While existing approaches -- ranging from vector space models to deep learning models -- have shown potential in this domain, their effectiveness is often limited by the vocabulary mismatch between bug reports and source code. To address this issue, we propose a novel Large Language Model (LLM) based bug localization approach, called GenLoc. Given a bug report, GenLoc leverages an LLM equipped with code-exploration functions to iteratively analyze the code base and identify potential buggy files. To gather better context, GenLoc may optionally retrieve semantically relevant files using vector embeddings. GenLoc has been evaluated on over 9,000 real-world bug reports from six large-scale Java projects. Experimental results show that GenLoc outperforms five state-of-the-art bug localization techniques across multiple metrics, achieving an average improvement of more than 60\% in Accuracy@1.Keywords
All Related Versions
This publication has 32 references indexed in Scilit:
- bjXnet: an improved bug localization model based on code property graph and attention mechanismAutomated Software Engineering, 2023
- Improving Bug Localization With Effective Contrastive Learning RepresentationIEEE Access, 2022
- Modeling function-level interactions for file-level bug localizationEmpirical Software Engineering, 2022
- Determining Bug Prioritization Using Feature Reduction and Clustering With ClassificationIEEE Access, 2020
- The significance of bug report elementsEmpirical Software Engineering, 2020
- Multiple fault localization of software programs: A systematic literature reviewInformation and Software Technology, 2020
- Mapping Bug Reports to Relevant Source Code Files Based on the Vector Space Model and Word EmbeddingIEEE Access, 2019
- Improving bug localization with word embedding and enhanced convolutional neural networksInformation and Software Technology, 2019
- Improved bug localization based on code change histories and bug reportsInformation and Software Technology, 2017
- Bug localization using latent Dirichlet allocationInformation and Software Technology, 2010