Assessing the Code Clone Detection Capability of Large Language Models
Not on the map. Why?
Abstract (arXiv)
This study aims to assess the performance of two advanced Large Language Models (LLMs), GPT-3.5 and GPT-4, in the task of code clone detection. The evaluation involves testing the models on a variety of code pairs of different clone types and levels of similarity, sourced from two datasets: BigCloneBench (human-made) and GPTCloneBench (LLM-generated). Findings from the study indicate that GPT-4 consistently surpasses GPT-3.5 across all clone types. A correlation was observed between the GPTs' accuracy at identifying code clones and code similarity, with both GPT models exhibiting low effectiveness in detecting the most complex Type-4 code clones. Additionally, GPT models demonstrate a higher performance identifying code clones in LLM-generated code compared to humans-generated code. However, they do not reach impressive accuracy. These results emphasize the imperative for ongoing enhancements in LLM capabilities, particularly in the recognition of code clones and in mitigating their predisposition towards self-generated code clones--which is likely to become an issue as software engineers are more numerous to leverage LLM-enabled code generation and code refactoring tools.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 11 of its 42 references that are in the map. First posted on arXiv 2 Jul 2024.
Builds on
11 of 42 references.
References · 11
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023GPT-4 Technical Reportcited by 18,132
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2023Uncovering ChatGPT's Capabilities in Recommender Systemscited by 160
- 2023Explainable Automated Debugging via Large Language Model-driven Scientific Debuggingcited by 40
- 2023Translating Radiology Reports into Plain Language using ChatGPT and GPT-4 with Prompt Learning: Promising Results, Limitations, and Potentialcited by 39
- 2022Automatic Code Documentation Generation Using GPT-3cited by 37
- 2018Oreo: Detection of Clones in the Twilight Zonecited by 19
- 2018Zero Shot Learning for Code Education: Rubric Sampling with Deep Learning Inferencecited by 16
- 2023Comparing Software Developers with ChatGPT: An Empirical Investigationcited by 11
- 2023Linguistically Informed ChatGPT Prompts to Enhance Japanese-Chinese Machine Translation: A Case Study on Attributive Clausescited by 8
Built on by
Citing papers per year: 2026: 1.
1 paper.