Advanced Detection of Source Code Clones via an Ensemble of Unsupervised Similarity Measures
Not on the map. Why?
Abstract (arXiv)
The capability of accurately determining code similarity is crucial in many tasks related to software development. For example, it might be essential to identify code duplicates for performing software maintenance. This research introduces a novel ensemble learning approach for code similarity assessment, combining the strengths of multiple unsupervised similarity measures. The key idea is that the strengths of a diverse set of similarity measures can complement each other and mitigate individual weaknesses, leading to improved performance. Preliminary results show that while Transformers-based CodeBERT and its variant GraphCodeBERT are undoubtedly the best option in the presence of abundant training data, in the case of specific small datasets (up to 500 samples), our ensemble achieves similar results, without prejudice to the interpretability of the resulting solution, and with a much lower associated carbon footprint due to training. The source code of this novel approach can be downloaded from https://github.com/jorge-martinez-gil/ensemble-codesim.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 9 of its 50 references that are in the map. First posted on arXiv 3 May 2024.
Builds on
9 of 50 references.
References · 9
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 609
- 2018code2vec: Learning Distributed Representations of Codecited by 250
- 2019A Comparative Analysis of XGBoostcited by 80
- 2020Detecting Code Clones with Graph Neural Networkand Flow-Augmented Abstract Syntax Treecited by 69
- 2021What do pre-trained code models know about code?cited by 36
- 2017Do Code Clones Matter?cited by 12
- 2024Source Code Clone Detection Using Unsupervised Similarity Measurescited by 5
Built on by
Not cited yet.