arXiv:2609.04486cs.NISep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.04486

Uncertainty Signals for Network Intent Translation: Risk Ranking and Ambiguity Localization

Ala' A. Alsamarneh, Omar Alhussein

Ala' A. Alsamarneh 1^{1}, and Omar Alhussein 1^{1}

1^{1}Department of Computer Science, College of Computing and Mathematical Sciences

Khalifa University, Abu Dhabi, United Arab Emirates

100067691@ku.ac.ae, omar.alhussein@ku.ac.ae

Abstract—Intent-based networking realization starts by translating high-level intents into low-level network configurations. Recent approaches have shifted toward LLM-based translation. Despite promising results, most studies focus on translation accuracy and overlook risks associated with deploying the resulting configurations. In this work, we investigate the pre-deployment translation risk of LLM-generated configurations by analyzing the model's uncertainty. We propose to use two uncertainty signals, namely sampling-based predictive uncertainty for translation-risk ranking and token-level entropy for ambiguity-source localization. We evaluate these signals on an ambiguity-controlled test set across different context types and sampling budgets, using a Llama-3.1-8B-Instruct model fine-tuned for intent translation on a vendor-specific switch platform (Juniper EX3300). The results demonstrate that predictive uncertainty provides a useful signal for ranking translations by risk across context types and sampling budgets, albeit with substantial miscalibration under less informative contexts. Moreover, we show that parameter-token entropy correlates with parameter-sourced ambiguity and keyword-token entropy correlates with description-sourced ambiguity. These results indicate the potential of using uncertainty signals in an LLM-generated configuration deployment pipeline, where predictive uncertainty can support selective deployment, while token-level entropy can identify sources of ambiguity.

Index Terms—Intent-based networking, intent translation, large language models, uncertainty quantification.

I. INTRODUCTION

Intent-based networking (IBN) aims to simplify network management by enabling operators to describe networking tasks in high-level intents, while the IBN system handles the implementation details. Intent realization starts by translating intents into low-level configuration, followed by intent verification, conflict detection and resolution, and then deployment. After deployment, the IBN system continuously monitors the network for intent drift during the intent assurance stage and adjusts the network state to align with the user's intent. Together, these stages constitute the intent life-cycle.

Large language models (LLMs) have advanced capabilities for understanding natural language and demonstrate versatility across a wide range of domains and applications. Many studies have explored integrating LLMs at different stages of the intent life cycle, including intent translation. Several techniques have been explored for intent translation, such as prompt engineering [1]–[5], fine-tuning [6]–[8], and retrieval-augmented generation (RAG) combined with fine-tuning [9]–[11]. Generating low-level configuration is challenging because it follows (i) predefined syntax and (ii) requires valid parameter values. Accurate translation depends on correctly interpreting the user's intent, and there is rarely a one-to-one mapping between intents and network configurations. Moreover, ambiguity in intent expression makes translation more challenging and can lead to erroneous configurations. Ambiguity can arise from insufficient parameter values, varying technical expertise, or vendor-specific terminology. For instance, Juniper uses the keyword persistent-learning in the configuration required to enable a port security feature, which keeps learned media access control (MAC) addresses persistent even after a reboot or link-down events. This feature reduces the time required to learn interface-MAC bindings and restores the service quickly. Cisco has a comparable feature, called sticky MAC, configured with the keyword sticky. Such discrepancies can introduce ambiguity when a network operator uses cross-vendor terminology in their intent.

Existing LLM-based intent translation approaches mainly focus on improving configuration generation accuracy and rely on downstream validation, such as Batfish [2], [8], [12]. However, less attention has been paid to assessing whether a translation is risky before it reaches verification and deployment. Quantifying LLM uncertainty can estimate completion reliability [13], and several approaches have been proposed for LLM uncertainty quantification, including token-level, self-verbalization, semantic entropy [14], and mechanistic interpretability [15]. This work investigates whether model uncertainty can serve as a pre-deployment risk signal for LLM-based intent translation. We ask two complementary questions, i.e. which translations are risky, and where within a configuration the ambiguity originates. We study sampling-based predictive uncertainty for ranking translations by risk, and token-level entropy for localizing uncertainty associated with parameters and description ambiguity. Using our fine-tuned Llama-3.1-8B-Instruct model, we evaluate both uncertainty signals on an ambiguity-controlled test set under four context types and three sampling budgets. We address two research questions. RQ1: Does predictive uncertainty provide a useful pre-deployment signal for ranking LLM-generated configurations by translation risk? RQ2: Can token-level entropy localize ambiguity sources within a generated configuration?

Our main contributions are as follows.

  • We show that sampling-based predictive uncertainty preserves a useful ranking of translation risk across context

types and sampling budgets, enabling higher-risk configurations to be prioritized for abstention despite substantial miscalibration.

  • We show that token-level entropy separates ambiguity sources, where parameter-token entropy correlates with parameter-sourced ambiguity, and keyword-token entropy correlates with description-sourced ambiguity.

  • We evaluate both uncertainty signals across sampling budgets of 5, 10, and 30 generated configurations, showing that smaller sampling budgets reduce sampling cost while largely preserving translation accuracy, risk-ranking performance, and ambiguity localization signals.

References (24)