Table of Contents
Fetching ...

Why do tree-based models still outperform deep learning on tabular data?

Léo Grinsztajn, Edouard Oyallon, Gaël Varoquaux

TL;DR

This paper benchmarks deep learning against tree-based models on tabular data using a standardized 45-dataset benchmark with careful hyperparameter selection and data preprocessing. It shows that tree-based methods (e.g., XGBoost, Random Forest) outperform neural networks across medium-sized datasets, even when accounting for tuning costs. By transforming data to probe inductive biases, the authors identify why neural nets struggle: NNs tend to learn overly smooth functions, are sensitive to uninformative features, and benefit less from a rotation-invariant learning process on tabular data. The work provides a reusable benchmark and open data to spur tabular-specific DL research and informs future architectural directions.

Abstract

While deep learning has enabled tremendous progress on text and image datasets, its superiority on tabular data is not clear. We contribute extensive benchmarks of standard and novel deep learning methods as well as tree-based models such as XGBoost and Random Forests, across a large number of datasets and hyperparameter combinations. We define a standard set of 45 datasets from varied domains with clear characteristics of tabular data and a benchmarking methodology accounting for both fitting models and finding good hyperparameters. Results show that tree-based models remain state-of-the-art on medium-sized data ($\sim$10K samples) even without accounting for their superior speed. To understand this gap, we conduct an empirical investigation into the differing inductive biases of tree-based models and Neural Networks (NNs). This leads to a series of challenges which should guide researchers aiming to build tabular-specific NNs: 1. be robust to uninformative features, 2. preserve the orientation of the data, and 3. be able to easily learn irregular functions. To stimulate research on tabular architectures, we contribute a standard benchmark and raw data for baselines: every point of a 20 000 compute hours hyperparameter search for each learner.

Why do tree-based models still outperform deep learning on tabular data?

TL;DR

This paper benchmarks deep learning against tree-based models on tabular data using a standardized 45-dataset benchmark with careful hyperparameter selection and data preprocessing. It shows that tree-based methods (e.g., XGBoost, Random Forest) outperform neural networks across medium-sized datasets, even when accounting for tuning costs. By transforming data to probe inductive biases, the authors identify why neural nets struggle: NNs tend to learn overly smooth functions, are sensitive to uninformative features, and benefit less from a rotation-invariant learning process on tabular data. The work provides a reusable benchmark and open data to spur tabular-specific DL research and informs future architectural directions.

Abstract

While deep learning has enabled tremendous progress on text and image datasets, its superiority on tabular data is not clear. We contribute extensive benchmarks of standard and novel deep learning methods as well as tree-based models such as XGBoost and Random Forests, across a large number of datasets and hyperparameter combinations. We define a standard set of 45 datasets from varied domains with clear characteristics of tabular data and a benchmarking methodology accounting for both fitting models and finding good hyperparameters. Results show that tree-based models remain state-of-the-art on medium-sized data (10K samples) even without accounting for their superior speed. To understand this gap, we conduct an empirical investigation into the differing inductive biases of tree-based models and Neural Networks (NNs). This leads to a series of challenges which should guide researchers aiming to build tabular-specific NNs: 1. be robust to uninformative features, 2. preserve the orientation of the data, and 3. be able to easily learn irregular functions. To stimulate research on tabular architectures, we contribute a standard benchmark and raw data for baselines: every point of a 20 000 compute hours hyperparameter search for each learner.
Paper Structure (68 sections, 2 equations, 19 figures, 8 tables)

This paper contains 68 sections, 2 equations, 19 figures, 8 tables.

Figures (19)

  • Figure 1: Benchmark on medium-sized datasets, with only numerical features. Dotted lines correspond to the score of the default hyperparameters, which is also the first random search iteration. Each value corresponds to the test score of the best model (on the validation set) after a specific number of random search iterations, averaged on 15 shuffles of the random search order. The ribbon corresponds to the minimum and maximum scores on these 15 shuffles.
  • Figure 3: Normalized test accuracy of different models for varying smoothing of the target function on the train set. We smooth the target function through a Gaussian Kernel smoother, whose covariance matrix is the data covariance, multiplied by the (squared) lengthscale of the Gaussian kernel smoother. A lengthscale of 0 corresponds to no smoothing (the original data). All features have been Gaussienized before the smoothing through ScikitLearn's QuantileTransformer. The boxplots represent the distribution of normalized accuracies across 15 re-orderings of the random search.
  • Figure 4: Test accuracy of a GBT for varying proportions of removed features, on our classification benchmark on numerical features. Features are removed in increasing order of feature importance (computed with a Random Forest), and the two lines correspond to the accuracy using the (most important) kept features (blue) or the (least important) removed features (red). A score of 1.0 corresponds to the best score across all models and hyperparameters on each dataset, and 0.0 correspond to random chance. These scores are averaged across 30 random search orders, and the ribbons correspond to the 80% interval among the different datasets.
  • Figure 6: Normalized test accuracy of different models when randomly rotating our datasets. Here, the classification benchmark on numerical features was used. All features are Gaussianized before the random rotations. The scores are averaged across datasets, and the boxes depict the distribution across random search shuffles. Right: the features are removed before data rotation.
  • Figure 7: Time benchmark on medium-sized datasets, with only numerical features. The first random search iteration corresponds to default hyperparameters. Each value corresponds to the test score of the best model (on the validation set) after a specific time spent doing random search, averaged on 15 shuffles of the random search order. The ribbon corresponds to the minimum and maximum scores on these 15 shuffles.
  • ...and 14 more figures