← Latest papers
💻 computer science

State Machine Guided Multi-Relational Synthetic Data from Logs for Anomaly Detection

This paper proposes a framework that recovers a latent state machine from software logs to generate multi-relational synthetic data, which significantly enhances anomaly and bug detection performance by preserving structural, temporal, and process constraints that sequence-based methods overlook.

Original authors: Aja Khanal, Apurva Narayan

Published 2026-06-02
📖 4 min read☕ Coffee break read

Original authors: Aja Khanal, Apurva Narayan

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 a massive software system as a giant, busy factory. Every time a machine starts, stops, or makes a sound, it writes a note in a giant, messy logbook. These notes are the "logs" the paper talks about.

The Problem: The Messy Logbook
Currently, when computer scientists try to find mistakes (anomalies) in these factories, they treat the logbook like a simple list of words. They look at the sequence of notes: "Machine A started," "Machine B hummed," "Machine C stopped."

The authors argue this is like trying to understand a complex play just by reading the list of words spoken, without knowing the plot, the characters, or the rules of the stage. In reality, these logs follow a hidden script (a State Machine). The factory doesn't just make random noises; it moves through specific "states" (like "Idle," "Working," "Error," "Recovery") and follows strict rules about what can happen next.

Existing methods miss this hidden script. They try to guess what's wrong by looking at the order of words, often missing the deeper structural reasons why a failure happened.

The Solution: LogSynthFSM (The Smart Factory Manager)
The paper introduces a new system called LogSynthFSM. Think of this as a team of specialized AI detectives working together to solve the mystery of the factory logs. Instead of one AI trying to do everything at once, they use a "multi-agent" approach, where each agent has a specific job:

  1. The Translator (Execution Parsing Agent): First, this agent reads the messy, raw logbook and cleans it up. It turns chaotic sentences into neat, structured cards with clear labels (like "Time," "Event Type," "Details").
  2. The Scriptwriter (State Discovery Agent): This agent looks at the cleaned cards and figures out the hidden script. It asks: "What are the different 'moods' or 'states' the factory goes through? What rules govern the transition from 'Working' to 'Broken'?" It builds a map of the factory's logic.
  3. The Architect (Schema Induction Agent): Once the script is known, this agent designs a new filing system (a relational database). Instead of a single long list, it organizes the data into connected tables: one for the timeline, one for the events, one for the states, and one for the details. This ensures the data is organized logically, just like a real database.
  4. The Storyteller (Relational Synthesis Agent): This is the magic part. The factory doesn't always have enough examples of rare problems (like a specific type of crash). To fix this, the Storyteller uses the script and the filing system to invent new, realistic stories. It doesn't just copy-paste old logs; it generates new scenarios that follow the rules of the script. Crucially, it focuses on creating more examples of those rare, tricky failures so the computer can learn to spot them.
  5. The Quality Inspector (Consistency Evaluation Agent): Before the new stories are accepted, this agent checks them. "Did this new story follow the script? Is the timeline logical? Does it look like a real factory event?" If a story breaks the rules, it gets thrown out. This ensures the fake data is high-quality and trustworthy.

The Result: Better Safety Checks
The paper shows that when you use this new, structured, AI-generated data to train a computer to spot factory errors, it works much better than before.

  • Analogy: Imagine teaching a security guard to spot a thief. If you only show them 10 photos of thieves, they might miss a new type of thief. But if you have a smart system that understands the rules of how thieves move (the script), it can generate hundreds of new, realistic photos of different types of thieves (including rare ones) for the guard to study. The guard becomes much better at catching them.

Key Takeaways from the Paper:

  • Structure Matters: Logs aren't just random words; they follow a hidden state machine (a script).
  • Multi-Agent Team: Breaking the task into small, specialized AI roles works better than one big AI trying to do it all.
  • Smart Synthesis: The system generates new data that respects the rules of the system, making it useful for training anomaly detectors.
  • Real-World Proof: The authors tested this on real data from big systems (like Hadoop and OpenStack) and found it significantly improved the ability to detect bugs and rare failures compared to older methods.

In short, LogSynthFSM turns a messy pile of notes into a structured, rule-based storybook, uses that storybook to invent new training examples for rare problems, and helps computers become much better at spotting when something goes wrong in complex software systems.

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 →