[Paper Review] DeepTriage: Exploring the Effectiveness of Deep Learning for Bug Triaging
This paper proposes DeepTriage, a deep bidirectional RNN with attention (DBRNN-A) to learn contextual and semantic representations of bug reports from titles and descriptions, outperforming traditional bag-of-words models. The method achieves higher rank-10 average accuracy across three open-source datasets by leveraging unlabeled bug reports and enabling transfer learning, with code and data publicly released for reproducibility.
For a given software bug report, identifying an appropriate developer who could potentially fix the bug is the primary task of a bug triaging process. A bug title (summary) and a detailed description is present in most of the bug tracking systems. Automatic bug triaging algorithm can be formulated as a classification problem, with the bug title and description as the input, mapping it to one of the available developers (classes). The major challenge is that the bug description usually contains a combination of free unstructured text, code snippets, and stack trace making the input data noisy. The existing bag-of-words (BOW) feature models do not consider the syntactical and sequential word information available in the unstructured text. We propose a novel bug report representation algorithm using an attention based deep bidirectional recurrent neural network (DBRNN-A) model that learns a syntactic and semantic feature from long word sequences in an unsupervised manner. Instead of BOW features, the DBRNN-A based bug representation is then used for training the classifier. Using an attention mechanism enables the model to learn the context representation over a long word sequence, as in a bug report. To provide a large amount of data to learn the feature learning model, the unfixed bug reports (~70% bugs in an open source bug tracking system) are leveraged, which were completely ignored in the previous studies. Another contribution is to make this research reproducible by making the source code available and creating a public benchmark dataset of bug reports from three open source bug tracking system: Google Chromium (383,104 bug reports), Mozilla Core (314,388 bug reports), and Mozilla Firefox (162,307 bug reports). Experimentally we compare our approach with BOW model and machine learning approaches and observe that DBRNN-A provides a higher rank-10 average accuracy.
Motivation & Objective
- To address the challenge of noisy, unstructured bug report data containing text, code, and stack traces in automated triaging.
- To overcome limitations of bag-of-words models that ignore word order and semantic relationships in bug reports.
- To develop a deep learning-based representation model that captures long-range syntactic and semantic dependencies in bug reports.
- To improve triaging performance by leveraging unfixed (unlabeled) bug reports as additional training data for unsupervised pre-training.
- To enhance reproducibility by releasing a public benchmark dataset and source code for triaging research.
Proposed method
- Employ a deep bidirectional recurrent neural network (DBRNN) with an attention mechanism to encode entire bug reports (title + description) into a unified, context-aware vector representation.
- Use unsupervised pre-training on a large corpus of unfixed bug reports (constituting ~70% of data) to learn robust, generalizable features without requiring labels.
- Replace traditional bag-of-words or TF-IDF features with the DBRNN-A learned representations as input to downstream classifiers.
- Train and evaluate multiple classifiers—softmax, SVM, naive Bayes, and cosine distance—on the learned representations to assess performance.
- Apply transfer learning by fine-tuning the DBRNN-A model pre-trained on Google Chromium to triage bugs in Mozilla Core and Firefox datasets.
- Construct a public benchmark dataset from three open-source projects: Google Chromium, Mozilla Core, and Mozilla Firefox, with standardized preprocessing and evaluation protocols.
Experimental results
Research questions
- RQ1Can a deep bidirectional RNN with attention learn more effective and robust representations of bug reports compared to traditional bag-of-words models?
- RQ2Does leveraging unlabeled (unfixed) bug reports significantly improve the performance of the triaging model through unsupervised pre-training?
- RQ3To what extent does the proposed DBRNN-A representation generalize across different software projects, as demonstrated by transfer learning?
- RQ4How does the inclusion of full bug descriptions compare to using only the title for developer assignment in triaging?
- RQ5Can the proposed feature representation be effectively reused for other software maintenance tasks beyond triaging?
Key findings
- The DBRNN-A model with a softmax classifier achieved higher rank-10 average accuracy than all baseline models (BOW, SVM, naive Bayes, cosine distance) across all three datasets: Chromium, Mozilla Core, and Firefox.
- Using only the bug title for triaging led to a significant drop in performance, highlighting the critical importance of including the full description in the input.
- The model pre-trained on the Chromium dataset achieved competitive triaging accuracy on the Mozilla datasets, demonstrating strong transfer learning capability.
- The use of unfixed bug reports for unsupervised pre-training significantly improved the final classification performance, as these data were previously ignored in prior work.
- The proposed method outperformed existing state-of-the-art approaches in the literature, including those using tf-idf, n-grams, and ensemble methods, with rank-10 accuracy improvements of up to 10 percentage points in some cases.
- The public release of the benchmark dataset, code, and evaluation protocol enables full reproducibility and facilitates future research in automated software maintenance.
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.