TabNAT: A Continuous-Discrete Joint Generative Framework for Tabular Data

Hengrui Zhang, Liancheng Fang, Qitian Wu, Philip S. Yu

TL;DR

TabNAT is a hybrid generative framework that nests conditional diffusion processes within a bi-directional masked Transformer to synthesize high-quality tabular data. By combining the order-agnostic flexibility of transformers with the continuous-modeling power of diffusion, it sets a new state-of-the-art for both synthetic data generation and missing data imputation.

The Challenge: Mismatches in Tabular Generation

Generative AI has revolutionized text and images, but tabular data—the backbone of enterprise and scientific computing—remains a stubborn frontier. The authors identify two fundamental "mismatches" when applying dominant Large Language Model (LLM) architectures to tables:

  1. The Type Mismatch: Traditional autoregressive (AR) models are designed for discrete tokens. Tabular data, however, is heterogeneous, mixing categorical labels with continuous numerical values. Forcing numbers into discrete "bins" loses information, while assuming they follow simple Gaussian distributions is often too restrictive for real-world data.
  2. The Order Mismatch: Language has a natural left-to-right sequence. Tables do not. A table is "permutation-invariant"—the relationship between "Age" and "Income" is the same regardless of which column comes first. Fixed-order AR models struggle with tasks like missing data imputation, where the "target" column to be filled might appear earlier in the sequence than the available "context" columns.

Enter TabNAT: Diffusion-nested Non-autoregressive Transformer

To address these limitations, the authors propose TabNAT, a framework that treats tabular generation as a masked reconstruction task rather than a sequential one.

TabNAT Training and Sampling Architecture
  • Bi-directional Masked Transformer: Instead of a causal (GPT-style) transformer, TabNAT uses a bi-directional architecture similar to BERT. During training, random columns are masked, and the model learns to generate embeddings for those missing slots based on all other visible columns.
  • Nested Diffusion for Continuous Data: This is the framework's core innovation. For numerical columns, the Transformer’s output doesn't predict a single value. Instead, it serves as the conditioning context for a diffusion model. This diffusion model iteratively denoises Gaussian noise to produce precise continuous values, capturing complex, non-linear distributions without requiring discretization.
  • Categorical Prediction: For discrete columns, the model uses a standard MLP head to predict categorical distributions, optimized via KL divergence.
  • Order-Agnostic Inference: Because the attention mechanism is bi-directional, TabNAT can "fill in the blanks" for any arbitrary subset of columns, making it natively capable of high-performance data imputation without retraining.

Key Insights

  • The Power of Nesting: Transformers and Diffusion shouldn't be competitors; they are complementary. The Transformer excels at modeling the global dependencies between columns, while Diffusion excels at the "local" task of generating precise continuous values within those dependencies.
  • Parallelism vs. Dependency: Pure diffusion models are fast because they generate columns in parallel, but they often miss explicit column-to-column dependencies. TabNAT’s hybrid approach allows for parallel generation of continuous columns while maintaining the explicit modeling of dependencies characteristic of autoregressive approaches.
  • Swiss Army Knife Capability: Because TabNAT is order-agnostic, the exact same model used to generate a synthetic dataset from scratch can be used to impute missing values in a partially completed table.

Performance and Results

The model was evaluated on ten diverse real-world datasets, ranging from continuous-only to discrete-only and heterogeneous mixtures. TabNAT demonstrated clear superiority over ten state-of-the-art baselines (including TabSyn, TabDDPM, and DP-TBART):

  • Statistical Fidelity: TabNAT outperformed the second-best methods in five out of six fidelity metrics. Notably, it improved Joint Correlation estimation by 10.5% and Jensen-Shannon Divergence (JSD) by 18.2% on average across all datasets.
  • Machine Learning Efficiency (MLE): When synthetic data was used to train downstream ML models, TabNAT-generated data led to a 30%+ improvement in closing the gap between synthetic and real-world performance (measured via AUC/RMSE).
  • Imputation Excellence: In missing data tasks, TabNAT surpassed specialized imputation models like Remakser and HyperImpute, proving that a strong joint generative model is often the best tool for conditional inference.

Limitations and Future Work

While TabNAT represents a significant step forward, the authors note a few areas for future growth:

  • Computational Overhead: Although optimized, diffusion still requires more iterations than simple VAEs or GANs. Further research into "consistency models" or fewer-step diffusion could speed up generation.
  • High-Cardinality Scaling: The discrete prediction head uses a shallow MLP. For datasets with thousands of unique categories (e.g., zip codes or product IDs), more sophisticated embedding strategies might be needed.
  • Relational and Time-Series Data: Extending this "nested" framework from single, static tables to multi-table relational databases or time-series tabular data is a logical next step.

Summary updated

BibTeX
@inproceedings{zhang2025tabnat,
  author = {Hengrui Zhang and Liancheng Fang and Qitian Wu and Philip S. Yu},
  title = {{TabNAT: A Continuous-Discrete Joint Generative Framework for Tabular Data}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=WbfbT2BH6F},
}
Figure