Generative Table Pre-training Empowers Models for Tabular Prediction

Tianping Zhang, Shaowen Wang, Shuicheng Yan, Jian Li, Qian Liu

While pre-trained language models (LMs) have revolutionized natural language processing, their application to tabular data—the bread and butter of real-world data science—has largely been confined to reasoning tasks like Table Question Answering. Prediction tasks, such as forecasting income or housing prices, are still dominated by traditional Gradient Boosted Decision Trees (GBDTs).

In this paper, researchers introduce TAPTAP (Table Pre-training for Tabular Prediction), the first generative pre-training framework designed specifically to empower tabular prediction models. By treating table rows as a "language" and learning a generic distribution across millions of samples, TAPTAP generates high-quality synthetic data that can be used to boost performance in privacy-sensitive, low-resource, or noisy environments.

TL;DR

TAPTAP leverages generative pre-training on a massive corpus of diverse tables to learn a "generic tabular distribution," which it then uses to synthesize high-quality data for downstream tasks. This approach allows it to outperform 16 baselines across scenarios like privacy protection, data augmentation, and missing value imputation, often matching the performance of models trained on original, real-world data.

What Problem Does This Paper Address?

Tabular prediction is challenging because tables often lack the inherent sequential structure of text. While models like TAPAS and TaBERT exist, they focus on "joint reasoning" (e.g., answering a question about a table). They don't directly help with the core goal of tabular prediction: predicting a target label based on a set of features.

Furthermore, real-world tabular data is often plagued by:

  1. Privacy constraints: You can't always share raw data.
  2. Low-resource regimes: Some datasets are too small for deep learning.
  3. Missing values: Ubiquitous in real-world datasets.
  4. Imbalanced classes: Rare events are hard to predict.

TAPTAP addresses these by using a generative LM as a high-fidelity data factory, creating synthetic samples that preserve the statistical and semantic nuances of the original data.

Methods

The TAPTAP workflow consists of four main stages, as illustrated in Figure 2:

The TAPTAP workflow: Pre-training, Fine-tuning, Sampling, and Labeling.
  1. Pre-training: The authors take a GPT-2 architecture and pre-train it on a massive corpus of 450 diverse public datasets. To make tables "readable" for the LM, they serialize rows into strings like [Feature] is [Value].
  2. Fine-tuning: The model is then fine-tuned on a specific downstream table to capture its unique distribution.
  3. Data Sampling: TAPTAP is prompted to generate new, synthetic feature sets.
  4. Data Labeling: Crucially, instead of letting the LM generate labels (which it's not great at), the authors use a state-of-the-art "backbone" model (like LightGBM) trained on the original data to assign pseudo-labels to the synthetic features.

Key Innovations: * Character-level Number Encoding: LMs often struggle with numerical semantics. TAPTAP encodes numbers as sequences of digits (e.g., "1 8" instead of "18"), which significantly improves its ability to handle numerical data. * Feature Permutation: To prevent the model from learning spurious patterns based on column order, the features are randomly shuffled during training.

Datasets

  • Pre-training Corpus: A newly compiled collection of 450 public tabular datasets from Kaggle, UCI, and OpenML, totaling nearly 2 million samples. The diversity of this corpus is shown in the word cloud in Figure 3.
  • Evaluation Benchmarks: 12 diverse real-world datasets (e.g., Adult Income, California Housing, Diabetes) covering both classification and regression.
Figure 3: The word cloud for the pre-training corpus.

Key Insights and Ideas

  • The Power of "Generic" Knowledge: Even though the pre-training tables are different from the test tables, learning the "language of tables" (how features relate to values) provides a massive head start.
  • Decoupling Generation from Prediction: TAPTAP doesn't replace LightGBM or XGBoost; it feeds them. By acting as a data generator, it allows practitioners to keep using their favorite high-performance backbone models.
  • Scaling Matters: The authors found a clear correlation between the size of the pre-training corpus and the quality of the synthetic data. As shown in Figure 6, moving from 0 to 2 million samples leads to a significant jump in downstream performance.
Figure 6: The influence of pre-training scale on the downstream performance. The value of each method is the average metric values across all datasets in the privacy protection setting with LightGBM.

Key Results

  • Privacy Protection: In many cases, a LightGBM model trained only on TAPTAP’s synthetic data performed almost as well as one trained on the original data.
  • Ablation Success: Figure 4 shows that pre-training and the specific data labeling strategy are the most critical components of TAPTAP's success.
  • Superior Diversity: TAPTAP generates more diverse and realistic samples than traditional generative models like CTGAN or TVAE, as measured by "coverage scores" (Figure 5).
Figure 4: Experimental results in the ablation study. The y-axis is the average metric values across all datasets in the privacy protection setting with Light- GBM.

Limitations and Future Work

  • Scalability: Being based on GPT-2, TAPTAP is computationally heavier and slower than simpler GAN-based generators.
  • Feature Constraints: Due to the 1024-token limit of GPT-2, TAPTAP currently struggles with tables having more than 100 features.
  • Data Quality: While pre-training on web tables (like WikiTables) is a promising future direction, the authors found that the noise in web data can currently hinder performance compared to curated datasets.

Overall, TAPTAP marks a significant milestone in tabular machine learning, proving that the generative pre-training recipes that transformed NLP can be successfully adapted to the structured world of tables.

Summary updated

BibTeX
@inproceedings{zhang2023generative,
  author = {Tianping Zhang and Shaowen Wang and Shuicheng Yan and Jian Li and Qian Liu},
  title = {{Generative Table Pre-training Empowers Models for Tabular Prediction}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.emnlp-main.917},
}
Figure