Accurate predictions on small data with a tabular foundation model

Noah Hollmann, Samuel Müller, Lennart Purucker, Arjun Krishnakumar, Max Körfer, Shi Bin Hoo, Robin Tibor Schirrmeister, Frank HutterNat 2025

Abstract

TabPFN is a transformer-based "foundation model" for tabular data that learns a general-purpose learning algorithm by pre-training on millions of synthetic datasets. It outperforms state-of-the-art gradient-boosted decision trees (GBDTs) on small-to-medium datasets in a single forward pass, offering massive speedups (up to 5,000x) and built-in uncertainty estimation without the need for hyperparameter tuning.

Introduction

While deep learning has revolutionized computer vision and natural language processing, tabular data—the spreadsheets used in medicine, finance, and climate science—has remained a stronghold for "traditional" machine learning. For over 20 years, Gradient Boosted Decision Trees (GBDTs) like XGBoost and CatBoost have been the gold standard.

The challenge is that tabular data is incredibly heterogeneous. Unlike pixels or words, a value in a table can mean anything from a chemical property to a dollar amount. Deep learning models typically struggle with this lack of consistent structure, especially on "small" datasets (under 10,000 rows), which make up the vast majority of real-world problems. Furthermore, GBDTs require extensive, time-consuming hyperparameter tuning for every new dataset and do not easily transfer knowledge from one task to another.

Methods

The authors introduce the Tabular Prior-data Fitted Network (TabPFN). Its core innovation lies in shifting the learning process from training on specific datasets to learning a general learning algorithm.

Synthetic Pre-training and In-Context Learning

Instead of training on real-world data, TabPFN is trained on approximately 100 million purely synthetic datasets generated by Structural Causal Models (SCMs). These SCMs mimic real-world complexities like noise, missing values, and non-linear relationships.

At inference time, TabPFN utilizes In-Context Learning (ICL), a mechanism similar to Large Language Models. The entire training set and the test query are fed into the model as a single sequence. The model "learns" the patterns in the training data in-context and predicts the result in one forward pass, effectively approximating Bayesian inference.

Overview of TabPFN training pipeline and internal architecture. (a) Training on synthetic datasets allows the model to generalize to arbitrary real-world datasets. (b) The architecture uses 1D feature and sample attention to process tabular entries.

Tabular-Specific Architecture

The model uses a modified Transformer encoder with a two-way attention mechanism. It alternates between attending to features within a row (sample-wise) and attending to the same feature across different rows (feature-wise). This design ensures the model is invariant to the order of rows and columns, a critical property for tabular data.

Key Results and Insights

TabPFN was benchmarked against 29 classification and 28 regression datasets from the AutoML Benchmark and OpenML-CTR23, as well as recent Kaggle competitions.

  • Superior Performance: On datasets with up to 10,000 samples and 500 features, TabPFN outperformed all baselines, including tuned versions of CatBoost, XGBoost, and LightGBM.
  • Massive Speedup: In just 2.8 seconds, TabPFN outperformed an ensemble of the strongest baselines that were allowed 4 hours of tuning—a speedup of over 5,000x for classification.
  • Uncertainty by Default: Unlike standard regressors that provide a single point estimate, TabPFN predicts a full probability distribution. This allows it to model complex, multi-modal outcomes effectively.
  • Zero-Shot Versatility: Because the learning happens in a single pass, there is no need for backpropagation or hyperparameter tuning on the user's specific dataset. It can also perform density estimation and generate reusable embeddings.

Limitations and Future Work

Despite its performance, TabPFN faces scalability challenges. Due to the quadratic complexity of the transformer's attention mechanism, it is currently limited to datasets with roughly 10,000 samples and 500 features. Additionally, while "training" is instantaneous, a single prediction pass is slower than a single GBDT prediction. Future work includes developing specialized "priors" for domains like genomics or medical imaging and scaling the architecture to handle larger datasets.

Summary updated

BibTeX
@article{hollmann2025accurate,
  author = {Noah Hollmann and Samuel Müller and Lennart Purucker and Arjun Krishnakumar and Max Körfer and Shi Bin Hoo and Robin Tibor Schirrmeister and Frank Hutter},
  title = {{Accurate predictions on small data with a tabular foundation model}},
  journal = {Nat.},
  year = {2025},
  doi = {10.1038/s41586-024-08328-6},
}
Figure