NetInspector: Measuring and Improving LLM Capabilities for Reliable Intent-Based Networking Policy Generation
Yuxuan Zhang, Hongxin Hu, Guofei Gu · 2026 · 2 citationsRead the paper
Modern networks are large in scale and heterogeneous in configuration, making manual policy management increasingly impractical. Intent-Based Networking (IBN) addresses this by automating the translation of high-level operator goals into low-level network configurations. Yet existing IBN systems rely on static heuristics and fixed-feature classifiers that generalize poorly to distribution shifts such as new service definitions or evolving phrasing in operator requests. Large Language Models (LLMs), with strong reasoning and translation capabilities demonstrated across many domains, are a natural candidate for IBN policy generation. However, it is unclear whether LLMs can be reliably applied to this task, nor whether their use mitigates or worsens the underlying security risk. In this work, we show that while fine-tuned LLMs excel at intent translation, they exhibit false negative rates when checking whether a proposed intent violates an existing security policy. The root cause is not a lack of logical reasoning capability, but LLMs lack of persistent grounding in network topology and group hierarchy. Motivated by this finding, we introduce NetInspector, a three-layer agentic framework that enforces a verify-then-act protocol, decoupling information retrieval from reasoning so that the LLM focuses on symbolic reasoning while every policy decision is grounded in verifiable network facts retrieved from a live Environment Layer before approval. On NetInspector-Bench, a 2,224-sample synthetic benchmark spanning campus, enterprise, and WAN topologies, NetInspector reduces FNR by over 30\% relative to ungrounded baselines and remains robust under linguistic distribution shifts.
What the full text shows
Working prototype- NetInspector reduces the False Negative Rate (FNR) for security invariant enforcement compared to baselines. — FNR reduced to approximately 3% (over 30 percentage points lower than baselines) (Evaluated on NetInspector-Bench (2,224 samples) across campus, enterprise, and WAN topologies)
- NetInspector achieves high overall accuracy in security enforcement. — F1 score exceeding 0.95 (Compared against Lumi, PGA, and Heuristic baselines)
- NetInspector maintains security coverage under linguistic distribution shifts, whereas traditional baselines collapse. — Lumi F1 score dropped from 0.84 to 0.56; NetInspector remained unaffected (Under shifted service distributions mimicking new protocols/applications)
- Fine-tuned LLMs outperform other prompting strategies for intent translation. — F1 score of 0.67 for fine-tuned GPT-4.1 vs 0.53-0.57 for RAG (Intent translation task)
- Entity pre-filtering significantly reduces the number of required LLM calls. — Reduced LLM calls by around 90% (Scaling verification against a policy library)
- Setup
- NetInspector-Bench consisting of 2,224 synthetic samples across Campus, Enterprise, and WAN topologies (using Topology Zoo graphs), tested with five LLMs (including GPT-4o-mini, Claude-Haiku-4.5, and Qwen3-8b) on a workstation with an NVIDIA RTX 5070 Ti GPU.
- How
- The authors developed NetInspector, a three-layer agentic framework using a verify-then-act protocol that decouples symbolic reasoning (LLM layer) from deterministic state retrieval (Environment Layer). It employs a 'Thought/Action/Observation' loop and an entity-overlap pre-filter to ensure policy decisions are grounded in live network facts.
- Limitations
- Does not account for adversarial prompt injection or intentionally crafted unsafe intents. · Evaluated on a synthetic benchmark rather than production IBN deployments. · LLM-call latency grows with the size of the standing invariant library (tested up to N=100). · Taxonomy of violation classes may not be exhaustive for all production environments.
Summarized by Gemma 4 from the open-access full text · 20 Nov 2026. Read it