← Latest papers
🤖 machine learning

Invariant Discovery for Networked Systems

This paper introduces Autogram, a system that combines AI-driven grammar discovery with statistics-driven search to automatically generate auditable, formally guaranteed invariants for networked systems, effectively overcoming the limitations of manual writing and existing automatic miners in handling real-world data noise.

Original authors: Hongyu Hè, Alexander Krentsel, Sylvia Ratnasamy, Maria Apostolaki

Published 2026-07-28
📖 4 min read☕ Coffee break read

Original authors: Hongyu Hè, Alexander Krentsel, Sylvia Ratnasamy, Maria Apostolaki

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine the internet not as a cloud of magic, but as a massive, bustling city of data. In this city, billions of tiny packets of information zip along roads, stop at traffic lights, and pile up in warehouses. To keep this city running, engineers need to know the "rules of the road." These rules are called invariants. Think of them as the unbreakable laws of physics for the network: "The number of cars leaving a parking lot must equal the number of cars entering, plus or minus a tiny bit of error." If these rules are broken, it means a traffic light is stuck, a road is closed, or someone is stealing data.

For a long time, finding these rules was like trying to write a dictionary for a language nobody had ever spoken before. Engineers had to sit down and manually write every single rule by hand, guessing how the data should behave. It was slow, boring, and required a super-expert who knew both computer science and the specific quirks of their network. Recently, people tried to use computers to learn these rules automatically, but those computers were too rigid; they demanded perfect, exact matches and threw away anything that wasn't 100% perfect, even though real-world data is always a little messy. Then, people started using super-smart AI (Large Language Models) to help, but those AIs are like creative writers who sometimes make things up (hallucinate) and can't prove their work is true. The big question was: How do we get the creativity of AI without the risk of it making things up?

This paper introduces a new system called Autogram that solves this puzzle by splitting the job in half. The authors realized that while AI is great at guessing what kind of rules might exist, it is terrible at proving they are true. So, they built a system where the AI acts as a "grammar architect." It looks at the names of the data points (like "router_A_output" or "link_B_traffic") and suggests a list of possible rule structures, like a menu of potential sentences. It never actually claims a rule is true; it just says, "Here are some sentences that could make sense."

Once the AI draws up this menu, a strict, boring, and perfectly logical computer engine takes over. This engine checks every single sentence on the menu against the real data. It uses math to see if the rule holds up, even if it's not perfect. It allows for a little bit of wiggle room (called "softness") because real data is noisy, but it demands statistical proof before accepting a rule. If the AI suggests a rule that looks cool but doesn't fit the data, the logical engine rejects it immediately. If the AI misses a rule, the system can ask the AI to rewrite the menu and try again.

The researchers tested Autogram on real-world internet traffic data from public networks and a massive production network used by a company. They found that Autogram could rediscover every single rule that human experts had already written down, but it also found many new, useful rules that no one had ever noticed before. For example, it found that traffic leaving a router was consistently about 2% less than expected, which turned out to be a specific, explainable quirk of how the data was counted, not a disaster. While previous tools that demanded perfect accuracy missed almost all of these rules, Autogram found them all.

The paper shows that this approach works well and is fast, taking only about ten minutes to analyze a network with hundreds of routers. However, the authors are careful to note that this isn't a magic wand that solves everything yet. The system still relies on the AI to guess the right "menu" of rules, and if the data labels are wrong, the AI might get confused. They also point out that the system can't yet combine simple rules to create complex, brand-new structures on its own. But, they suggest, this is a promising step toward a future where computers can help us discover the hidden laws of our digital world, making the internet safer and more reliable without needing a human to write every single rule from scratch.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →