arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2307.04945cs.NIcs.PL
收藏

LLM 需要什么才能合成正确的路由器配置?

What do LLMs need to Synthesize Correct Router Configurations?

Rajdeep Mondal, Alan Tang, Ryan Beckett, Todd Millstein, George Varghese

AI总结:

本文研究大语言模型合成路由器配置的能力,发现 GPT-4 单独使用时错误严重,因此提出结合验证器与局部化反馈的“验证提示编程”方法,在 Juniper 翻译和 no-transit 策略实现中分别取得 10 倍和 6 倍的自动化杠杆率。

摘要:

我们研究了大语言模型(例如 GPT-4)能否在减少人工投入的情况下合成正确的路由器配置。我们发现 GPT-4 单独工作的效果非常差,它虽然能生成看起来有希望的配置草稿,但在拓扑、语法和语义上存在严重错误。我们的策略称为“验证提示编程”(Verified Prompt Programming),其思路是将 GPT-4 与验证器结合,并利用验证器提供的局部化反馈自动纠正错误。验证要有效,需要一份规范说明和可操作的局部化反馈。我们展示了两个用例的结果:在单台路由器上将 Cisco 配置翻译为 Juniper 配置,以及在多台路由器上实现 no-transit 策略。虽然仍然需要人工输入,但如果将杠杆率定义为自动提示次数与人工提示次数之比,我们的实验表明,Juniper 翻译的杠杆率为 10 倍,实现 no-transit 策略的杠杆率为 6 倍,最终得到经过验证的配置。

英文摘要:

We investigate whether Large Language Models (e.g., GPT-4) can synthesize correct router configurations with reduced manual effort. We find GPT-4 works very badly by itself, producing promising draft configurations but with egregious errors in topology, syntax, and semantics. Our strategy, that we call Verified Prompt Programming, is to combine GPT-4 with verifiers, and use localized feedback from the verifier to automatically correct errors. Verification requires a specification and actionable localized feedback to be effective. We show results for two use cases: translating from Cisco to Juniper configurations on a single router, and implementing no-transit policy on multiple routers. While human input is still required, if we define the leverage as the number of automated prompts to the number of human prompts, our experiments show a leverage of 10X for Juniper translation, and 6X for implementing no-transit policy, ending with verified configurations.

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

↑