Synthesizing Tabular Data using Generative Adversarial Networks

Lei Xu, Kalyan VeeramachaneniarXiv 2018

Introduction

Generative Adversarial Networks (GANs) have revolutionized image and natural language synthesis, but tabular data—the backbone of business and medical research—remains a significant challenge. Sharing real-world tables is often restricted by privacy regulations such as HIPAA or GDPR. Traditional synthetic data generators, like Gaussian Copulas or Bayesian Networks, often struggle with non-linear correlations, multimodal distributions, and mixed data types.

TGAN (Tabular GAN) is a generative adversarial network specifically designed to synthesize high-fidelity tabular data. By employing an LSTM-based generator and a novel "mode-specific normalization" for numerical data, TGAN captures complex correlations more effectively than traditional statistical models.

Methods

TGAN departs from standard GAN architectures by treating a row of data as a sequence rather than a flat vector. This allows the model to better capture the hierarchy of dependencies between features.

Overview of the TGAN architecture, illustrating the mapping of tabular data to the LSTM-based generator and the discriminator.

Key Methodological Innovations

  • Mode-Specific Normalization: To handle multimodal continuous variables, TGAN uses a Gaussian Mixture Model (GMM) to identify the "modes" of a column. A numerical value is represented as a combination of a discrete vector (the mode) and a scalar (the value within that mode), preventing gradient saturation.
  • LSTM Generator with Attention: The generator uses a Long Short-Term Memory (LSTM) network to produce data column-by-column. An attention mechanism allows the model to "look back" at previously generated columns to ensure contextual consistency.
  • Categorical Smoothing: To ensure differentiability during training, noise is added to one-hot encoded vectors before re-normalization.
  • KL Divergence "Warm-up": A KL divergence term in the loss function encourages the generator to match the marginal distributions of individual columns, stabilizing the training process.

Key Results

The model was evaluated on three UCI Machine Learning Repository datasets: Census-Income, KDD Cup 1999, and Covertype. The primary metric for success was "Machine Learning Efficacy"—the ability of models trained on synthetic data to perform well on real test data.

The evaluation workflow: TGAN generates synthetic data from real training data, which is then used to train machine learning models for testing against real data.

Performance and Utility

  • Machine Learning Efficacy: On the Census dataset, the performance gap between models trained on real data versus TGAN-generated data was only 5.7%. In contrast, traditional Gaussian Copula models lagged by nearly 25%.
  • Correlation Preservation: Using Normalized Mutual Information (NMI) matrices, the authors demonstrated that TGAN captures relationships between columns far more accurately than Bayesian Networks.
  • Scalability: TGAN effectively scales to millions of rows, whereas some traditional statistical models become computationally prohibitive at that scale.
  • Privacy: Nearest-neighbor analysis confirmed that TGAN does not simply memorize the training data, but creates novel, plausible samples.

Discussion and Limitations

The "aha moment" of TGAN is that GANs struggle with the raw distribution of tabular data. By using GMMs to "flatten" the distribution before it reaches the neural network, the learning task becomes significantly easier.

However, TGAN currently assumes each row is independent and identically distributed (I.I.D.). It does not yet handle relational databases with multiple tables linked by foreign keys or time-series data. Future research will focus on expanding the framework to handle these complex, multi-table relational schemas and sequential tabular data.

Summary updated

BibTeX
@misc{xu2018synthesizing,
  author = {Lei Xu and Kalyan Veeramachaneni},
  title = {{Synthesizing Tabular Data using Generative Adversarial Networks}},
  year = {2018},
  eprint = {1811.11264},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1811.11264},
}
Figure