arXiv:2611.11295cs.DBNov 2026

Manuscript Offprint

arXiv:2611.11295

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

Madhulatha Mandarapu, Sandeep Kunkunuru

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

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 (O(N)O(N) 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 (seed,entity,row,field)(\text{seed}, \text{entity}, \text{row}, \text{field})) with index-bijective primary keys fPK(s,E,i)f_{\text{PK}}(s, E, i) lets child tables resolve uniform or Zipfian foreign keys and multi-hop @after constraints in O(1)O(1) 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 1,000,0001{,}000{,}000 records in 128.79 ms128.79\text{ ms}--172.43 ms172.43\text{ ms} (5.80M5.80\text{M}--7.76M7.76\text{M} rows/s) and 5,000,0005{,}000{,}000 records in 676.12 ms676.12\text{ ms}--808.56 ms808.56\text{ ms} at flat 31.4 MiB31.4\text{ MiB}--35.1 MiB35.1\text{ MiB} memory, with 00 conformance errors across 1,150,0001{,}150{,}000 foreign keys and 900,000900{,}000 temporal constraints.

A PDF page turning into lines of clean text

Preparing the full text

It will appear here by itself. You can read the abstract meanwhile.