TabFM: A zero-shot foundation model for tabular data

Hacker News Top Models

Summary

Google Research introduces TabFM, a zero-shot foundation model for tabular data that uses in-context learning to perform classification and regression without requiring manual model training or hyperparameter tuning.

No content available
Original Article
View Cached Full Text

Cached at: 07/01/26, 01:55 AM

# Introducing TabFM: A zero-shot foundation model for tabular data Source: [https://research.google/blog/introducing-tabfm-a-zero-shot-foundation-model-for-tabular-data/](https://research.google/blog/introducing-tabfm-a-zero-shot-foundation-model-for-tabular-data/) We’ve seen a massive shift in how people handle time\-series forecasting since we launched TimesFM\. Now, we’re bringing that same "zero\-shot" logic to tabular data\. We introduce TabFM, a new foundation model for tabular data to simplify classification and regression workflows\. Tabular data constitutes the backbone of enterprise data infrastructure and powers a significant fraction of critical predictive machine learning[applications](https://arxiv.org/pdf/2110.01889)\. From predicting customer churn to identifying financial fraud, tabular regression and classification tasks are ubiquitous\. For years, supervised tree\-based algorithms like[AdaBoost](https://en.wikipedia.org/wiki/AdaBoost),[XGBoost](https://en.wikipedia.org/wiki/XGBoost)and[random forests](https://en.wikipedia.org/wiki/Random_forest), to name a few, have historically dominated this space, offering robust performance on structured data\. However, the lifecycle of deploying these traditional models presents a significant bottleneck\. Fitting an XGBoost model to a new dataset is not merely a matter of a single\.fit\(\)step; it invariably requires tedious manual effort\. Data scientists must invest countless hours into extensive hyperparameter optimization and domain\-specific feature engineering just to extract a reliable signal from the raw data\. On the other hand, recent advances in the broader machine learning landscape — particularly the evolution of large language models \(LLMs\) — have changed how we interact with novel tasks\. LLMs have demonstrated the remarkable power of zero\-shot prediction through[in\-context learning](https://arxiv.org/abs/2005.14165)\(ICL\)\. This technique lets a pretrained model learn a new task by providing examples and instructions in the input context, without updating any underlying model weights\. Today, we introduce TabFM, a foundation model designed specifically for tabular data classification and regression\. By framing tabular prediction as an ICL problem, TabFM eliminates the need for manual model training,[hyperparameter tuning](https://en.wikipedia.org/wiki/Hyperparameter_optimization), and complex feature engineering\. We are excited to share how this approach allows users to generate high\-quality predictions on previously unseen tables in a single forward pass\. TabFM is now available on our[Hugging Face](https://huggingface.co/google/tabfm-1.0.0-pytorch)and[GitHub](https://github.com/google-research/tabfm)repos\. ## How it works The traditional ML paradigm relies on updating model parameters specific to a given dataset's distribution\. In contrast, the ICL paradigm bypasses this completely\. Instead of undergoing a traditional training phase for each new task, TabFM takes the entire dataset — comprising both the historical training examples and the target testing rows — as a single unified prompt\. The model learns to interpret the relationships between columns and rows directly from this context at inference time\. However, applying ICL to tabular data is not as straightforward as tokenizing natural language\. Standard language models process one\-dimensional, ordered sequences, but tables are fundamentally two\-dimensional and inherently orderless: swapping two rows or two columns does not change the underlying meaning of the data\. To effectively process these diverse tabular structures while enabling scalable zero\-shot prediction, TabFM synthesizes the strengths of architectures like[TabPFN](https://arxiv.org/abs/2207.01848)and[TabICL](https://arxiv.org/abs/2502.05564)into a novel hybrid design\. This architecture, visualized below, relies on three key mechanisms: - *Alternating row and column attention*: First, the raw table is processed through a multilayer attention module\. Similar to TabPFN, this step applies alternating attention across both columns \(features\) and rows \(examples\)\. By continuously attending across these two dimensions, the model learns rich representations that natively capture complex feature interactions and dependencies\. This deep contextualization effectively performs the heavy lifting that would otherwise require tedious manual feature crafting by data scientists\. - *Row compression*: Following this contextualization, the rich, cross\-attended information for each individual row is compressed into a single, dense vector representation\. - *In\-context learning \(ICL\)*: Finally, a dedicated Transformer operates on this sequence of compressed embeddings\. Adopting the highly efficient approach of TabICL, performing attention over these compressed row vectors — rather than the raw, uncompressed grid — drastically reduces the computation cost\. This ensures the prediction step remains highly computationally efficient, even for much larger datasets\. ## Training on synthetic data at scale A typical recipe for building foundation models is to use a high\-capacity neural network trained on vast amounts of diverse data\. However, a major hurdle in tabular ML is that high\-quality, diverse tabular datasets — especially the massive tables required to reflect true industrial data analysis — are critically scarce in the open\-source space\. Industrial tables often contain proprietary schemas and sensitive information, making them inaccessible for broad pre\-training\. Because synthetic tables can be generated to be arbitrarily large, they are effectively the only viable option for pre\-training a foundation model at this scale\. As a result, TabFM is trained entirely on hundreds of millions of synthetic datasets\. These datasets are dynamically generated using structural causal models \(SCMs\) that incorporate a wide variety of random functions\. This massive synthetic generation captures the wide variety of distributions and complex feature relationships prevalent in real\-world tabular data\. As a result, the model generalizes well to unseen real\-world tables, as we demonstrate in our benchmarks below\. ## Performance and benchmarking To rigorously test TabFM against existing state\-of\-the\-art methods, we evaluated it on[TabArena](https://huggingface.co/spaces/TabArena/leaderboard), a living benchmark system that calculates[Elo scores](https://arxiv.org/pdf/2506.16791)based on head\-to\-head win rates\. This comprehensive evaluation spans 38 classification datasets and 13 regression datasets ranging in size from 700 to 150,000 samples\. As shown in the performance plot below, we benchmarked two distinct configurations of our model: - *TabFM*: This represents the out\-of\-the\-box capability of the model\. Predictions are generated in a single forward pass, requiring no tuning or cross\-validation\. - *TabFM\-Ensemble*: This configuration pushes performance further by incorporating cross features and[SVD](https://en.wikipedia.org/wiki/Singular_value_decomposition)\(Singular Value Decomposition\) features\. We compute the optimal weights for a 32\-way ensemble using a non\-negative least squares solver\. For classification tasks, this variant also incorporates[Platt scaling](https://en.wikipedia.org/wiki/Platt_scaling)as an additional calibration step\. For comprehensive TabArena benchmark results—including detailed per\-fold metrics and head\-to\-head win rates against specific baseline models—please visit our[GitHub page](https://github.com/google-research/tabfm)\. ## Conclusion By reframing tabular prediction as an in\-context learning problem, TabFM utilizes a hybrid attention architecture and massive synthetic training data to natively capture complex feature interactions\. 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\. TabFM brings the out\-of\-the\-box convenience of modern foundation models directly to tabular ML workflows, empowering practitioners to generate highly accurate predictions in a single forward pass\. To make this accessible, TabFM is being integrated directly into Google BigQuery\. In the coming weeks, users will be able to perform advanced regression and classification using a simpleAI\.PREDICT SQLcommand in BigQuery — no ML expertise required\. ## Acknowledgements *This project is joint work with Erez Louidor Ilan, Taman Narayan, Shuxin Nie, Rajat Sen, Yichen Zhou, Joe Toth, Deqing Fu and Samet Oymak\. We thank Kimberly Schwede for designing the graphics\.*

Similar Articles

google/tabfm-1.0.0-pytorch

Hugging Face Models Trending

Google Research releases TabFM, a zero-shot tabular foundation model for classification and regression using PyTorch, requiring no fine-tuning.

Training Fair Tabular Foundation Models

arXiv cs.LG

This paper proposes FairTFM, a training strategy to incorporate fairness constraints into tabular foundation models, enabling fair predictions via in-context learning without task-specific retraining.