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

Aja Khanal, Apurva Narayan
5/30/2026
cs.MA

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Software systems generate massive unstructured logs that record execution behavior, failures, and interactions across components, yet existing log anomaly detection methods treat these logs primarily as flat sequences of templates, overlooking the relational execution structure that governs how events co-occur and evolve over time. We propose a framework that discovers this hidden structure by recovering an execution state machine directly from logs and inducing a corresponding multi-table relational schema connecting traces, events, states, transitions, and parameters. This discovered state machine serves as a generative prior to produce realistic multi-relational synthetic data that preserves structural, temporal, and process constraints while amplifying rare but valid execution behaviors. We assess the fidelity of the generated data through constraint validation, distributional similarity, and process-level metrics, and demonstrate its usefulness by showing that augmenting real logs with the synthetic relational data significantly improves anomaly and bug detection on held-out real datasets compared to sequence-based baselines and naive oversampling. Our results show that execution logs implicitly encode a relational database governed by a latent state machine, and that recovering this structure enables principled synthetic data generation for robust and interpretable anomaly detection.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{khanal2026state,
  title  = {State Machine Guided Multi-Relational Synthetic Data from Logs for Anomaly Detection},
  author = {Aja Khanal and Apurva Narayan},
  year   = {2026},
  eprint = {2606.00531},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.00531v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.00531.svg)](https://codeofpaper.com/paper/2606.00531)

Discussion