代码克隆检测在CodeBERT上的通用性
Generalizability of Code Clone Detection on CodeBERT
摘要:
Transformer网络(如CodeBERT)已经在基准数据集中实现了出色的代码克隆检测结果,因此可以假设该任务已经解决。然而,代码克隆检测并不是一项简单的任务。语义代码克隆尤其难以检测。我们表明,CodeBERT的泛化能力下降,通过评估两个不同的子集的Java代码克隆BigCloneBench。当我们评估与用于模型构建的代码片段和功能ID不同的代码片段和功能ID时,我们观察到F1得分显著下降。
英文摘要:
Transformer networks such as CodeBERT already achieve outstanding results for code clone detection in benchmark datasets, so one could assume that this task has already been solved. However, code clone detection is not a trivial task. Semantic code clones, in particular, are challenging to detect. We show that the generalizability of CodeBERT decreases by evaluating two different subsets of Java code clones from BigCloneBench. We observe a significant drop in F1 score when we evaluate different code snippets and functionality IDs than those used for model building.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。