Recommending Bug Assignment Approaches for Individual Bug Reports: An Empirical Investigation

Yang Song, Oscar Chaparro · DOI

Abstract

Multiple approaches have been proposed to automatically recommend potential developers who can address bug reports. These approaches are typically designed to work for any bug report submitted to any software project. However, we conjecture that these approaches may not work equally well for all the reports in a project. We conducted an empirical study to validate this conjecture, using three bug assignment approaches applied on 2,249 bug reports from two open source systems. We found empirical evidence that validates our conjecture, which led us to explore the idea of identifying and applying the best-performing approach for each bug report to obtain more accurate developer recommendations. We conducted an additional study to assess the feasibility of this idea using machine learning. While we found a wide margin of accuracy improvement for this approach, it is far from achieving the maximum possible improvement and performs comparably to baseline approaches. We discuss potential reasons for these results and conjecture that the assignment approaches may not capture important information about the bug assignment process that developers perform in practice. The results warrant future research in understanding how developers assign bug reports and improving automated bug report assignment.

Introduction

In large-scale software development, "bug triaging"—the process of assigning a new bug report to the most qualified developer—is a critical but labor-intensive task. To alleviate this bottleneck, researchers have developed various automated recommendation tools. These tools generally follow one of three paradigms: Information Retrieval (IR) based on textual similarity, Machine Learning (ML) using "Learning to Rank" (L2R) features, or Frequency-based heuristics that favor prolific fixers.

Traditionally, research has focused on identifying which of these paradigms is the overall "best." This paper challenges that premise, investigating whether the optimal approach actually varies from one bug report to another based on the specific characteristics of the task.

Study 1: The Diversity of Bug Assignment

The researchers first conducted a "Diversity Check" to see if a single tool dominated the dataset. They evaluated three representative approaches—Freq (frequency), Lucene (IR), and L2R (ML)—on 2,249 bug reports from the Angular.js and WordPress Android ecosystems.

Distribution of best-performing approaches across bug reports, showing that no single tool is universally superior.

The results confirmed that the "best" tool varies significantly. As shown in the data, while L2R was the sole best performer for approximately 21% of Angular reports, Frequency-based approaches were superior in 17.5% of cases, and the two approaches tied for another 26.3%. This diversity suggests that a meta-approach, selecting the right tool for the right report, could significantly boost accuracy.

Study 2: The Lupin Meta-Recommender

To capitalize on this diversity, the authors developed Lupin, a two-step meta-recommender framework:

  1. The Classifier: When a new bug is submitted, Lupin uses a machine learning classifier (e.g., Random Forest) to predict which baseline tool will perform best for that specific report.
  2. The Recommendation: Lupin then executes only the predicted "best" tool to generate developer suggestions.

Lupin utilizes 23 features to make these predictions, including textual specificity (vocabulary uniqueness), similarity to past code changes, and recent developer activity levels.

Key Results and the "Max" Potential

The evaluation of Lupin revealed a significant performance gap between current automated tools and the theoretical maximum.

Performance comparison of Lupin against individual baselines and the theoretical "Max" oracle.

As illustrated in the results, Lupin achieved performance comparable to the best individual baselines (e.g., an MRR of 56.5% in Angular, nearly matching Freq's 57.4%). However, the "Max" oracle—a theoretical scenario where the best tool is perfectly selected every time—reached an MRR of 72.2%. This "wide margin" indicates that while the meta-selection concept is sound, current predictive features are not yet sufficient to fully capture the nuances that make one tool succeed where another fails.

Discussion and Future Work

The study concludes that while meta-recommendation is a promising path, current text-based features may be missing vital context. Human factors, such as developer availability, team social dynamics, and specific technical niches, are rarely captured in bug report text but likely influence which assignment strategy works best in practice. Future research will focus on "post-retrieval" features and incorporating broader organizational context to bridge the gap toward the theoretical maximum performance.

Summary updated

BibTeX
@misc{song2023recommending,
  author = {Yang Song and Oscar Chaparro},
  title = {{Recommending Bug Assignment Approaches for Individual Bug Reports: An Empirical Investigation}},
  year = {2023},
  eprint = {2305.18650},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.18650},
}
Figure