Reformulate, Retrieve, Localize: Agents for Repository-Level Bug Localization

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Caumartin, Genevieve, Melo, Glaucia
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866918236432367616
author Caumartin, Genevieve
Melo, Glaucia
author_facet Caumartin, Genevieve
Melo, Glaucia
contents Bug localization remains a critical yet time-consuming challenge in large-scale software repositories. Traditional information retrieval-based bug localization (IRBL) methods rely on unchanged bug descriptions, which often contain noisy information, leading to poor retrieval accuracy. Recent advances in large language models (LLMs) have improved bug localization through query reformulation, yet the effect on agent performance remains unexplored. In this study, we investigate how an LLM-powered agent can improve file-level bug localization via lightweight query reformulation and summarization. We first employ an open-source, non-fine-tuned LLM to extract key information from bug reports, such as identifiers and code snippets, and reformulate queries pre-retrieval. Our agent then orchestrates BM25 retrieval using these preprocessed queries, automating localization workflow at scale. Using the best-performing query reformulation technique, our agent achieves 35% better ranking in first-file retrieval than our BM25 baseline and up to +22% file retrieval performance over SWE-agent.
format Preprint
id arxiv_https___arxiv_org_abs_2512_07022
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Reformulate, Retrieve, Localize: Agents for Repository-Level Bug Localization
Caumartin, Genevieve
Melo, Glaucia
Software Engineering
Artificial Intelligence
Information Retrieval
Bug localization remains a critical yet time-consuming challenge in large-scale software repositories. Traditional information retrieval-based bug localization (IRBL) methods rely on unchanged bug descriptions, which often contain noisy information, leading to poor retrieval accuracy. Recent advances in large language models (LLMs) have improved bug localization through query reformulation, yet the effect on agent performance remains unexplored. In this study, we investigate how an LLM-powered agent can improve file-level bug localization via lightweight query reformulation and summarization. We first employ an open-source, non-fine-tuned LLM to extract key information from bug reports, such as identifiers and code snippets, and reformulate queries pre-retrieval. Our agent then orchestrates BM25 retrieval using these preprocessed queries, automating localization workflow at scale. Using the best-performing query reformulation technique, our agent achieves 35% better ranking in first-file retrieval than our BM25 baseline and up to +22% file retrieval performance over SWE-agent.
title Reformulate, Retrieve, Localize: Agents for Repository-Level Bug Localization
topic Software Engineering
Artificial Intelligence
Information Retrieval
url https://arxiv.org/abs/2512.07022