Uncertainty Signals for Network Intent Translation: Risk Ranking and Ambiguity Localization
Organizations: Department of Computer Science, College of Computing and Mathematical Sciences Khalifa University, Abu Dhabi, United Arab Emirates
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.
Figures & tables
| Score Type | Description | Score |
|---|---|---|
| Parameter Score ( ) | All required parameters are provided, or the command requires no variable parameters | 0 |
| At least one parameter value is provided, and at least one is missing | 1 | |
| No parameter values are provided | 2 | |
| Description Score ( ) | The task directly maps to the well-known/primary use case of the command in the answer | 0 |
| Not , and the expression contains keyword mappings | 1 | |
| Not , and the expression contains exactly 1 keyword mapping | 2 |
| Intent: Create new user account with operator privilege | |
|---|---|
| None | Context value Empty |
| Reference command set system login user <user-name> class operator | |
| Keywords | Context value {cmd_category: set, topic: system} |
| Reference command set system login user <user-name> class operator | |
| Parameters | Context value {user-name: netops1} |
| Reference command set system login user netops1 class operator | |
| Category | Parameter | Value |
|---|---|---|
| LoRA | Rank ( ) | 32 |
| Alpha ( ) | 16 | |
| Dropout | 0.05 | |
| Target modules | q/k/v/o, gate/up/down_proj | |
| Training | Epochs | 3 |
| Batch size | 8 |
| Context Type | K = 30 | K = 10 | K = 5 |
|---|---|---|---|
| None | 20% | 19% | 20% |
| Keywords | 23% | 24% | 24% |
| Parameters | 21% | 21% | 21% |
| Template | 67% | 66% | 66% |
| Context Type | K = 30 | K = 10 | K = 5 |
|---|---|---|---|
| None | 0.43 | 0.46 | 0.50 |
| Keywords | 0.47 | 0.46 | 0.54 |
| Parameters | 0.44 | 0.48 | 0.44 |
| Template | 0.85 | 0.85 | 0.85 |
| Context Type | K = 30 | K = 10 | K = 5 |
|---|---|---|---|
| None | 0.53 | 0.54 | 0.52 |
| Keywords | 0.36 | 0.39 | 0.36 |
| Parameters | 0.53 | 0.54 | 0.52 |
| Template | 0.44 | 0.44 | 0.45 |
Intent-Based Networking
Intent-Based Networking translates high-level goals into validated network policies and uses feedback to manage services, resources, and performance.
See all 22 papers