LLMs for Generation of Architectural Components: An Exploratory Empirical Study in the Serverless World

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Arun, Shrikara, Tedla, Meghana, Vaidhyanathan, Karthik
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912219766194176
author Arun, Shrikara
Tedla, Meghana
Vaidhyanathan, Karthik
author_facet Arun, Shrikara
Tedla, Meghana
Vaidhyanathan, Karthik
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2502_02539
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle LLMs for Generation of Architectural Components: An Exploratory Empirical Study in the Serverless World
Arun, Shrikara
Tedla, Meghana
Vaidhyanathan, Karthik
Software Engineering
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.
title LLMs for Generation of Architectural Components: An Exploratory Empirical Study in the Serverless World
topic Software Engineering
url https://arxiv.org/abs/2502.02539