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
Two rules to start. How far can your grammar go?
Fill the gaps
Click a gap, then choose a block. Or drag a block into the gap.
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?
Start at Γ. Each branch describes a kind of rule the grammar can express. Fill both sides of a comparison, then click Check.
Use v for any signal, Σ to add a group of signals, and | to allow either branch. A signal can refer to different routers in different rules.
A narrow grammar misses useful rules. A broader grammar gives Autogram more candidates to test. Covering a target means the grammar can express it; telemetry is still needed to check whether it holds.
Connect a bottom dot to a top dot. Click a top dot to disconnect it. Drag a block by its name to move it. Delete removes a selected block, arrow keys move it, and Escape cancels a connection. Undo restores your last edit.
Fill both gaps, then check.
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}
}