NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

PTab: Using the Pre-trained Language Model for Modeling Tabular Data

Guang Liu, Jie Yang, Ledell WuarXiv 2022 · DOI

Abstract

PTab is a novel framework that treats tabular data rows as text sentences, allowing researchers to leverage the power of Pre-trained Language Models (PLMs) for classification tasks. By converting rows into a "Header: Value" format, PTab captures semantic context that traditional models miss and enables training across multiple different datasets simultaneously. Experimental results show that PTab outperforms state-of-the-art tree-based models like XGBoost, particularly in semi-supervised settings.

Introduction

While deep learning has revolutionized image and text processing, tabular data—the backbone of many industrial applications—is still dominated by tree-based models like XGBoost and GBDT. Neural networks face two major hurdles in this domain:

  1. Lack of Semantic Information: Most models treat a feature value (e.g., "32") as a raw number or an index, ignoring the "meaning" of the column header (e.g., "Age" vs. "Shoe Size"), which provides vital context.
  2. The "Silo" Problem: It is difficult to train a single model on multiple different tabular datasets because every table has a different schema. This prevents tabular models from benefiting from the large-scale pre-training that has made LLMs successful.
Comparison of PTab's semantic approach vs existing methods.

PTab addresses these by including column names in the input string, leveraging the semantic knowledge already baked into the Pre-trained Model (PTM). This textualization turns every table into the same "modality" (text), allowing for mixed-dataset pre-training.

Methodology

PTab introduces a three-stage pipeline to bridge the gap between tables and text:

  1. Modality Transformation (MT): PTab converts a row of data into a natural language sentence. For example, a row with Age: 32, Job: Engineer becomes the string: Age : 32 [SEP] Job : Engineer. This allows the model to "read" the headers and values together.
  2. Masked-Language Fine-tuning (MF): Using a pre-trained BERT model, PTab performs self-supervised learning on the textualized tabular data. It masks certain tokens and asks the model to predict them, forcing the model to learn the relationships between different features.
  3. Classification Fine-tuning (CF): Finally, the model is fine-tuned on the target task using the standard [CLS] token representation.
The three-stage PTab pipeline: Modality Transformation (MT), Masked-language Finetuning (MF), and Classification Finetuning (CF).

Experimental Results

The authors evaluated PTab on eight popular binary classification datasets spanning business, finance, demographics, and specialized fields (e.g., chemistry and geology).

Supervised Performance

PTab achieved an average AUC of 0.866, outperforming XGBoost (0.861) and other neural baselines like SAINT (0.833) and TabNet (0.808).

Semi-Supervised Strength

PTab shines when labeled data is scarce. With only 50 labeled examples, PTab outperformed the next best competitor (TabTransformer) by a significant margin in average AUC.

Interpretability

Because PTab uses a Transformer architecture, researchers can visualize attention weights. This provides "instance-based interpretability," showing exactly which features the model focused on to make a specific prediction.

Conclusion and Limitations

PTab demonstrates that PLMs can be highly effective for tabular data by leveraging semantic context. However, challenges remain:

  • Numerical Precision: LLMs often struggle with precise arithmetic because they tokenize numbers into sub-words.
  • Computational Cost: Training Transformer-based models is significantly more resource-intensive than training GBDTs.

Future work will explore better numerical representations and optimized masking ratios to further improve performance on tabular distributions.

Summary updated

BibTeX
@misc{liu2022ptab,
  author = {Guang Liu and Jie Yang and Ledell Wu},
  title = {{PTab: Using the Pre-trained Language Model for Modeling Tabular Data}},
  year = {2022},
  eprint = {2209.08060},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.08060},
}
Figure