TL;DR
TabFM is a 400M-parameter foundation model that brings the "zero-shot" power of LLMs to tabular data. By formulating supervised prediction as in-context learning and training entirely on synthetic data, it outperforms tuned AutoML pipelines and existing tabular models in a single forward pass without any task-specific fine-tuning.
What Problem Does This Paper Address?
For years, tabular machine learning has been dominated by a "per-dataset" workflow. If you have a new table, you typically start from scratch: cleaning data, engineering features, and tuning gradient-boosted decision trees (GBDTs) or AutoML stacks. While effective, this is computationally expensive and lacks the transfer learning benefits seen in computer vision or NLP.
Previous attempts to build "tabular foundation models" faced two major hurdles:
- Scaling: Naive transformer attention over every cell in a table scales quadratically ($O(T^2 H^2)$ for $T$ rows and $H$ columns), usually limiting models to tiny datasets of fewer than 1,000 rows.
- Data Heterogeneity: Tables mix continuous numbers (requiring high precision) with categorical variables (which have no natural order), making it hard for standard neural architectures to compete with the axis-aligned splits of tree models.
Methods
TabFM addresses these challenges through a specialized Transformer architecture and a unique training regime.
The Architecture
As shown in Figure 2, TabFM decouples feature encoding from cross-instance reasoning:
- Spectral Cell Embedding: Instead of simple linear layers, it uses learned Fourier frequency banks to project cell values. This allows the model to maintain high numerical resolution for continuous data.
- Decoupled Attention: It alternates between Column Induced Self-Attention Blocks (ISAB), which attend across rows in linear time using inducing points, and Row Self-Attention Blocks (SAB), which attend across features using Rotary Position Embeddings (RoPE). This allows the model to scale to 16,384 rows.
- In-Context Predictor: A deep 24-layer transformer treats the problem as in-context learning (ICL). It takes a set of labeled "context" rows and an unlabeled "query" row, producing a prediction in one pass.
Training and Variants
- Purely Synthetic Pretraining: Remarkably, TabFM never sees real-world data during pretraining. It is trained on tables generated from Structural Causal Models (SCMs), which simulate complex, non-linear dependencies (see Figure 3).
- TabFM+: An extension that uses multi-view ensembling (32 different "views" of the data) and post-hoc calibration to boost performance.
- TabFM-Auto: This version pairs the frozen TabFM with Gemini-3.8-Flash. The LLM acts as a feature engineer, iteratively writing Python code to transform the input data to better suit the model's strengths.
Datasets
- Pretraining: Millions of synthetic tables generated via SCMs.
- Evaluation: The authors use TabArena, a comprehensive benchmark consisting of 51 real-world datasets (38 classification and 13 regression tasks). This benchmark includes diverse domains like healthcare, finance, and physical sciences.
Key Insights and Ideas
- Causal Priors are Enough: The most striking finding is that a model trained only on synthetic causal graphs can generalize to real-world tasks like predicting credit defaults or housing prices. This suggests that the "language" of tabular data is rooted in underlying causal structures.
- Scaling via Inducing Points: By using ISABs to compress $T$ instances into $m$ inducing vectors, the authors broke the 1,000-row barrier for tabular ICL, reaching 16,384 rows.
- LLM-in-the-Loop: TabFM-Auto demonstrates that you don't need to update a foundation model's weights to improve it. By using an LLM to "talk" to the data (feature engineering), you can achieve massive performance gains on a frozen backbone.
Key Results
TabFM sets a new state-of-the-art for zero-shot tabular prediction. As seen in the Overall TabArena Leaderboard (Figure 1):
- Zero-Shot Dominance: The base TabFM ranks first among all default tabular foundation models, even beating heavily tuned AutoML pipelines like AutoGluon 1.5 in many cases.
- Top of the Table: TabFM-Auto and TabFM+ take the top two positions overall on the leaderboard.
- Win Rates: In head-to-head matchups (Figure 5), TabFM-Auto beats standard baselines like LightGBM and TabPFN in over 80% of dataset-fold instances.
- Regression vs. Classification: The model shows particularly strong gains in regression, likely due to the spectral embeddings' ability to handle continuous scales better than the piecewise-constant splits of trees.
Limitations and Future Work
- Feature Constraints: Pretraining was capped at 100 columns. While RoPE allows the model to handle more at inference time, performance might degrade on extremely wide datasets.
- Data Types: The current model does not natively handle free-text fields, images, or complex time-series data within the table.
- Relational Schemas: TabFM is designed for "flat" tables. Generalizing the architecture to handle relational databases (multiple joined tables) remains an open challenge.
- Future Directions: The authors suggest distilling the LLM-guided feature engineering process directly into the pretraining phase to make the base model even smarter.
Summary updated