[Paper Review] Factors Influencing the Quality of AI-Generated Code: A Synthesis of Empirical Evidence
A systematic literature review synthesizing empirical evidence on factors that influence the quality of AI-generated source code, highlighting human factors, AI system characteristics, and human-AI interaction dynamics.
Context: The rapid adoption of AI-assisted code generation tools, such as large language models (LLMs), is transforming software development practices. While these tools promise significant productivity gains, concerns regarding the quality, reliability, and security of AI-generated code are increasingly reported in both academia and industry. --Objective: This study aims to systematically synthesize existing empirical evidence on the factors influencing the quality of AI-generated source code and to analyze how these factors impact software quality outcomes across different evaluation contexts. --Method: We conducted a systematic literature review (SLR) following established guidelines, supported by an AI-assisted workflow with human oversight. A total of 24 primary studies were selected through a structured search and screening process across major digital libraries. Data were extracted and analyzed using qualitative, pattern-based evidence synthesis. --Results: The findings reveal that code quality in AI-assisted development is influenced by a combination of human factors, AI system characteristics, and human AI interaction dynamics. Key influencing factors include prompt design, task specification, and developer expertise. The results also show variability in quality outcomes such as correctness, security, maintainability, and complexity across studies, with both improvements and risks reported. --Conclusion: AI-assisted code generation represents a socio-technical shift in software engineering, where achieving high-quality outcomes depends on both technological and human factors. While promising, AI-generated code requires careful validation and integration into development workflows.
Motivation & Objective
- Motivate the study by the rapid adoption of AI-assisted code generation tools and concerns about quality, reliability, and security.
- Systematically synthesize existing empirical evidence on factors influencing AI-generated code quality.
- Analyze how these factors impact software quality outcomes across different evaluation contexts.
Proposed method
- Conduct a systematic literature review (SLR) following established guidelines.
- Use an AI-assisted workflow with human oversight to support study selection and data extraction.
- Select 24 primary studies through structured search and screening across major digital libraries.
- Extract and analyze data using qualitative, pattern-based evidence synthesis.
Experimental results
Research questions
- RQ1What factors influence the quality of AI-generated source code in empirical studies?
- RQ2How do these factors affect software quality outcomes such as correctness, security, maintainability, and complexity?
- RQ3How do human factors, AI system characteristics, and human-AI interaction dynamics interact to shape code quality?
- RQ4What are the variations in quality outcomes across different evaluation contexts?
Key findings
- Code quality in AI-assisted development arises from a combination of human factors, AI system characteristics, and interaction dynamics.
- Key influencing factors include prompt design, task specification, and developer expertise.
- Quality outcomes vary across studies, with both improvements and risks reported for correctness, security, maintainability, and complexity.
- AI-assisted code generation represents a socio-technical shift requiring careful validation and integration into workflows.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.