RFCLLM: Evaluating LLMs' Reasoning Ability of Network Protocol State Machines
Abstract
Mapping textual specifications into formal representations is essential for ensuring the correctness of protocol designs and implementations. LLM-generated mappings, used for networking security or testing, are assumed to capture a perfect understanding of the specification, which may not hold in practice. The goal of this paper is to assess the extent to which LLMs can interpret the specification correctly. We examine the degree to which an LLM's implicit representation of a finite-state transition system-defined via natural language descriptions-aligns with a manually generated ground-truth model. We designed 4 tasks and 1482 task queries for 16 protocols. We evaluated different judge biases, observed the inherent difficulty gaps between tasks, looked into the effect of 4 context types, and the influence of protocol characteristics. Our work contributes to a step toward verifying whether LLMs can really be trusted in FSM (Finite State Machine) reasoning of protocol specifications.
Create a lesson
Metadata
- Comments
- Accepted at EMNLP 2026 (Findings)
Related papers
ASCENT: A Benchmark for Evaluating and Advancing Stepwise Diagnostic Reasoning in Large Language Models on Common Clinical Scenarios
Shared title terminologycs.CLYera Choi, Yeong Hwa Kim, Jaedeok Lee et al.
LUCID: Statistically Grounded Self-Correction for LLM Reasoning Evaluation
Shared title terminologycs.CLSatiyabooshan Murugaboopathy, Adel Daoud, Connor T. Jerzak
When Does Reasoning Help Entity Disambiguation? Small LLMs In-Domain and Under Shift
Shared title terminologycs.CLSamy Haffoudhi, Fabian M Suchanek, Nils Holzenberger
One Example Is Enough to Pass Fairness Benchmarks: Rethinking Fairness Evaluation for Aligned LLMs
Shared title terminologycs.CLNaihao Deng, Samee Arif, Shuaichen Chang et al.
The Imitation Game: When LLMs Learn to Reason Like Programs via Code-Centric Reasoning Data Synthesis
Shared title terminologycs.CLJinyang Zhang, Weibin Liao, Keqin Bao et al.
State of Thought Enables Endogenous Reasoning
Shared title terminologycs.CLZhiren Gong, Yikun Hou, Zihao Zeng et al.