arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.07022cs.SEcs.AIcs.IR
收藏

重新表述、检索、局部化:用于仓库级缺陷定位的代理

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

Concordia University(康科迪亚大学);Toronto Metropolitan University(多伦多 Metropolitan 大学)

Genevieve Caumartin, Glaucia Melo

AI总结:

本文提出利用LLM代理通过查询重新表述和摘要改进仓库级缺陷定位,实现更高效的文件级定位性能。

摘要:

在大规模软件仓库中,缺陷定位仍然是一个关键但耗时的挑战。传统的基于信息检索的缺陷定位(IRBL)方法依赖于未变的缺陷描述,这些描述通常包含噪声信息,导致检索准确性差。最近,大型语言模型(LLMs)的进步通过查询重新表述提高了缺陷定位,但其对代理性能的影响仍不清楚。在本研究中,我们探讨了如何利用LLM代理通过轻量级查询重新表述和摘要来改进文件级缺陷定位。我们首先使用开源的非微调LLM从缺陷报告中提取关键信息,如标识符和代码片段,并在检索前重新表述查询。我们的代理随后使用这些预处理查询 orchestrate BM25检索,实现大规模的定位工作流程自动化。使用表现最好的查询重新表述技术,我们的代理在首次文件检索排名上比我们的BM25基线提高了35%,并在SWE-agent上实现了最高达+22%的文件检索性能。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑