Assessing the Code Clone Detection Capability of Large Language Models

被引:0
|
作者
Zhang, Zixian [1 ]
Saber, Takfarinas [1 ]
机构
[1] Univ Galway, Sch Comp Sci, Galway, Ireland
基金
爱尔兰科学基金会;
关键词
Code Clone Detection; Large Language Models (LLMs); GPT-3.5; GPT-4; Semantic Analysis;
D O I
10.1109/ICCQ60895.2024.10576803
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
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.
引用
收藏
页数:9
相关论文
共 50 条
  • [21] Code Soliloquies for Accurate Calculations in Large Language Models
    Sonkar, Shashank
    Chen, Xinghe
    Le, MyCo
    Liu, Naiming
    Mallick, Debshila Basu
    Baraniuk, Richard G.
    FOURTEENTH INTERNATIONAL CONFERENCE ON LEARNING ANALYTICS & KNOWLEDGE, LAK 2024, 2024, : 828 - 835
  • [22] Analyzing Declarative Deployment Code with Large Language Models
    Lanciano, Giacomo
    Stein, Manuel
    Hilt, Volker
    Cucinotta, Tommaso
    PROCEEDINGS OF THE 13TH INTERNATIONAL CONFERENCE ON CLOUD COMPUTING AND SERVICES SCIENCE, CLOSER 2023, 2023, : 289 - 296
  • [23] OCTOPACK: INSTRUCTION TUNING CODE LARGE LANGUAGE MODELS
    Muennighoff, Niklas
    Liu, Qian
    Zebaze, Armel
    Zheng, Qinkai
    Hui, Binyuan
    Zhuo, Terry Yue
    Singh, Swayam
    Tang, Xiangru
    von Werra, Leandro
    Longpre, Shayne
    arXiv, 2023,
  • [24] Prioritizing Code Clone Detection Results for Clone Management
    Venkatasubramanyam, Radhika D.
    Gupta, Shrinath
    Singh, Himanshu Kumar
    2013 7TH INTERNATIONAL WORKSHOP ON SOFTWARE CLONES (IWSC), 2013, : 30 - 36
  • [25] Evaluating Impact of Conventional Code Analysis Against Large Language Models in API Vulnerability Detection
    Yildirim, Recep
    Aydin, Kerem
    Cetin, Orcun
    PROCEEDINGS OF THE 2024 EUROPEAN INTERDISCIPLINARY CYBERSECURITY CONFERENCE, EICC 2024, 2024, : 57 - 64
  • [26] Occlusion-Based Detection of Trojan-Triggering Inputs in Large Language Models of Code
    Hussain, Aftab
    Rabin, Md Rafiqul Islam
    Ahmed, Tofique
    Alipour, Mohammad Amin
    Xu, Bowen
    SSRN,
  • [27] TransClone: A Language Agnostic Code Clone Detector
    Pinku, Subroto Nag
    Mondal, Debajyoti
    Roy, Chanchal K.
    2023 IEEE 17TH INTERNATIONAL WORKSHOP ON SOFTWARE CLONES, IWSC 2023, 2023, : 29 - 32
  • [28] CCFinder: A multilinguistic token-based code clone detection system for large scale source code
    Kamiya, T
    Kusumoto, S
    Inoue, K
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2002, 28 (07) : 654 - 670
  • [29] Assessing and alleviating state anxiety in large language models
    Ziv Ben-Zion
    Kristin Witte
    Akshay K. Jagadish
    Or Duek
    Ilan Harpaz-Rotem
    Marie-Christine Khorsandian
    Achim Burrer
    Erich Seifritz
    Philipp Homan
    Eric Schulz
    Tobias R. Spiller
    npj Digital Medicine, 8 (1)
  • [30] Assessing the Neuropsychology Information Base of Large Language Models
    Kronenberger, Oscar
    Bullinger, Leah
    Kaser, Alyssa N.
    Cullum, Munro C.
    Schaffert, Jeffrey
    Harder, Lana
    Lacritz, Laura
    ARCHIVES OF CLINICAL NEUROPSYCHOLOGY, 2024,