mlsanityData to 14 Oct 2026

Selecting and Combining Large Language Models for Scalable Code Clone Detection

arXiv 2510.15480 ↗First posted 17 Oct 2025cs.SE cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

Source code clones pose risks ranging from intellectual property violations to unintended vulnerabilities. Effective and efficient scalable clone detection, especially for diverged clones, remains challenging. Large language models (LLMs) have recently been applied to clone detection tasks. However, the rapid emergence of LLMs raises questions about optimal model selection and potential LLM-ensemble efficacy. This paper addresses the first question by identifying 76 LLMs and filtering them down to suitable candidates for large-scale clone detection. The candidates were evaluated on two public industrial datasets, BigCloneBench, and a commercial large-scale dataset. No uniformly 'best-LLM' emerged, though CodeT5+110M, CuBERT and SPTCode were top-performers. Analysis of LLM-candidates suggested that smaller embedding sizes, smaller tokenizer vocabularies and tailored datasets are advantageous. On commercial large-scale dataset a top-performing CodeT5+110M achieved 39.71% precision: twice the precision of previously used CodeBERT. To address the second question, this paper explores ensembling of the selected LLMs: effort-effective approach to improving effectiveness. Results suggest the importance of score normalization and favoring ensembling methods like maximum or sum over averaging. Also, findings indicate that ensembling approach can be statistically significant and effective on larger datasets: the best-performing ensemble achieved even higher precision of 46.91% over individual LLM on the commercial large-scale code.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 39 of its 77 references that are in the map. First posted on arXiv 17 Oct 2025.

Builds on

39 of 77 references.

References · 39

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2020Language Models are Few-Shot Learnerscited by 32,419
  4. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  5. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  6. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
  7. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,893
  8. 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,918
  9. 2017Billion-scale similarity search with GPUscited by 2,497
  10. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  11. 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,989
  12. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
27 more
  1. 2022LaMDA: Language Models for Dialog Applicationscited by 1,220
  2. 2021Scaling Language Models: Methods, Analysis & Insights from Training Gophercited by 1,202
  3. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 906
  4. 2016Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphscited by 861
  5. 2023StarCoder: may the source be with you!cited by 799
  6. 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 654
  7. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 609
  8. 2022Using DeepSpeed and Megatron to Train Megatron-Turing NLG 530B, A Large-Scale Generative Language Modelcited by 559
  9. 2018code2vec: Learning Distributed Representations of Codecited by 250
  10. 2024More Agents Is All You Needcited by 180
  11. 2023SantaCoder: don't reach for the stars!cited by 170
  12. 2023CodeGen2: Lessons for Training LLMs on Programming and Natural Languagescited by 125
  13. 2020Detecting Code Clones with Graph Neural Networkand Flow-Augmented Abstract Syntax Treecited by 69
  14. 2019TreeGen: A Tree-Based Transformer Architecture for Code Generationcited by 58
  15. 2021A Syntax-Guided Edit Decoder for Neural Program Repaircited by 57
  16. 2015SourcererCC: Scaling Code Clone Detection to Big Codecited by 40
  17. 2022SPT-Code: Sequence-to-Sequence Pre-Training for Learning Source Code Representationscited by 36
  18. 2023Natural Language Generation and Understanding of Big Code for AI-Assisted Programming: A Reviewcited by 32
  19. 2023An Empirical Comparison of Pre-Trained Models of Source Codecited by 25
  20. 2018Oreo: Detection of Clones in the Twilight Zonecited by 19
  21. 2023Towards Understanding the Capability of Large Language Models on Code Clone Detection: A Surveycited by 15
  22. 2024Investigating the Efficacy of Large Language Models for Code Clone Detectioncited by 7
  23. 2019LVMapper: A Large-variance Clone Detector Using Sequencing Alignment Approachcited by 2
  24. 2022Clone Detection on Large Scala Codebasescited by 2
  25. 2024Using Ensemble Inference to Improve Recall of Clone Detectioncited by 2
  26. 2021Using Transformer based Ensemble Learning to classify Scientific Articlescited by 1
  27. 2025Industrial-Scale Neural Network Clone Detection with Disk-Based Similarity Searchcited by 1

Built on by

Not cited yet.