Unlocking the Transferability of Tokens in Deep Models for Tabular Data

Qi-Le Zhou, Han-Jia Ye, Leye Wang, De-Chuan Zhan · DOI

TABTOKEN is a novel framework designed to make deep learning models for tabular data truly transferable across disparate datasets. By employing a contrastive regularization technique, it imbues feature embeddings with semantic meaning, allowing models to "reuse" knowledge from shared features and rapidly adapt to new ones, even with extremely limited training data.

What Problem Does This Paper Address?

In domains like computer vision and natural language processing, the "pre-train then fine-tune" paradigm is the gold standard. However, this approach has historically struggled with tabular data (e.g., spreadsheets or SQL tables) due to two primary hurdles:

  1. Feature Discrepancy: Tabular features are heterogeneous. Dataset A might contain "Age" and "Income," while Dataset B contains "Age" and "Credit Score." Standard deep models tie their weights to specific columns; if the column structure changes, the model architecture effectively breaks.
  2. Semantic Deficiency: Most deep tabular models use "tokenizers" to transform raw values into vectors (tokens). The authors discovered that in standard training, these tokens often behave like random noise. They lack the semantic structure required to be useful for new, downstream tasks.
Comparison between random and semantic token distributions.

The TABTOKEN Framework

TABTOKEN addresses these issues by focusing on the quality and transferability of feature tokens through three core innovations:

  • Averaging for Alignment: Instead of the standard practice of concatenating feature tokens—which makes models sensitive to column order—TABTOKEN averages them to create a unified "instance token." This forces all features into a shared semantic space.
  • Contrastive Token Regularization (CTR): This is the central innovation. During pre-training, the model is forced to minimize the distance between an instance token and its corresponding "class center" (the average token for all rows sharing the same label). This process "pulls" semantically related feature values together in the latent space, creating a structured distribution.
  • Token-Reused Fine-tuning: When transitioning to a new task with overlapping features, TABTOKEN freezes the tokens for shared features and only learns tokens for the new, unseen features. This significantly reduces the parameters requiring training from scratch.
The TABTOKEN framework illustrating the transition from tokenization to pre-training and fine-tuning with frozen/learnable components.

Experimental Evaluation

The researchers evaluated TABTOKEN on 10 open-source tabular datasets across medical, physical, and traffic domains, including classification tasks (e.g., Eye, Colon, Jannis) and regression tasks (e.g., Elevators, Volume). The experiments specifically targeted 5-shot learning scenarios, where the model only sees five examples per class in the downstream task, to test the limits of knowledge transfer.

Key Insights

  • Vanilla Tokens are "Stochastic": Mathematical and visual evidence suggests standard training doesn't force tokens to be meaningful. A strong classifier can solve a task even if input tokens are essentially random, explaining why vanilla models fail at transfer learning.
  • Semantics Emerge from Labels: By using target labels to group tokens via CTR, the model learns semantic relationships (e.g., identifying that different feature values contribute to the same "High Risk" prediction).
  • Automatic Noise Filtering: CTR naturally identifies noise; random features that do not aid prediction are "squished" into the center of the latent space, while discriminative features are pushed toward class clusters.

Key Results

  • Superior Few-Shot Performance: In 5-shot downstream tasks, TABTOKEN consistently outperformed state-of-the-art baselines like XTab, TabRet, and ORCA. On the Jannis dataset, TABTOKEN achieved an accuracy of ~0.368, significantly higher than the next best transfer method (ORCA) at ~0.341.
  • General Performance Gains: Even outside of transfer learning, adding the CTR objective improved the accuracy of standard models (MLP, ResNet, Transformer) on full datasets, proving that semantic tokens enhance overall generalization.
  • Robustness: TABTOKEN maintained high performance even when Gaussian noise was added to pre-training data, suggesting it captures underlying feature logic rather than just memorizing distributions.

Limitations and Future Work

While TABTOKEN is most powerful when there is significant feature overlap between tasks, the authors have explored re-weighting mechanisms for non-overlapping scenarios. Future research may involve incorporating Large Language Models (LLMs) to provide richer textual descriptions for features, potentially merging data-driven semantics with knowledge-driven insights from LLMs.

Summary updated

BibTeX
@inproceedings{zhou2023unlocking,
  author = {Qi-Le Zhou and Han-Jia Ye and Leye Wang and De-Chuan Zhan},
  title = {{Unlocking the Transferability of Tokens in Deep Models for Tabular Data}},
  booktitle = {TRL @ NeurIPS},
  year = {2023},
  url = {https://openreview.net/forum?id=u2OVQ2Xvq1},
}
Figure