从3GPP规范中利用领域知情提示与LLM集成自动提取协议状态机
Automated Extraction of Protocol State Machines from 3GPP Specifications with Domain-Informed Prompts and LLM Ensembles
AI总结:
提出SpecGPT框架,利用大型语言模型、领域知情提示和集成方法从3GPP规范自动提取协议状态机,在5G协议上优于现有方法。
摘要:
移动通信网络是全球基础设施的基石,并日益支撑着制造、交通和医疗等关键行业。这些网络的安全性和可靠性至关重要,但很大程度上依赖于通过状态机对底层协议进行精确建模。虽然大多数先前的工作是从3GPP规范中手动构建此类模型,但由于规范的复杂性和频繁更新,这一过程劳动密集、易出错且难以维护。最近利用自然语言处理的工作显示出潜力,但在处理蜂窝协议的规模和复杂性方面仍然受限。在本工作中,我们提出了SpecGPT,一种新颖的框架,利用大型语言模型(LLMs)从3GPP文档中自动提取协议状态机。SpecGPT将技术规范分割成有意义的段落,应用带有思维链推理的领域知情提示,并采用集成方法来增强输出可靠性。我们使用手动标注的真实数据,在三个具有代表性的5G协议(NAS、NGAP和PFCP)上评估了SpecGPT,并表明它优于现有方法,证明了LLMs在大规模协议建模中的有效性。
英文摘要:
Mobile telecommunication networks are foundational to global infrastructure and increasingly support critical sectors such as manufacturing, transportation, and healthcare. The security and reliability of these networks are essential, yet depend heavily on accurate modeling of underlying protocols through state machines. While most prior work constructs such models manually from 3GPP specifications, this process is labor-intensive, error-prone, and difficult to maintain due to the complexity and frequent updates of the specifications. Recent efforts using natural language processing have shown promise, but remain limited in handling the scale and intricacy of cellular protocols. In this work, we propose SpecGPT, a novel framework that leverages large language models (LLMs) to automatically extract protocol state machines from 3GPP documents. SpecGPT segments technical specifications into meaningful paragraphs, applies domain-informed prompting with chain-of-thought reasoning, and employs ensemble methods to enhance output reliability. We evaluate SpecGPT on three representative 5G protocols (NAS, NGAP, and PFCP) using manually annotated ground truth, and show that it outperforms existing approaches, demonstrating the effectiveness of LLMs for protocol modeling at scale.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。