Tabular Data: Is Attention All You Need?

Guri Zabërgja, Arlind Kadra, Josif GrabockaarXiv 2024 · DOI

Abstract

For over a decade, Gradient Boosted Decision Trees (GBDTs) have been the undisputed champions of tabular data. This research marks a potential paradigm shift, demonstrating that through rigorous hyperparameter optimization, proper "refitting" strategies, and the rise of meta-learned foundation models like TabICL, Deep Learning has finally overtaken classical tree-based methods in predictive performance.

Introduction: The Final Frontier for Deep Learning

In the world of machine learning, tabular data—the structured information found in spreadsheets and SQL databases—has long been considered the "final frontier" for Deep Learning (DL). While DL dominates fields like computer vision and natural language processing, researchers have repeatedly found that GBDTs (such as XGBoost, LightGBM, or CatBoost) are faster, more robust, and more accurate on tabular benchmarks.

However, recent arguments suggest that previous comparisons may have been biased. Deep learning models often lacked the thorough hyperparameter tuning afforded to tree-based counterparts, and benchmarks frequently ignored the crucial step of refitting. This study addresses these gaps by evaluating 17 different methods across 68 diverse datasets from the OpenMLCC18 benchmark.

Methodology and Taxonomy

The researchers categorized the evaluated methods into three primary groups: Classical ML (GBDTs), AutoML (AutoGluon), and Deep Learning. Deep Learning was further subdivided into "Dataset-specific" neural networks (e.g., ResNet, TabM) and "Foundation Models" that utilize In-Context Learning (ICL) or Fine-Tuning (FT).

Taxonomy of Tabular Classification (TC) Models

To ensure a "gold standard" for fairness, the study employed:

  • Rigorous HPO: 100 trials per model using Optuna (Tree-structured Parzen Estimator).
  • Refitting Protocol: Models were refit on combined training and validation data before final testing, a step often omitted in prior literature.
  • Scale: The benchmark involved 8 million evaluations, totaling approximately 11.81 GPU years of computation.

Key Insights: The Rise of Foundation Models

The results indicate a clear paradigm shift in tabular machine learning. Meta-learned models, specifically TabICL and TabPFNv2—which are pre-trained on millions of synthetic tables—achieved the highest overall rankings.

Comparison of model rankings across different categorization schemes. Left: Classical ML vs. Deep Learning vs. AutoML. Right: Dataset-specific vs. Foundation Models vs. AutoML.

The "Refitting" Revelation

One of the most significant findings is that refitting a model on the combined training/validation set significantly alters the leaderboard. For instance, after refitting, XGBoost managed to surpass several complex Transformer-based architectures, highlighting the importance of this protocol for fair comparison.

The Small Data Paradox

Contrary to the conventional wisdom that Deep Learning requires "Big Data," this study found that DL models dominate GBDTs most decisively on small datasets (under 5,000 rows), winning 31 to 3 in head-to-head matchups.

Simplicity vs. Complexity

Among non-foundation models, simple feed-forward networks like TabM and RealMLP often outperformed more complex, attention-heavy architectures like TabNet or SAINT. This suggests that for tabular data, sophisticated attention mechanisms may not always be the optimal choice compared to well-regularized MLPs.

Key Results and Leaderboard

  1. Top Performers: TabICL secured the top spot with a median rank of 2, followed by AutoGluon and TabPFNv2 (both with a median rank of 3).
  2. DL vs. GBDT: The best non-meta-learned DL model, TabM, achieved a median rank of 5, outperforming the best GBDT, CatBoost (median rank 5.5).
  3. Efficiency: While DL won on accuracy, XGBoost remains the efficiency leader, reaching near-optimal performance in under 5 hours of HPO, whereas some DL models required significantly more time and memory.

Limitations and Future Outlook

Despite the strong performance of Deep Learning, several hurdles remain. Computational costs for foundation models based on Large Language Models (like TP-BERTa) are high, often struggling with HPO time limits. Additionally, memory constraints for models like SAINT and TabNet persist on larger datasets.

Future research should focus on improving the computational efficiency of high-performing foundation models and exploring how meta-features can predict the optimal model for a given dataset. While DL has claimed the performance crown, the interpretability and speed of GBDTs ensure they remain relevant in many industrial applications.

Summary updated

BibTeX
@misc{zabergja2024tabular,
  author = {Guri Zabërgja and Arlind Kadra and Josif Grabocka},
  title = {{Tabular Data: Is Attention All You Need?}},
  year = {2024},
  eprint = {2402.03970},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.03970},
}
Figure