Refining ChatGPT-Generated Code: Characterizing and Mitigating Code Quality Issues
Monash University · Singapore Management University · +2 more institutions
Abstract
Since its introduction in November 2022, ChatGPT has rapidly gained popularity due to its remarkable ability in language understanding and human-like responses. ChatGPT, based on GPT-3.5 architecture, has shown great promise for revolutionizing various research fields, including code generation. However, the reliability and quality of code generated by ChatGPT remain unexplored, raising concerns about potential risks associated with the widespread use of ChatGPT-driven code generation. In this article, we systematically study the quality of 4,066 ChatGPT-generated programs of code implemented in two popular programming languages, i.e., Java and Python, for 2,033 programming tasks. The goal of this work is…
Citation impact
- FWCI
- 11.94
- Percentile
- 100%
- References
- 48
Authors
7Topics & keywords
- Computer science
- Refining (metallurgy)
- Code (set theory)
- Quality (philosophy)
- Programming language
- Chemistry