Making Logic a First-Class Citizen in Generative ML for Networking
Hongyu Hè (Princeton University), Minhao Jin (Princeton University), Maria Apostolaki (Princeton University)
23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26) · Day 2 · Learning at Line Rate
Overview
Generative artificial intelligence has emerged as a transformative tool across various systems and networking tasks, including traffic synthesis, telemetry imputation, and resource allocation. However, deploying probabilistic machine learning models in deterministic network environments creates inherent reliability challenges. Because generative models lack native structural awareness, their outputs frequently violate fundamental networking invariants—such as generating ingress byte counts that exceed link bandwidth, producing values that fail to sum correctly, or outputting traffic patterns that directly contradict observed congestion signals.

Key moments
- 0:00 Introduction and motivation for GenAI in networking
- 2:05 Rule learning trade-offs and research questions
- 4:00 Limitations of proactive and reactive rule enforcement
- 5:50 NetNomos constraint modeling and rule learning overview
- 10:00 Just-in-time rule enforcement during inference
- 14:00 Evaluation of expressiveness, scalability, and performance
Making Logic a First-Class Citizen in Generative AI for Networking
Speakers: Hongyu Hè (Princeton University); Minhao Jin (Princeton University); Maria Apostolaki (Princeton University)
Conference: USENIX NSDI
YouTube: https://www.youtube.com/watch?v=4tMAjh8HxCM
Overview
Generative artificial intelligence has emerged as a transformative tool across various systems and networking tasks, including traffic synthesis, telemetry imputation, and resource allocation. However, deploying probabilistic machine learning models in deterministic network environments creates inherent reliability challenges. Because generative models lack native structural awareness, their outputs frequently violate fundamental networking invariants—such as generating ingress byte counts that exceed link bandwidth, producing values that fail to sum correctly, or outputting traffic patterns that directly contradict observed congestion signals.
This talk, presented at USENIX NSDI by researchers from Princeton University, introduces NetNomos, a framework designed to make logic a first-class citizen in generative AI models for networking. NetNomos addresses the fundamental conflict between the probabilistic nature of generative models and the strict logical invariants of networking by combining automated, expressive rule learning with just-in-time runtime enforcement. Rather than treating validation as an afterthought or relying on brittle post-processing, NetNomos guarantees zero rule violations while preserving the statistical fidelity of the underlying generative model across diverse downstream tasks without requiring model retraining.
Background
▶ Watch: Introduction and motivation for GenAI in networking (0:00)
Applying machine learning to systems and networking requires reconciling two opposing paradigms: the statistical, pattern-matching nature of neural networks and the hard constraints dictated by protocols, hardware limits, and conservation laws. In networking tasks like telemetry imputation—which takes coarse-grained network signals as input to reconstruct fine-grained counterparts—errors are not merely matters of slight numerical inaccuracy; they often manifest as impossible physical states.
Historically, practitioners have attempted to bridge this gap through two main approaches, each with severe limitations:
- Proactive Training Integration: Encoding rules as additional loss terms in the objective function. This approach is restricted to differentiable rules, fails to scale when hundreds of rules are introduced, requires costly retraining whenever rules change, and—most critically—provides no runtime guarantees, as penalized behaviors can still emerge during inference.
- Reactive Post-Processing: Correcting model outputs after generation by minimizing a cost metric. In networking, defining an appropriate semantic distance metric between natural data points is notoriously difficult, and post-processing inherently distorts the learned data distribution of the model, often resulting in hallucinations or invalid data points.
Furthermore, existing automated rule-learning methods face a sharp trade-off between expressiveness and scalability. Human-written rules are expressive but non-scalable; database data-profiling methods cannot capture complex network rules; and distributed system protocol inference engines, while supporting expressive first-order logic, fail to scale to the millions of packets processed in modern data centers.
Key Findings
▶ Watch: Limitations of proactive and reactive rule enforcement (4:00)
The central discovery of this work is that network rule learning can be reformulated as constraint modeling, allowing the system to achieve both high expressiveness and massive scalability. Key findings and benchmark results include:
- Zero Rule Violations: While state-of-the-art generative data generators and network-specific frameworks consistently violate large percentages of fundamental network rules, NetNomos achieves zero rule violations across all evaluated tasks.
- Expressiveness Benchmark Supremacy: In benchmark evaluations using rule sets curated from Request for Comments (RFCs) and protocol documents, NetNomos achieved 100% coverage, successfully expressing and learning all benchmark rules where other learning frameworks fell short.
- Scalability Advantages: Compared to DUI (a state-of-the-art protocol inference algorithm for distributed systems), NetNomos scales significantly better, learning substantially more rules within the same timeframe when evaluated against growing learning times.
- Task Versatility Without Retraining: By enforcing rules during inference rather than baking them into model weights, NetNomos successfully repurposes a single base generative model (GPT-2) across telemetry imputation, traffic signal forecasting, and data synthesis without requiring model retraining.
Technical Deep Dive
▶ Watch: NetNomos constraint modeling and rule learning overview (5:50)
The architecture of NetNomos is divided into two primary pillars: scalable rule learning and just-in-time rule enforcement.
1. Constraint Modeling and Rule Learning
To bypass the trade-off between expressiveness and scalability, NetNomos views the network as a constraint data generation process, where resulting data points represent feasible solutions to a constraint system. The goal is to map those data points back to the governing first-order logic rules.
The learning pipeline proceeds through distinct phases:
- Predicate Population: NetNomos populates a predicate space using a specialized first-order logic rule grammar designed for network data (termed Gamma). Unlike exhaustive formula space enumeration, this enumeration targets only the elements of the formula space.
- Propositional Literal Projection: Predicates are projected onto propositional literals (the atomic units of the formula space).
- Evidence Set Construction: The system builds evidence sets—collections of data points satisfying specific literals. This data point enumeration occurs only once.
- Minimal Hitting Set Search: NetNomos searches for a minimal hitting set, defined as a set of propositional literals whose evidence sets together hit all data points without redundancy. The disjunction of literals in a hitting set forms a learned, consistent rule.
2. Just-in-Time Rule Enforcement
Rather than relying on proactive loss penalties or reactive output correction, NetNomos couples the generative model inference loop with an Satisfiability Modulo Theories (SMT) solver.
During autoregressive generation (e.g., using a language model to impute ingress bytes $I_0$ through $I_4$), NetNomos runs an SMT solver in parallel with the model's inference path:
- The solver evaluates the active rule set (e.g., bounding ingress bytes by link bandwidth $R_1$, ensuring values sum to a total $R_2$, and enforcing congestion consistency $R_3$).
- At each generation step, the solver computes the valid feasible region (e.g., crossing out negative values or values exceeding link capacity).
- The generative model selects its next token exclusively from the valid, green-highlighted feasible region.
- Partial outputs are fed back iteratively to the solver, ensuring global constraints (such as multi-step summations) are maintained through the final token.
Experimental Setup & Results
▶ Watch: Just-in-time rule enforcement during inference (10:00)
The evaluation of NetNomos was structured around three core questions regarding rule learning expressiveness, scalability, and rule enforcement guarantees.
- Hardware and Backbone Models: The evaluation utilized GPT-2 as the backend generative AI model, trained on Meta's data center dataset.
- Downstream Tasks: The framework was tested across three distinct tasks: telemetry imputation, traffic signal forecasting, and data synthesis.
- Baseline Comparisons: For telemetry imputation, NetNomos was compared against vanilla GPT-2 and ZoomNet (a state-of-the-art data imputer). For data synthesis, it was benchmarked against generative models including Net Diffusion and Net Shift. For rule learning scalability, it was compared against DUI.
- Headline Results:
- In telemetry imputation, NetNomos improved upon vanilla GPT-2 and performed on par with ZoomNet in imputation accuracy and downstream task performance while eliminating hallucinations.
- In data synthesis, NetNomos outperformed standard generative suites (Net Diffusion, Net Shift) by enforcing strict structural constraints.
- Across all tests, NetNomos guaranteed zero rule violations while maintaining high statistical fidelity.
Practical Implications
▶ Watch: Evaluation of expressiveness, scalability, and performance (14:00)
For network operators, infrastructure teams, and ML engineers, NetNomos bridges the gap between theoretical network invariants and probabilistic machine learning.
- Eliminating Hallucinations: Deploying generative models in production networks has historically carried the risk of catastrophic hallucinations (e.g., generating impossible traffic spikes or bandwidth violations). NetNomos provides hard mathematical guarantees that generated data complies with network rules.
- Decoupling Generation from Validation: Because enforcement occurs dynamically via an SMT solver during inference rather than through model retraining, infrastructure teams can update network policies, SLAs, or hardware limits on the fly without fine-tuning underlying neural weights.
- Tradeoffs and Limitations: Running an SMT solver iteratively alongside token-by-token language model inference introduces computational overhead at runtime. Practitioners must weigh this inference latency against the absolute requirement for constraint compliance in mission-critical networking environments.
Key Takeaways
- Generative AI models in networking frequently violate fundamental logic rules and invariants, leading to physically impossible outputs and hallucinations.
- NetNomos formulates network rule learning as constraint modeling, mapping network data points back to expressive first-order logic rules via minimal hitting set search.
- The framework introduces just-in-time rule enforcement by running an SMT solver in tandem with autoregressive generation, restricting model choices to valid feasible regions at every step.
- NetNomos achieves 100% rule coverage on benchmark RFC rule sets and scales significantly better than prior distributed protocol inference engines like DUI.
- The system guarantees zero rule violations across telemetry imputation, traffic forecasting, and data synthesis while preserving the statistical fidelity of backbone models like GPT-2.
- NetNomos is open-sourced with detailed documentation, enabling operators to apply rigid logical constraints to their language models without retraining.
About the Speaker(s)
Hongyu Hè and Minhao Jin are researchers at Princeton University working at the intersection of networking, systems, and machine learning, advised by Maria Apostolaki. Maria Apostolaki is an Assistant Professor at Princeton University specializing in networking, security, and the reliability of distributed systems and network infrastructures.
Reviews
→ Top-rated talks at 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)
All talks from 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)