Ultralytics YOLO27: Join the waitlist.
License YOLO
Back to Ultralytics Glossary

Tabular Foundation Models

Tabular foundation models predict on a new table in one forward pass, with no training run. How TabPFN works and when it beats boosted trees.

Tabular foundation models are pretrained neural networks that make predictions on new tables of rows and columns without being trained on them. Given a labeled table and a set of rows to predict, they use in-context learning: the labeled rows enter the model as context, and a single forward pass returns predictions for every new row, with no gradient descent updates. A gradient-boosted tree model such as XGBoost, LightGBM, or CatBoost has to be fit and tuned for each dataset. A tabular foundation model is trained once and applies what it learned to any small table it receives.

How TabPFN Learns From Synthetic Tables#

The best-known example is TabPFN (Tabular Prior-data Fitted Network), created by Noah Hollmann, Samuel Müller, Frank Hutter, and colleagues at the University of Freiburg and now developed by the company Prior Labs. It is a transformer pretrained entirely on synthetic data. Pretraining draws millions of artificial datasets from a prior over data-generating processes, mostly random structural causal models that link features to targets through random functions and noise. For each synthetic dataset the network sees some labeled rows and learns to predict the held-out ones, a form of meta-learning. Across many such tasks it learns to approximate Bayesian inference over that prior, so at prediction time it behaves like a learned statistical procedure rather than a model of any particular domain.

The first version, presented at ICLR 2023, handled classification with up to 1,000 training rows, 100 numeric features, and 10 classes, performing on par with AutoML systems while running up to 230 times faster. TabPFN v2, published in Nature in January 2025, extended the approach to classification and regression on datasets with up to 10,000 rows and 500 features, including categorical features and missing values. In classification, 2.8 seconds of TabPFN v2 outperformed an ensemble of the strongest baselines tuned for four hours. Version 2 gives each table cell its own representation and alternates attention across columns and across rows, so it does not depend on a fixed column order. Later releases raise the limits further, and TabPFN-3, released in May 2026, accepts up to one million training rows. Other tabular foundation models, such as TabICL and Amazon's Mitra, follow the same recipe of pretraining on synthetic tables and predicting in context.

Where They Fit Next to Gradient-Boosted Trees#

  • Small datasets: With hundreds to a few thousand rows, tabular foundation models often match or beat tuned trees without any hyperparameter search, and their predicted probabilities are generally well calibrated.
  • Large datasets: Boosted trees remain the practical default for millions of rows. Attention cost grows with the number of context rows, so foundation models need a GPU and more memory, and each prediction batch reprocesses the full training context, which makes inference slower than evaluating a tree ensemble.
  • AutoML: AutoML searches over algorithms and settings for every new dataset. A tabular foundation model replaces most of that search with knowledge learned once during pretraining.
  • Feature engineering: Still useful. The model cannot recover information that is missing from the columns or repair labels that are wrong.

Running TabPFN#

The tabpfn package exposes a scikit-learn style classifier. Its newest checkpoints download only after signing in and accepting Prior Labs' model license, while the version 2 weights selected below download without that step:

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
from tabpfn.constants import ModelVersion

# 569 tumors described by 30 numeric measurements
features, targets = load_breast_cancer(return_X_y=True)
x_train, x_test, y_train, y_test = train_test_split(features, targets, test_size=0.2, random_state=0)

# fit() stores the labeled rows as context; no weights are updated
model = TabPFNClassifier.create_default_for_version(ModelVersion.V2)
model.fit(x_train, y_train)

# One forward pass predicts every test row from that context
probabilities = model.predict_proba(x_test)[:, 1]
print(f"ROC AUC: {roc_auc_score(y_test, probabilities):.3f}")

With no hyperparameters set, the classifier reaches a ROC AUC of about 0.998 on this held-out split. Model comparisons use repeated cross-validation across many datasets, since a 114-row test split is too small to separate strong models.

Many useful tables are built from the output of other models. Many useful tables are built from the output of other models. In Predict mode, result.to_df() returns each Ultralytics YOLO26 result as a Polars DataFrame with one row per detection and columns for the class name, class ID, confidence, and box coordinates, the row-and-column format a tabular foundation model reads as context.

Explore solutions

Computer vision in sports

Computer vision in sports

Discover how Ultralytics YOLO powers sports vision with player and ball tracking, performance analytics, coaching insights, and athlete rehabilitation.
Learn more
Computer vision for aerial imagery

Computer vision for aerial imagery

Transform drone and aerial imagery into real-time insights for agriculture, aquaculture, environmental monitoring, conservation, and geospatial analysis with Ultralytics YOLO.
Learn more
Computer vision in aerospace

Computer vision in aerospace

Bring vision AI to aerial monitoring with Ultralytics YOLO models. Power drones, aerospace workflows, environmental conservation & geospatial industries with computer vision solutions.
Learn more
Computer vision in security

Computer vision in security

Protect every site with Ultralytics YOLO models. Vision AI powers perimeter monitoring, threat detection, license-plate recognition, and workplace safety.
Learn more
Computer vision in robotics

Computer vision in robotics

Power smarter machines with Ultralytics YOLO models. Vision AI in robotics drives autonomous navigation, perception, object tracking, and real-time control.
Learn more
Computer vision in logistics

Computer vision in logistics

Streamline logistics with Ultralytics YOLO models. Vision AI enables package inspection, sorting, vehicle tracking, and real-time warehouse safety monitoring.
Learn more
Computer vision in retail

Computer vision in retail

Reimagine retail with Ultralytics YOLO models. Vision AI powers inventory tracking, shelf monitoring, queue management, and smarter customer insights.
Learn more
Computer vision in healthcare

Computer vision in healthcare

Build healthcare solutions with Ultralytics YOLO models. Vision AI in healthcare powers faster medical imaging, smarter diagnostics, and patient monitoring.
Learn more
Computer vision in manufacturing

Computer vision in manufacturing

Optimize manufacturing with Ultralytics YOLO models. Vision AI drives quality control, defect detection, PPE compliance, and assembly line automation.
Learn more
Computer vision in automotive

Computer vision in automotive

Apply computer vision in automotive with Ultralytics YOLO models. Vision AI elevates road safety, driver assistance, and vehicle automation for smarter roads.
Learn more
Computer vision in agriculture

Computer vision in agriculture

Bring vision AI to smart agriculture with Ultralytics YOLO models. Power crop monitoring, livestock tracking, and precision farming for higher, smarter yields.
Learn more

Let's build the future of AI together!

Begin your journey with the future of machine learning