mlsanityData to 7 Oct 2026

On the Use of Deep Learning Models for Semantic Clone Detection

arXiv 2412.14739 ↗First posted 19 Dec 2024cs.SE cs.LGcited by 1

Not on the map. Why?

Abstract (arXiv)

Detecting and tracking code clones can ease various software development and maintenance tasks when changes in a code fragment should be propagated over all its copies. Several deep learning-based clone detection models have appeared in the literature for detecting syntactic and semantic clones, widely evaluated with the BigCloneBench dataset. However, class imbalance and the small number of semantic clones make BigCloneBench less ideal for interpreting model performance. Researchers also use other datasets such as GoogleCodeJam, OJClone, and SemanticCloneBench to understand model generalizability. To overcome the limitations of existing datasets, the GPT-assisted semantic and cross-language clone dataset GPTCloneBench has been released. However, how these models compare across datasets remains unclear. In this paper, we propose a multi-step evaluation approach for five state-of-the-art clone detection models leveraging existing benchmark datasets, including GPTCloneBench, and using mutation operators to study model ability. Specifically, we examine three highly-performing single-language models (ASTNN, GMN, CodeBERT) on BigCloneBench, SemanticCloneBench, and GPTCloneBench, testing their robustness with mutation operations. Additionally, we compare them against cross-language models (C4, CLCDSA) known for detecting semantic clones. While single-language models show high F1 scores for BigCloneBench, their performance on SemanticCloneBench varies (up to 20%). Interestingly, the cross-language model (C4) shows superior performance (around 7%) on SemanticCloneBench over other models and performs similarly on BigCloneBench and GPTCloneBench. On mutation-based datasets, C4 has more robust performance (less than 1% difference) compared to single-language models, which show high variability.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 13 of its 34 references that are in the map. First posted on arXiv 19 Dec 2024.

Builds on

13 of 34 references.

References · 13

  1. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  2. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
  3. 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,346
  4. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  5. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
  6. 2019Graph Matching Networks for Learning the Similarity of Graph Structured Objectscited by 202
  7. 2023The Science of Detecting LLM-Generated Textscited by 126
  8. 2019Analyzing and Improving Representations with the Soft Nearest Neighbor Losscited by 95
  9. 2023A systematic literature review on source code similarity measurement and clone detection: techniques, applications, and challengescited by 14
  10. 2021Cross-Language Code Search using Static and Dynamic Analysescited by 4
  11. 2020SLACC: Simion-based Language Agnostic Code Clonescited by 3
  12. 2023Unveiling the potential of large language models in generating semantic and cross-language clonescited by 3
1 more
  1. 2022Evaluating the Performance of Clone Detection Tools in Detecting Cloned Co-change Candidatescited by 1

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.