Skip to content
30 November 2026 An independent technology publication
Explainer

TabPFN explained: 7 Critical facts before you use it in 2026

TabPFN is a tabular foundation model that predicts without training. Learn how TabPFN-3.5 works, its benchmarks, licence, hardware limits and Python code.

TabPFN explained: 7 Critical facts before you use it in 2026, DevQuarry featured image

TabPFN is a tabular foundation model from Prior Labs. It is a transformer pre-trained on millions of synthetic datasets, and it makes predictions on a new table in a single forward pass, using your training rows as context instead of training on them. On small and medium tables it now beats tuned gradient boosting on the main public benchmarks.

That is a big claim for a field where XGBoost and its relatives have ruled for a decade. This guide explains how the model works and what its benchmark results do and do not show. It also covers the licence terms and hardware limits that catch people out. It also includes a small experiment I ran on the setting TabPFN targets: tree models trained on only a few hundred rows.

TabPFN explained: tabular foundation model facts, DevQuarry featured image

Key takeaways

  • It does not train on your data. It reads the training set as context and predicts in one pass, like a language model reading a prompt.
  • The current version, TabPFN-3.5 (September 2026), ranks first on TabArena in Prior Labs’ own technical report, 462 Elo above tuned LightGBM.
  • The code is Apache 2.0, but the weights of every release since version 2.5 are non-commercial. Production use needs a commercial licence or the older v2 weights.
  • A GPU is strongly recommended. On CPU the current models are capped at 5,000 training rows by default.
  • Gradient boosting still makes sense for very large tables, CPU-only serving and tight latency budgets.

What is TabPFN?

TabPFN stands for Tabular Prior-data Fitted Network. It is a neural network that has learned, ahead of time, how to solve tabular prediction problems in general. When you give it a new dataset, it does not adjust its weights. It reads your labelled rows and the rows you want predictions for, and outputs predictions directly.

The approach comes from Frank Hutter’s group at the University of Freiburg and the company Prior Labs. The original model appeared at ICLR 2023 and handled only small classification problems. The breakthrough version, v2, was published in Nature in January 2025 by Hollmann and colleagues. That paper reported that on datasets of up to 10,000 samples and 500 features, it beat an ensemble of the strongest baselines tuned for four hours, in 2.8 seconds.

Since then Prior Labs has released new versions every few months, each handling larger data. Version 3.5 is the current default in the Python package:

VersionReleasedWhat changed 
OriginalICLR 2023small classification tasks only
v2Nature, January 2025classification and regression, up to 10,000 rows and 500 features
2.5November 2025 (arXiv 2511.08667)larger data, new non-commercial weights licence
2.62026incremental release
3May 2026 (arXiv 2605.13986)larger model and limits, CPU limit of 5,000 rows
3.5September 2026 (arXiv 2609.17895)up to 1 million rows, one checkpoint for classification and regression

What is a tabular foundation model?

A foundation model is a large network trained once on broad data and then reused for many tasks without starting from scratch. Language models made the idea famous. A tabular foundation model applies it to spreadsheets and database tables: rows of samples, columns of numeric and categorical features, and a target to predict.

Tables are harder to pre-train on than text. Every table has different columns with different meanings, and there is no shared vocabulary across datasets. Real tables are also scattered across private systems, so there is no tabular equivalent of a web crawl. TabPFN avoids that problem by training on synthetic tables generated from a prior, which gives it unlimited data with known structure.

The practical promise is simple. Instead of choosing a model, engineering features and tuning hyperparameters for each new dataset, you hand the table to a pre-trained network and get predictions back. How well that promise holds depends on how closely your data resembles what the prior generates.

How TabPFN works

TabPFN learns a general prediction procedure from synthetic data during pre-training, then applies that procedure to your table in a single pass. The process has five stages:

  1. Prior Labs writes a generator that produces random but realistic tabular datasets. Each one comes from a randomly built causal structure, with noise, missing values, categorical columns and irrelevant features mixed in. This generator is the “prior”.
  2. The generator produces a huge number of datasets. The Freiburg team said v2 was trained on 100 million of them.
  3. For each synthetic dataset, some rows are labelled and some are hidden. A transformer learns to predict the hidden labels from the visible ones.
  4. After pre-training, the network has learned a general procedure for “given these labelled rows, predict those rows”. It has effectively learned an approximation to Bayesian inference over that prior.
  5. On your data, fit stores your training set and predict runs the network once over training and test rows together.

This is in-context learning, the same mechanism that lets a large language model answer a question from examples in its prompt. The transformer attends both across rows (to compare samples) and across columns (to relate features), so it can use the structure of a table.

What changed in TabPFN-3.5

According to the TabPFN-3.5 technical report, dated 14 September 2026:

  • The main model has 220 million parameters, against 53 million (classification) and 58 million (regression) for version 3.
  • One multitask checkpoint now covers both classification and regression; only the label encoder and output head differ.
  • The in-context transformer widens from 512 to 1,024 dimensions, with 16 attention heads instead of 8.
  • Each cell gets new encodings, including learned Fourier features.
  • A smaller Fast variant has 84 million parameters.
  • The synthetic prior puts more weight on high-cardinality categories, many features and grouped splits where test groups differ from training groups.

Fact 1: TabPFN tops the main tabular benchmarks

The model gets attention mainly for its benchmark record. In the 3.5 technical report, Prior Labs places it first on TabArena, a living benchmark of 51 curated tabular datasets described in this 2025 paper. The report’s TabArena Elo scores:

Model on TabArena (from the 3.5 report)Elo 
3.5-Thinking1910
TabPFN-3.51866
TabFM+1823
3.5-Fast1780
AutoGluon 1.6 (extreme preset)1737
Version 31631
LightGBM (tuned + ensembled)1404
CatBoost (tuned + ensembled)1394
XGBoost (tuned + ensembled)1352
TabPFN vs XGBoost, LightGBM and CatBoost on TabArena: Elo scores from the TabPFN-3.5 report

The report also claims first place on several other benchmarks, including BeyondArena (142 datasets) and STRABLE (108 datasets), where it lists a 98% win rate against XGBoost.

Treat these numbers with the right amount of caution:

  • They come from Prior Labs’ own report. Independent reproductions take time, and a remio analysis of the launch called the results release claims until others confirm them.
  • Elo is a relative ranking. A gap of 462 points says version 3.5 wins most head-to-head comparisons; it does not say how much accuracy you will gain on your data.
  • Some baselines on STRABLE and other benchmarks were copied from published results rather than re-run, which the report acknowledges.
  • “Thinking” mode runs only through Prior Labs’ API and its method is, in the report’s words, intentionally not described.

Even with those caveats, the direction is consistent. In our own XGBoost vs LightGBM vs CatBoost comparison, an earlier TabArena snapshot also showed TabPFN-3 well above every tuned boosting library.

Fact 2: TabPFN does not train on your data

Here fit is cheap and predict is where the computation happens. This flips the usual cost model and changes how you should use it:

Gradient boostingTabPFN 
What fit doesbuilds hundreds of treesstores and preprocesses the training set
What predict doeswalks each tree, very cheapruns a large transformer over training and test rows
Hyperparameter tuningusually neededusually not needed
Cost grows withtraining rows during fittraining rows on every prediction call

Two practical rules follow from this, both from the official README:

  • Predict in one call. Each predict call recomputes the training set’s representation, so predicting 100 rows one at a time is almost 100 times slower than one batch call.
  • If you must call predict repeatedly on the same training data, fit with fit_mode=”fit_with_cache” to reuse the training representation.

There is also nothing to tune in the usual sense. The README advises against scaling or one-hot encoding your data before passing it in, because the package does its own preprocessing.

Fact 3: small data is where TabPFN shines

Tree ensembles need data to find good splits. With only a few hundred rows, their defaults overfit and their results swing with the random sample. That is the setting TabPFN was built for.

I could not run the model in my test environment, because the environment blocks downloads from Hugging Face where the weights live. What I could measure is the other side of the comparison: how XGBoost, LightGBM, CatBoost and logistic regression behave as training data shrinks. I trained each on random samples of 100 to 10,000 rows from the UCI adult income data (five seeds per size) and scored them on the same 10,000-row test set.

bash
"""How do tree ensembles do when training data is small? The setting where TabPFN is meant to shine."""
import sys
import time
import warnings
import pandas as pd
import lightgbm as lgb
import xgboost as xgb
from catboost import CatBoostClassifier
from sklearn.compose import make_column_transformer
from sklearn.linear_model import LogisticRegression
from sklearn.metrics import roc_auc_score
from sklearn.model_selection import train_test_split
from sklearn.pipeline import make_pipeline
from sklearn.preprocessing import OneHotEncoder, StandardScaler

warnings.filterwarnings("ignore", category=UserWarning)
DATA = sys.argv[1] if len(sys.argv) > 1 else "."
cols = ["age", "workclass", "fnlwgt", "education", "education_num", "marital_status", "occupation",
        "relationship", "race", "sex", "capital_gain", "capital_loss", "hours_per_week",
        "native_country", "income"]
df = pd.read_csv(f"{DATA}/adult-all.csv", header=None, names=cols, na_values="?")
y = (df.pop("income") == ">50K").astype(int)
cats = [c for c in df.columns if not pd.api.types.is_numeric_dtype(df[c])]
nums = [c for c in df.columns if c not in cats]
for c in cats:
    df[c] = df[c].fillna("missing").astype("category")

X_pool, X_test, y_pool, y_test = train_test_split(df, y, test_size=10_000, random_state=0, stratify=y)

def models():
    return {
        "Logistic regression": make_pipeline(
            make_column_transformer((OneHotEncoder(handle_unknown="ignore"), cats),
                                    (StandardScaler(), nums)),
            LogisticRegression(max_iter=2000)),
        "XGBoost": xgb.XGBClassifier(tree_method="hist", enable_categorical=True, n_jobs=2, random_state=0),
        "LightGBM": lgb.LGBMClassifier(n_jobs=2, verbose=-1, random_state=0),
        "CatBoost": CatBoostClassifier(cat_features=cats, thread_count=2, verbose=0, random_seed=0),
    }

rows = []
for n in (100, 300, 1000, 3000, 10000):
    for seed in range(5):
        X_tr, _, y_tr, _ = train_test_split(X_pool, y_pool, train_size=n, random_state=seed, stratify=y_pool)
        for name, m in models().items():
            t0 = time.perf_counter()
            m.fit(X_tr, y_tr)
            fit_s = time.perf_counter() - t0
            auc = roc_auc_score(y_test, m.predict_proba(X_test)[:, 1])
            rows.append(dict(n=n, seed=seed, model=name, auc=auc, fit_s=fit_s))

res = pd.DataFrame(rows)
print(res.pivot_table(index="n", columns="model", values="auc", aggfunc="mean").round(3))

Mean ROC-AUC on the fixed test set:

Training rowsLogistic regressionXGBoostLightGBMCatBoost 
1000.8560.801 (±0.050)0.774 (±0.042)0.860
3000.8760.8450.8360.886
1,0000.8960.8800.8870.903
3,0000.9050.8990.9090.915
10,0000.9080.9170.9240.926
TabPFN small-data context: ROC-AUC of XGBoost, LightGBM, CatBoost and logistic regression from 100 to 10,000 rows

What the curve shows:

  • With 100 rows, default XGBoost and LightGBM lose to plain logistic regression by 0.06 to 0.08 ROC-AUC, and their scores vary by about 0.05 between random samples.
  • CatBoost’s defaults hold up best at every size, which fits its reputation for needing little tuning.
  • The boosting libraries only pull clearly ahead of logistic regression somewhere between 3,000 and 10,000 rows. For reference, the same libraries reach about 0.93 when trained on the full 39,000 rows.

This is the gap a tabular foundation model aims to close: strong results from a few hundred or a few thousand rows without tuning. To test it yourself, add one entry to the models() dictionary on a machine with a GPU and Hugging Face access:

bash
from tabpfn import TabPFNClassifier

# inside models(): TabPFN takes the raw DataFrame, no scaling or one-hot encoding
"TabPFN": TabPFNClassifier(),

I have not run that line, so I cannot report its numbers. If Prior Labs’ published results carry over to this dataset, TabPFN should beat every column in the table at the small sizes.

Fact 4: you really want a GPU

TabPFN runs a large transformer for every prediction call, so hardware matters far more than for tree models. From the README:

SettingRecommendation or limit 
GPUrecommended; around 8 GB of VRAM works, 16 GB for some large datasets
CPU, versions 3, 3.5 and 3.5-Fastup to 5,000 training samples by default
CPU, older versionsup to 1,000 training samples by default
Override the CPU capset TABPFN_ALLOW_CPU_LARGE_DATASET=true (it will be slow)
No GPU at allthe free hosted TabPFN Client sends data to Prior Labs’ API
Apple SiliconGPU support included automatically
Python3.10 to 3.14

Compare that with the boosting libraries in my benchmark, which trained on 39,000 rows in a quarter of a second on two CPU cores. For a team that serves models on CPU, this is often the deciding factor.

The README also notes one practical detail about privacy: with the local package, your datasets stay on your machine and are never sent to Prior Labs. Only the hosted client sends data to their servers.

Fact 5: the licence depends on the version

This is the fact most people miss. The code and the weights have different licences, and the newest weights are not for commercial use.

ComponentLicence 
Python code (tabpfn package)Apache 2.0
v2 weightsPrior Labs License: Apache 2.0 plus an attribution requirement
Weights for 2.5, 2.6, 3, 3.5 and 3.5-Fastnon-commercial
Commercial use of recent versionsneeds a Commercial Enterprise License from Prior Labs
Plus and Thinking variantsAPI and enterprise deployments only

The 3.5 report describes its weights licence as covering academic, research and evaluation use. On first use, the package opens a browser so you can log in and accept the licence terms before the weights download.

In practice that leaves three routes for a commercial product: use the v2 weights, buy a commercial licence, or use the API. Our guide to open-weight vs open-source AI licences explains why “the code is Apache 2.0” does not mean you can ship the model.

Fact 6: the size limits have grown fast

Early versions were small-data tools. That is changing quickly:

VersionRow limitFeature limit 
v210,000500
3.5 and 3.5-Fast1,000,00020,000 in the README; 6,000 in the technical report

The two sources disagree on the feature limit of version 3.5, so check the Prior Labs models page for the checkpoint you use. If your data exceeds the limit, the README suggests subsampling, setting ignore_pretraining_limits=True, or moving to a newer release.

A higher limit does not mean the model is the best choice at that size. The report itself notes that version 3.5 can be up to twice as slow as version 3 on large training sets because of its wider network, and on BeyondArena, tuned and ensembled MLPs keep the lead on grouped, temporal and large datasets.

Fact 7: TabPFN does not replace gradient boosting everywhere

Even if every benchmark claim holds, there are good reasons to keep XGBoost, LightGBM or CatBoost in your toolkit:

  • Large tables. Above roughly 50,000 rows, trees are still cheaper to train and often as accurate. An eCorpIT review of TabArena results drew the same line.
  • CPU-only serving. Tree models score thousands of rows per second on a single core, while a transformer without a GPU is slow.
  • Latency. Every prediction carries the cost of the training set. Prior Labs sells a distillation engine that converts the model into a compact MLP or tree ensemble for real-time use, a sign that the raw model is not meant for low-latency serving.
  • Licensing. Recent weights are non-commercial, while all three boosting libraries are permissively licensed.
  • Interpretability. Trees give SHAP values in one function call. TabPFN offers SHAP-based tools through the separate tabpfn-extensions package.
  • Drift and leakage. A foundation model does not protect you from a bad split or a leaked feature. Every check in our data leakage guide still applies.

How to use TabPFN in Python

The tabpfn package follows the scikit-learn API, so it slots into pipelines and cross-validation.

Install it (install a CPU or GPU build of PyTorch first if you want to control which one you get):

bash
pip install tabpfn


Classify with the default TabPFN-3.5 model:
from sklearn.datasets import load_breast_cancer
from sklearn.metrics import roc_auc_score
from sklearn.model_selection import train_test_split
from tabpfn import TabPFNClassifier

X, y = load_breast_cancer(return_X_y=True)
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.3, random_state=0)

clf = TabPFNClassifier()
clf.fit(X_train, y_train)           # downloads the checkpoint on first use
proba = clf.predict_proba(X_test)   # one call for the whole test set
print(f"ROC-AUC: {roc_auc_score(y_test, proba[:, 1]):.3f}")


Regression works the same way with TabPFNRegressor. To pick a specific version, use create_default_for_version:
from tabpfn import TabPFNClassifier, TabPFNRegressor
from tabpfn.constants import ModelVersion

fast_clf = TabPFNClassifier.create_default_for_version(ModelVersion.V3_5_FAST)   # smaller, faster
v3_reg = TabPFNRegressor.create_default_for_version(ModelVersion.V3)             # previous default
v2_reg = TabPFNRegressor.create_default_for_version(ModelVersion.V2)             # Apache 2.0 + attribution weights

You can also set the TABPFN_MODEL_VERSION environment variable (v2, v2.5, v2.6, v3, v3.5 or v3.5-fast) before importing the package. For servers without a browser, accept the licence on the Prior Labs website and set TABPFN_TOKEN.

Note: the code in this section follows the official README. I could not run it in my environment because downloads from Hugging Face were blocked, so test it on your own machine first.

Cross-validation works as usual

Because the classifier is a scikit-learn estimator, standard tools work:

bash
from sklearn.model_selection import StratifiedKFold, cross_val_score
from tabpfn import TabPFNClassifier

scores = cross_val_score(TabPFNClassifier(), X, y,
                         cv=StratifiedKFold(5, shuffle=True, random_state=0), scoring="roc_auc")
print(scores.mean())

What does TabPFN stand for?

TabPFN stands for Tabular Prior-data Fitted Network. “Prior-data fitted” means the network was trained on data sampled from a prior, a generator of synthetic datasets, so that it learns to approximate Bayesian prediction for new tables.

Is TabPFN better than XGBoost?

On the TabArena benchmark, Prior Labs reports TabPFN-3.5 at 1866 Elo against 1352 for tuned and ensembled XGBoost. Small and medium datasets are where it usually wins. On very large datasets, on CPU-only systems, and where licences or latency matter, XGBoost is often the better practical choice.

Is TabPFN free for commercial use?

The code is Apache 2.0. The v2 weights use an Apache 2.0 licence with an attribution requirement and can be used commercially. The weights for version 2.5 and every later release are non-commercial, so commercial use needs a licence from Prior Labs or use of their API.

Does TabPFN need a GPU?

A GPU is strongly recommended. On CPU, versions 3 and 3.5 accept up to 5,000 training samples by default and run slowly. Without a GPU you can use the hosted TabPFN Client, which sends your data to Prior Labs.

How big a dataset can TabPFN handle?

Version 3.5 accepts up to 1 million rows. The README lists 20,000 features while the technical report gives 6,000, so check the models page for your checkpoint. Version 2 was limited to 10,000 rows and 500 features.

Should you try TabPFN?

Yes, if you work with small or medium tables and can use a GPU. It needs almost no tuning, and the published results are strong enough that skipping it means possibly leaving accuracy on the table. Check the licence before you build a product on it, keep gradient boosting for large data and CPU serving, and test it on your own split before trusting any leaderboard, including the vendor’s.

For where tabular models fit in a wider learning plan, see the machine learning roadmap for 2026.

About the author Aradhya Chaudhary

Data Scientist | Freelancer | Speaker & Writer skilled in programming, development and building AI/ML backed systems.

More from Aradhya
Keep reading

More in AI & ML

All of AI & ML →