Simple Algorithm
Machine Learning · Convergence · 26 min

Trees vs Deep Learning on Tabular Data

Why gradient-boosted trees still win so often.

Deep learning conquered images, speech and text, yet on tables, rows of heterogeneous columns such as age, income and postcode, gradient-boosted trees remained the model to beat into the 2020s. This lesson reads the benchmark evidence critically, examines three explanations for the gap, and surveys the deep and foundation models that now compete, separating what is established from what is still contested.

What you’ll learn

  • Summarize the main benchmark studies comparing trees and neural networks on tabular data, and their methodological pitfalls.
  • Explain three proposed reasons trees suit tabular data: irregular targets, uninformative features and the lack of rotation invariance, with Ng's lower bound for rotationally invariant learners.
  • Describe deep tabular architectures and tabular foundation models such as TabPFN, and the regimes in which they compete.
  • Separate established findings from open debate as of the mid-2020s, and choose a sensible default for a new tabular problem.

What the benchmarks say

Tabular data have properties images and text lack. Columns are heterogeneous: skewed or heavy-tailed numbers, categories, missing values. Each column means something on its own, and no spatial or sequential structure ties neighboring columns together. Datasets are often small to medium. Several large studies compared tree ensembles with neural networks on such data:

StudyScopeMain finding
Gorishniy, Rubachev, Khrulkov & Babenko (2021)a suite of benchmark datasets; ResNet-like and FT-Transformer baselinesno deep model universally beats gradient-boosted trees; the best choice depends on the dataset
Kadra, Lindauer, Hutter & Grabocka (2021)40 datasetsplain MLPs with a per-dataset search over a "cocktail" of 13 regularizers outperform XGBoost
Shwartz-Ziv & Armon (2022)recent deep tabular models against XGBoostXGBoost wins across the datasets, including those used in the deep models' own papers, with much less tuning; an ensemble of XGBoost and deep models does best
Grinsztajn, Oyallon & Varoquaux (2022)45 datasets, training sets capped at 10,000, about 20,000 compute-hours of tuning per learnertree-based models remain state of the art on medium-sized data
McElfresh et al. (2023)176 datasets, 19 algorithmsthe gap is often negligible, and light tuning of a boosted model matters more than the choice of family; boosted trees cope better with skewed and heavy-tailed features
Five influential comparisons, in order of publication. Their verdicts differ partly because their datasets, tuning budgets and scoring differ.

Three pitfalls recur. Tuning budgets: a new network tuned for days against a boosted model at default settings is not a fair race; Kadra et al.'s networks won with an extensive per-dataset search. Dataset selection: results depend on size caps, on whether datasets with missing values or high-cardinality categories are included, and on filters such as Grinsztajn et al.'s removal of datasets that are "too easy" for a linear model. Aggregation: average ranks, normalized scores and win counts can order the same methods differently. A method's own paper is the least reliable place to judge it, as Shwartz-Ziv & Armon's results on the original datasets show.

Check your understanding

A paper introduces a tabular network that beats XGBoost on the 5 datasets it was developed on, with XGBoost at default settings. What does this justify?

  1. That the network should replace boosted trees as the default for tabular data
  2. Little yet: compare against tuned boosted trees, with equal tuning budgets, on datasets not used during development
  3. That XGBoost's defaults are badly chosen, but nothing about the network
  4. That neural networks are now better than trees on small data
Show the answer

B. Little yet: compare against tuned boosted trees, with equal tuning budgets, on datasets not used during development

Development datasets reward design choices made while looking at them, and an untuned baseline understates its rival. Independent re-evaluations, such as Shwartz-Ziv & Armon's, found such wins shrink or reverse. Large benchmarks with matched budgets are the evidence to look for.

Why trees suit tables

Grinsztajn, Oyallon & Varoquaux (2022) went beyond leaderboards with controlled transformations of their datasets, each isolating one property:

  • Irregular targets. Smoothing the training targets with a Gaussian kernel markedly reduced the accuracy of tree-based models at small length scales but barely affected neural networks. The real targets are irregular, piecewise and full of thresholds, and networks are biased toward smooth functions, in line with the spectral bias of neural networks, which fit low-frequency components first (Rahaman et al., 2019).
  • Uninformative features. Removing the features a random forest ranked least important narrowed the gap; adding random Gaussian features widened it. MLP-like networks suffered most; FT-Transformers and trees much less.
  • Rotation. Applying a random rotation to the features, so that each new column mixes all the old ones, reversed the ranking: networks moved above trees, and ResNets, which are rotationally invariant, were unaffected. The original coordinates carry information that a rotation-invariant learner throws away.

Deep models built for tables, and foundation models

Deep tabular models try to give networks some of the trees' habits. TabNet (Arik & Pfister, 2021) uses sequential attention to pick a few features at each decision step. NODE (Popov, Morozov & Babenko, 2019) makes ensembles of oblivious decision trees differentiable and stacks them in layers. The FT-Transformer (Gorishniy et al., 2021) embeds every feature, numeric or categorical, as a token and runs a transformer over the features. Careful embeddings of numerical features help networks represent irregular functions (Gorishniy, Rubachev & Babenko, 2022), and plain MLPs with strong, tuned regularization are competitive (Kadra et al., 2021). Ensembles of networks, or of networks and boosted trees, are often stronger than either alone.

Tabular foundation models change the protocol itself. TabPFN (Hollmann, Müller, Eggensperger & Hutter, 2023) is a transformer pretrained once on millions of synthetic datasets, drawn from a prior over data-generating processes built from structural causal models that favor simple structure. Given a new table, it reads the labeled training rows and the unlabeled test rows as one input and outputs predictions in a single forward pass, approximating Bayesian inference under that prior, with no per-dataset training. The first version handled small classification problems, beating boosted trees on datasets of up to 1,000 training points and matching AutoML systems far faster. The 2025 version (Hollmann et al., Nature) extends this to regression and to datasets of up to 10,000 samples, and reports that in 2.8 seconds it matches or beats an ensemble of strong baselines tuned for 4 hours on classification.

Think first TabPFN never sees a real dataset during pretraining. Why can it predict well on real tables, and where should you expect it to struggle?

It is trained to output the posterior predictive distribution for datasets drawn from its prior, so when a real table looks like a typical draw from that prior, its predictions approximate Bayes-optimal ones for that prior. With little data the prior matters most, which is exactly where it shines. Expect trouble where the prior is a poor fit, and as tables grow: the training rows are its context, so its cost grows with their number (quadratically for standard attention), and with lots of data a well-tuned learner fitted to the table loses little by having a weaker prior.

McElfresh et al. (2023) found TabPFN the strongest method on average across their 176 datasets, even when given only 3,000 randomly sampled training points. As of the mid-2020s, how far tabular foundation models scale to large tables, and whether pretraining on real tables beats purely synthetic priors, are open, fast-moving questions.

What is settled, and what is not

ClaimEvidenceStatus, mid-2020s
Tuned boosted trees are a strong default on medium-sized tablesGrinsztajn et al.; Shwartz-Ziv & Armon; McElfresh et al.well supported
New deep models' wins often shrink under independent evaluationShwartz-Ziv & Armon, on the models' own datasetswell supported
Tuning and preprocessing can matter more than the model familyMcElfresh et al.supported
Tabular foundation models are best on small datasetsTabPFN papers; McElfresh et al.supported for small tables; scaling is open
Networks catch up as datasets growGrinsztajn et al. saw the gap narrow with more data; McElfresh et al. found boosted trees relatively stronger on larger datasetscontested
Why trees winthree controlled findings and Ng's worst-case boundpartial explanations, no complete theory
A scorecard, not a verdict: each row could move as benchmarks and models change.

A sensible default for a new tabular problem: start with a boosted tree model, using early stopping and light tuning (CatBoost is convenient when there are many categorical columns), as the baseline any other method must beat. On small tables, try a tabular foundation model. Reach for deep models when there is a lot of data, when tables come with text or images, when the model must be trained end to end with other networks, or when representations should transfer across tasks. Ensembles of the two families often add a little more. Judge all of it with an honest validation protocol (Cross-Validation: Theory & Pitfalls).

Key takeaways

  • Large benchmarks found tuned gradient-boosted trees to be the model to beat on medium-sized tabular data; deep models' reported wins often shrank on new datasets or under matched tuning budgets.
  • Controlled experiments point to three causes: tabular targets are irregular while networks prefer smooth functions, uninformative features hurt MLPs more, and the original coordinates matter, which rotation-invariant learners ignore.
  • Ng (2004): any rotationally invariant learner can need Ω(n/ε)\Omega(n/\varepsilon) examples on a problem that depends on one of nn features, while coordinate-wise methods pay only logarithmically.
  • Deep tabular models (TabNet, FT-Transformer, well-regularized MLPs) close much of the gap, and the tabular foundation model TabPFN, which infers in context with a prior learned from synthetic data, is very strong on small datasets.
  • Benchmark verdicts depend on tuning budgets, dataset selection and aggregation; a tuned boosted model with early stopping is the baseline any tabular method should beat.

Check yourself

In the interactive lesson these are scored with your confidence, and what you miss comes back for review.

Question 1

Grinsztajn et al. applied a random rotation to the features of their tabular datasets. What happened, and what does it suggest?

  1. Nothing changed, so the coordinate system is irrelevant for tabular data
  2. All models improved, because rotation removes correlations
  3. The ranking reversed: networks moved above trees and ResNets were unaffected, so the original coordinates carry information that rotation-invariant learners cannot exploit
  4. Trees improved, because rotation makes the features more informative
Show the answer

C. The ranking reversed: networks moved above trees and ResNets were unaffected, so the original coordinates carry information that rotation-invariant learners cannot exploit

Trees exploit the original basis, splitting on meaningful columns, so mixing the columns hurts them. A rotation-invariant network sees the same problem either way. That the ranking flips implies that the advantage of trees on the original data comes partly from respecting the coordinate system.

Question 2

By Ng's (2004) theorem, why can many uninformative columns hurt an MLP trained by backpropagation more than a tree ensemble?

  1. A rotationally invariant learner can need examples in proportion to the number of features even when only one matters, while axis-aligned splits can ignore irrelevant columns cheaply
  2. MLPs cannot represent functions of a single feature
  3. Uninformative columns make backpropagation diverge
  4. Trees remove uninformative columns before training
Show the answer

A. A rotationally invariant learner can need examples in proportion to the number of features even when only one matters, while axis-aligned splits can ignore irrelevant columns cheaply

The theorem gives a worst-case lower bound of order n/εn/\varepsilon examples for any rotationally invariant learner on a single-feature threshold problem in Rn\R^n. Sparse or coordinate-wise methods, such as L1L_1-regularized models and trees, are not bound by it.

Question 3

You apply TabPFN to a new dataset with 800 training rows. What happens at "training" time?

  1. The transformer is fine-tuned by gradient descent on the 800 rows
  2. A boosted ensemble is grown and then distilled into the transformer
  3. The 800 rows are used to estimate a prior, which is then fixed
  4. No weights are updated: the training rows are given as context, and one forward pass produces predictions for the test rows
Show the answer

D. No weights are updated: the training rows are given as context, and one forward pass produces predictions for the test rows

TabPFN was trained once, on millions of synthetic datasets drawn from a prior over data-generating processes, to approximate the posterior predictive distribution. On a new table it performs that inference in context, which is why it takes seconds.

Question 4

A new tabular problem has 50,000 rows, 40 mixed numeric and categorical columns, and some missing values. What is the best-supported starting point as of the mid-2020s?

  1. A deep MLP with default settings
  2. A gradient-boosted tree model with early stopping, tuned lightly, as the baseline that any other model must beat
  3. A single decision tree, for interpretability
  4. TabPFN alone, since it wins on average everywhere
Show the answer

B. A gradient-boosted tree model with early stopping, tuned lightly, as the baseline that any other model must beat

Large benchmarks agree that tuned boosted trees are a strong, cheap default at this scale, and that they handle mixed types and missing values natively. Deep models and ensembles are worth trying against that baseline, not instead of it.

Further reading

  • L. Grinsztajn, E. Oyallon & G. Varoquaux, "Why do tree-based models still outperform deep learning on typical tabular data?" NeurIPS Datasets and Benchmarks Track (2022).
  • R. Shwartz-Ziv & A. Armon, "Tabular data: deep learning is not all you need," Information Fusion 81 (2022).
  • D. McElfresh, S. Khandagale, J. Valverde, V. Prasad C, B. Feuer, C. Hegde, G. Ramakrishnan, M. Goldblum & C. White, "When do neural nets outperform boosted trees on tabular data?" NeurIPS Datasets and Benchmarks Track (2023).
  • N. Hollmann, S. Müller, L. Purucker, A. Krishnakumar, M. Körfer, S. B. Hoo, R. T. Schirrmeister & F. Hutter, "Accurate predictions on small data with a tabular foundation model," Nature 637, 319–326 (2025).
  • A. Y. Ng, "Feature selection, L1 vs. L2 regularization, and rotational invariance," Proceedings of ICML (2004).