arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2502.14450cs.SEcs.DC
收藏

LLM4FaaS:利用大语言模型与函数即服务实现无代码应用开发

LLM4FaaS: No-Code Application Development using LLMs and FaaS

TU Berlin(柏林工业大学)

Minghe Wang, Tobias Pfandzelter, Trever Schirmer, David Bermbach

AI总结:

本文提出LLM4FaaS方法,将大语言模型与FaaS平台结合,使非技术用户仅用自然语言即可无代码构建和运行应用,实验表明其自动构建部署成功率达71.47%,显著优于现有基线。

摘要:

大语言模型(LLMs)在根据自然语言描述生成代码方面展现出强大能力,使编程能力更接近非技术用户。然而,它们在运行所生成代码方面缺乏专业知识,这仍然是实现定制化应用的关键障碍。函数即服务(FaaS)平台为代码执行和部署提供了高层次的抽象,允许用户运行LLM生成的代码,而无需技术专业知识或承担运维开销。本文提出了LLM4FaaS,这是一种无代码应用开发方法,将LLMs与FaaS平台集成,使非技术用户仅使用自然语言即可构建和运行定制化应用。通过FaaS部署LLM生成的代码,LLM4FaaS抽象掉了基础设施管理和样板代码生成。我们基于一个开源FaaS平台实现了概念验证原型,并使用来自非技术用户的真实提示词对其进行评估。使用GPT-4o进行的实验表明,LLM4FaaS能够在71.47%的情况下自动构建和部署代码,优于非FaaS基线的43.48%和现有基于LLM平台的14.55%,缩小了与人类表现88.99%的差距。对代码质量、编程语言多样性、延迟和一致性的进一步分析表明,该方法在效率、可维护性和可用性方面表现出均衡的性能。

英文摘要:

Large language models (LLMs) show great capabilities in generating code from natural language descriptions, bringing programming power closer to non-technical users. However, their lack of expertise in operating the generated code remains a key barrier to realizing customized applications. Function-as-a-Service (FaaS) platforms offer a high level of abstraction for code execution and deployment, allowing users to run LLM-generated code without requiring technical expertise or incurring operational overhead. In this paper, we present LLM4FaaS, a no-code application development approach that integrates LLMs and FaaS platforms to enable non-technical users to build and run customized applications using only natural language. By deploying LLM-generated code through FaaS, LLM4FaaS abstracts away infrastructure management and boilerplate code generation. We implement a proof-of-concept prototype based on an open-source FaaS platform, and evaluate it using real prompts from non-technical users. Experiments with GPT-4o show that LLM4FaaS can automatically build and deploy code in 71.47% of cases, outperforming a non-FaaS baseline at 43.48% and an existing LLM-based platform at 14.55%, narrowing the gap to human performance at 88.99%. Further analysis of code quality, programming language diversity, latency, and consistency demonstrates a balanced performance in terms of efficiency, maintainability and availability.

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

↑