# TabPFN (2022)

> A transformer trained only on synthetic tables that classifies a new small dataset in one forward pass, with no training or tuning.

Page: https://mralbu.github.io/ai-datasets/p/tabpfn

## Key facts

- Title: TabPFN: A Transformer That Solves Small Tabular Classification Problems in a Second
- Authors: Noah Hollmann, Samuel Müller, Katharina Eggensperger, Frank Hutter
- Venue: ICLR 2023
- Category: Tabular
- Paper: https://www.alphaxiv.org/abs/2207.01848

## Why it matters

Gradient-boosted trees had resisted deep learning on tabular data for years. TabPFN changed the question: instead of a better network fitted to each table, a network that has learned how to fit tables, trained once on synthetic data. Its limits, small numerical datasets and classification only, set the agenda for the tabular foundation models that followed.

## The idea

Generate millions of fake classification datasets from a prior built on random causal graphs and random neural networks, with a preference for simple ones. Train a 12-layer transformer to predict held-out labels of each fake dataset given its labelled rows. On a real dataset the training rows go in as context and the test rows come out labelled: training and prediction are one forward pass, which approximates Bayesian inference under that prior.

## The result

On the 18 numerical datasets of OpenML-CC18 with up to 1,000 training rows, 100 features and 10 classes, it reached a mean ROC AUC of 0.934 in 0.62 s on a GPU, against 0.930 for AutoGluon and 0.924 for XGBoost and CatBoost, each given an hour of tuning. Without ensembling it matched the best baselines at five minutes 230 times faster on a CPU. It was weaker with categorical features or missing values.

## The data

- [OpenML-CC18 (2018)](https://mralbu.github.io/ai-datasets/d/openml-cc18.md): 72 classification datasets hand-picked from OpenML, each with fixed cross-validation splits, so any classifier can be run on all of them with a few lines of code.

## Builds on

- [Transformer (2017)](https://mralbu.github.io/ai-datasets/p/transformer.md)

## Led to

- [TabICL (2025)](https://mralbu.github.io/ai-datasets/p/tabicl.md)
- [TabPFN v2 (2025)](https://mralbu.github.io/ai-datasets/p/tabpfn-v2.md)

## Part of

- [Tabular foundation models](https://mralbu.github.io/ai-datasets/t/tabular-foundation-models.md) (step 5 of 8)
