Study Project (CS F266) · Supervisor: Dr. N. L. Bhanumurthy
Software Bug Prioritization via Hierarchical Attention Networks
Rijul Dahiya1
Abstract
Software development and deployment is often infested with bugs, and manually prioritising bug reports using domain knowledge is inaccurate and time-consuming. We propose a Hierarchical Attention-based recursive deep learning approach to automate bug prioritisation. Our method takes data from Linux and Chrome bug databases, generates word embeddings using GloVe, FastText, and Word2Vec, and processes them through a Hierarchical Attention Network (HAN). Results show strong performance on well-structured datasets (Linux) and highlight limitations on noisier data (Chrome).
Key Contributions
- Hierarchical Attention Network applied to bug report prioritisation, capturing both word and sentence level semantics.
- Evaluation of GloVe, FastText, and Word2Vec embeddings on real-world bug databases.
- Analysis of model behaviour on well-structured (Linux) vs. unstructured (Chrome) bug reports.
- Identification of dataset structure as a key factor in deep learning-based bug classification performance.
Method
Bug reports are tokenised and embedded using three embedding strategies (GloVe, FastText, Word2Vec). A Hierarchical Attention Network encodes the report at both the word level (word attention) and the sentence level (sentence attention), producing a document representation used for priority classification. The model is trained and evaluated on Linux kernel Bugzilla (~16.5k reports, 9 priority classes) and Chromium (~59k reports, 3 type classes).
Results — Linux dataset
The research question was whether an emotion score, concatenated to the document vector before the final softmax, improves priority prediction. It does — and by more than any embedding swap.
| Variant | F1 | Accuracy |
|---|---|---|
| word2vec (Adam) | 0.5156 | 0.6301 |
| word2vec (RMSprop) | 0.5352 | 0.6418 |
| FastText | 0.5281 | 0.6278 |
| GloVe | 0.5470 | 0.6516 |
| word2vec + emotion score | 0.5734 | 0.6646 |
Findings
- Adding an emotion score gave the single largest improvement, +0.038 F1 over the word2vec baseline, beating every embedding change.
- Among embeddings alone, GloVe performed best.
- Hierarchical attention works well on well-structured Linux reports and degrades on unstructured Chromium ones — prompting an architecture change where the RNN blocks were replaced by two GRUs of differing cell sizes plus a parallel GRU path stacked into the softmax layer.
- On Chromium the architecture reached 0.7873 accuracy, but the emotion variant and the larger embeddings were never run there: compute was the binding constraint, and that experiment remains open.
Attribution
This study project builds on the released code for 'Automated labeling of bugs and tickets using attention-based mechanisms in recurrent neural networks' (Lyubinets, Boiko and Nicholas, DSMP 2018). The contributions here are the emotion-score variant, the GRU architecture change, and the comparative embedding study.
Figures


