arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2610.24093cs.SEcs.AI
收藏

AI辅助开发会使软件同质化吗?代码相似性、质量与演化的实证研究

Does AI-Assisted Development Homogenize Software? An Empirical Study of Code Similarity, Quality, and Evolution

Université de Montréal(蒙特利尔大学);University of York(约克大学);Université de Rennes(雷恩大学)

Luciano Marchezan, Romain Lefeuvre, Kevin Delcourt, Benoit Combemale, Houari Sahraoui

AI总结:

本研究通过对50个Java和Python开源项目的实证分析,发现AI辅助开发未使代码同质化,Java质量稳定且智能体时代代码异味更少,挑战了AI辅助开发的负面假设。

摘要:

AI辅助软件开发正从交互式大语言模型(LLM)辅助向自主执行软件工程任务的智能体系统演进,但这一转变的影响仍未得到充分理解。我们对50个长期存在的Java和Python开源项目开展了涵盖三个时代的实证研究:前LLM时代、潜在LLM辅助时代以及已检测到的智能体开发时代。利用Software Heritage的快照,我们考察了代码相似性、软件质量和软件演化。相似性通过基于嵌入的余弦相似度进行语义测量,通过CodeBLEU*进行句法测量;质量通过SonarQube指标评估,涵盖可维护性、复杂性、可靠性和安全性;演化通过代码行数(LOC)、函数、类、文件和语句的年化增长率,以及每个快照前三个月的提交活动来表征。结果显示,没有一致证据表明相似性增加:与前LLM时代相比,Java在LLM时代和智能体时代的语义和句法相似性均显著下降,而Python未显示显著差异。软件质量基本保持稳定,尽管智能体时代的代码异味和SQALE指数密度显著更低。智能体时代的结构增长总体较低,尤其是文件数量,而Java的开发活动适度增加,尤其是提交次数和新增代码行。这些发现挑战了LLM和智能体辅助开发必然使代码同质化、降低质量或加速增长的假设。

英文摘要:

AI-assisted software development is evolving from interactive LLM assistance toward agentic systems that autonomously perform software engineering tasks, yet the effects of this shift remain insufficiently understood. We present an empirical study of 50 long-lived Java and Python open-source projects across three eras: pre-LLM, potentially LLM-assisted, and detected agentic development. Using snapshots from Software Heritage, we examine code similarity, software quality, and software evolution. Similarity is measured semantically through embedding-based cosine similarity and syntactically through CodeBLEU*. Quality is assessed with SonarQube metrics covering maintainability, complexity, reliability, and security. Evolution is characterized by annualized growth rates of LOC, functions, classes, files, and statements, and by commit activity in the three months preceding each snapshot. Results show no consistent evidence of increased similarity as semantic and syntactic similarity decreased significantly in Java for both the LLM and agentic eras relative to the pre-LLM era, while Python showed no significant differences. Software quality remained largely stable, although the agentic era showed significantly lower code-smell and SQALE index densities. Structural growth was generally lower in the agentic era, particularly for files, whereas development activity increased moderately in Java, especially in commits and added lines. These findings challenge the assumption that LLM- and agent-assisted development necessarily homogenizes code, degrades quality, or accelerates growth.

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

↑