STaSy: Score-based Tabular data Synthesis

Jayoung Kim, Chaejeong Lee, Noseong Park

TL;DR

STaSy (Score-based Tabular data Synthesis) is a novel framework that brings the power of score-based generative models—the technology behind state-of-the-art image generators—to the world of tabular data. By combining a "self-paced" training strategy with a log-probability fine-tuning phase, STaSy significantly outperforms existing GAN and VAE-based methods in both data quality and diversity across a wide range of real-world datasets.

The Challenge of Tabular Data Synthesis

Synthesizing realistic tabular data (like medical records or financial transactions) is a persistent challenge in machine learning. Unlike images, where pixels have spatial correlations, tabular data often consists of independent columns with peculiar characteristics: mixed data types (numerical and categorical), highly skewed distributions, and complex multi-modal patterns.

Existing approaches like CTGAN or TVAE often fall victim to the generative learning trilemma: the struggle to balance high sampling quality, high diversity, and fast sampling time. Specifically, many models suffer from "mode collapse," where they fail to capture the full variety of the original data, or they produce "fake" records that don't actually follow the underlying logic of the real dataset.

Methods: Score-Based Generative Modeling

The authors propose STaSy, which is built on the paradigm of Score-based Generative Modeling (SGM). Instead of directly estimating a probability distribution, these models learn the "score function"—the gradient of the log-density of the data.

The core innovations that make STaSy work for tabular data are:

  1. Self-Paced Learning (SPL): Training score-based models can be unstable. STaSy uses an SPL strategy that acts like a curriculum; the model starts by learning from "easy" records (those with low loss) and gradually incorporates "harder," more complex records as training progresses. This prevents the model from being derailed by outliers early on.
  2. Fine-tuning via Log-Probability: After the initial training, the authors fine-tune the model specifically on records that have low log-probabilities. This "polishes" the model’s performance on the tails of the distribution, ensuring it captures rare but important data points.
Loss distribution comparison between Naïve-STaSy and STaSy.
  1. Optimized Sampling: While image-based score models often require 1,000+ steps to generate data, the authors found that for tabular data, 50 steps are sufficient. They use a "probability flow" ODE solver, which allows for faster sampling and exact log-probability computation.

Datasets

The researchers evaluated STaSy on 15 real-world benchmark datasets covering various tasks, chosen for their popularity and diversity in column/row counts:

  • Binary Classification: Credit (fraud detection), Default, HTRU (pulsar candidates), Magic, Phishing, Shoppers, and Spambase.
  • Multi-class Classification: Bean, Contraceptive, Crowdsource, Obesity, Robot, and Shuttle.
  • Regression: Beijing (air quality) and News (social media shares).

Key Insights and Results

STaSy was compared against seven baselines, including CTGAN, TVAE, and RNODE, proving that score models are highly effective for the "messy" distributions found in spreadsheets.

  • Sampling Quality: In classification tasks, STaSy achieved an average F1 score of 0.727, significantly higher than the next best baseline, CTGAN (0.560).
  • Diversity: Using the "coverage" metric (which measures how much of the real data manifold is covered by synthetic data), STaSy scored 0.658, nearly doubling the diversity of CTGAN (0.352).
  • Visual Fidelity: t-SNE visualizations show that STaSy's synthetic points overlap almost perfectly with the original data clusters. While other models often leave large gaps or create "ghost" clusters that don't exist in reality, STaSy successfully avoids mode collapse.
t-SNE visualization showing STaSy's synthetic data overlapping perfectly with real data.

Limitations and Future Work

Despite its strengths, the authors note a few areas for improvement:

  • Sampling Speed: While faster than some advanced models, STaSy is still slower than simple GANs or VAEs because it requires solving an ODE to generate each record.
  • High-Dimensional Stability: While tabular data is generally lower-dimensional than images, SGMs can become unstable as dimensionality increases, suggesting a need for further research into extremely wide tables (thousands of columns).

The team suggests looking into even more efficient ODE solvers to further reduce the sampling time, potentially making score-based synthesis viable for real-time applications.

Summary updated

BibTeX
@inproceedings{kim2023stasy,
  author = {Jayoung Kim and Chaejeong Lee and Noseong Park},
  title = {{STaSy: Score-based Tabular data Synthesis}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=1mNssCWt_v},
}
Figure