Skip to content
PodSubs
ShowsPeopleGuestsJobsNewsEvents
More
BlogPodCred
Menu
ShowsPeopleGuestsJobsNewsEventsBlogPodCredNetworksSign in
Join nowSign in
  • Shows
  • People
  • Jobs
  • News
  • More
    • Guests
    • Events
    • Blog
    • PodCred
    • Networks
    Join nowSign in

The AI Practitioner Podcast

The AI Practitioner Podcast artwork

PODCAST — Inside TabFM: How In-Context Learning Enables Prediction on Unseen Tables

Sep 9, 202612 minAudio
ShareXLinkedInFacebookWhatsAppEmail

Prefer reading instead? The full article is available here. The podcast is also available on Spotify and Apple Podcasts. Subscribe to keep up with the latest drops. Most tabular machine learning workflows start the same way: clean the data, engineer features, tune hyperparameters, and train a new model from scratch. Google Research’s TabFM proposes a very different approach: treat the dataset itself as context and make predictions in a single forward pass, without task-specific training. In this episode, the focus is on how zero-shot foundation models for tabular data actually work, why tables require a different architecture from text, and how TabFM compares with the models that came before it. You’ll learn: * Why is in-context learning harder for tabular data? Exploring how permutation invariance across rows and columns makes standard sequence modeling a poor fit for tables. * How do TabPFN, TabICL, and TabFM solve the problem differently? Breaking down three architectural approaches to the same challenge and the key ideas that distinguish them. * How do you run these models in practice? Using TabFM, TabPFN, and TabICL on real tabular datasets and looking at the kind of predictive performance you can expect from them. 👉 Enjoyed this episode? Subscribe to The AI Practitioner to get future articles and podcasts delivered straight to your inbox: aipractitioner.substack.com Get full access to The AI Practitioner at aipractitioner.substack.com/subscribe

Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.

Transcript

From the show. Tap a time to play from there.

SPEAKER_01Welcome back to The AI Practitioner. I'm Lina Faik, ML Engineer, Consultant, and Lecturer in Advanced Machine Learning at Sorbonne University. I help companies turn their data into real outcomes with AI, and this is where I share what I learn from actual projects. The deep technical write-ups live on Substack at AIPractitioner.substack.com, and these conversations are the audio companion. Today I'm joined by Julien, who's sharp on the ML fundamentals, but hasn't gotten his hands dirty with this particular corner of the field yet,

SPEAKER_01which makes him exactly the right person to push back on me.

SPEAKER_02Happy to push back. So what's on the table today?

SPEAKER_01Literally tables. Every time a new tabular dataset lands on your desk, you do the same ritual. Clean the columns, engineer some features, search hyperparameters, retrain from scratch. Google just published something called Tab.fm that claims you can skip basically all of it. Read the dataset once, as context, and predict in a single forward pass.

SPEAKER_02Hold on. No fitting at all? That sounds like it's either magic or marketing.

SPEAKER_01That was my first reaction too, but the mechanism behind it is real and it's not new. Tab.fm sits at the end of a five-year lineage that started in 2022.

SPEAKER_02Okay, take me back to the start then.

SPEAKER_01In 2022, a group of researchers, Muller and colleagues, introduced something called prior data-fitted networks, PFNs. The idea is you train a transformer once, offline, across millions of synthetic tasks, then at inference time, you hand it a set of labeled examples plus one new, unlabeled point, and it produces a prediction in a single forward pass. No gradient update, no dataset-specific optimization.

SPEAKER_02Wait, so when it sees my data, it's not learning anything at all?

SPEAKER_01Not in the way you'd expect. It already learned during pre-training, but what it learned was a learning algorithm, not a fitted function. A normal model adapts its weights to your dataset. A PFN's weights are frozen. Your dataset just becomes the input.

SPEAKER_02That's a strange way to think about it.

SPEAKER_01It is. And it worked shockingly well. TabPFN, the first tabular version of this, matched or beat AutoML systems that had been tuned for far longer, with something like a 230x speedup on CPU and over 5,000x on GPU.

SPEAKER_025,000 times. Okay, that's not a rounding error.

SPEAKER_01And TAPFNv2, three years later, pushed the same idea to tables 50 times larger. Its default setup took under three seconds to beat an ensemble that had been tuned for four hours.

SPEAKER_02How long does the pre-training itself take, though? You can't have moved the cost to zero.

SPEAKER_01You haven't. You've moved it. Tab EFN v2 was pre-trained once for about two weeks on eight consumer-grade GPUs. Then that cost is amortized across every table anyone ever throws at it afterward.

SPEAKER_02Okay, that I believe. So why did this take until 2022 to show up for tables specifically? Language models have been doing in-context learning for a while.

SPEAKER_01Because tables break the trick language relies on. In language, order carries meaning. The patient took the drug and the drug took the patient are not the same sentence. In a table, order is mostly noise. Shuffle the rows or shuffle the columns along with their headers and the prediction task doesn't change.

SPEAKER_02Right. A spreadsheet doesn't care what order the rows are in.

SPEAKER_01Exactly. But a transformer that just tokenizes everything into one long sequence doesn't know that on its own. It'll quietly learn to depend on positions that were never meaningful in the first place. So these models have to be built to respect that symmetry from the ground up.

SPEAKER_02Here's the thing I still don't buy, though. If tabular data behaves nothing like text, where do you even get enough of it to pre-train something this big? Text is everywhere. Clean labeled tables are not.

SPEAKER_01That's the real bottleneck, and it's the second constraint these models had to solve. When TAPI FMV2 was published, over three quarters of the public OpenML datasets had fewer than 10,000 rows. And even where big tables exist, they're usually proprietary. A column of 12.4 means nothing on its own. It only means something inside the table it came from.

SPEAKER_02So there's no shared vocabulary the way there is with words.

SPEAKER_01None. So instead of collecting real tables, they generate millions of fake ones. They sample a random causal graph, run noise through it, and read off some nodes as features and one as the target. New graph, new synthetic dataset. Repeat that millions of times, and you get a training corpus that's diverse in structure even though no individual table is real.

SPEAKER_02How millions are we talking?

SPEAKER_01Tab EFM v2 trained on close to 130 million synthetic tables. Tab HCL, a related model, used around 82 million with a curriculum that scales dataset size up as training goes. Tab FM, Google says hundreds of millions.

SPEAKER_02Says. That word's doing a lot of work.

SPEAKER_01It is. And that's a thread we'll come back to. Tab FM is, by a wide margin, the least documented of the three. Google hasn't published the prior or the training recipe in anything like the detail the other two teams did.

SPEAKER_02Noted. Okay, so once you've got a model pre-trained this way, how does it actually process a table when a real one shows up?

SPEAKER_01This is where the three models genuinely diverge and it's worth walking through, because Tab FM is basically built out of the other two. Tab EFM v2 alternates attention across rows and columns, each cell compares itself with the other features in its row, then with the same feature across other rows. That gets you a fully permutation-aware representation, but it's expensive, because those comparisons happen along both dimensions of the table at once. I won't unpack the exact complexity numbers on Mike, they're laid out in the article, but the short version is cost grows fast as the table gets bigger,

SPEAKER_01which is why TAPI FNV2 was originally only evaluated up to 10,000 rows.

SPEAKER_02So it's thorough, but slow.

SPEAKER_01So it throws away detail to go faster. Some detail, yes, but the payoff is real. It scales to half a million rows on about 20GB of GPU memory, well past what TabPFnv2 was built for.

SPEAKER_01There's a trade-off, though. To keep similar-looking columns distinguishable after compression, it injects column position into the attention, which costs it exact column order invariance. I'll skip the formulas for both architectures, they're side-by-side in the article, but the practical result is TabECL runs 1.5 to 10 times faster than TabPFnv2, With the gap growing on bigger tables.

SPEAKER_02Okay, so one is precise and expensive, the other is fast and slightly leaky. Where does TabFM land?

SPEAKER_01Right in between, structurally. TabFM does the row and column attention first, TabEFM style, to catch feature interactions, I'll spare you the attention math, the diagrams in the article, then it compresses each row and runs a separating context transformer over those compressed rows, TabETL style. It's genuinely a combination of both lineages, not just a bigger version of one of them.

SPEAKER_02Does combining them actually make it better or just more complicated?

SPEAKER_01On paper, better. Google evaluates it on a benchmark called Tab Arena across 38 classification and 13 regression datasets and converts head-to-head wins into ELO ratings. There, Tab FM comes out ahead. But, and this is important, Google reports two versions. Plain Tab FM does a single forward pass, no tuning. Tab FM some full adds extra engineered features, combines 32 separate runs, and adds a calibration step. That second one is doing a lot more work than the single pass zero shot pitch implies.

SPEAKER_02That's a meaningful asterisk.

SPEAKER_01It is. So I didn't want to just take the benchmark's word for it. I ran all three models myself, on the same dataset, under the same conditions.

SPEAKER_02Now we're talking. What did you use?

SPEAKER_01The bank marketing dataset from UCI, 45,000 records from a Portuguese bank's phone campaigns, 15 features, and a target that's positive only about 12% of the time. I dropped one feature that leaks the outcome since it records how long the call lasted, and sampled it down to a thousand training rows and a thousand test rows to keep CPU inference manageable.

SPEAKER_02And the classical models needed the usual pre-processing pipeline?

SPEAKER_01No. Imputation, scaling, one-hot encoding, the whole column transformer setup, nine of the fifteen features are categorical. The foundation models just take the raw date and few, no pipeline at all.

SPEAKER_02That part I already believe. What about accuracy?

SPEAKER_01With only 12% positive cases, accuracy is close to meaningless. You can hit 88% just by predicting no every time. So I looked at RockAUC instead. TabFM came out on top at 0.757, TabEFM just behind at 0.744, TabATL at 0.731, both comfortably ahead of untuned logistic regression and gradient boosting.

SPEAKER_02So TabFM wins. Case closed?

SPEAKER_01Not so fast. Look at the runtime next to those numbers. Tab ETL finished the whole Fit and Predict cycle in under 15 seconds. Tab EFN took about 56. Tab FM took 490, roughly 33 times slower than Tab ETL, for a 0.026 gain in Rock AUC.

SPEAKER_02That's a steep price for a small edge.

SPEAKER_01And it gets steeper. TabFM has this extra parameter, Nestoruns, that reruns inference across different row and column orderings and averages the result, meant to smooth out its residual sensitivity to ordering. Going from one estimator to two roughly doubled the runtime to over a thousand seconds and moved ROCAUC from 0.757 to 0.759.

SPEAKER_02Two-thousands for double the compute.

SPEAKER_01Diminishing returns basically confirmed in real-time.

SPEAKER_02Okay, but this was one data set with a thousand rows. Does the picture hold as you scale up?

SPEAKER_01I tested that too, from 100 training rows up to 30,000. With Tab EFN and Tab ETL, Tab FM was too expensive on CPU to repeat across 7 dataset sizes, so it sits this part out. With just 100 labeled rows, Tab EFN already hits 0.673 ROC AOC, well ahead of logistic regression at 0.635 and gradient boosting at 0.585. That gap holds all the way through 10,000 rows.

SPEAKER_02And after that...

SPEAKER_01The classical models catch up. By 30,000 rows, gradient boosting reaches 0.793, slightly ahead of TabiFN's 0.788, and roughly level with TabiTL. The pre-trained advantage is real, but it's concentrated exactly where you'd expect when labeled data is scarce.

SPEAKER_02So the honest takeaway isn't foundation models beat everything. It's foundation models beat everything when you don't have much data yet.

SPEAKER_01That's exactly it. And it connects back to the documentation gap I flagged earlier. TabFM looked strongest in my one dataset test, but it's also the model Google has explained the least about, no published prior, no detailed training recipe. And it's not just me being cautious about that. There's an independent 19 dataset comparison that found TabFM's lead over TabEFM3 and TabATLv2 wasn't statistically significant.

SPEAKER_02So the model that's hardest to inspect is also the one whose advantage is least certain.

SPEAKER_01That's the pattern, yes.

SPEAKER_02Alright. Say I buy all of this and Monday morning I want to try it on my own data. Where do I actually start?

SPEAKER_01Pick a dataset small enough that CPU inference is tolerable. Install Tab ETL or Tab ETL. They both expose the familiar scikit-learn interface, fit and predict, and hand them your raw date and few as is. No preprocessing. Start there before you touch Tab FM, given the runtime. Everything, the code, the notebook, the exact numbers, is in the article and the linked GitHub repo, and it's all on Substack at AIPractitioner.substack.com.

SPEAKER_02That's a manageable first step.

SPEAKER_01The thing I keep sitting with is that these models didn't make tabular learning faster. They moved where the expense lives from retraining on every new dataset to one enormous pre-training run you never have to repeat. That's a different kind of tool, and it deserves a different kind of judgment than just is it more accurate.

Open the transcript file

Hosts and Guests

Nobody is credited on this episode yet.

Credit the people on this episode

Be the first to rate this episode

More episodes

All episodes
  1. PODCAST — Beyond Static Prompts: Building Self-Improving LLM Agents with ACE

    Nov 19, 202611 minAudio

    Prefer reading instead? The full article is available here. The podcast is also available on Spotify and Apple Podcasts. Subscribe to keep up with the latest drops. What if AI agents could learn from every interaction...

    Credit the people on this episode

  2. PODCAST — Inside GEPA: Evolving LLM Agent Prompts with Reflective Feedback

    Nov 11, 202611 minAudio

    Prefer reading instead? The full article is available here. The podcast is also available on Spotify and Apple Podcasts. Subscribe to keep up with the latest drops. What if AI agents could continuously improve their...

    Credit the people on this episode

  3. PODCAST — TextGrad in Practice: Optimizing LLM Agent Prompts with Textual Gradients

    Nov 3, 202615 minAudio

    Prefer reading instead? The full article is available here. The podcast is also available on Spotify and Apple Podcasts. Subscribe to keep up with the latest drops. What if AI agents could improve their own prompts...

    Credit the people on this episode

  4. PODCAST — Continuously Optimizing AI Agent Prompts in Production

    Oct 28, 202615 minAudio

    Prefer reading instead? The full article is available here. The podcast is also available on Spotify and Apple Podcasts. Subscribe to keep up with the latest drops. What if the key to better AI agents isn’t writing...

    Credit the people on this episode

  5. PODCAST — From Prompt Engineering to Harness Engineering: Where the Real Leverage Moved

    Oct 16, 202613 minAudio

    Prefer reading instead? The full article is available here. The podcast is also available on Spotify and Apple Podcasts. Subscribe to keep up with the latest drops. What if improving an AI agent’s performance had less...

    Credit the people on this episode