When Do Neural Nets Outperform Boosted Trees on Tabular Data?

Duncan C. McElfresh, Sujay Khandagale, Jonathan Valverde, Vishak Prasad C., Ganesh Ramakrishnan, Micah Goldblum, Colin White

TL;DR

This paper conducts the largest study to date on tabular data, comparing 19 algorithms across 176 datasets to find that the "Neural Network (NN) vs. Gradient-Boosted Decision Tree (GBDT)" debate is largely overblown. The authors reveal that hyperparameter tuning is often more important than model selection and introduce TabZilla, a new benchmark suite of the 36 "hardest" tabular datasets to challenge future research.

What Problem Does This Paper Address?

In fields like computer vision or natural language processing, neural networks are the undisputed kings. However, for tabular data (the rows-and-columns data found in spreadsheets and SQL databases), the crown is contested. Some researchers claim modern NN architectures have finally overtaken traditional GBDTs (like XGBoost), while others argue that trees remain superior.

The authors identify a major flaw in this debate: most prior studies used fewer than 50 datasets or failed to properly tune their baselines, leading to inconsistent conclusions. This paper seeks to provide a definitive, large-scale answer by looking not just at who wins, but why they win based on specific dataset properties.

Overview of the study's methodology and key findings.

Methods

The researchers executed a massive experimental campaign:

  • Scale: 19 algorithms (3 GBDTs, 11 NNs, and 5 baselines) tested across 176 datasets, resulting in over 500,000 trained models.
  • Algorithms: Included heavy hitters like CatBoost, XGBoost, and LightGBM, alongside modern tabular NNs like FT-Transformer, SAINT, and TabPFN.
  • Tuning: Each algorithm was given up to 30 hyperparameter optimization (HPO) iterations using Optuna.
  • Meta-Analysis: They extracted 965 "metafeatures" (statistical properties of the datasets) to correlate dataset characteristics with model performance.

Datasets

The study utilized 176 classification datasets sourced primarily from OpenML (including the CC-18 and Benchmarking suites).

The authors also introduced the TabZilla Benchmark Suite. They filtered their 176 datasets down to the 36 "hardest" ones—those where simple baselines fail to reach top performance and where there is significant disagreement among the top algorithms. This suite is intended to prevent "benchmark saturation" where models appear to perform equally well on easy tasks.

Key Insights and Ideas

  • The Debate is Overemphasized: For a huge portion of datasets, the performance gap between a well-tuned GBDT and a modern NN is negligible.
  • Tuning Trumps Architecture: In about one-third of cases, simply performing light hyperparameter tuning on a GBDT (like CatBoost) provided more gain than switching from a GBDT to a complex Neural Network.
  • GBDTs Love "Irregularity": Trees are significantly better at handling "dirty" data—datasets with skewed distributions, heavy tails, or high variance in feature values.
  • NNs Prefer "Regularity": Neural networks tend to perform better on datasets with "smooth" feature distributions and fewer outliers.
  • The Size-to-Feature Ratio: GBDTs tend to outperform NNs as the number of instances increases relative to the number of features. Conversely, NNs (specifically TabPFN) showed remarkable strength on very small datasets.

Key Results

  • Overall Winner: CatBoost achieved the best average rank (5.06) across the 104 primary datasets, followed closely by XGBoost.
  • Efficiency: GBDTs remain much faster to train. While NNs often required hours of GPU time, GBDTs achieved competitive or superior results in seconds or minutes.
Normalized accuracy vs. training time for various algorithms.
  • TabPFN's Niche: On datasets with fewer than 1,000 training instances, the neural-based TabPFN outperformed all other methods while being the fastest to "train" (as it is a prior-data fitted transformer).
  • No Universal King: Almost every algorithm ranked 1st on at least one dataset and last on another, proving that "no free lunch" still applies to tabular data.

Limitations and Future Work

  • Classification Focus: The primary study focused on classification. While the authors included some regression results in the appendix, a more exhaustive study on regression and time-series tabular data is a suggested next step.
  • HPO Budget: Due to the massive computational cost of training NNs, the authors limited HPO to 30 iterations. It is possible that with thousands of tuning iterations, NNs could close the gap on some "irregular" datasets.
  • Categorical Features: The study didn't deeply explore the impact of different categorical encoding strategies, which can be a deciding factor for NN performance.
  • Future Directions: The authors suggest exploring "foundation models" for tabular data and more robust regularization techniques to help NNs handle the "irregular" data where GBDTs currently dominate.

Summary updated

BibTeX
@inproceedings{mcelfresh2023when,
  author = {Duncan C. McElfresh and Sujay Khandagale and Jonathan Valverde and Vishak Prasad C. and Ganesh Ramakrishnan and Micah Goldblum and Colin White},
  title = {{When Do Neural Nets Outperform Boosted Trees on Tabular Data?}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=g62mtufBVA},
}
Figure