TabularFM: An Open Framework For Tabular Foundational Models

Quan M. Tran, Suong N. Hoang, Lam M. Nguyen, Dzung T. Phan, Hoang Thanh LamarXiv 2024

TL;DR

This paper introduces TabularFM, an open-source framework for developing and evaluating foundational models (FMs) specifically for tabular data. By curating a large dataset of cleaned tabular data and releasing pretrained models, TabularFM aims to bridge the gap in FM research, which has historically focused on unstructured data, and enable more robust and transferable tabular FMs.

What Problem Does This Paper Address?

Foundational models (FMs) have revolutionized fields like natural language processing and computer vision by learning generalizable patterns from vast amounts of data, significantly reducing the need for labeled data in downstream tasks. However, tabular data, which is ubiquitous across industries, has been largely overlooked in FM research. This is due to several challenges: the scarcity of large, clean tabular datasets, the inherent complexity of tabular data (e.g., mixed data types, varying column relationships), and a lack of understanding regarding the transferability of learned representations across different tabular datasets. TabularFM aims to address this gap by providing a comprehensive framework, curated datasets, and benchmark results to foster research in tabular FMs.

Methods

TabularFM is an end-to-end framework that encompasses several key components:

  • Data Curation: The authors curated approximately one million tabular datasets, cleaning them to create a high-quality benchmark dataset. This involved filtering for CSV files, ensuring a minimum usability rating, and removing noisy or irrelevant columns. They also explored domain-based splitting for datasets.
  • Generative Models: The framework supports state-of-the-art generative models for tabular data, including:
  • Conditional Tabular GAN (CTGAN): A GAN-based model designed for tabular data generation, handling mixed data types and addressing mode collapse.
  • Tabular Variational Autoencoder (TVAE): A VAE-based model for tabular data generation.
  • Shared Tabular Variational Autoencoder (STVAE): A modification of TVAE that removes dataset-specific parameters to improve transferability.
  • Shared Tabular Variational Autoencoder with Metadata (STVAEM): STVAE augmented with embeddings of column names for enhanced transferability.
  • Generation of Realistic Tabular data (GReaT): A transformer-based model that leverages pretrained language models for tabular data generation.
  • Data Transformation: The framework includes methods for transforming tabular data into formats suitable for these models, such as one-hot encoding for categorical features and specific normalization techniques for numerical features. For transformer models, data is converted into a sentence-like format.
  • Benchmarking and Evaluation: TabularFM provides tools to evaluate the performance of generative models and assess the transferability of pretrained models. Key metrics include "Column Shapes" (distribution similarity) and "Column Trends" (correlation similarity), combined into an "Overall Score."

Datasets

The paper utilizes two primary sources for datasets:

  • Kaggle: A large platform for data science datasets. The authors filtered and cleaned datasets from Kaggle, resulting in 43,514 potential datasets, which were further narrowed down to 1,435 high-quality tables. These were split into random and domain-based subsets.
  • GitTables: A corpus of one million relational tables from GitHub. After filtering for structured data, 1,258 tables were retained.

The paper also releases pretrained models on these curated datasets and provides leaderboards for future comparative studies.

Key Insights and Ideas

  • Pretraining Boosts Transferability: Pretrained models (e.g., TVAE and CTGAN) consistently outperform models trained from scratch on downstream tasks, showing a significant performance gain (around 10 points on average). This highlights the value of learning general tabular patterns.
  • General Knowledge Transfers Well: Highly general knowledge, such as correlations between age, gender, and chronic diseases, transfers effectively. However, specific knowledge like UNESCO regions or budget codes does not transfer as well, which is logical.
  • Transformer Models Show Promise, But with Caveats: Transformer models pretrained on textual data (like GReaT) perform well on tabular benchmarks, potentially due to their attention mechanisms and general knowledge acquired from large text corpora. However, further pretraining these models on tabular data sometimes decreases performance, suggesting that current tabular datasets might not be sufficient to improve upon their text-based pretraining.
  • Metadata Augmentation Doesn't Always Help: Adding extra column metadata (like embeddings of column names) did not consistently improve transferability, indicating that identifying optimal meta-information is an ongoing challenge.
  • Tabular Data is Noisier Than Expected: Despite the challenges of noise and varied structures in tabular data, the study confirms that specific types of knowledge can still be effectively transferred through pretraining.

Key Results

  • Pretrained TVAE and CTGAN models showed an average performance improvement of about 10 points over models trained from scratch.
  • The GReaT model, pretrained on textual data, achieved the best results on the benchmark.
  • The paper provides a comprehensive analysis of transferability across different datasets and model architectures, supported by quantitative metrics and qualitative visualizations (e.g., wordclouds of column importance).
  • Figures 4 and 5 demonstrate that pretrained STVAE models better capture data distributions and converge faster than models trained from scratch.

Limitations and Future Work

  • Limited Data Types: The current framework is limited to numerical and categorical data. Future work aims to extend it to a more diverse range of data types.
  • Model Size: The study suggests that increasing model size can further enhance results, implying that larger tabular FMs could yield even better performance.
  • Dataset Size for Transformers: The authors hypothesize that current tabular datasets might not be large enough to fully leverage the potential of transformer models, suggesting a need for larger, curated tabular datasets for pretraining transformers.
  • Meta-Information: Identifying optimal meta-information for enhancing transferability remains an open challenge.
  • Future Directions: The authors plan to extend the framework to more diverse data types and train larger models on more extensive datasets. They also aim to continue developing the framework for rapid benchmarking of new tabular FM models.

Summary updated

BibTeX
@misc{tran2024tabularfm,
  author = {Quan M. Tran and Suong N. Hoang and Lam M. Nguyen and Dzung T. Phan and Hoang Thanh Lam},
  title = {{TabularFM: An Open Framework For Tabular Foundational Models}},
  year = {2024},
  eprint = {2406.09837},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.09837},
}
Figure