[Paper Review] D&C: A Divide-and-Conquer Approach to IR-based Bug Localization
This paper proposes D&C, a novel divide-and-conquer approach to IR-based bug localization that trains multiple gradient-boosting classifiers on specialized subsets of bug reports, learning optimal weights for similarity features. D&C achieves state-of-the-art performance, improving MAP by 4–10 percentage points and MRR by 1–12 points over existing tools on the Bench4BL dataset, with 50% of bugs localized at Top1 and 85% at Top10.
Many automated tasks in software maintenance rely on information retrieval techniques to identify specific information within unstructured data. Bug localization is such a typical task, where text in a bug report is analyzed to identify file locations in the source code that can be associated to the reported bug. Despite the promising results, the performance offered by IR-based bug localization tools is still not significant for large adoption. We argue that one reason could be the attempt to build a one-size-fits-all approach. In this paper, we extensively study the performance of state-of-the-art bug localization tools, focusing on query formulation and its importance with respect to the localization performance. Building on insights from this study, we propose a new learning approach where multiple classifier models are trained on clear-cut sets of bug-location pairs. Concretely, we apply a gradient boosting supervised learning approach to various sets of bug reports whose localizations appear to be successful with specific types of features. The training scenario builds on our findings that the various state-of-the-art localization tools can be highly performant for specific sets of bug reports. We implement D&C, which computes appropriate weights that should be assigned to the similarity measurements between pairs of information token types. Experimental results on large and up-to-date datasets reveal that D&C outperforms state-of-the-art tools. On average, the experiments yield an MAP score of 0.52, and an MRR score of 0.63 with a curated dataset, which provides a substantial performance improvement over all tools: MAP is improved by between 4 and up to 10 percentage points, while MRR is improved by between 1 and up to 12. Finally, we note that D&C is stable in its localization performance: around 50% of bugs can be located at Top1, 77% at Top5 and 85% at Top10.
Motivation & Objective
- To investigate why existing IR-based bug localization tools underperform despite strong theoretical promise.
- To analyze the contribution of individual IR features (e.g., bug report title, stack trace) to localization accuracy across diverse bug reports.
- To address the limitation of 'one-size-fits-all' approaches by identifying report-specific feature effectiveness.
- To develop a scalable, adaptive method that learns optimal similarity weights per report type for improved localization precision.
- To demonstrate that performance gains are achievable by training specialized classifiers on homogeneous subsets of bug reports.
Proposed method
- The authors curate the Bench4BL dataset by removing post-fix activities to ensure clean evaluation.
- They evaluate six state-of-the-art IRBL tools to assess their performance per feature type, identifying which features yield high localization accuracy for specific report subsets.
- Based on performance clustering, the dataset is partitioned into homogeneous groups where specific tools (and their feature sets) perform best.
- For each group, a gradient-boosting classifier is trained to learn optimal weights for similarity scores between bug report and source code tokens.
- The final ranking is generated by aggregating predictions from all specialized classifiers, each weighted by its group-specific performance.
- The method uses Mean Average Precision (MAP) and Mean Reciprocal Rank (MRR) as evaluation metrics on curated and original Bench4BL datasets.
Experimental results
Research questions
- RQ1Which IR features (e.g., title, stack trace) contribute most significantly to accurate bug localization across different types of bug reports?
- RQ2Can performance be improved by training specialized models on subsets of bug reports where specific IR features are most effective?
- RQ3Does a divide-and-conquer strategy—where different classifiers are trained on distinct report clusters—yield better overall localization accuracy than monolithic models?
- RQ4How stable is the proposed D&C approach across diverse projects and report types in terms of Top-k localization?
- RQ5To what extent do feature-specific models outperform general-purpose IRBL tools in real-world settings?
Key findings
- D&C achieves a MAP score of 0.52 and MRR of 0.63 on a curated version of the Bench4BL dataset, significantly outperforming all state-of-the-art tools.
- The method improves MAP by 4 to 10 percentage points and MRR by 1 to 12 points compared to existing tools across all evaluated projects.
- Approximately 50% of all bugs are localized at the Top1 position, 77% at Top5, and 85% at Top10, indicating strong and stable performance.
- The study confirms that different IR tools perform best on different subsets of bug reports, validating the need for a specialized, adaptive approach.
- The performance gains are consistent across multiple projects, demonstrating the scalability and robustness of the D&C framework.
- The results suggest that feature-specific performance varies significantly, and a one-size-fits-all model fails to capture this heterogeneity.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.