Towards Understanding the Capability of Large Language Models on Code Clone Detection: A Survey
Not on the map. Why?
Abstract (arXiv)
Code cloning, the duplication of code fragments, is common in software development. While some reuse aids productivity, excessive cloning hurts maintainability and introduces bugs. Hence, automatic code clone detection is vital. Meanwhile, large language models (LLMs) possess diverse code-related knowledge, making them versatile for various software engineering challenges. However, LLMs' performance in code clone detection is unclear and needs more study for accurate assessment. In this paper, we provide the first comprehensive evaluation of LLMs for clone detection, covering different clone types, languages, and prompts. We find advanced LLMs excel in detecting complex semantic clones, surpassing existing methods. Adding intermediate reasoning steps via chain-of-thought prompts noticeably enhances performance. Additionally, representing code as vector embeddings, especially with text encoders, effectively aids clone detection.Lastly, the ability of LLMs to detect code clones differs among various programming languages. Our study suggests that LLMs have potential for clone detection due to their language capabilities, offering insights for developing robust LLM-based methods to enhance software engineering.
Key facts. Cited by 14 papers in the map (data through 7 Oct 2026). First posted on arXiv 2 Aug 2023.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2023: 2; 2024: 6; 2025: 2; 2026: 4.
14 papers.
Sort:
By area:
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Codecited by 62
- 2025Improving RL Exploration for LLM Reasoning through Retrospective Replaycited by 19
- 2024Investigating the Efficacy of Large Language Models for Code Clone Detectioncited by 7
- 2024Is Functional Correctness Enough to Evaluate Code Language Models? Exploring Diversity of Generated Codescited by 5
- 2024DocFusion: A Unified Framework for Document Parsing Taskscited by 5
- 2024The Struggles of LLMs in Cross-lingual Code Clone Detectioncited by 3
- 2024Integrating Large Language Models and Reinforcement Learning for Non-Linear Reasoningcited by 1
- 2024Beyond Keywords: A Context-based Hybrid Approach to Mining Ethical Concern-related App Reviewscited by 1
- 2025Selecting and Combining Large Language Models for Scalable Code Clone Detectioncited by 0
- 2026One Model, Many Skills: Parameter-Efficient Fine-Tuning for Multitask Code Analysiscited by 0
- 2026LLMSniffer: Detecting LLM-Generated Code via GraphCodeBERT and Supervised Contrastive Learningcited by 0
- 2026A Unified Model for Cross-Domain Clone Detection via Model Merging4 Aug 2026
- 2026Standing on the Shoulders of Giants: Stabilized Knowledge Distillation for Cross--Language Code Clone Detection4 May 2026
- 2026LLMSniffer: Detecting LLM-Generated Code via GraphCodeBERT and Supervised Contrastive Learning17 Apr 2026
- 2026One Model, Many Skills: Parameter-Efficient Fine-Tuning for Multitask Code Analysis3 Feb 2026
- 2025Selecting and Combining Large Language Models for Scalable Code Clone Detection17 Oct 2025
- 2025Improving RL Exploration for LLM Reasoning through Retrospective Replay19 Apr 2025
- 2024DocFusion: A Unified Framework for Document Parsing Tasks17 Dec 2024
- 2024Beyond Keywords: A Context-based Hybrid Approach to Mining Ethical Concern-related App Reviews11 Nov 2024
- 2024Integrating Large Language Models and Reinforcement Learning for Non-Linear Reasoning17 Oct 2024
- 2024Is Functional Correctness Enough to Evaluate Code Language Models? Exploring Diversity of Generated Codes24 Aug 2024
- 2024The Struggles of LLMs in Cross-lingual Code Clone Detection8 Aug 2024
- 2024Investigating the Efficacy of Large Language Models for Code Clone Detection24 Jan 2024
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Codecited by 62
- 2024Investigating the Efficacy of Large Language Models for Code Clone Detectioncited by 7
- 2024Is Functional Correctness Enough to Evaluate Code Language Models? Exploring Diversity of Generated Codescited by 5
- 2024DocFusion: A Unified Framework for Document Parsing Taskscited by 5
- 2024The Struggles of LLMs in Cross-lingual Code Clone Detectioncited by 3
- 2024Beyond Keywords: A Context-based Hybrid Approach to Mining Ethical Concern-related App Reviewscited by 1
- 2025Selecting and Combining Large Language Models for Scalable Code Clone Detectioncited by 0
- 2026One Model, Many Skills: Parameter-Efficient Fine-Tuning for Multitask Code Analysiscited by 0
- 2026LLMSniffer: Detecting LLM-Generated Code via GraphCodeBERT and Supervised Contrastive Learningcited by 0
- 2026Standing on the Shoulders of Giants: Stabilized Knowledge Distillation for Cross--Language Code Clone Detectioncited by 0
- 2026A Unified Model for Cross-Domain Clone Detection via Model Mergingcited by 0
- 2026A Unified Model for Cross-Domain Clone Detection via Model Merging4 Aug 2026
- 2026Standing on the Shoulders of Giants: Stabilized Knowledge Distillation for Cross--Language Code Clone Detection4 May 2026
- 2026LLMSniffer: Detecting LLM-Generated Code via GraphCodeBERT and Supervised Contrastive Learning17 Apr 2026
- 2026One Model, Many Skills: Parameter-Efficient Fine-Tuning for Multitask Code Analysis3 Feb 2026
- 2025Selecting and Combining Large Language Models for Scalable Code Clone Detection17 Oct 2025
- 2024DocFusion: A Unified Framework for Document Parsing Tasks17 Dec 2024
- 2024Beyond Keywords: A Context-based Hybrid Approach to Mining Ethical Concern-related App Reviews11 Nov 2024
- 2024Is Functional Correctness Enough to Evaluate Code Language Models? Exploring Diversity of Generated Codes24 Aug 2024
- 2024The Struggles of LLMs in Cross-lingual Code Clone Detection8 Aug 2024
- 2024Investigating the Efficacy of Large Language Models for Code Clone Detection24 Jan 2024
- 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Code14 Nov 2023
- 2023Large Language Models for Software Engineering: A Systematic Literature Review21 Aug 2023
Similar, not cited
Close in wording, no citation either way
- 2023On Extracting Specialized Code Abilities from Large Language Models: A Feasibility Study
- 2025Functional Consistency of LLM Code Embeddings: A Self-Evolving Data Synthesis Framework for Benchmarking
- 2026Evaluating Language Models on Cross-Language Code Functional Equivalence
- 2026An Empirical Evaluation of LLM-Based Approaches for Code Vulnerability Detection: RAG, SFT, and Dual-Agent Systems
- 2026AdaptEval: A Benchmark for Evaluating Large Language Models on Code Snippet Adaptation
- 2025CodeMirage: A Multi-Lingual Benchmark for Detecting AI-Generated and Paraphrased Source Code from Production-Level LLMs
- 2025CoRe: Benchmarking LLMs Code Reasoning Capabilities through Static Analysis Tasks
- 2024CodeMMLU: A Multi-Task Benchmark for Assessing Code Understanding & Reasoning Capabilities of CodeLLMs