AutoDiff: combining Auto-encoder and Diffusion model for tabular data synthesizing

Namjoon Suh, Xiaofeng Lin, Din-Yin Hsieh, Mehrdad Honarkhah, Guang Cheng

TL;DR

Generating realistic synthetic tabular data is notoriously tricky because tables mix continuous numbers, discrete categories, and hybrid values with complex cross-column correlations. AutoDiff overcomes this by training an autoencoder to project heterogeneous tabular features into a unified, continuous latent space, where a score-based diffusion model can smoothly learn the joint distribution. Evaluated across 15 real-world datasets, AutoDiff significantly improves correlation modeling and downstream machine learning utility—especially on regression tasks—compared to existing tabular GANs and diffusion models.

What Problem Does This Paper Address?

Diffusion models dominate image, audio, and text generation, but tabular data remains a stubborn holdout. Real-world tables possess three messy properties that break conventional generative frameworks:

  1. Heterogeneous data types: Columns can be continuous, discrete/categorical, or binary. Standard score-based diffusion operates on continuous spaces, while categorical one-hot vectors break under continuous noise perturbation.
  2. Mixed-type features: Some columns behave continuously but feature discrete spikes (e.g., a "Length" column where a specific default value repeats in 30% of records).
  3. Cross-attribute correlations: Existing approaches like TabDDPM handle continuous and categorical features via separate diffusion processes or assume independence, failing to capture subtle, joint interactions between different feature types.

Methods

AutoDiff resolves these issues by combining an autoencoder (AE) with a continuous score-based diffusion model:

Real Table (Heterogeneous)
       │
       ▼ [Pre-processing: Min-Max / Quantile + Dummy Encoding for Mixed Types]
  x_proc
       │
       ▼ [MLP Encoder]
  x_lat  (Continuous Latent Space)
       │
       ▼ [VP-SDE Score-Based Diffusion Model]
  x_lat_syn (Generated Latent)
       │
       ▼ [MLP Decoder with Truncation & Mixed-Type Reconstruction]
Synthetic Table
  • Preprocessing & Mixed-Type Handling: Continuous features are normalized (min-max or Gaussian quantile transformed), while discrete features are mapped to integers. For mixed-type features, the authors generate an auxiliary discrete column ($y$) that flags values appearing above a set frequency threshold ($h = 1\%$), allowing the model to isolate repeated values from true continuous variance.
  • Autoencoder Architecture: A multi-layer perceptron (MLP) encodes normalized rows into continuous latent vectors ($x^{\text{Lat}}$). The decoder reconstructs outputs using a combined loss: Mean Squared Error (MSE) for numerical features, Binary Cross Entropy (BCE) for binary features, and Cross Entropy (CE) for categorical features. Numerical outputs are clamped to valid training bounds.
  • Score-Based Diffusion: A continuous Variance Preserving Stochastic Differential Equation (VP-SDE) models the distribution of the latent representations $x^{\text{Lat}}$. Two architectural variants are explored:
  • Stasy-AutoDiff: Uses concat-squash MLP layers (from Stasy) with min-max scaling.
  • Tab-AutoDiff: Uses sinusoidal time embeddings with Gaussian quantile scaling (from TabDDPM).
  • AutoGAN Baseline: The authors also introduce a latent-space GAN baseline (adapting MedGAN) to benchmark diffusion directly against adversarial learning under the exact same autoencoder setup.

Datasets

The authors evaluate AutoDiff across 15 diverse public benchmarks covering binary classification, multi-class classification, and regression. These include:

  • Classification: Abalone, Adult, Dry Bean, Churn-Modelling, Steel Plates Faults, HTRU2, Indian Liver Patient, Magic Gamma Telescope, Nursery, Obesity, Shoppers, Titanic, Wilt.
  • Regression: Insurance, Online News Popularity.

No new datasets were introduced; all datasets were sourced from OpenML, Kaggle, and the UCI Machine Learning Repository.

Key Insights and Ideas

  • The Latent Bridge: Continuous diffusion fails on discrete categories, and discrete diffusion struggles to capture continuous correlations. Mapping all features into an unconstrained continuous latent space allows a single diffusion process to learn the joint structure across all variables simultaneously.
  • Dramatic Gains in Cross-Feature Correlation: Because the diffusion model generates the full latent vector at once, AutoDiff captures Numerical–Numerical, Categorical–Categorical, and Numerical–Categorical correlations significantly better than TabDDPM and CTGAN.
  • Fixing Regression Utility: While diffusion models like TabDDPM perform well on classification, they often collapse on regression (producing negative $R^2$ values and massive errors). Latent autoencoding stabilizes continuous predictions, yielding usable regression models.

Key Results

  • Statistical Fidelity:
  • AutoDiff variants achieved top average ranks in numerical Wasserstein distance (3.57 for Stasy-AutoDiff vs. 4.42 for TabDDPM and 7.95 for Stasy).
  • AutoDiff outperformed all baselines in correlation matrix similarity: Cat-Cat correlation error dropped to 0.15 (vs. 0.26 for Stasy, 0.35 for TabDDPM), and Num-Cat error dropped to 0.15 (vs. 0.56 for Stasy, 0.60 for TabDDPM).
  • Downstream Machine Learning Utility (TSTR):
  • Regression: On downstream regression tasks, Stasy-AutoDiff achieved an $R^2$ of 0.199 and RMSE of 4,429.56, whereas TabDDPM produced an $R^2$ of -9.39 (RMSE 17,322) and Stasy completely degraded ($R^2 \ll 0$).
  • Classification: Tab-AutoDiff matched or slightly exceeded TabDDPM in accuracy (0.836 vs. 0.820) and AUROC (0.852 vs. 0.852), while substantially outperforming CTGAN (0.699 accuracy).
  • Privacy Trade-offs: AutoDiff models exhibited lower Distance to Closest Record (MDCR) ranks than pure diffusion models, indicating synthetic rows sit closer to the training samples.

Limitations and Future Work

  • Categorical Marginals: While joint correlation preservation is strong, AutoDiff's marginal Jensen-Shannon divergence for individual categorical columns ranked lower than CTGAN (rank 4.42 vs. 3.86).
  • Memorization and Privacy: The combination of autoencoders and diffusion increases sample memorization risk (evidenced by lower DCR scores), meaning synthetic records could leak sensitive training data.
  • Future Directions: The primary future goal stated by the authors is incorporating formal Differential Privacy (DP) constraints into AutoDiff to prevent memorization while retaining utility and fidelity.

Summary updated

BibTeX
@inproceedings{suh2023autodiff,
  author = {Namjoon Suh and Xiaofeng Lin and Din-Yin Hsieh and Mehrdad Honarkhah and Guang Cheng},
  title = {{AutoDiff: combining Auto-encoder and Diffusion model for tabular data synthesizing}},
  booktitle = {SyntheticData4ML @ NeurIPS},
  year = {2023},
  url = {https://openreview.net/forum?id=XhxOCXlXSh},
}

Loading related content...

Figure