# Tabular Data: Deep Learning is Not All You Need

XGBoost still beats recent deep models on most tabular datasets

Shwartz-Ziv, Ravid, Armon, Amitai · arXiv · 2021-6-6

- **Problem** Deep models for tabular data were claimed to beat XGBoost, but each paper used its own datasets and tuning. So the papers could not be compared cleanly.
- **Method** The authors tune four recent deep models and XGBoost under one shared protocol. They run each model on eleven datasets with the same Bayesian hyperparameter search.
- **Results** XGBoost beat the deep models on 8 of 11 datasets, including datasets outside their original papers. XGBoost also needed much less tuning.

## Why tabular deep learning results are hard to compare

In practice, most real-world data arrives as tables, and tree ensembles have long led on it. Deep networks struggle on tables for specific reasons: there is no locality, values are often missing, feature types are mixed, and little structure is known in advance. Even so, XGBoost is still the default recommendation for real tabular problems.

Several deep architectures have since been presented as beating gradient-boosted trees. Each one used its own datasets, because no standard tabular benchmark exists, and some lacked open-source code. So a gap in the tuning effort can look like a gap in the models themselves, and the papers can't be compared cleanly.

The authors ask two questions: are these models more accurate on datasets outside their papers, and how long do training and hyperparameter search take compared with other models?

## One protocol for every model, then an ensemble

The core move is to run every deep model and XGBoost on the same datasets under one tuning protocol. Each model's hyperparameters are searched with HyperOpt's Bayesian optimization for 1, 000 steps on each dataset, and the search starts from the values in the original paper. Each model has 6-9 main hyperparameters that get tuned, such as the learning rate, the number of layers and the number of nodes for the deep models.

The deep models keep the Adam optimizer and skip learning rate schedules, so training runs until 100 consecutive epochs pass without validation improvement. Each model is trained on the entire training split, since these models tend to improve with more data. The split follows the original paper for each dataset, so the comparison keeps the data setup each model was built for.

The second addition is an ensemble of five classifiers: TabNet, NODE, DNF-Net, 1D-CNN and XGBoost. Its prediction is a weighted sum over the models, where each weight comes from the normalized validation loss of that model, as in \\\[ p(y\|x) = \\sum\_{k=1}^{K} l^{val}\_k \\, p\_{\\theta\_m}(y\|x,\\theta\_m) \\\] Here \\( l^{val}\_k \\) is the validation loss of the k-th model, so models that fit validation data better get more weight.

## Deep models on datasets outside their papers

For 8 of the 11 datasets, XGBoost beat the deep models, and these datasets were not in the deep models' original papers. The authors report these results as statistically significant at p below 0.005. The comparison runs on test-set means with the standard error of the mean, across four training runs or three random partitions.

So a deep model tends to look strongest on the datasets its own paper chose.

Each deep model performed best mainly on the datasets from its own paper. 1D-CNN may look better only because every dataset was new to it, so its standing should be read with that in mind. The authors suggest two possible causes: selection bias in which datasets each paper showed, and a more extensive hyperparameter search on the datasets in each paper.

Averaged over each model's unseen datasets, the full ensemble had the smallest relative loss at 2.32%. XGBoost was second at 3.4%, while 1D-CNN had 7.5%, TabNet 10.5% and NODE 14.2%. The authors checked that their reproduced results on each model's original datasets matched the papers, which rules out implementation errors as the cause.

## Does the ensemble need the deep models?

On 7 of 11 datasets, the ensemble or XGBoost was significantly better than the single deep models, with p below 0.005. This is where the ensemble idea pays off: different models make different mistakes, so combining them can beat any one of them. The ensemble's weights only help if the base models are strong enough on their own.

On Gesture Phase, the deep ensemble with XGBoost scored 78.93, compared to 80.64 for XGBoost alone. Without XGBoost, the deep ensemble scored 93.50 on the same dataset, so the XGBoost member accounts for most of the drop in error.

The classical ensemble of XGBoost, SVM and CatBoost did much worse than the deep ensemble with XGBoost. On Gesture Phase, that classical Simple Ensemble scored 89.45. So the gain comes from pairing deep models with XGBoost, not from ensembling any set of classifiers.

## Choosing ensemble members under a compute budget

Running every member multiplies the compute, so the authors asked how few models could keep most of the accuracy. They ranked subsets by validation loss, by per-example uncertainty, and at random. The comparison was run on the Shrutime dataset.

Picking models by validation loss worked best, and three models were enough to get almost optimal performance. Random choice was the worst option, and the first three models differed significantly, with p below 0.005. So a cheap ensemble can keep most of the gain if the members are ranked by validation loss.

## How much tuning each model needs

FLOPS can't serve as the measure here, because each hyperparameter setting has its own FLOPS count. The authors counted hyperparameter-optimization iterations until a plateau instead, which they treat as a proxy for robustness. XGBoost ran more than an order of magnitude faster in their experiments, though the authors note software optimization strongly affects runtime.

On Shrutime, XGBoost converged to good performance in fewer iterations than the deep models did. The authors name three possible causes: the Bayesian optimizer they used, XGBoost's more robust starting hyperparameters, and some inherent ease of optimization in XGBoost. They suggest the deep models might do better with other starting values, which they didn't test.

## Limitations

The eleven datasets can't represent the full diversity of tabular data. The no free lunch principle means no single model wins everywhere, so the conclusion is limited to these datasets.

The search-iteration comparison was run with one Bayesian optimizer and one set of starting values. Runtime comparisons used a widely used library against implementations from papers, which the authors judged unfair, so the iteration count was used instead.

## Paper info

- **Authors**: Shwartz-Ziv, Ravid, Armon, Amitai
- **Venue**: arXiv · Preprint
- **First published**: 2021-6-6
- **Added**: 2026-11-12
- **Updated**: 2021-11-23
- **Version**: v2
- **arXiv**: 2106.03253
- **Category**: cs.LG
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/2106.03253v2) · [PDF ↗](https://arxiv.org/pdf/2106.03253v2)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Shwartz-Ziv, Ravid, Armon, Amitai (2021). Tabular Data: Deep Learning is Not All You Need. arXiv:2106.03253v2. https://arxiv.org/abs/2106.03253v2

**BibTeX**

```
@misc{ravid2021tabular,
  title = {{Tabular Data: Deep Learning is Not All You Need}},
  author = {Shwartz-Ziv, Ravid and Armon, Amitai},
  year = {2021},
  eprint = {2106.03253},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.03253v2}
}
```

## Other paper commentary

- [A Gentle Introduction to Conformal Prediction and Distribution-Free Uncertainty Quantification](https://refivu.com/en/papers/f99c2916-c5f5-45e3-8503-ed9342776182-a-gentle-introduction-to-conformal-prediction-and.md)
- [European Union regulations on algorithmic decision-making and a "right to explanation"](https://refivu.com/en/papers/8d7d2fe1-f155-44ca-8f0a-551e154b6b3a-european-union-regulations-on-algorithmic-decision-making.md)
- [Robust Physical-World Attacks on Deep Learning Models](https://refivu.com/en/papers/07947804-f6f2-481e-a0c5-1e222ca2e06f-robust-physical-world-attacks-on-deep-learning-models.md)
- [Invariant Risk Minimization](https://refivu.com/en/papers/7f6a0d34-8d04-4205-b5c5-1e73e1c91b62-invariant-risk-minimization.md)
- [Equality of Opportunity in Supervised Learning](https://refivu.com/en/papers/97e846bf-1b27-4e7b-934a-caa8326bd5e9-equality-of-opportunity-in-supervised-learning.md)
- [Explaining Explanations: An Overview of Interpretability of Machine Learning](https://refivu.com/en/papers/1e2e5cea-7806-41cc-934c-581f9dec0a44-explaining-explanations-an-overview-of-interpretability-of.md)
- [Swin UNETR: Swin Transformers for Semantic Segmentation of Brain Tumors in MRI Images](https://refivu.com/en/papers/44c6c3a9-434b-4cb2-aed0-e8b3167653fc-swin-unetr-swin-transformers-for-semantic-segmentation-of.md)
- [Uformer: A General U-Shaped Transformer for Image Restoration](https://refivu.com/en/papers/f59714df-d19d-41d7-8c41-8c04e0636925-uformer-a-general-u-shaped-transformer-for-image.md)
- [Bridging the Gap Between Anchor-based and Anchor-free Detection via Adaptive Training Sample Selection](https://refivu.com/en/papers/a286d37a-f6cf-498c-9170-fa2a9627c54e-bridging-the-gap-between-anchor-based-and-anchor.md)
- [Benchmarking Neural Network Robustness to Common Corruptions and Perturbations](https://refivu.com/en/papers/68d5da5e-9028-4e0b-9bd6-89ee4c213027-benchmarking-neural-network-robustness-to-common-corruptions.md)
- [Non-negative matrix factorization with sparseness constraints](https://refivu.com/en/papers/56eb7310-b0a6-4b18-9880-4ca6ff6f54dc-non-negative-matrix-factorization-with-sparseness.md)
- [YOLACT: Real-time Instance Segmentation](https://refivu.com/en/papers/5c58130c-e869-497b-8b85-e21d46848fe1-yolact-real-time-instance-segmentation.md)

## Terms in this paper

- [Adam optimizer](https://refivu.com/en/terms/aff9e901333e-adam-optimizer)
- [regression](https://refivu.com/en/terms/239d667a7188-regression)
- [Hyperparameter optimization](https://refivu.com/en/terms/76e40b84635b-hyperparameter-optimization)
- [root mean square error](https://refivu.com/en/terms/294ef5467be4-root-mean-square-error)
- [ensemble learning](https://refivu.com/en/terms/45aca1811bfd-ensemble-learning)
- [Hyperopt](https://refivu.com/en/terms/84f64f90d674-hyperopt)
- [oblivious decision trees](https://refivu.com/en/terms/c8313df7b9da-oblivious-decision-trees)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/0cc42765-172d-4179-95b3-7ecf786ac425-tabular-data-deep-learning-is-not-all-you)
