arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.13310cs.SEcs.AIcs.DCcs.ET
收藏

生成式AI用于软件架构:应用、挑战与未来方向

Generative AI for Software Architecture. Applications, Challenges, and Future Directions

University of Oulu, Finland(奥卢大学);Tampere University, Finland(塔尔库大学);University of Arizona, USA(亚利桑那大学);Software Engineering Research Center, IIIT Hyderabad, India(IIIT Hyderabad软件工程研究中心)

Matteo Esposito, Xiaozhou Li, Sergio Moreschini, Noman Ahmad, Tomas Cerny, Karthik Vaidhyanathan, Valentina Lenarduzzi, Davide Taibi

AI总结:

本文通过多声文献综述系统分析了生成式AI在软件架构中的应用、挑战与未来方向,发现其主要用于架构决策支持和重建,但仍面临精度、伦理及评估框架等挑战。

摘要:

背景:生成式人工智能(GenAI)正在变革大部分软件开发,但其在软件架构中的应用仍处于起步阶段,且尚无研究系统探讨该主题。目的:我们旨在系统综合GenAI在软件架构中的使用、原理、背景、可用性及未来挑战。方法:我们进行了多声文献综述(MLR),分析了同行评审文献和灰色文献,识别了当前的实践、模型、采用背景和报告的挑战,并通过开放编码提取主题。结果:我们的综述发现GenAI在架构决策支持和架构重建方面被大量采用。OpenAI GPT模型占据主导地位,且持续使用少样本提示和检索增强生成(RAG)等技术。GenAI主要应用于软件开发生命周期(SDLC)的初始阶段,如需求到架构和架构到代码。单体和微服务架构是主要目标。然而,研究中通常缺乏对GenAI输出的严格测试。最频繁的挑战包括模型精度、幻觉、伦理问题、隐私问题、缺乏架构特定数据集以及缺乏健全的评估框架。结论:GenAI在软件设计中显示出巨大潜力,但在更广泛采用的道路上仍存在若干挑战。研究工作应致力于设计通用评估方法、处理伦理和精度问题、提高透明度和可解释性,并推广架构特定数据集和基准,以弥合理论可能性与实际应用之间的差距。

英文摘要:

Context: Generative Artificial Intelligence (GenAI) is transforming much of software development, yet its application in software architecture is still in its infancy, and no prior study has systematically addressed the topic. Aim: We aim to systematically synthesize the use, rationale, contexts, usability, and future challenges of GenAI in software architecture. Method: We performed a multivocal literature review (MLR), analyzing peer-reviewed and gray literature, identifying current practices, models, adoption contexts, and reported challenges, extracting themes via open coding. Results: Our review identified significant adoption of GenAI for architectural decision support and architectural reconstruction. OpenAI GPT models are predominantly applied, and there is consistent use of techniques such as few-shot prompting and retrieved-augmented generation (RAG). GenAI has been applied mostly to initial stages of the Software Development Life Cycle (SDLC), such as Requirements-to-Architecture and Architecture-to-Code. Monolithic and microservice architectures were the dominant targets. However, rigorous testing of GenAI outputs was typically missing from the studies. Among the most frequent challenges are model precision, hallucinations, ethical aspects, privacy issues, lack of architecture-specific datasets, and the absence of sound evaluation frameworks. Conclusions: GenAI shows significant potential in software design, but several challenges remain on its path to greater adoption. Research efforts should target designing general evaluation methodologies, handling ethics and precision, increasing transparency and explainability, and promoting architecture-specific datasets and benchmarks to bridge the gap between theoretical possibilities and practical use.

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

↑