BigCloneBench Considered Harmful for Machine Learning
Authors:
- 1 October 2022
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 1-7
Abstract
BigCloneBench is a well-known large-scale dataset of clones mainly targeted at the evaluation of recall of clone detection tools. It has been beneficial for research on clone detection and evaluating the performance of clone detection tools, for which it has become standard. It has also been used in machine learning approaches to clone detection or code similarity detection. However, the way BigCloneBench has been constructed makes it problematic to use as ground truth for learning code similarity. This paper highlights the features of BigCloneBench that affect the ground truth quality and discusses common misperceptions about the benchmark. For example, extending or replacing the ground truth without understanding the properties of BigCloneBench often leads to wrong assumptions which can lead to invalid results. Also, a manual investigation of a sample of Weak-Type-3/Type-4 clone pairs revealed 86% of pairs to be false positives, threatening the results of machine learning approaches using BigCloneBench. We call for a halt in using BigCloneBench as the ground truth for learning code similarity.Keywords
This publication has 32 references indexed in Scilit:
- Deep learning similarities from different representations of source code2018
- A comparison of code similarity analysersEmpirical Software Engineering, 2017
- CCLearner: A Deep Learning-Based Clone Detection Approach2017
- Supervised Deep Features for Software Functional Clone Detection by Exploiting Lexical and Syntactical Information in Source Code2017
- BigCloneEval: A Clone Detection Tool Evaluation Framework with BigCloneBench2016
- Deep learning code fragments for code clone detection2016
- Evaluating clone detection tools with BigCloneBench2015
- Towards a Big Data Curated Benchmark of Inter-project Code Clones2014
- Comparison and evaluation of code clone detection techniques and tools: A qualitative approachScience of Computer Programming, 2009
- Comparison and Evaluation of Clone Detection ToolsIEEE Transactions on Software Engineering, 2007