Overview
This paper introduces CDTD (Continuous Diffusion for mixed-type Tabular Data), a novel continuous diffusion model built specifically for tabular datasets. By embedding categorical variables into a continuous space and applying a unified Gaussian noise process across all features, CDTD solves the scaling and balancing issues of previous models. The result is state-of-the-art performance in generating realistic, statistically faithful synthetic tables.
The Challenge of Tabular Data
Diffusion models have revolutionized image and text generation, but adapting them to tabular data is notoriously difficult. Tabular data is highly heterogeneous, typically mixing continuous features (like age or income) with categorical features (like occupation or zip code).
Existing tabular diffusion models (like TabDDPM or CoDi) awkwardly combine continuous diffusion for numbers and discrete (multinomial) diffusion for categories. This creates two major problems:
- Unbalanced Learning: The loss functions for continuous and categorical data operate on completely different scales. Without careful balancing, the model will implicitly favor learning one data type over the other.
- Poor Scalability: Existing models usually rely on one-hot encoding for categorical variables. If a dataset has a feature with thousands of unique categories (high cardinality), the model size blows up, making training incredibly slow or impossible.
Furthermore, previous models simply copy "noise schedules" (how fast noise is added or removed) from the image domain, which are often suboptimal for the unique structure of tabular data.
Methods: The CDTD Approach
To solve these issues, the authors propose a unified framework that treats all data types continuously.
The core innovations of CDTD include:
- Unified Continuous Diffusion: CDTD uses standard score matching for continuous features. For categorical features, it uses score interpolation. Categories are mapped to continuous embeddings, Gaussian noise is added to them, and a classifier predicts the original category to denoise it. This means all features are treated with the exact same Gaussian noise process.
- Data Type Homogenization: To prevent the model from favoring one feature type, the authors mathematically calibrate the loss functions. They initialize the neural network and scale the losses so that the expected loss for every single feature is exactly 1 at the start of training (when the data is pure noise).
- Adaptive Noise Schedules: Instead of using a fixed, manual noise schedule borrowed from image generation, CDTD learns the optimal noise schedule during training. Using a clever mathematical formulation based on the Logistic distribution CDF, the model automatically figures out which noise levels are most important to focus on for different data types.
Key Insights and Ideas
- All-Gaussian is Better: By pushing categorical diffusion into a continuous embedding space, the model avoids making hard, discrete jumps between categories during the early steps of generation. It can capture "in-between" uncertainty, which helps it learn complex correlations between features much better.
- Homogenization is Non-Negotiable: Ablation studies reveal a massive "aha" moment: simply balancing the initial loss scales of continuous (MSE) and categorical (Cross-Entropy) features drastically improves the quality of the generated data.
- Type-Specific Schedules Hit the Sweet Spot: The authors tested learning a single noise schedule for the whole table, one for each feature, and one for each data type (continuous vs. categorical). Type-specific schedules performed the best. A single schedule is too rigid, but per-feature schedules impose too many constraints and make training unstable.
- Data Space > Latent Space for Tables: Unlike images, where latent diffusion (like Stable Diffusion) rules, compressing tabular data into a latent space (via a VAE) often destroys subtle feature correlations. CDTD operates directly in the data space, preserving these delicate relationships.
Key Results
The model was evaluated on 11 diverse, publicly available datasets varying wildly in size (up to 1.6 million rows), task, and categorical cardinality.
- State-of-the-Art Quality: CDTD consistently ranked 1st or 2nd across a massive suite of benchmarks (beating SMOTE, ARF, CTGAN, TVAE, TabDDPM, CoDi, and TabSyn). It excelled particularly in capturing feature correlations (measured by the L2 distance of correlation matrices) and fooling machine learning detectors.
- Massive Scalability: Because CDTD uses embeddings instead of one-hot encoding, it scales effortlessly to high-cardinality datasets. On the
lendingdataset (which features a category with over 3,000 unique values), baseline models like CoDi were prohibitively expensive to train (estimated 60 hours), while CDTD trained efficiently in just 25 minutes. - Faster Sampling: CDTD's sampling speed is highly competitive, generating 1,000 samples in less than a second for most datasets, significantly outperforming discrete diffusion baselines.
Limitations and Future Work
While highly effective, CDTD introduces a few new hyperparameters (like embedding initialization and noise schedule priors), though default settings proved robust across all tested datasets. Additionally, while it excels on general tabular data, specialized models might still outperform it on specific structures like time-series.
Future work will explore adapting CDTD for tabular data imputation (filling in missing values), investigating accelerated sampling techniques to generate data in even fewer steps, and designing more efficient neural network architectures specifically tailored for tabular score modeling.
Summary updated