ACM HotNets 2026
AutogramInvariant Discovery for Networked Systems
1 Princeton University2 UC Berkeley / Google
* Equal contribution
Discovering network invariants from noisy telemetry by pairing AI grammar design with deterministic search and validation.
Presentation & demo
System demo
Can your grammar express every invariant?
Connect blocks to build a grammar, then check which of the 17 target invariants it can express.
Your grammar
Drag or click to add blocks. Connect bottom dots to top dots.
The starter grammar compares two signals. What can it express, and what is missing?
What do the symbols mean?
X and Y are WAN routers. O and T cross the WAN boundary. I and E travel between WAN routers.
How does the grammar work?
A small grammar can miss useful rules. A broad grammar gives the search engine more candidates to test. Coverage means the grammar can express a rule; whether that rule holds requires telemetry and validation.
Start at Γ. Attach a comparison, then fill its left and right dots. Only connected blocks count.
Use v for any traffic signal. Use | to allow either branch. Each signal block can stand for different routers.
For Σ, choose traffic going into X, out of X, or across the whole WAN. “Any scope” allows all three.
Click a child’s top dot to disconnect it. Select a block and press Delete to remove it. Arrow keys move it. Escape cancels a connection. Undo restores your last edit.
About the target set
The challenge includes all 17 distinct formulas left unrefuted in the supplied WAN evaluation and engineer review. The general non-negativity rule and its five signal-specific instances are kept separately, as in the source. Repeated formulas in the source’s category summaries are counted once.
Four challenged formulas are excluded: egress-activity symmetry, unequal demands in opposite directions, and two claims linking demand activity to a direct link’s activity. The retained composite is redundant, and two retained activity patterns were not explicitly endorsed. Their tooltips explain those qualifications. Inclusion is not a claim that every target is a universal physical law.
Abstract
Network invariants support applications from verification to traffic generation, telemetry imputation, and input validation. Writing these rules by hand requires expertise in both networking and formal logic. Testing all combinations of network variables is impractical at scale. Existing tools depend on expert-written grammars and exact rules that miss invariants obscured by noise.
Autogram uses a large language model to construct a compact grammar from variable names and metadata. The grammar defines which relations the system can express and test. A deterministic engine searches that space, removes trivial or contradictory candidates with a logical solver, and evaluates the remaining rules on held-out telemetry. When the search misses trusted invariants, Autogram asks the model to expand the grammar and repeats the checks.
Autogram produces readable invariants with measured tolerances and hold rates. For a fixed grammar and dataset, the search is reproducible and exhaustive. Our prototype recovered expert-derived invariants with full recall and low false positives in evaluations on public and production WAN telemetry.
BibTeX
@inproceedings{he2026autogram,
title = {Invariant Discovery for Networked Systems},
author = {Hè, Hongyu and Krentsel, Alexander and
Ratnasamy, Sylvia and Apostolaki, Maria},
booktitle = {The 25th ACM Workshop on Hot Topics in Networks},
series = {HotNets '26},
year = {2026},
publisher = {Association for Computing Machinery},
doi = {10.1145/3847290.3859952},
url = {https://doi.org/10.1145/3847290.3859952}
}