arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.19043cs.SEcs.AI
收藏

利用反馈循环实现基于大语言模型(LLM)的基础设施即代码(IaC)生成

Using a Feedback Loop for LLM-based Infrastructure as Code Generation

Irvington High School(欧文顿高中);Barnard College, Columbia University(哥伦比亚大学巴纳德学院)

Mayur Amarnath Palavalli, Mark Santolucito

AI总结:

针对LLM代码生成对基础设施管理等周边任务影响有限的问题,研究LLM智能体利用IaC范式构建基础设施的能力,通过反馈循环返回IaC错误与警告以改进代码,发现循环有效性呈指数级下降至失效。

摘要:

大语言模型(LLMs)辅助的代码生成已提升软件开发者在编码任务中的生产力,但尚未对代码相关的周边开发任务产生显著影响。基础设施管理的挑战尤其仍是一个悬而未决的问题。我们研究了LLM智能体利用基础设施即代码(IaC)范式构建基础设施的能力,重点探究了反馈循环的使用——该循环会返回生成IaC的错误与警告,以让LLM智能体改进代码。研究发现,在循环的每次迭代中,其有效性呈指数级下降,直至在某一点趋于平稳并失效。

英文摘要:

Code generation with Large Language Models (LLMs) has helped to increase software developer productivity in coding tasks, but has yet to have significant impact on the tasks of software developers that surround this code. In particular, the challenge of infrastructure management remains an open question. We investigate the ability of an LLM agent to construct infrastructure using the Infrastructure as Code (IaC) paradigm. We particularly investigate the use of a feedback loop that returns errors and warnings on the generated IaC to allow the LLM agent to improve the code. We find that, for each iteration of the loop, its effectiveness decreases exponentially until it plateaus at a certain point and becomes ineffective.

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

↑