Reading notes: Tabular Foundation Models (Molnar)

Running notes on Christoph Molnar's "Tabular Foundation Models" — chapter takeaways, questions, and how tabular FMs fit into this notebook's map of SOTA ML-engineering technology.

Tracking notes as I read Tabular Foundation Models by Christoph Molnar. This book is not about SLMs or language models — it is about foundation models for tabular data (the pre-trained, in-context-learning line of work around TabPFN and its successors).

It still belongs in this notebook because the broader goal here is to map the landscape of SOTA AI technology with a machine-learning-engineering focus. Tabular data is where most enterprise ML actually lives, and "can the foundation-model paradigm work outside of text/images?" is a first-order question for that map. It's a useful counterpoint to the SLM thread: same pretraining-then-adapt intuition, very different modality and constraints.

Why this book, for this project

The core idea (my one-line version)

A prior-data fitted network (PFN) moves the ML training idea up one level of abstraction. In traditional ML the atomic unit is a row — you train on one dataset, each row is a data point, and the model learns that dataset. A PFN's atomic unit is an entire dataset: you pre-train across millions of datasets, and each whole dataset (train features + targets + test features + targets) plays the role that a single row plays in ordinary training. The model doesn't learn a task; it learns how to solve tabular tasks in general, then solves a new one at inference by in-context learning — no gradient step, no hyperparameter tuning per dataset.

This is the meta-level shift worth remembering: dataset → training example.

Open questions to answer while reading

Chapter notes

Book structure: Part I — Understanding (1 First look · 2 Prior-data fitted networks · 3 In-context learning · 4 Pretraining); Part II — Applying (5 Classification · 6 Regression · 7 Quantile regression).

Ch. 1 — First look

Ch. 2 — Prior-data fitted networks

(see "The core idea" above — this is the chapter that gave me the level-up framing.)

Three ingredients of a PFN:

  1. Flexible architecture — a transformer with row- and column-attention that ingests a whole dataset and does in-context learning without weight updates.
  2. Task prior — a generative procedure (structural causal models) that produces millions of synthetic tasks. This prior is fundamentally Bayesian.
  3. Pretraining — gradient descent trains the model to predict the predictive distribution of test targets across the task distribution (NLL loss).

Bayesian reading: the PFN approximates the posterior predictive p(y | x_new, X_train, y_train) by integrating task-conditional predictions weighted by data likelihood and the task prior — i.e. averaging over plausible tasks consistent with the training data it's shown in-context.

Why tabular needed this: tables are messy in ways images/text aren't (varying column counts, naming, dtypes, arbitrary row/column order), which made cross-dataset generalization hard until this framing.

Ch. 3 — In-context learning (prediction)

Ch. 4 — Pretraining

Ch. 5 — Classification

Ch. 6 — Regression

Ch. 7 — Quantile regression

(to read)

Reactions / open threads