缺陷报告太少?探索数据增强以改进基于变更集的缺陷定位
Too Few Bug Reports? Exploring Data Augmentation for Improved Changeset-based Bug Localization
AI总结:
本文针对缺陷定位任务中训练数据不足的问题,提出作用于缺陷报告不同组成部分的数据增强算子及数据平衡策略,以生成高质量合成训练数据,从而改进基于变换器的变更集缺陷定位模型性能。
摘要:
基于变换器(如BERT、RoBERTa)的现代深度学习架构在多项自然语言任务中表现出性能提升。尽管此类深度学习模型在软件工程应用中展现出巨大潜力,但它们常常受到训练数据不足的制约。尤其受限的是需要项目特定数据的应用,例如缺陷定位,其目标是为新提交的缺陷报告推荐修复代码。用于缺陷定位的深度学习模型需要大量已修复缺陷报告作为训练集,而即使在流行且活跃开发的软件项目中,这类报告的数量也有限。本文研究了使用合成训练数据对基于变换器的深度学习模型的影响,这些模型执行的是缺陷定位的一个更复杂变体,其目标是为每个缺陷报告检索引入缺陷的变更集。为了生成高质量的合成数据,我们提出了新颖的数据增强算子,这些算子作用于缺陷报告的不同组成部分。我们还描述了一种数据平衡策略,旨在创建一个增强缺陷报告语料库,使其更好地反映整个源代码库,因为现有用作训练数据的缺陷报告通常只涉及代码库的一小部分。
英文摘要:
Modern Deep Learning (DL) architectures based on transformers (e.g., BERT, RoBERTa) are exhibiting performance improvements across a number of natural language tasks. While such DL models have shown tremendous potential for use in software engineering applications, they are often hampered by insufficient training data. Particularly constrained are applications that require project-specific data, such as bug localization, which aims at recommending code to fix a newly submitted bug report. Deep learning models for bug localization require a substantial training set of fixed bug reports, which are at a limited quantity even in popular and actively developed software projects. In this paper, we examine the effect of using synthetic training data on transformer-based DL models that perform a more complex variant of bug localization, which has the goal of retrieving bug-inducing changesets for each bug report. To generate high-quality synthetic data, we propose novel data augmentation operators that act on different constituent components of bug reports. We also describe a data balancing strategy that aims to create a corpus of augmented bug reports that better reflects the entire source code base, because existing bug reports used as training data usually reference a small part of the code base.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。