Deep learning (DL) has conquered almost every domain of artificial intelligence, from generating photorealistic images to holding human-like conversations. Yet, in the "boring" but critical world of tabular data—the rows and columns found in SQL databases and Excel spreadsheets—the reigning champions aren't neural networks; they are tree-based ensemble models like XGBoost and Random Forests.
In their NeurIPS 2022 paper, Léo Grinsztajn and his colleagues at Inria Saclay set out to answer a nagging question: Why? Through a massive benchmarking effort and clever empirical experiments, they uncover the fundamental "inductive biases" that keep trees on top.
The Tabular Data Problem
In fields like computer vision, we have clear "inductive biases." For example, we know that if you shift an image by one pixel, it’s still the same object (translational invariance). Deep learning architectures like Convolutional Neural Networks (CNNs) are explicitly built to exploit these rules.
Tabular data is fundamentally different. It is essentially a "bag of features" with no inherent spatial or temporal order. Features are heterogeneous (e.g., age, income, zip code), and the relationships between them are often irregular. While many papers claim to have created the "Transformer for tabular data," these claims often fail to replicate on new datasets or under rigorous hyperparameter tuning. This paper provides a definitive benchmark to see if deep learning has actually caught up and, if not, why it continues to struggle.
A Rigorous Benchmarking Methodology
To settle the debate, the researchers conducted an exhaustive study involving:
- A Massive Benchmark: They compared three tree-based models (Scikit-Learn’s Random Forest and Gradient Boosting Trees, plus XGBoost) against several deep learning models (MLP, ResNet, FT_Transformer, and SAINT).
- Extensive Hyperparameter Optimization: To ensure a fair fight, they ran a random search of approximately 400 iterations per dataset/model combination, totaling over 20,000 compute hours.
- Curated Datasets: The authors selected 45 reference datasets from OpenML. They focused on medium-sized datasets (truncated to 10,000 samples) with heterogeneous, real-world features, removing missing data and high-cardinality features to isolate core architectural differences.
Key Results: Trees Remain State-of-the-Art
On medium-sized datasets, tree-based models outperformed deep learning models across the board, regardless of whether the data was purely numerical or included categorical variables.
Crucially, the researchers found that tuning doesn't close the gap. Even with extensive hyperparameter tuning over hundreds of iterations, the performance gap between XGBoost and the best deep learning models (like FT_Transformer) remained significant.
Why Do Trees Win? Unpacking Inductive Biases
To understand why models performed differently, the authors applied specific transformations to the data—such as smoothing the target function, adding noise features, or rotating the entire coordinate system. This led to three major "aha moments":
- Neural Networks are "Too Smooth": Neural networks (specifically MLPs) are biased toward learning smooth, low-frequency functions. However, tabular data often contains "jagged" or irregular patterns where the target changes abruptly. Trees, which learn piece-wise constant functions, handle these irregularities naturally.
- The Curse of Uninformative Features: Real-world tables are full of "noise" columns. The researchers found that adding useless features significantly degrades MLP performance, whereas tree-based models simply learn to ignore them during the splitting process.
- Rotational Invariance is a Bug, Not a Feature: MLPs are "rotationally invariant"—if you rotate the entire dataset's coordinate system, the MLP's output doesn't change. But in tabular data, the axes (features) have individual meanings (e.g., "Age" vs. "Weight"). Rotating them mixes these meanings into nonsense. Trees are not rotationally invariant; they look at features one by one, which turns out to be the correct bias for tabular data. In a striking experiment, randomly rotating the tabular data destroyed the performance of the tree-based models but left the MLPs unchanged, making MLPs the top performers on the rotated data.
Limitations and Future Work
The authors acknowledge that their study focused on medium-sized datasets (~10k samples). It is possible that on massive datasets (millions of rows), the high capacity of deep learning models might eventually overcome these biases.
Furthermore, the study focused on classification and regression. Future work could explore if these findings hold for more complex tasks like multi-class classification or datasets with heavy missing values. Ultimately, the authors suggest that for deep learning to truly win at tabular data, researchers need to design architectures that break rotational invariance, resist uninformative features, and allow models to efficiently learn irregular, non-smooth functions.
Summary updated