Generating synthetic tabular data is a high-stakes challenge in fields like healthcare and finance, where privacy regulations make sharing real data difficult. Unlike text or images, tabular data is inherently "heterogeneous"—it mixes categorical labels (like "Male/Female") with continuous numbers (like "Income").
Existing approaches like GANs, VAEs, and Diffusion models often struggle with three specific issues when applied to tables:
- Lack of inherent order: Unlike words in a sentence, columns in a table don't have a natural sequence.
- Missing values: Real-world tables are often full of holes, which most models require you to "fix" (impute) before training.
- Scalability: Many models that work well on small datasets fail to handle the high cardinality and massive row counts of industrial-scale data.
To address these challenges, researchers have introduced TabMT, a Masked Transformer architecture specifically designed to generate high-quality synthetic tabular data. By rethinking the standard BERT-style masking procedure and introducing "ordered embeddings" for continuous variables, TabMT achieves state-of-the-art performance that scales from tiny datasets to massive tables with over 30 million rows.
Rethinking the Masked Transformer for Tables
TabMT adapts the Masked Transformer (MT) architecture—best known for powering BERT—but modifies it for data generation rather than just feature extraction.
Key innovations in the TabMT architecture include:
- Uniform Masking Probability: In standard BERT, a fixed 15% of tokens are masked. TabMT instead samples the masking probability from a uniform distribution $U(0, 1)$ for every row during training. This ensures the model learns to predict values whether it has 90% of the context or only 10%, perfectly matching the varying conditions it will face during iterative generation.
- Ordered Embeddings: For continuous fields, TabMT uses K-Means to quantize values into clusters. It then represents these clusters using "ordered embeddings"—a mix of a standard learnable embedding and a vector interpolated between two "endpoint" vectors. This allows the transformer to understand ordinal relationships, recognizing that a value of 37 is "closer" to 38 than it is to 100.
- Native Missing Data Handling: TabMT can learn directly from incomplete data. It simply sets the masking probability of missing fields to 1 during training, avoiding the need for error-prone imputation preprocessing.
Random Order Generation
To respect the fact that tables are unordered, the model generates fields in a random sequence during inference.
Because tabular data lacks a sequence, an autoregressive model (like GPT) is forced to predict the "next" column based only on "previous" ones. TabMT’s masked approach allows every field to attend to every other field, capturing complex, non-linear dependencies more effectively. The authors mathematically prove that combining uniform masking with this random-order generation eliminates the "training-inference mismatch" found in previous models.
Performance and Scaling
The authors evaluated TabMT on 15 standard benchmark datasets (ranging from ~400 to 150,000 samples) and the massive CIDDS-001 dataset, which contains over 30 million rows of network traffic data with extremely high cardinality.
Key Results: * State-of-the-Art Quality: TabMT matched or exceeded the performance of the previous leader (TabDDPM) on 11 out of 15 benchmark datasets using the Machine Learning Efficiency (MLE) metric. * Superior Correlations: Qualitative analysis showed that TabMT captures the correlation structure of the original data much more accurately than GAN-based competitors like CTABGAN+. * Massive Scaling: On the 30-million-row CIDDS-001 dataset, TabMT significantly outperformed specialized network traffic generators, achieving a 20x improvement in the rate of "invariant violations" (e.g., generating impossible network logic). Notably, the authors achieved this without quantizing continuous variables, proving the model's robustness to high-cardinality data. * Privacy-Quality Trade-off: By using temperature scaling at inference time, users can generate more "novel" samples that are further from the training data. TabMT consistently achieved higher Distance to Closest Record (DCR) scores than TabDDPM while maintaining similar or better data utility, offering superior privacy tradeoffs.
Limitations and Future Work
While highly effective, TabMT has a few limitations. Because it generates fields iteratively, inference is slower than lightweight MLPs or GANs that output an entire row in a single forward pass. Additionally, searching for the optimal temperature for privacy/quality trade-offs adds compute time. Finally, while it scales well, the default method still relies on K-Means quantization for continuous fields; future work could integrate diffusion-based techniques to handle continuous values even more smoothly.
Summary updated