Assessing Generative Models for Structured Data

Reilly Cannon, Nicolette M. Laird, Caesar Vazquez, Andy Lin, Amy Wagler, Tony ChiangarXiv 2025

Abstract

Synthetic tabular data generation has emerged as a promising method to address limited data availability and privacy concerns. With the sharp increase in the performance of large language models in recent years, researchers have been interested in applying these models to the generation of tabular data. However, little is known about the quality of the generated tabular data from large language models. The predominant method for assessing the quality of synthetic tabular data is the train-synthetic-test-real approach, where the artificial examples are compared to the original by how well machine learning models, trained separately on the real and synthetic sets, perform in some downstream tasks. This method does not directly measure how closely the distribution of generated data approximates that of the original. This paper introduces rigorous methods for directly assessing synthetic tabular data against real data by looking at inter-column dependencies within the data. We find that large language models (GPT-2), both when queried via few-shot prompting and when fine-tuned, and GAN (CTGAN) models do not produce data with dependencies that mirror the original real data. Results from this study can inform future practice in synthetic data generation to improve data quality.

Introduction

In fields like medicine and social science, data is often restricted due to privacy concerns. Synthetic data—artificial data that shares the same statistical properties as the real thing—is the proposed solution. However, a significant "measurement gap" exists: how do we verify the fidelity of synthetic data?

The current industry standard is the Train-Synthetic-Test-Real (TSTR) approach. This method evaluates whether a machine learning model trained on synthetic data performs well on real data. While useful for assessing utility, TSTR is an indirect "black box" metric. It fails to measure whether the underlying distribution is accurate. If synthetic data misses subtle correlations between multiple variables, models trained on it may develop biases or "blind spots" that remain undetected until deployment.

Methodology

This study evaluates three generative approaches:

  1. CTGAN: A specialized Generative Adversarial Network designed for tabular data.
  2. GPT-2 (Few-Shot): A pre-trained Large Language Model (LLM) prompted with a few examples of real data.
  3. GPT-2 (Fine-Tuned): An LLM trained specifically on the target dataset.

To move beyond simple averages, the researchers assessed data quality across multiple orders of statistical cumulants:

  • 1st Order (Marginals): Comparing individual column distributions (histograms).
  • 2nd Order (Pairwise): Evaluating correlations between pairs of columns using graphical lasso and Louvain community detection to map "dependency networks."
  • 3rd & 4th Order (Joint Cumulants): Measuring complex interactions between triplets and quadruplets of variables. Identical distributions must have matching cumulants across all orders.

Experimental Setup

The study utilized three classic benchmarks representing diverse data challenges, summarized in the table below:

Summary of datasets used in the study, including row counts and column types.

Results and Analysis

The Surface-Level Success Trap

Most models achieved reasonable success in matching marginal distributions (1st order). As shown in the violin plots below, the "bulk" of the synthetic distributions often aligns with the real data. However, higher-order tests revealed a failure to capture the underlying logic of the datasets.

Log-scaled marginal distributions across three datasets (Adult, Breast Cancer, Credit Card) for real and synthetic models.

The "Few-Shot" Mirage

Few-shot prompting consistently performed the worst. As seen in the Credit Card and Breast Cancer plots in the figure above, the few-shot GPT-2 model produced extreme outliers and wider distributions than the real data. This suggests the LLM was not learning the distribution but rather "hallucinating" new rows by making minor, often illogical, tweaks to the prompt examples.

Structural Dissolution and Higher-Order Failure

Network analysis revealed that even when models captured pairwise correlations, they often failed to replicate the "communities" of features. For instance, in the Adult dataset, models incorrectly clustered "occupation" with "income" instead of "sex" and "relationship," breaking the structural integrity of the original data.

Furthermore, as the order of dependency increased, performance plummeted. In the Credit dataset, the True Positive Rate (TPR) for 4th-order cumulants was near zero for all models, indicating a total failure to replicate the complex, multi-variable interactions present in real-world fraud data.

Discussion and Limitations

While fine-tuned LLMs generally outperformed CTGAN on marginal distributions, CTGAN remained competitive in capturing pairwise dependencies in specific datasets like Breast Cancer. However, both architectures hit a "complexity ceiling" at higher orders.

Several limitations suggest avenues for future work:

  • Model Evolution: While this study used GPT-2, the fundamental challenge of high-order dependencies likely persists in newer models like Llama 3 or GPT-4.
  • Categorical Constraints: Current cumulant calculations are optimized for ordinal and continuous data; new metrics are needed for purely categorical features.
  • Data Encoding: The method of tokenizing tables for LLMs significantly impacts their ability to "see" inter-column relationships.

Conclusion

Researchers and practitioners using synthetic data to augment training sets must exercise caution. While a synthetic dataset may pass basic visual inspections or utility tests, it may lack the high-dimensional patterns necessary for accurate scientific discovery. Rigorous assessment of higher-order dependencies is essential to ensure synthetic data truly mirrors the "connective tissue" of the real world.

Summary updated

BibTeX
@misc{cannon2025assessing,
  author = {Reilly Cannon and Nicolette M. Laird and Caesar Vazquez and Andy Lin and Amy Wagler and Tony Chiang},
  title = {{Assessing Generative Models for Structured Data}},
  year = {2025},
  eprint = {2503.20903},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.20903},
}
Figure