Analysis

Published

TabFM: predicting values in new tables from labeled rows

BY

Jin Tan Ruan

Jin Tan Ruan

TabFM uses labeled rows to predict values in a new table without retraining. The base model reads the labeled examples and the rows to predict together in a single pass. In Google Research’s evaluation, combining 32 predictions from transformed versions of the same table yielded only a modest gain over the base model. Memory use grows with the number of labeled rows supplied for each prediction.

Intersecting blue and white grid lines.

Abstract

TabFM is a foundation model from Google Research that predicts on tables it has never seen: labeled rows and unlabeled rows are supplied together, and predictions are returned in a single forward pass, with no training run, no hyperparameter search, and no feature engineering.

The architecture has three stages: attention over both axes of the grid with Fourier-feature cell encodings, compression of each row into one dense vector of dimension 256, and in-context learning over the compressed rows in a transformer with 24 causal blocks. The model was pretrained entirely on hundreds of millions of synthetic datasets generated from structural causal models. This article describes each stage, the training data, the ensemble configuration, and the stated limits, which include up to 10 classes and a recommended 500 features.

Introduction

For roughly a decade, applied machine learning has operated with an unusual split. Deep learning transformed images, text, audio, and protein structure, while the data that runs most businesses (transactions, customer records, sensor logs, anything with rows and columns) remained the domain of gradient-boosted trees. On tables, the classical methods continued to win, and every new tabular problem required the same procedure: feature engineering, cross-validation, and days of hyperparameter tuning.

Google Research introduced TabFM, a foundation model that predicts on tables it has never seen: labeled rows and unlabeled rows are supplied, and predictions are returned in a single forward pass, with no training run, no hyperparameter search, and no feature engineering.

Problem Statement

Language models benefit from a property that tabular models never have: a shared vocabulary. Every document is a sequence over the same tokens, so one network can read them all. Tables have no such common structure. One dataset has 12 columns, another has 400. One column is an income in dollars, another is a categorical zip code, another is a probability. Column order carries no meaning. A tabular foundation model must therefore be indifferent to the number of features, indifferent to their order, sensitive to fine numeric detail, and able to treat an entire labeled dataset as input rather than as training material.

That last requirement is the most fundamental one, and it follows from the paradigm to which TabFM belongs. In the prior-data fitted network approach, established by TabPFN in 2022 and extended by its Nature-published successor and by TabICL, the model is not trained on the user's dataset. It is trained on the space of datasets, consuming millions of supervised problems during pretraining and learning the mapping from (training rows, test row) to test label. At inference, the labeled rows enter as context, condition the output through attention, and update nothing. Prediction becomes sequence completion. The engineering problem is how to make that affordable at real-world scale, and TabFM's three-stage design (Figure 1) is the answer proposed by Google Research.

The TabFM three-stage architecture, from input table to prediction
Figure 1. The TabFM three-stage architecture, from input table to prediction.

Method, Stage One: Attention Over Both Axes of the Grid

The first stage builds a rich representation of every cell in the table.

The stage begins with the encoding. Each cell value is embedded using Fourier features with 32 frequencies. The motivation is a known weakness of neural networks: fed raw scalars, they are poor at resolving fine differences in magnitude, and tables are full of columns where the difference between 0.02 and 0.2 decides the label. Projecting each value through a bank of sinusoids at multiple frequencies spreads that information across dimensions the network can use, giving it high-resolution sensitivity to continuous values without any dataset-specific binning or scaling decisions.

The embedded cells then flow through a Set Transformer with 3 blocks, 4 attention heads, and 256 induced points, applying attention across columns. The choice of a set architecture provides permutation invariance: a set has no order, so the model is structurally unable to distinguish whether income is the third column or the thirtieth, and it accepts any number of columns up to the design envelope. The induced points matter for cost. Naive self-attention over f features is quadratic in f; a Set Transformer routes attention through a fixed set of 256 learned reference points instead, keeping the computation linear in the number of features while still letting every feature influence every other.

Column attention alternates with attention across rows, so information flows along both axes of the grid. After this stage, the representation of a single cell reflects two contexts at once: the other features of its own row, and the values that same feature takes across other examples. That second direction allows the model to internalize the shape of a feature's distribution (its scale, its outliers, its relationship to the label) directly from the context rows. This alternating two-axis attention is TabPFN's signature idea, and Google Research's blog credits it explicitly. It is the most expressive part of the network, and also the most expensive, which is why it is confined to the front of the pipeline.

Method, Stage Two: Row Compression

The second stage performs a deliberate act of compression. For each row, 8 learned CLS tokens attend over the row's contextualized cell representations, across 3 blocks with 8 heads, using rotary position embeddings, and the result is condensed into one dense vector of dimension 256.

The intuition mirrors the function of a [CLS] token in BERT-style encoders: a learned query that absorbs a summary of everything it attends to. Using eight of them rather than one gives the compression multiple channels to preserve different aspects of the row before the final condensation. The consequence of this stage is both easily stated and important: the table is no longer a grid. It is a sequence of row embeddings, one 256-dimensional vector per example, and the cost of the number of columns has been paid in full. No downstream component sees a cell again.

Method, Stage Three: In-Context Learning Over Compressed Rows

The third stage is where prediction occurs. A dedicated transformer with 24 causal blocks, 8 attention heads per block, and SwiGLU activations reads the sequence of row embeddings, with the labeled training rows preceding the test rows. Under causal masking, each test row attends back over the entire labeled context, and the model's output for that position is the prediction.

This is in-context learning in precisely the sense familiar from language models, and the blog describes the benefit directly: because the heavyweight 24-block transformer operates on compressed embeddings rather than the raw data grid, its computational demands are significantly reduced, and its cost depends on the number of rows rather than the table's width. The architectural split is central to the design. Expressiveness is spent early, on a shallow stage that must understand cells; scale is handled late, by a deep stage that only reads summaries. TabPFN contributes the front of the pipeline, TabICL contributes the back, and the model card's configuration numbers (256-dimensional embeddings throughout, 3 + 3 + 24 blocks), collected in Figure 2, show where the depth was invested: overwhelmingly in the reasoning stage, not the encoding stages.

Two checkpoints implement the design, one for classification (up to 10 classes) and one for regression, together totaling 13.1 GB in the PyTorch release, with the classification checkpoint alone at 6.56 GB. A parameter count is not part of the v1.0.0 documentation; as pure arithmetic, 6.56 GB of 32-bit floats corresponds to roughly 1.6 billion parameters, an inference from file size rather than a disclosed figure.

TabFM configuration
Figure 2. Configuration of the three stages and the released checkpoints, as given in the model card and the PyTorch release.

Training Data: Synthetic Tables at Scale

An architecture of this kind is only half the recipe. The other half is the data on which it was pretrained, and that data contains no real tables at all. TabFM was trained entirely on hundreds of millions of synthetic datasets, generated dynamically during training from structural causal models.

An SCM is a directed graph in which each variable is computed from its parent variables plus noise. A random graph topology is sampled, random functions are assigned to the edges (the blog emphasizes a wide variety of functional forms), rows are generated by propagating values through the graph, and one node is designated as the prediction target. The output is a supervised problem whose columns exhibit genuine dependency structure, nonlinear relationships, and noise, the way real tables do. Because generation is dynamic, the model effectively never sees the same dataset twice; the training stream is an endless procession of fresh prediction problems, each teaching a slightly different lesson about how features can relate to labels.

Synthetic datasets provide a way to pretrain tabular models without collecting a corpus of private real-world tables. This limits reliance on private data during that pretraining stage; it does not establish a privacy guarantee for real tables supplied at inference. Privacy also depends on the serving environment, access controls, outputs and logs.

Ensembling

The repository ships a second configuration, TabFM-Ensemble, and its mechanics merit description because they extend the tuning-free philosophy rather than abandoning it. Inputs are augmented with cross features and SVD-derived features; 32 ensemble members run over transformed versions of the problem; member outputs are combined with weights fitted by a non-negative least squares solver; classification outputs pass through Platt scaling for calibration. Every step is automatic. No user-facing knob is introduced anywhere.

Flow diagram of TabFM-Ensemble: input table, augmentation with cross and SVD-derived features, 32 ensemble members, combination with non-negative least squares weights, Platt scaling for classification only, prediction.
Figure 3. TabFM-Ensemble's automatic steps around the base model: cross and SVD feature augmentation, 32 ensemble members over transformed versions of the problem, non-negative least squares weighting, and Platt scaling for classification. The weighting and scaling are fitted automatically with no user-facing knob; reported gains over the base model are incremental in this evaluation.

The reported gains of the 32-member ensemble over the base model are incremental in this evaluation. That comparison does not establish a ceiling on achievable performance.

Discussion

At the most fundamental level, TabFM can be read as a change in what is learned. A conventional model learns the patterns of one dataset, and everything around it (the cross-validation, the hyperparameter search, the feature engineering) exists to help that learning succeed once. TabFM moves the learning itself into pretraining. What the network internalized from hundreds of millions of synthetic problems is the procedure of fitting: how to read a set of labeled examples, infer the rule that generated them, and apply it. Machine learning practice has a name for the aspiration, learning to learn, and this release is that aspiration operating at foundation-model scale on the data type on which businesses run (Figure 4).

The base pretrained model avoids per-dataset neural-weight training. Preprocessing and optional ensemble, weighting, or calibration steps still add computation and fitting. Include these steps when comparing accuracy, latency, and cost with a gradient-boosted workflow; the required tuning and feature engineering depend on the dataset and baseline.

Training loop versus single forward pass
Figure 4. Qualitative comparison of a conventional gradient-boosted workflow with the base TabFM model. The TabFM column describes the pretrained model alone: preprocessing and the optional TabFM-Ensemble steps (cross and SVD features, 32 members, non-negative least squares weighting, Platt scaling) add computation and fitting, and every prediction call passes the full labeled context through the network.

The interface reduces per-dataset setup by moving prediction behind Python or SQL calls. Users still need to evaluate predictive quality, data suitability, input limits, and deployment constraints. This article does not measure adoption or the number of people who can use supervised learning.

Generating synthetic pretraining tables from structural causal models allows their distribution to be varied without drawing those tables from private records. That is a property of the pretraining setup, not a guarantee that a deployed model or service cannot disclose user-supplied data. Evaluation and deployment still require data-handling controls appropriate to the intended use.

Limitations and Design Envelope

The model card states the current boundaries plainly, and they follow directly from the architecture. Classification supports up to 10 classes, a limit set by the model's output structure. Tables are best kept within 500 features, the regime the model was optimized for. Memory scales with the number of context rows, since the full training set flows through the network on every prediction call; there is no fitted artifact to cache. These are the parameters of a v1.0.0, and they cover small-to-mid tabular data, which is where most applied problems reside and where tuning effort has always been least reliable.

The library allows immediate evaluation: it provides scikit-learn-compatible TabFMClassifier and TabFMRegressor classes with fit, predict, and predict_proba, handles pandas DataFrames with mixed numerical and categorical columns natively, offers JAX and PyTorch backends, and fetches weights automatically from Hugging Face. Calling fit prepares encoders and scalers for the new table. The pretrained model’s weights stay fixed. The ensemble separately fits its combination weights and, for classification, a calibration step. The weights ship for research and evaluation under the TabFM Non-Commercial License v1.0, with production use arriving through Google's integrations, starting with the announced AI.PREDICT command in BigQuery.

Conclusion

TabFM treats supervised tabular prediction as in-context inference, offering an alternative to fitting a separate model for each dataset. Practical evaluation should compare predictive quality, resource use, input limits, and licensing requirements on the intended data. The repository distinguishes the code license from non-commercial restrictions on pretrained weights.

Sources and version notes

Google Research: introducing TabFM

TabFM repository and license guidance

Research

Browse all research, analyses, and software.

Browse all research notes and technical analyses.

Abstract

TabFM is a foundation model from Google Research that predicts on tables it has never seen: labeled rows and unlabeled rows are supplied together, and predictions are returned in a single forward pass, with no training run, no hyperparameter search, and no feature engineering.

The architecture has three stages: attention over both axes of the grid with Fourier-feature cell encodings, compression of each row into one dense vector of dimension 256, and in-context learning over the compressed rows in a transformer with 24 causal blocks. The model was pretrained entirely on hundreds of millions of synthetic datasets generated from structural causal models. This article describes each stage, the training data, the ensemble configuration, and the stated limits, which include up to 10 classes and a recommended 500 features.

Introduction

For roughly a decade, applied machine learning has operated with an unusual split. Deep learning transformed images, text, audio, and protein structure, while the data that runs most businesses (transactions, customer records, sensor logs, anything with rows and columns) remained the domain of gradient-boosted trees. On tables, the classical methods continued to win, and every new tabular problem required the same procedure: feature engineering, cross-validation, and days of hyperparameter tuning.

Google Research introduced TabFM, a foundation model that predicts on tables it has never seen: labeled rows and unlabeled rows are supplied, and predictions are returned in a single forward pass, with no training run, no hyperparameter search, and no feature engineering.

Problem Statement

Language models benefit from a property that tabular models never have: a shared vocabulary. Every document is a sequence over the same tokens, so one network can read them all. Tables have no such common structure. One dataset has 12 columns, another has 400. One column is an income in dollars, another is a categorical zip code, another is a probability. Column order carries no meaning. A tabular foundation model must therefore be indifferent to the number of features, indifferent to their order, sensitive to fine numeric detail, and able to treat an entire labeled dataset as input rather than as training material.

That last requirement is the most fundamental one, and it follows from the paradigm to which TabFM belongs. In the prior-data fitted network approach, established by TabPFN in 2022 and extended by its Nature-published successor and by TabICL, the model is not trained on the user's dataset. It is trained on the space of datasets, consuming millions of supervised problems during pretraining and learning the mapping from (training rows, test row) to test label. At inference, the labeled rows enter as context, condition the output through attention, and update nothing. Prediction becomes sequence completion. The engineering problem is how to make that affordable at real-world scale, and TabFM's three-stage design (Figure 1) is the answer proposed by Google Research.

The TabFM three-stage architecture, from input table to prediction
Figure 1. The TabFM three-stage architecture, from input table to prediction.

Method, Stage One: Attention Over Both Axes of the Grid

The first stage builds a rich representation of every cell in the table.

The stage begins with the encoding. Each cell value is embedded using Fourier features with 32 frequencies. The motivation is a known weakness of neural networks: fed raw scalars, they are poor at resolving fine differences in magnitude, and tables are full of columns where the difference between 0.02 and 0.2 decides the label. Projecting each value through a bank of sinusoids at multiple frequencies spreads that information across dimensions the network can use, giving it high-resolution sensitivity to continuous values without any dataset-specific binning or scaling decisions.

The embedded cells then flow through a Set Transformer with 3 blocks, 4 attention heads, and 256 induced points, applying attention across columns. The choice of a set architecture provides permutation invariance: a set has no order, so the model is structurally unable to distinguish whether income is the third column or the thirtieth, and it accepts any number of columns up to the design envelope. The induced points matter for cost. Naive self-attention over f features is quadratic in f; a Set Transformer routes attention through a fixed set of 256 learned reference points instead, keeping the computation linear in the number of features while still letting every feature influence every other.

Column attention alternates with attention across rows, so information flows along both axes of the grid. After this stage, the representation of a single cell reflects two contexts at once: the other features of its own row, and the values that same feature takes across other examples. That second direction allows the model to internalize the shape of a feature's distribution (its scale, its outliers, its relationship to the label) directly from the context rows. This alternating two-axis attention is TabPFN's signature idea, and Google Research's blog credits it explicitly. It is the most expressive part of the network, and also the most expensive, which is why it is confined to the front of the pipeline.

Method, Stage Two: Row Compression

The second stage performs a deliberate act of compression. For each row, 8 learned CLS tokens attend over the row's contextualized cell representations, across 3 blocks with 8 heads, using rotary position embeddings, and the result is condensed into one dense vector of dimension 256.

The intuition mirrors the function of a [CLS] token in BERT-style encoders: a learned query that absorbs a summary of everything it attends to. Using eight of them rather than one gives the compression multiple channels to preserve different aspects of the row before the final condensation. The consequence of this stage is both easily stated and important: the table is no longer a grid. It is a sequence of row embeddings, one 256-dimensional vector per example, and the cost of the number of columns has been paid in full. No downstream component sees a cell again.

Method, Stage Three: In-Context Learning Over Compressed Rows

The third stage is where prediction occurs. A dedicated transformer with 24 causal blocks, 8 attention heads per block, and SwiGLU activations reads the sequence of row embeddings, with the labeled training rows preceding the test rows. Under causal masking, each test row attends back over the entire labeled context, and the model's output for that position is the prediction.

This is in-context learning in precisely the sense familiar from language models, and the blog describes the benefit directly: because the heavyweight 24-block transformer operates on compressed embeddings rather than the raw data grid, its computational demands are significantly reduced, and its cost depends on the number of rows rather than the table's width. The architectural split is central to the design. Expressiveness is spent early, on a shallow stage that must understand cells; scale is handled late, by a deep stage that only reads summaries. TabPFN contributes the front of the pipeline, TabICL contributes the back, and the model card's configuration numbers (256-dimensional embeddings throughout, 3 + 3 + 24 blocks), collected in Figure 2, show where the depth was invested: overwhelmingly in the reasoning stage, not the encoding stages.

Two checkpoints implement the design, one for classification (up to 10 classes) and one for regression, together totaling 13.1 GB in the PyTorch release, with the classification checkpoint alone at 6.56 GB. A parameter count is not part of the v1.0.0 documentation; as pure arithmetic, 6.56 GB of 32-bit floats corresponds to roughly 1.6 billion parameters, an inference from file size rather than a disclosed figure.

TabFM configuration
Figure 2. Configuration of the three stages and the released checkpoints, as given in the model card and the PyTorch release.

Training Data: Synthetic Tables at Scale

An architecture of this kind is only half the recipe. The other half is the data on which it was pretrained, and that data contains no real tables at all. TabFM was trained entirely on hundreds of millions of synthetic datasets, generated dynamically during training from structural causal models.

An SCM is a directed graph in which each variable is computed from its parent variables plus noise. A random graph topology is sampled, random functions are assigned to the edges (the blog emphasizes a wide variety of functional forms), rows are generated by propagating values through the graph, and one node is designated as the prediction target. The output is a supervised problem whose columns exhibit genuine dependency structure, nonlinear relationships, and noise, the way real tables do. Because generation is dynamic, the model effectively never sees the same dataset twice; the training stream is an endless procession of fresh prediction problems, each teaching a slightly different lesson about how features can relate to labels.

Synthetic datasets provide a way to pretrain tabular models without collecting a corpus of private real-world tables. This limits reliance on private data during that pretraining stage; it does not establish a privacy guarantee for real tables supplied at inference. Privacy also depends on the serving environment, access controls, outputs and logs.

Ensembling

The repository ships a second configuration, TabFM-Ensemble, and its mechanics merit description because they extend the tuning-free philosophy rather than abandoning it. Inputs are augmented with cross features and SVD-derived features; 32 ensemble members run over transformed versions of the problem; member outputs are combined with weights fitted by a non-negative least squares solver; classification outputs pass through Platt scaling for calibration. Every step is automatic. No user-facing knob is introduced anywhere.

Flow diagram of TabFM-Ensemble: input table, augmentation with cross and SVD-derived features, 32 ensemble members, combination with non-negative least squares weights, Platt scaling for classification only, prediction.
Figure 3. TabFM-Ensemble's automatic steps around the base model: cross and SVD feature augmentation, 32 ensemble members over transformed versions of the problem, non-negative least squares weighting, and Platt scaling for classification. The weighting and scaling are fitted automatically with no user-facing knob; reported gains over the base model are incremental in this evaluation.

The reported gains of the 32-member ensemble over the base model are incremental in this evaluation. That comparison does not establish a ceiling on achievable performance.

Discussion

At the most fundamental level, TabFM can be read as a change in what is learned. A conventional model learns the patterns of one dataset, and everything around it (the cross-validation, the hyperparameter search, the feature engineering) exists to help that learning succeed once. TabFM moves the learning itself into pretraining. What the network internalized from hundreds of millions of synthetic problems is the procedure of fitting: how to read a set of labeled examples, infer the rule that generated them, and apply it. Machine learning practice has a name for the aspiration, learning to learn, and this release is that aspiration operating at foundation-model scale on the data type on which businesses run (Figure 4).

The base pretrained model avoids per-dataset neural-weight training. Preprocessing and optional ensemble, weighting, or calibration steps still add computation and fitting. Include these steps when comparing accuracy, latency, and cost with a gradient-boosted workflow; the required tuning and feature engineering depend on the dataset and baseline.

Training loop versus single forward pass
Figure 4. Qualitative comparison of a conventional gradient-boosted workflow with the base TabFM model. The TabFM column describes the pretrained model alone: preprocessing and the optional TabFM-Ensemble steps (cross and SVD features, 32 members, non-negative least squares weighting, Platt scaling) add computation and fitting, and every prediction call passes the full labeled context through the network.

The interface reduces per-dataset setup by moving prediction behind Python or SQL calls. Users still need to evaluate predictive quality, data suitability, input limits, and deployment constraints. This article does not measure adoption or the number of people who can use supervised learning.

Generating synthetic pretraining tables from structural causal models allows their distribution to be varied without drawing those tables from private records. That is a property of the pretraining setup, not a guarantee that a deployed model or service cannot disclose user-supplied data. Evaluation and deployment still require data-handling controls appropriate to the intended use.

Limitations and Design Envelope

The model card states the current boundaries plainly, and they follow directly from the architecture. Classification supports up to 10 classes, a limit set by the model's output structure. Tables are best kept within 500 features, the regime the model was optimized for. Memory scales with the number of context rows, since the full training set flows through the network on every prediction call; there is no fitted artifact to cache. These are the parameters of a v1.0.0, and they cover small-to-mid tabular data, which is where most applied problems reside and where tuning effort has always been least reliable.

The library allows immediate evaluation: it provides scikit-learn-compatible TabFMClassifier and TabFMRegressor classes with fit, predict, and predict_proba, handles pandas DataFrames with mixed numerical and categorical columns natively, offers JAX and PyTorch backends, and fetches weights automatically from Hugging Face. Calling fit prepares encoders and scalers for the new table. The pretrained model’s weights stay fixed. The ensemble separately fits its combination weights and, for classification, a calibration step. The weights ship for research and evaluation under the TabFM Non-Commercial License v1.0, with production use arriving through Google's integrations, starting with the announced AI.PREDICT command in BigQuery.

Conclusion

TabFM treats supervised tabular prediction as in-context inference, offering an alternative to fitting a separate model for each dataset. Practical evaluation should compare predictive quality, resource use, input limits, and licensing requirements on the intended data. The repository distinguishes the code license from non-commercial restrictions on pretrained weights.

Sources and version notes

Google Research: introducing TabFM

TabFM repository and license guidance

Research

Browse all research notes and technical analyses.

  • //

    [#hebula]

    &

    [#research]

  • //

    [#hebula]

    &

    [#research]

  • //

    [#hebula]

    &

    [#research]

  • //

    [#hebula]

    &

    [#research]

Research and collaboration

Have a research question?

Tell us what you’d like to test.

  • //

    [#hebula]

    &

    [#research]

  • //

    [#hebula]

    &

    [#research]

  • //

    [#hebula]

    &

    [#research]

  • //

    [#hebula]

    &

    [#research]

  • //

    [#hebula]

    &

    [#research]

  • //

    [#hebula]

    &

    [#research]

  • //

    [#hebula]

    &

    [#research]

  • //

    [#hebula]

    &

    [#research]

  • //

    [#hebula]

    &

    [#research]

Research and collaboration

Have a research question?

Tell us what you’d like to test.

  • //

    [#hebula]

    &

    [#research]

  • //

    [#hebula]

    &

    [#research]

  • //

    [#hebula]

    &

    [#research]

  • //

    [#hebula]

    &

    [#research]

  • //

    [#hebula]

    &

    [#research]

  • //

    [#hebula]

    &

    [#research]

  • //

    [#hebula]

    &

    [#research]

  • //

    [#hebula]

    &

    [#research]

  • //

    [#hebula]

    &

    [#research]

Research and collaboration

Have a research question?

Tell us what you’d like to test.

  • //

    [#hebula]

    &

    [#research]

  • //

    [#hebula]

    &

    [#research]

  • //

    [#hebula]

    &

    [#research]

  • //

    [#hebula]

    &

    [#research]

  • //

    [#hebula]

    &

    [#research]