LLMs for Generation of Architectural Components: An Exploratory Empirical Study in the Serverless World
Not on the map. Why?
Abstract (arXiv)
Recently, the exponential growth in capability and pervasiveness of Large Language Models (LLMs) has led to significant work done in the field of code generation. However, this generation has been limited to code snippets. Going one step further, our desideratum is to automatically generate architectural components. This would not only speed up development time, but would also enable us to eventually completely skip the development phase, moving directly from design decisions to deployment. To this end, we conduct an exploratory study on the capability of LLMs to generate architectural components for Functions as a Service (FaaS), commonly known as serverless functions. The small size of their architectural components make this architectural style amenable for generation using current LLMs compared to other styles like monoliths and microservices. We perform the study by systematically selecting open source serverless repositories, masking a serverless function and utilizing state of the art LLMs provided with varying levels of context information about the overall system to generate the masked function. We evaluate correctness through existing tests present in the repositories and use metrics from the Software Engineering (SE) and Natural Language Processing (NLP) domains to evaluate code quality and the degree of similarity between human and LLM generated code respectively. Along with our findings, we also present a discussion on the path forward for using GenAI in architectural component generation.
Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). First posted on arXiv 4 Feb 2025.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2025: 2; 2026: 6.
8 papers.
- 2025Generative AI for Software Architecture. Applications, Challenges, and Future Directionscited by 15
- 2025Generating Energy-Efficient Code via Large-Language Models -- Where are we now?cited by 5
- 2026Can AI Agents Generate Microservices? How Far are We?cited by 1
- 2026Evaluating Large Language Models for Detecting Architectural Decision Violationscited by 0
- 2026LLM-based Automated Architecture View Generation: Where Are We Now?cited by 0
- 2026Toward a Sustainable Software Architecture Community: Evaluating ICSA's Environmental Impactcited by 0
- 2026Using LLMs in Software Design: An Empirical Study of GitHub and A Practitioner Surveycited by 0
- 2026Architectural Constraints Alignment in AI-assisted, Platform-based Service Developmentcited by 0
- 2026Architectural Constraints Alignment in AI-assisted, Platform-based Service Development6 May 2026
- 2026Using LLMs in Software Design: An Empirical Study of GitHub and A Practitioner Survey2 May 2026
- 2026Toward a Sustainable Software Architecture Community: Evaluating ICSA's Environmental Impact5 Apr 2026
- 2026LLM-based Automated Architecture View Generation: Where Are We Now?22 Mar 2026
- 2026Can AI Agents Generate Microservices? How Far are We?9 Mar 2026
- 2026Evaluating Large Language Models for Detecting Architectural Decision Violations7 Feb 2026
- 2025Generating Energy-Efficient Code via Large-Language Models -- Where are we now?12 Sep 2025
- 2025Generative AI for Software Architecture. Applications, Challenges, and Future Directions17 Mar 2025