[论文解读] A Survey on Large Language Model Impact on Software Evolvability and Maintainability: the Good, the Bad, the Ugly, and the Remedy
该论文通过结构化的文献综述系统性评估了大型语言模型(LLMs)对软件可维护性与可演化性的影响,总结了通过结构化文献综合得到的收益、风险、弱点及缓解策略。
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.
研究动机与目标
- 识别在软件工程任务中使用LLMs时所涉及的可维护性与可演化性属性。
- 总结LLMs对软件可持续性的正面影响(Good)。
- 识别影响可维护性与可演化性的LLMs的弱点与风险(Bad与Ugly)。
- 提出缓解策略以解决已识别的弱点(Remedy)。
提出的方法
- 对2020年至2024年底在ACM DL、IEEE Xplore和Scopus中的研究进行系统文献综述。
- 筛选711项研究以选择87篇原始论文进行深入分析。
- 应用经过校准的多研究者数据提取流程,进行独立编码与裁定。
- 使用带人工参与验证的混合定性综合,并辅以LLM辅助分析工具(ThemeCrafter)进行分析。
- 将定性编码建立在ISO/IEC 9126和Breivold等人关于可演化性属性的框架之上,并保留用于可追溯性的引用。
实验结果
研究问题
- RQ1RQ1:在软件工程任务中使用LLMs,哪些可维护性与可演化性属性得到涉及?
- RQ2RQ2:LLMs为软件可演化性与可维护性提供了哪些正面影响?
- RQ3RQ3:LLMs在软件可演化性与可维护性方面表现出哪些弱点?
- RQ4RQ4:LLMs本身在关于软件可演化性与可维护性方面存在哪些弱点?
- RQ5RQ5:如何缓解LLMs的弱点以更好地支持软件的可演化性与可维护性?
主要发现
- LLMs可以提高可分析性、可测试性、代码理解、调试支持和自动修复的有效性。
- LLMs引入的风险包括幻觉、对上下文的脆弱敏感性、领域推理能力受限、性能不稳定以及评估缺陷。
- 当前证据凸显结构性弱点,可能威胁长期的可演化性与可持续性。
- 缓解策略包括混合流水线、人工参与验证、提示工程和保护机制。
- 研究提供了一个将可维护性与可演化性属性映射到LLM辅助的软件工程活动的框架。
- 提出的缓解策略的汇总概览,用以应对已识别的风险与弱点。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。