arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.08760cs.NIcs.AIcs.LGcs.SE
收藏

INTA:基于意图的LLM智能体网络配置翻译

INTA: Intent-Based Translation for Network Configuration with LLM Agents

Department of Computer Science and Technology, Tsinghua University(计算机科学与技术系,清华大学);Australian National University(澳大利亚国立大学)

Yunze Wei, Xiaohui Xie, Tianshuo Hu, Yiwei Zuo, Xinyi Chen, Kaiwen Chi, Yong Cui

AI总结:

INTA提出以配置意图为中间表示,利用LLM智能体分解配置、提取细粒度意图、检索目标设备手册并在语法检查器引导下增量生成和验证配置,在真实数据集上实现98.15%准确率和84.72%命令召回率,优于现有方法。

摘要:

在不同网络设备之间翻译配置是现代网络运维中一项常见但具有挑战性的任务。这一挑战出现在典型场景中,例如更换过时硬件,以及将配置适配到软件定义网络(SDN)和网络功能虚拟化(NFV)等新兴范式。工程师需要深入理解源配置模型和目标配置模型,由于这些规范的复杂性和不断演进的特性,这需要付出相当大的努力。为了促进网络配置翻译的自动化,我们提出了INTA,一个利用大语言模型(LLM)智能体的基于意图的翻译框架。INTA的核心思想是使用配置意图作为翻译的中间表示。它首先使用LLM分解配置文件,并为每个配置片段提取细粒度意图。然后利用这些意图检索目标设备的相关手册。在语法检查器的引导下,INTA增量式地生成目标配置。翻译后的配置还会进一步进行语义一致性验证和优化。我们在来自工业界的真实配置数据集上实现了INTA并对其进行了评估。我们的方法在翻译准确性上优于最先进的方法,并表现出很强的泛化能力。INTA在语法正确性和视图正确性方面达到了98.15%的准确率,目标配置的命令召回率为84.72%。翻译配置的语义一致性报告进一步证明了其在真实网络运维中的实用价值。

英文摘要:

Translating configurations between different network devices is a common yet challenging task in modern network operations. This challenge arises in typical scenarios such as replacing obsolete hardware and adapting configurations to emerging paradigms like Software Defined Networking (SDN) and Network Function Virtualization (NFV). Engineers need to thoroughly understand both source and target configuration models, which requires considerable effort due to the complexity and evolving nature of these specifications. To promote automation in network configuration translation, we propose INTA, an intent-based translation framework that leverages Large Language Model (LLM) agents. The key idea of INTA is to use configuration intent as an intermediate representation for translation. It first employs LLMs to decompose configuration files and extract fine-grained intents for each configuration fragment. These intents are then used to retrieve relevant manuals of the target device. Guided by a syntax checker, INTA incrementally generates target configurations. The translated configurations are further verified and refined for semantic consistency. We implement INTA and evaluate it on real-world configuration datasets from the industry. Our approach outperforms state-of-the-art methods in translation accuracy and exhibits strong generalizability. INTA achieves an accuracy of 98.15% in terms of both syntactic and view correctness, and a command recall rate of 84.72% for the target configuration. The semantic consistency report of the translated configuration further demonstrates its practical value in real-world network operations.

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

↑