Autoregressive Synthesis of Sparse and Semi-Structured Mixed-Type Data
About
Synthetic data generation is an important capability for privacy-preserving data sharing, system benchmarking and test data provisioning. For mixed-type data, existing synthesizers largely target dense, fixed-schema tables, but many modern data systems store and exchange sparse, semi-structured JSON with nested objects, variable-length arrays and optional keys. Applying tabular synthesizers to such data requires flattening records into wide, sparse tables, turning nested structure and arrays into column-layout artifacts. We present ORiGAMi, an autoregressive transformer architecture for modeling and synthesizing semi-structured records without flattening. ORiGAMi serializes JSON records into key, value, and structural tokens, and encodes token positions by their path in the document tree. Grammar and schema constraints enforce syntactically valid JSON and dataset-consistent structure. We evaluate ORiGAMi against VAE, GAN, diffusion, and autoregressive baselines that operate on flattened representations across six datasets ranging from dense tabular benchmarks to large-scale semi-structured collections. Across fidelity, detection, and utility metrics, ORiGAMi achieves the best score in 17 of 18 benchmark comparisons, while maintaining high privacy scores above 96% across all settings. These results establish native record modeling as a strong alternative to tabular synthesis pipelines, preserving structure while achieving state-of-the-art benchmark performance.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Tabular Data Synthesis | Adult | Shape Similarity0.996 | 17 | |
| Tabular Data Synthesis | Diabetes | Shapes0.996 | 15 | |
| Privacy Evaluation | Adult | -- | 10 | |
| Privacy Evaluation | Diabetes | -- | 9 | |
| Synthetic Data Detection | Adult | Overall Score0.96 | 7 | |
| Synthetic Data Utility | Adult | Overall Score99.8 | 7 | |
| Synthetic Data Detection | Diabetes | Overall Score100 | 6 | |
| Synthetic Data Utility | Diabetes | Overall Score98.4 | 6 | |
| Privacy Evaluation | Electric Vehicles | Overall Score1 | 4 | |
| Synthetic Data Detection | Yelp | Overall Score72.5 | 4 |