Skip to main content
Back

Google's TabFM Beats XGBoost on Tabular Data Without Training

Google's TabFM does zero-shot tabular classification and regression in one forward pass, no training or hyperparameter tuning required.

Pro

Model, Full Access
  • Google releases TabFM 1.0.0 -- a zero-shot foundation model for tabular classification and regression, no training or tuning required.
  • Single forward pass inference: Training rows are passed as context; the model predicts on new rows without updating any weights.
  • Beats tuned tree ensembles: Evaluated on 51 datasets via TabArena Elo scores, TabFM outperforms heavily-tuned XGBoost and similar baselines in zero-shot mode.
  • Trained on hundreds of millions of synthetic datasets generated by structural causal models -- no real-world proprietary data used.
  • Hard limits to know: Max 10 output classes, ~500 feature ceiling, non-commercial weights license, no built-in explainability.
  • BigQuery integration coming: Google announced an AI.PREDICT SQL command for BigQuery; weights available now on Hugging Face.

For the past fifteen years, if you needed to predict something from a spreadsheet, the answer was almost always a gradient-boosted tree. XGBoost, LightGBM, CatBoost -- these dominated Kaggle leaderboards and production pipelines alike. The catch: you paid for that performance with hours of feature engineering, hyperparameter search, and a fresh training run every time you touched a new dataset. That reign came with an endless cycle of feature engineering, hyperparameter search, and per-dataset retraining. Google Research just shipped something that challenges that assumption directly.

TabFM 1.0.0 is a zero-shot foundation model for tabular classification and regression, with public code on GitHub and pretrained weights on Hugging Face. The core idea: instead of training a model on your dataset, you hand the model your labeled rows as context, and it predicts on new rows in a single forward pass -- no weight updates, no tuning loops.

The trick that makes it work

The key concept here is in-context learning (ICL) -- a technique borrowed from large language models where a pretrained model learns a new task purely from examples provided in its input, without any gradient updates. TabFM uses in-context learning so teams can pass training examples and target rows as one prompt, avoiding per-dataset fine-tuning and hyperparameter search. The challenge is that tables aren't sequences: swapping two rows or two columns doesn't change the meaning of the data, so you can't just tokenize them like text.

The architecture combines TabPFN-style row/column attention with TabICL-style in-context learning. Concretely, the model has three stages:

  1. Column attention (Set Transformer): Each cell is embedded using Fourier features and a per-group linear projection, then the model attends across both rows and columns simultaneously to learn feature interactions -- the work that would otherwise require manual feature crafting.
  2. Row compression: Each row's rich cross-attended representation is compressed into a single dense vector using CLS tokens and rotary position embeddings (RoPE).
  3. ICL Transformer: A 24-block causal transformer operates over those compressed row vectors. Training rows are treated as context; test rows get predictions out the other end.

The result is a model that natively understands the two-dimensional, orderless structure of tables without needing you to flatten or pre-process them in special ways.

Trained on nothing real

Here's where it gets interesting. Training involved hundreds of millions of synthetic datasets created on the fly using structural causal models (SCMs). SCMs are generative programs that encode causal relationships between variables -- think of them as simulators that can produce arbitrarily many plausible tabular datasets with known ground-truth structure. Google chose this route because high-quality, diverse real-world tabular data is scarce and often proprietary. The bet is that if you expose the model to enough synthetic variety, it generalizes to real tables at inference time.

That bet appears to be paying off on benchmarks. This approach successfully eliminates the traditional bottlenecks of manual feature engineering, hyperparameter optimization, and repetitive model training, and consistently outperforms heavily tuned, industry-standard supervised algorithms. The evaluation was done on TabArena, a living benchmark that computes Elo scores from head-to-head win rates across 51 datasets (38 classification, 13 regression) ranging from 700 to 150,000 samples.

Two configurations were benchmarked:

  • TabFM (default): Single forward pass, zero tuning. Already competitive with heavily-tuned baselines.
  • TabFM-Ensemble: Adds cross features, SVD features (a matrix decomposition technique that extracts latent structure), and a 32-way ensemble with non-negative least squares blending. Classification also gets Platt scaling for probability calibration. This is the top-of-leaderboard configuration.

What it can and can't do

The model is genuinely useful for a wide range of structured data tasks:

  • Binary and multiclass classification (up to 10 classes)
  • Regression on continuous targets
  • Mixed numerical and categorical columns
  • Works directly with pandas DataFrames or numpy arrays
  • Tables up to ~500 features

But there are hard limits worth knowing before you commit:

  • 10-class ceiling -- this is an architectural constraint, not a soft guideline
  • Memory scales with row count -- all training rows are held in context, so large datasets get expensive fast
  • No explainability story -- the model is a black box; SHAP-style attribution doesn't apply cleanly
  • Non-commercial weights -- the source code is Apache 2.0, but the model weights use the TabFM Non-Commercial License v1.0, which blocks production use in commercial products for now
  • Not designed for images, audio, text, graphs, or time series

Getting started in three lines

The API is scikit-learn compatible, which means the learning curve is essentially zero if you've ever used sklearn:

pip install tabfm[pytorch]
from tabfm import TabFMClassifier, tabfm_v1_0_0_pytorch as tabfm_v1_0_0
model = tabfm_v1_0_0.load(model_type="classification")
clf = TabFMClassifier(model=model)
clf.fit(X_train, y_train)   # stores context, trains nothing
probs = clf.predict_proba(X_test)

You can also load weights directly from the Hub via TabFM_HF.from_pretrained("google/tabfm-1.0.0-pytorch", subfolder="classification"). Both PyTorch and JAX/Flax checkpoints are available.

Where this fits in the real world

For practitioners, the release is important because tabular ML still underpins fraud, churn, risk, and operations workloads -- tabular prediction is one of the least glamorous but most operationally important ML workloads. The practical sweet spots for TabFM right now are:

  • Zero-shot baseline: Run TabFM first before investing in an XGBoost tuning pipeline. If it's good enough, you're done.
  • Small-data regimes: When you have too few samples to reliably tune a tree ensemble, TabFM's pretraining carries the signal.
  • Rapid prototyping: New dataset, unknown domain -- get a credible number in minutes instead of days.
  • BigQuery users: TabFM is being integrated directly into Google BigQuery; in the coming weeks, users will be able to perform regression and classification using a simple AI.PREDICT SQL command -- no ML expertise required.

The bigger picture

TabFM didn't emerge from a vacuum. Starting from TabPFN, tabular foundation models have received a lot of attention thanks to their ability to perform training and inference in a single forward pass of a Transformer-based architecture. What Google brings is scale -- hundreds of millions of synthetic training sets, a polished sklearn API, and a direct pipeline into BigQuery -- plus the credibility of a TabArena leaderboard position.

The deeper assumption being challenged here is that tabular ML is fundamentally a per-dataset problem. The field has long accepted that you can't transfer knowledge across tables the way you transfer language understanding across documents. TabFM, alongside TabPFN and TabICL, is evidence that this assumption is wrong -- or at least, much weaker than previously thought. The question now isn't whether foundation models can work on tables. It's how far the zero-shot ceiling goes before task-specific tuning takes back the lead.

The weights are free for research and non-commercial use, available now on Hugging Face, with the source code on GitHub under Apache 2.0. Commercial licensing terms have not yet been announced.