pipette
ESEspañol

Samyama-SDG: A Declarative GraphQL @count and Regex/Ontology Synthetic Data Compiler with -Memory Referential Integrity and Causal Ground Truth

Madhulatha Mandarapu, Sandeep Kunkunuru

PreprintBold claims, read criticallyCode available

In the authors' words

Synthetic data generators face a divide between declarative relational mockets and domain causal simulators. Declarative generators specify entities, regexes, and foreign keys via schemas, but buffer parent primary-key pools in RAM ( memory) and lack ontology bindings or causal ground truth. Conversely, domain simulators emit realistic streams and ground-truth labels, but require thousands of lines of procedural code per domain. We present Samyama-SDG (sdg-rs), a Rust synthetic data compiler unifying declarative schema compilation with ontology-bound causal simulation. At Layer 1, Samyama-SDG compiles Cardinality-Extended GraphQL schemas (@count, @pk, @ontology, @regex, @dist, @fk, @after) and an Attribute Data Dictionary into a topologically sorted DAG. Combining stateless counter-based seekable PRNGs (SplitMix64 over ) with index-bijective primary keys lets child tables resolve uniform or Zipfian foreign keys and multi-hop @after constraints in memory without buffering parent tables. At Layer 2, causal processes layer fault propagation and machine-scorable ground truth (ground_truth.jsonl) over the same seekable PRNG and samyama-ontologies binder. Across three schemas, Samyama-SDG generates records in -- (-- rows/s) and records in -- at flat -- memory, with conformance errors across foreign keys and temporal constraints.

Main resultThe abstract does not state a limitation.

Appeared: Tuesday, November 10. arXiv. Preprint, not yet peer-reviewed.

Authors' comment: 7 pages, 3 figures, 3 tables. Code: https://github.com/samyama-ai/samyama-synthetic-data-generator