arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2406.17615cs.SEcs.AIcs.LG
收藏

对齐编程语言与自然语言:探索基于多模态Transformer的缺陷定位嵌入的设计选择

Aligning Programming Language and Natural Language: Exploring Design Choices in Multi-Modal Transformer-Based Embedding for Bug Localization

University of Waterloo(滑铁卢大学)

Partha Chakraborty, Venkatraman Arumugam, Meiyappan Nagappan

AI总结:

该研究评估了14个嵌入模型在缺陷定位中的设计选择,发现预训练策略和模型对数据的熟悉程度显著影响嵌入质量与定位性能,且跨项目数据会导致性能大幅波动。

摘要:

缺陷定位是指使用自然语言的缺陷报告,识别出属于编程语言且导致软件出现意外行为的源代码文件。由于缺陷定位耗费大量人力,通常采用缺陷定位模型来辅助软件开发者。由于源代码文件与缺陷报告之间存在领域差异,基于深度学习模型的现代缺陷定位系统严重依赖于嵌入技术,该技术将缺陷报告和源代码文件投影到共享的向量空间中。嵌入的创建涉及多种设计选择,但这些选择对嵌入质量和缺陷定位模型性能的影响在当前研究中仍未得到解释。为了填补这一空白,我们的研究评估了14个不同的嵌入模型,以深入了解各种设计选择的影响。随后,我们利用这些嵌入模型开发了缺陷定位模型,以评估这些选择对定位模型性能的影响。我们的研究结果表明,预训练策略显著影响嵌入的质量。此外,我们发现嵌入模型对数据的熟悉程度对缺陷定位模型的性能有显著影响。值得注意的是,当训练和测试数据收集自不同项目时,缺陷定位模型的性能表现出大幅波动。

英文摘要:

Bug localization refers to the identification of source code files which is in a programming language and also responsible for the unexpected behavior of software using the bug report, which is a natural language. As bug localization is labor-intensive, bug localization models are employed to assist software developers. Due to the domain difference between source code files and bug reports, modern bug-localization systems, based on deep learning models, rely heavily on embedding techniques that project bug reports and source code files into a shared vector space. The creation of an embedding involves several design choices, but the impact of these choices on the quality of embedding and the performance of bug localization models remains unexplained in current research. To address this gap, our study evaluated 14 distinct embedding models to gain insights into the effects of various design choices. Subsequently, we developed bug localization models utilizing these embedding models to assess the influence of these choices on the performance of the localization models. Our findings indicate that the pre-training strategies significantly affect the quality of the embedding. Moreover, we discovered that the familiarity of the embedding models with the data has a notable impact on the bug localization model's performance. Notably, when the training and testing data are collected from different projects, the performance of the bug localization models exhibits substantial fluctuations.

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

↑