arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.25146cs.SEcs.AI
收藏

影响人工智能生成代码质量的因素:一项经验证据的综合分析

Factors Influencing the Quality of AI-Generated Code: A Synthesis of Empirical Evidence

Queen’s University Belfast(贝尔法斯特女王大学);Azerbaijan Technical University(阿塞拜疆技术大学);MilliSoft MMC Corporation(MilliSoft MMC公司);Bilkent University(比尔肯特大学)

Vehid Geruslu, Zulfiyya Aliyeva, Eray Tüzün

AI总结:

本研究综合现有经验证据,分析影响人工智能生成源代码质量的因素,并探讨这些因素在不同评估情境下的影响。

摘要:

背景:人工智能辅助代码生成工具的快速采用正在改变软件开发实践。尽管这些工具承诺显著提高生产效率,但关于人工智能生成代码的质量、可靠性和安全性的担忧在学术界和工业界日益增加。--目标:本研究旨在系统地综合现有经验证据,分析影响人工智能生成源代码质量的因素,并探讨这些因素如何影响不同评估情境下的软件质量结果。--方法:我们遵循已建立的指南进行了系统性文献综述(SLR),并辅以由人工智能辅助的工作流程并由人类监督。通过在主要数字图书馆中的结构化搜索和筛选过程,共选择了24项主要研究。数据通过定性、基于模式的证据综合方法进行提取和分析。--结果:发现显示,人工智能辅助开发中的代码质量受人类因素、人工智能系统特征和人类与人工智能交互动态的综合作用影响。关键影响因素包括提示设计、任务规范和开发者专业能力。结果还显示,正确性、安全性、可维护性和复杂性等质量结果在不同研究中存在差异,既有改进也有风险。--结论:人工智能辅助代码生成代表了软件工程中的社会技术转变,其中高质量结果的实现依赖于技术和人类因素。尽管有前景,但人工智能生成的代码需要仔细验证并整合到开发流程中。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑