mlsanityData to 14 Oct 2026

Assessing the Promise and Pitfalls of ChatGPT for Automated Code Generation

arXiv 2311.02640 ↗First posted 5 Nov 2023cs.SE cs.AIcited by 2

Not on the map. Why?

Abstract (arXiv)

This paper presents a comprehensive evaluation of the code generation capabilities of ChatGPT, a prominent large language model, compared to human programmers. A novel dataset of 131 code-generation prompts across 5 categories was curated to enable robust analysis. Code solutions were generated by both ChatGPT and humans for all prompts, resulting in 262 code samples. A meticulous manual assessment methodology prioritized evaluating correctness, comprehensibility, and security using 14 established code quality metrics. The key findings reveal ChatGPT's strengths in crafting concise, efficient code with advanced constructs, showcasing strengths in data analysis tasks (93.1% accuracy) but limitations in visual-graphical challenges. Comparative analysis with human code highlights ChatGPT's inclination towards modular design and superior error handling. Additionally, machine learning models effectively distinguished ChatGPT from human code with up to 88% accuracy, suggesting detectable coding style disparities. By providing profound insights into ChatGPT's code generation capabilities and limitations through quantitative metrics and qualitative analysis, this study makes valuable contributions toward advancing AI-based programming assistants. The curated dataset and methodology offer a robust foundation for future research in this nascent domain. All data and codes are available on https://github.com/DSAatUSU/ChatGPT-promises-and-pitfalls.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 2 of its 34 references that are in the map. First posted on arXiv 5 Nov 2023.

Builds on

2 of 34 references.

References · 2

  1. 2023An Analysis of the Automatic Bug Fixing Performance of ChatGPTcited by 110
  2. 2023Improving ChatGPT Prompt for Code Generationcited by 28

Built on by

Cited by year

Citing papers per year: 2025: 2.

2 papers.