CTSyn: A Foundation Model for Cross Tabular Data Generation

Xiaofeng Lin, Chenheng Xu, Matthew Yang, Guang Cheng

Overview

CTSyn is a novel generative foundation model designed to synthesize tabular data across diverse schemas and domains. By combining a cross-table autoencoder with a conditional latent diffusion model, CTSyn learns a unified representation of tabular data. This approach allows it to outperform specialized synthesizers, particularly in "low-data" scenarios where only a few real examples are available.

The Challenge of Tabular Data

While Generative Foundation Models (GFMs) like GPT-4 or Stable Diffusion have mastered text and images, tabular data remains a significant challenge. Tables are notoriously heterogeneous: one table might list numerical medical vitals, while another contains text-based marketing categories, each with entirely different column counts and statistical distributions.

Most current tabular generators are "single-table" models, meaning they must be trained from scratch for every new dataset. Consequently, they cannot leverage knowledge from other tables and often fail when the target dataset is small. Existing "cross-table" attempts usually treat tables as raw text—losing structural nuance—or lack a robust generative backbone. CTSyn aims to be the "LLM for tables," providing a pre-trained model that understands the underlying structure of data across diverse domains.

CTSyn Architecture

CTSyn employs a two-stage architecture to handle the "any-column, any-type" nature of tables:

CTSyn Architecture

1. The Cross-Table Autoencoder

  • Embedding: The model uses a pre-trained Language Model (GTE-large) to embed column names and categorical values into a continuous space. Numerical values are normalized using a quantile transformer.
  • Encoder: Based on the Perceiver Resampler architecture, the encoder takes a variable number of column embeddings and compresses them into a fixed-size latent vector. Crucially, it omits positional embeddings, making it permutation-invariant (the order of columns does not matter).
  • Meta-Guided Decoder: To reconstruct the row, the decoder uses the target column names as "queries" to extract the relevant information from the latent vector.

2. Conditional Latent Diffusion

Instead of generating raw data directly, CTSyn trains a Diffusion Transformer to generate these compressed latent vectors. The generation process is conditioned on the table schema (metadata and column names). This contextual conditioning ensures the model knows whether it is generating a row for a "Heart Disease" dataset versus a "Real Estate" dataset.

Key Insights

  • Column Names as Anchors: By embedding column names (e.g., "Age" or "Income") using an LLM, the model treats the meaning of the column as a guide for the data distribution. This allows CTSyn to transfer knowledge across different tables (e.g., knowing that "Age" typically ranges from 0 to 100).
  • The Power of Latent Space: Generating data in a compressed latent space makes the diffusion process more stable and allows the model to handle tables with hundreds of columns using a fixed-size internal representation.
  • Regularization via Pre-training: Pre-training acts as a powerful regularizer, preventing the model from merely memorizing the training data. This leads to synthetic samples that are more diverse and offer better privacy protection than models trained entirely from scratch.

Evaluation and Results

CTSyn was pre-trained on a filtered version of the OpenTab dataset (86 diverse tables, 5.01 million rows) and evaluated on 11 well-known real-world datasets (e.g., Adult, Titanic, Indian Liver Patient).

  • Statistical Fidelity: CTSyn achieved a correlation score of 0.95, matching or exceeding state-of-the-art models like TabSyn (0.93) and TabDDPM (0.93).
  • Diversity and Privacy: The model produced highly diverse data distributions (verified via t-SNE) and achieved top Authenticity scores (0.97), indicating it generates genuinely new, realistic samples rather than leaking original training rows.
  • The Low-Data Hero: In "few-shot" tests (training on only 30, 50, or 100 rows), CTSyn significantly outperformed all baselines. It effectively fills in the gaps using patterns learned during its massive pre-training phase.
Few-Shot Performance

Limitations and Future Work

  • Semantic Dependency: The model relies heavily on descriptive column names. If a table uses cryptic headers (like "Var_1", "Var_2"), performance drops slightly, though it remains robust compared to baselines.
  • Modality Expansion: While the framework is extensible, the current iteration focuses primarily on numerical and categorical data. Full integration of text and date-time variables is left for future work.
  • In-Context Generation: Currently, CTSyn requires fine-tuning for new datasets. Future versions may move toward "zero-shot" or "in-context" generation, synthesizing data directly from a schema and a few examples without weight updates.

Summary updated

BibTeX
@inproceedings{lin2025ctsyn,
  author = {Xiaofeng Lin and Chenheng Xu and Matthew Yang and Guang Cheng},
  title = {{CTSyn: A Foundation Model for Cross Tabular Data Generation}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=Sh4FOyZRpv},
}
Figure