Can ChatGPT Support Developers? An Empirical Evaluation of Large Language Models for Code Generation

被引:5
作者
Jin, Kailun [1 ]
Wang, Chung-Yu [1 ]
Hung Viet Pham [1 ]
Hemmati, Hadi [1 ]
机构
[1] York Univ, Toronto, ON, Canada
来源
2024 IEEE/ACM 21ST INTERNATIONAL CONFERENCE ON MINING SOFTWARE REPOSITORIES, MSR | 2024年
基金
加拿大自然科学与工程研究理事会;
关键词
D O I
10.1145/3643991.3645074
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Large language models (LLMs) have demonstrated notable proficiency in code generation, with numerous prior studies showing their promising capabilities in various development scenarios. However, these studies mainly provide evaluations in research settings, which leaves a significant gap in understanding how effectively LLMs can support developers in real-world. To address this, we conducted an empirical analysis of conversations in DevGPT, a dataset collected from developers' conversations with ChatGPT (captured with the Share Link feature on platforms such as GitHub). Our empirical findings indicate that the current practice of using LLM-generated code is typically limited to either demonstrating high-level concepts or providing examples in documentation, rather than to be used as production-ready code. These findings indicate that there is much future work needed to improve LLMs in code generation before they can be integral parts of modern software development.
引用
收藏
页码:167 / 171
页数:5
相关论文
共 26 条
[1]  
Austin J., 2021, arXiv, DOI DOI 10.48550/ARXIV.2108.07732
[2]   Grounded Copilot: How Programmers Interact with Code-Generating Models [J].
Barke, Shraddha ;
James, Michael B. ;
Polikarpova, Nadia .
PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2023, 7 (OOPSLA)
[3]  
Bird Christian, 2022, ACM Queue, P35, DOI 10.1145/3582083
[4]  
Chen M., 2021, arXiv
[5]   Investigating Code Generation Performance of ChatGPT with Crowdsourcing Social Data [J].
Feng, Yunhe ;
Vanam, Sreecharan ;
Cherukupally, Manasa ;
Zheng, Weijian ;
Qiu, Meikang ;
Chen, Haihua .
2023 IEEE 47TH ANNUAL COMPUTERS, SOFTWARE, AND APPLICATIONS CONFERENCE, COMPSAC, 2023, :876-885
[6]   GPT-3: Its Nature, Scope, Limits, and Consequences [J].
Floridi, Luciano ;
Chiriatti, Massimo .
MINDS AND MACHINES, 2020, 30 (04) :681-694
[7]   Recognizing Bot Activity in Collaborative Software Development [J].
Golzadeh, Mehdi ;
Mens, Tom ;
Decan, Alexandre ;
Constantinou, Eleni ;
Chidambara, Natarajan .
IEEE SOFTWARE, 2022, 39 (05) :56-61
[8]  
Gu AL, 2020, Arxiv, DOI arXiv:1910.09890
[9]  
Lee JY, 2023, Arxiv, DOI arXiv:2310.13229
[10]  
Li RY, 2023, Arxiv, DOI arXiv:2305.06161