A Survey of Bugs in AI-Generated Code
Gao, Ruofan, Tahir, Amjed, Liang, Peng, Susnjak, Teo, Khomh, Foutse
–arXiv.org Artificial Intelligence
Developers are widely using AI code-generation models, aiming to increase productivity and efficiency. However, there are also quality concerns regarding the AI-generated code. The generated code is produced by models trained on publicly available code, which are known to contain bugs and quality issues. Those issues can cause trust and maintenance challenges during the development process. Several quality issues associated with AI-generated code have been reported, including bugs and defects. However, these findings are often scattered and lack a systematic summary. A comprehensive review is currently lacking to reveal the types and distribution of these errors, possible remediation strategies, as well as their correlation with the specific models. In this paper, we systematically analyze the existing AI-generated code literature to establish an overall understanding of bugs and defects in generated code, providing a reference for future model improvement and quality assessment. We aim to understand the nature and extent of bugs in AI-generated code, and provide a classification of bug types and patterns present in code generated by different models. We also discuss possible fixes and mitigation strategies adopted to eliminate bugs from the generated code.
arXiv.org Artificial Intelligence
Dec-8-2025
- Country:
- Asia
- China > Hubei Province
- Wuhan (0.04)
- Middle East > Iran
- Tehran Province > Tehran (0.04)
- China > Hubei Province
- Europe > United Kingdom
- England > Staffordshire > Keele (0.04)
- North America > Canada
- Oceania > New Zealand
- North Island > Manawatū-Whanganui > Palmerston North (0.04)
- South America > Chile
- Asia
- Genre:
- Overview (1.00)
- Research Report
- Experimental Study (1.00)
- New Finding (1.00)
- Industry:
- Technology:
- Information Technology
- Artificial Intelligence
- Machine Learning > Neural Networks
- Deep Learning (1.00)
- Natural Language
- Chatbot (1.00)
- Large Language Model (1.00)
- Representation & Reasoning > Agents (0.92)
- Machine Learning > Neural Networks
- Data Science > Data Mining (1.00)
- Information Management > Search (1.00)
- Software > Programming Languages (1.00)
- Artificial Intelligence
- Information Technology