arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.20879cs.SE
收藏

对大型语言模型对软件可变性与可维护性影响的综述:好坏优劣及解决方法

A Survey on Large Language Model Impact on Software Evolvability and Maintainability: the Good, the Bad, the Ugly, and the Remedy

Virginia Commonwealth University(弗吉尼亚联邦大学);Federal Institute of Ceara(塞阿拉联邦学院);Louisiana State University(路易斯安那州立大学)

Bruno Claudino Matias, Savio Freire, Juliana Freitas, Felipe Fronchetti, Kostadin Damevski, Rodrigo Spinola

AI总结:

本文综述了大型语言模型对软件可变性与可维护性的影响,分析了其带来的积极影响、潜在风险及缓解策略。

摘要:

背景。大型语言模型(LLMs)越来越多地嵌入到软件工程工作中,用于代码生成、摘要、修复和测试等任务。实证研究报告了生产力的提升、理解的改善和认知负担的减少。然而,证据仍然零散,持续存在关于幻觉、输出不稳定、方法学限制和新兴形式的技术债务的担忧。这些混合影响如何塑造长期软件的可维护性和可变性仍然不清楚。目标。本研究系统地考察了LLMs如何影响软件系统的可维护性和可变性。我们识别了现有研究中哪些质量属性被解决,LLMs提供的积极影响,它们引入的风险和弱点,以及文献中提出的缓解策略。方法。我们进行了系统文献综述。在ACM DL、IEEE Xplore和Scopus(2020至2024)中搜索得到87项主要研究。通过校准的多研究者过程提取定性证据。属性通过描述性分析进行分析,而影响、风险、弱点和缓解策略则通过混合主题方法进行综合分析,该方法由LLM辅助分析工具支持,并通过人机协同验证。结果。LLMs提供了改善可分析性、可测试性、代码理解、调试支持和自动化修复等好处。然而,它们也引入了风险,包括幻觉或错误的输出、对上下文的脆弱性、有限的领域推理、性能不稳定以及当前评估中的缺陷,这些威胁着长期的可变性。结论。LLMs可以加强可维护性和可变性,但它们也对长期可持续性提出了非 trivial 的风险。负责任的采用需要防护措施、严格评估和结构化的人员监督。

英文摘要:

Context. Large Language Models (LLMs) are increasingly embedded in software engineering workflows for tasks including code generation, summarization, repair, and testing. Empirical studies report productivity gains, improved comprehension, and reduced cognitive load. However, evidence remains fragmented, and concerns persist about hallucinations, unstable outputs, methodological limitations, and emerging forms of technical debt. How these mixed effects shape long-term software maintainability and evolvability remains unclear. Objectives. This study systematically examines how LLMs influence the maintainability and evolvability of software systems. We identify which quality attributes are addressed in existing research, the positive impacts LLMs provide, the risks and weaknesses they introduce, and the mitigation strategies proposed in the literature. Method. We conducted a systematic literature review. Searches across ACM DL, IEEE Xplore, and Scopus (2020 to 2024) yielded 87 primary studies. Qualitative evidence was extracted through a calibrated multi-researcher process. Attributes were analyzed descriptively, while impacts, risks, weaknesses, and mitigation strategies were synthesized using a hybrid thematic approach supported by an LLM-assisted analysis tool with human-in-the-loop validation. Results. LLMs provide benefits such as improved analyzability, testability, code comprehension, debugging support, and automated repair. However, they also introduce risks, including hallucinated or incorrect outputs, brittleness to context, limited domain reasoning, unstable performance, and flaws in current evaluations, which threaten long-term evolvability. Conclusion. LLMs can strengthen maintainability and evolvability, but they also pose nontrivial risks to long-term sustainability. Responsible adoption requires safeguards, rigorous evaluation, and structured human oversight.

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

↑