arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2010.04336cs.SE
收藏

软件语义克隆检测的集成学习方法

An ensemble learning approach for software semantic clone detection

Min Fu, Gang Luo, Xi Zheng, Tianyi Zhang, Dongjin Yu, Miryung Kim

摘要:

代码克隆是软件中的一个严重问题,有可能导致软件缺陷、维护开销和许可违规。因此,克隆检测对于减少软件演化过程中的维护工作和提高代码质量具有重要意义。已经提出了多种克隆检测技术来识别软件中的相似代码。然而,他们中的一些人可以有效地检测语义克隆(功能相似的代码,没有任何语法相似性)。最近,提出了几种基于深度学习的克隆检测器来检测语义克隆。然而,这些方法在数据标记和模型训练方面具有较高的成本。在本文中,我们提出了一种新的方法,利用词嵌入和集成学习技术来检测语义克隆。我们对常用克隆基准BigCloneBench的评估表明,与基于标记的克隆检测器SourcerCC和另一种基于深度学习的克隆检测器CDLH相比,我们的方法显着提高了语义克隆检测的精度和召回率。

英文摘要:

Code clone is a serious problem in software and has the potential to software defects, maintenance overhead, and licensing violations. Therefore, clone detection is important for reducing maintenance effort and improving code quality during software evolution. A variety of clone detection techniques have been proposed to identify similar code in software. However, few of them can efficiently detect semantic clones (functionally similar code without any syntactic resemblance). Recently, several deep learning based clone detectors are proposed to detect semantic clones. However, these approaches have high cost in data labelling and model training. In this paper, we propose a novel approach that leverages word embedding and ensemble learning techniques to detect semantic clones. Our evaluation on a commonly used clone benchmark, BigCloneBench, shows that our approach significantly improves the precision and recall of semantic clone detection, in comparison to a token-based clone detector, SourcererCC, and another deep learning based clone detector, CDLH.

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

↑