
RG
Ruofan Gao, Amjed Tahir, Peng Liang, Teo Susnjak, Ali Soltanian Fard Jahromi, Foutse Khomh
· 1 min read
ResearcharXiv cs.AI
A Survey of Bugs in AI-Generated Code
arXiv:2512.05239v2 Announce Type: replace-cross
Abstract: AI coding systems are increasingly used to help developers write code at scale, improving software development efficiency and boosting productivity. While these models and agents have shown strong performance, concerns persist regarding the quality of the AI-generated code. Although prior work has reported a range of quality issues associated with AI-generated code, these findings remain scattered and lack a systematic synthesis. A comprehensive review is lacking that demonstrates the bug types, patterns, distribution, their correlation with specific AI coding systems, and the remediation strategies proposed to address them. To fill this gap, we conduct a systematic literature review of existing studies on AI-generated code to develop a comprehensive understanding of bugs in the generated code and provide a foundation for future improvements in AI-assisted coding. Our results show that bugs are widespread in AI-generated code, with functional and stability bugs emerging as the most frequently reported categories across the reviewed studies, a substantial proportion of which is attributed to model hallucination. Model size, instruction-following capability, and the quality and diversity of training data are key factors influencing bug occurrence. To mitigate bugs, prompt engineering techniques are widely used; however, certain domain-specific or semantically complex issues remain difficult to resolve automatically and still require human intervention.
Original source
This story was published by arXiv cs.AI and written by Ruofan Gao, Amjed Tahir, Peng Liang, Teo Susnjak, Ali Soltanian Fard Jahromi, Foutse Khomh. SyncAI.news shows a preview; the complete article is on the publisher's site.
Read the full story on arxiv.org


