Text Serialization and Their Relationship with the Conventional Paradigms of Tabular Machine Learning

Kyoka Ono, Simon A. LeeAI4Science @ ICML 2024

TL;DR

This paper investigates the use of Large Language Models (LLMs) for tabular machine learning tasks by converting tabular data into text (text serialization). They found that while LLMs can achieve state-of-the-art results on specific tasks, they don't consistently outperform traditional methods like gradient boosting and require careful consideration of data preprocessing.

What Problem Does This Paper Address?

The rise of powerful LLMs has led researchers to explore their application beyond natural language processing, including tabular data. Text serialization offers a seemingly simple way to adapt LLMs to tabular data by converting rows into sentences. However, there's a significant gap in understanding how effective this approach is compared to established tabular machine learning methods, especially concerning data preprocessing, robustness to common data challenges (like imbalance and distribution shifts), and overall performance. This paper aims to bridge this gap by systematically evaluating text serialization with LLMs against traditional techniques.

Methods

The core methodology involves:

  • Text Serialization: Converting tabular data into natural language sentences using predefined templates.
  • Language Model Selection: Benchmarking various open-source LLMs (BERT, DistilBERT, RoBERTa, etc.) on a tabular dataset to select the best performing backbone model for their "TabLM."
  • Data Curation Experiments: Investigating the impact of feature selection, feature scaling, and outlier handling on serialized data performance.
  • Classification Experiments: Evaluating the performance of the developed TabLM against traditional machine learning models (SVM, XGBoost, LightGBM) and other state-of-the-art tabular deep learning models (TabNet, TabPFN) on a diverse set of tabular datasets, including those with class imbalance, distribution shifts, and high dimensionality.

Datasets

The study utilizes a combination of baseline and experimental datasets:

Baseline Datasets: * Iris * Wine * Diabetes * Titanic

Experimental Datasets: * HELOC (Home Equity Line of Credit) - known for distribution shift. * San Francisco Crime - known for inherent biases. * Credit Card Fraud - known for class imbalance. * Gene Expression Profiles for Cancer Target Identification - known for high dimensionality.

Key Insights and Ideas

  • LLMs are not a universal replacement for traditional methods: While LLMs can achieve SOTA on specific tabular tasks, they don't consistently outperform established methods like gradient boosting.
  • Data curation matters, but differently: Feature selection proved beneficial for LLMs, enhancing performance. However, feature scaling and imputation strategies yielded nuanced or even negative results, suggesting that traditional data preprocessing might not directly translate to the text serialization approach.
  • Computational cost is a significant barrier: LLMs are computationally demanding, requiring substantial hardware (GPUs) and longer inference times compared to traditional methods. This limits their accessibility and practicality for many users.
  • Serialization sensitivity: The way tabular data is converted into text can significantly impact LLM predictions, highlighting the need for careful consideration of serialization strategies.

Key Results

  • DistilBERT was identified as the best performing LLM backbone for their "TabLM" among the evaluated models.
  • Feature selection generally improved F1 score and AUROC for the serialized text approach.
  • TabLM achieved SOTA accuracy levels on specific tasks within the experimental datasets.
  • Traditional models often yielded more robust results across the board, especially on baseline datasets.
  • Inference time for LLMs was significantly higher than for boosting methods, with boosting methods being far more efficient.

Limitations and Future Work

  • Computational Demands: The significant computational cost and hardware requirements of LLMs are a major limitation, hindering accessibility.
  • Serialization Strategy: The paper acknowledges that while list readouts and text templates were used, there's still a need for further research into optimal serialization strategies to avoid negatively impacting performance.
  • Future Work: The authors suggest exploring the scalability and performance of LLMs as their parameter count increases. They also emphasize the need for further research into the appropriate strategies for text serialization and model optimization for tabular data.

Summary updated

BibTeX
@inproceedings{ono2024text,
  author = {Kyoka Ono and Simon A. Lee},
  title = {{Text Serialization and Their Relationship with the Conventional Paradigms of Tabular Machine Learning}},
  booktitle = {AI4Science @ ICML},
  year = {2024},
  url = {https://openreview.net/forum?id=mdR5bib3rK},
}
Figure