Lecture 15 — Foundation models#

⚠️ AI-synthesized; not fully reviewed by course staff. Treat as a study aid; released slides, notebooks, and lecture recordings are authoritative.

Tue Mar 10, 2026 · Part 2 — Modern AI & lab work

What this lecture is about#

The phrase “foundation model” gets thrown around constantly, and the more it gets thrown, the less it means. This lecture is an honest attempt to pin it down.

We start from the field’s standard definition (Bommasani et al., 2021): a model trained on broad data, typically with self-supervised objectives, designed to be adapted to many downstream tasks. That definition is broad on purpose. The lecture argues that this breadth is precisely what makes the term unhelpful in practice, and offers a sharper lens.

We walk through a spectrum:

  • Single-task models. One x → one y. The classical setup.

  • Multi-task models. One x → multiple y’s. Shared representation, multiple heads.

  • Few-shot / transfer-learning models. Pre-train on broad data, adapt to a new task with a small number of labeled examples.

  • Zero-shot / task-conditioned models. The model takes both an input x and a task description α, and produces an output without any task-specific labeled data. This is what an LLM does when you prompt it.

The lecture’s central reframe: a foundation model is a model that takes (x, α) as input. The “foundation” is that the model has internalized enough about the input domain and about task structure to handle previously-unseen α at inference time. That formal lens lets you ask sharp questions:

  • Foundation model over what input domain? (English text? Clinical notes? Pathology slides? Genomes?)

  • Foundation model over what task distribution? (Q&A? Classification? Information extraction? All of language tasks ever?)

  • Does the model improve labeled-data efficiency (you need fewer labels per task), total-data efficiency (you need less data overall), task-accessibility (you can describe a task in natural language instead of building a labeled dataset), or some combination?

We work through examples:

  • LLMs are foundation models over (English text, “language tasks”) with task-conditioning via natural-language prompting.

  • EHR autoregressive models can be cast as foundation models over (EHR event streams, “any future-event prediction task”) — promising but unproven.

  • Prior-fitted networks (TabPFN-style) are foundation models over (small tabular dataset, “predict y from x for this dataset”) — they take an entire labeled dataset as input.

Why it matters#

Two reasons the framing in this lecture is consequential:

It tells you when “foundation model” is the right tool and when it isn’t. If you have a fixed task with abundant labeled data and a stable distribution, a focused single-task model often beats a foundation model. If you have a task distribution where labeling is expensive or task definitions shift, foundation models win. Most published comparisons confound these settings — making the comparison framework explicit lets you read papers more sharply.

It tells you what to evaluate. Single-task evaluation gives you a single number on a single distribution. Foundation-model evaluation needs to be over a distribution of tasks, and you have to be honest about which task distribution you’re sampling from. “GPT-4 scores X on benchmark Y” is a statement about Y, not about all of language. We will return to this in L20 (clinical NLP) and L27 (biological foundation models) where the over-claiming is rampant.

Things you should walk away believing#

  • “Foundation model over what?” is the load-bearing question. Always ask domain and task distribution.

  • The (x, α) framing converts the marketing term into a technical question.

  • Foundation models are not automatically better than fixed single-task models on a single task with enough labels. Their distinctive value is adaptation, not raw performance.

  • Labeled-data efficiency, total-data efficiency, and task-accessibility are different axes. A “good” foundation model usually wins one or two, not all three.

  • Evaluation has to be over a task distribution. Don’t accept “we tested on N benchmarks” without asking which N benchmarks and how they were chosen.

How this connects to the rest of the course#

  • L14 (LLMs) is the prototypical foundation model. This lecture abstracts what makes it special.

  • L20 (clinical NLP) — when does a clinical LLM beat a clinical-domain-pretrained BERT? It depends on task distribution.

  • L22 (medical imaging) — domain-specific image foundation models (RadImageNet, MedSAM) are case studies.

  • L27 (modern biological AI) — protein language models, DNA foundation models. Each one has to answer “foundation over what (x, α)?” in a way that the lecture sets up.


Study guide#

Key terms, self-check questions, and additional resources for active recall.

Key Terms#

Term

Definition

Foundation Model

(Bommasani et al. 2021) A model trained on broad data, typically with self-supervised objectives, designed to be adapted to many downstream tasks. The term is broad; sharper questions follow.

Single-task model

One x → one y. Classical setup.

Multi-task model

One x → multiple y’s. Shared representation, multiple heads.

Transfer learning / Few-shot

Pre-train on broad data, adapt to a new task with a small number of labeled examples.

Zero-shot / Task-conditioned

The model takes both an input x and a task description α; outputs without task-specific labeled data. (LLMs prompted in natural language.)

Task conditioning (formal)

A foundation model is a model that takes (x, α) as input. The “foundation” is that the model has internalized enough of the input domain and of task structure to handle previously-unseen α.

Task distribution

The distribution over α the model is meant to handle. Honest evaluation must sample α from this distribution.

Labeled-data efficiency

Few labels per task needed for adaptation. FMs often win here.

Total-data efficiency

Less data overall (pre-train + adapt) than the single-task baseline. FMs often do not win here.

Prior-fitted networks

A foundation model whose α is “this entire labeled tabular dataset” (e.g., TabPFN).

The Spectrum#

Single-task → zero-shot

Single-task → multi-task → transfer/few-shot → zero-shot/task-conditioned. Each step adds adaptation flexibility at the cost of needing more / different training data and more careful evaluation. The right place on the spectrum depends on your task distribution.

The Load-Bearing Question#

“Foundation model over what?”

Always ask:

  • Foundation model over what input domain? (English text? Clinical notes? Pathology slides? Genomes?)

  • Foundation model over what task distribution? (Q&A? Classification? IE? All of language tasks?)

  • Does it improve labeled-data efficiency, total-data efficiency, task-accessibility, or some combination?

A “good” FM usually wins one or two of those axes, not all three.

Self-Check Questions#

  1. Distinguish single-task, multi-task, few-shot/transfer, and zero-shot/task-conditioned. Give a clinical example of each.

  2. Why is the (x, α) framing more useful than “broad pre-training + adaptable” as a definition?

  3. An LLM scores 0.85 on benchmark X. Why is that not a statement about all of language? What would a more honest evaluation look like?

  4. Give a setting where a focused single-task model with abundant labels would beat a foundation model — and a setting where it wouldn’t.

  5. EHR autoregressive models can be cast as foundation models over event streams. What is the (x, α) decomposition? What’s the task distribution?

Additional Resources#