English

Structure-Aware NL-to-SQL for SFC Provisioning via AST-Masking Empowered Language Models

Networking and Internet Architecture 2026-01-27 v1 Computation and Language Machine Learning

Abstract

Effective Service Function Chain (SFC) provisioning requires precise orchestration in dynamic and latency-sensitive networks. Reinforcement Learning (RL) improves adaptability but often ignores structured domain knowledge, which limits generalization and interpretability. Large Language Models (LLMs) address this gap by translating natural language (NL) specifications into executable Structured Query Language (SQL) commands for specification-driven SFC management. Conventional fine-tuning, however, can cause syntactic inconsistencies and produce inefficient queries. To overcome this, we introduce Abstract Syntax Tree (AST)-Masking, a structure-aware fine-tuning method that uses SQL ASTs to assign weights to key components and enforce syntax-aware learning without adding inference overhead. Experiments show that AST-Masking significantly improves SQL generation accuracy across multiple language models. FLAN-T5 reaches an Execution Accuracy (EA) of 99.6%, while Gemma achieves the largest absolute gain from 7.5% to 72.0%. These results confirm the effectiveness of structure-aware fine-tuning in ensuring syntactically correct and efficient SQL generation for interpretable SFC orchestration.

Keywords

Cite

@article{arxiv.2601.17295,
  title  = {Structure-Aware NL-to-SQL for SFC Provisioning via AST-Masking Empowered Language Models},
  author = {Xinyu Zhu and Parisa Fard Moshiri and Poonam Lohan and Burak Kantarci and Emil Janulewicz},
  journal= {arXiv preprint arXiv:2601.17295},
  year   = {2026}
}

Comments

6 pages, 3 figures, accepted to IEEE International Conference on Communications (ICC) 2026

R2 v1 2026-07-01T09:18:15.972Z