Design and Evaluation of a Multi-Stage Retrieval-Augmented Pipeline for Bug Localization
Year: 2026
Type: dissertation
Abstract: Large software repositories make bug localization difficult because issue reports are often incomplete and may not directly identify the faulty implementation. This thesis examined whether a multi-stage retrieval-augmented pipeline can improve file-level bug localization while remaining practical under latency constraints. The pipeline rewrites the issue description for retrieval, retrieves candidate files using sparse and dense methods, extracts code-chunk evidence from the retrieved files, and reranks the candidates using a large language model. The primary evaluation used an adapted file-level version of SWE-bench Lite. Because SWE-bench Lite contains single-file fixes, each retained instance in the primary evaluation has one ground-truth source file. Long Code Arena was used for secondary component-level validation. On the primary benchmark, the system ranked the correct file first in 73.33% of cases. In 34.81% of cases, it returned only the correct file and no incorrect files. These results show that the system was more effective at ranking the correct file highly than at producing a precise final file list. The findings support multi-stage retrieval-augmented localization as a practical approach to repository-scale bug localization, while controlling false-positive predictions and reducing the cost of remote LLM reranking remain the main challenges.
Author: Nguyen, Thang
Language: English
Subfield: Information Systems
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W7203956205
