arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1801.01275cs.SEcs.LG
收藏

DeepTriage:探索深度学习在Bug分类中的有效性

DeepTriage: Exploring the Effectiveness of Deep Learning for Bug Triaging

IBM Research, India(IBM印度研究院)

Senthil Mani, Anush Sankaran, Rahul Aralikatte

摘要:

对于一个给定的软件错误报告,确定一个合适的开发人员谁可以潜在地修复错误是一个错误分类过程的主要任务。大多数bug跟踪系统中都有bug标题(摘要)和详细描述。自动错误分类算法可以被公式化为一个分类问题,以错误标题和描述作为输入,将其映射到可用的开发人员(类)之一。主要的挑战是错误描述通常包含自由的非结构化文本、代码片段和堆栈跟踪的组合,这使得输入数据变得嘈杂。现有的词袋(BOW)特征模型没有考虑非结构化文本中可用的句法和顺序词信息。我们提出了一种新的错误报告表示算法,使用基于注意力的深度双向递归神经网络(DBRNN-A)模型,以无监督的方式从长单词序列中学习语法和语义特征。代替BOW特征,然后使用基于DBRNN-A的错误表示来训练分类器。使用注意力机制使模型能够在长的单词序列上学习上下文表示,就像在bug报告中一样。为了提供大量的数据来学习特征学习模型,利用了未修复的bug报告(在开源bug跟踪系统中约有70%的bug),这在以前的研究中完全被忽略了。另一个贡献是通过提供源代码并创建来自三个开源错误跟踪系统的错误报告的公共基准数据集来使这项研究可重复:Google Chromium(383,104个错误报告),Mozilla Core(314,388个错误报告)和Mozilla Firefox(162,307个错误报告)。在实验中,我们将我们的方法与BOW模型和机器学习方法进行了比较,并观察到DBRNN-A提供了更高的10级平均准确度。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑