Foundation Models: Tokens, Attention, And Generation · Lesson 1

How Foundation Models Learn And Adapt

A foundation-model proposal becomes testable when it identifies the trained checkpoint, adaptation, task, context and application conditions.

Study And Save Progress

Watch The Lesson

7 min 24 sec

Read the video transcript

A museum team has a notice: the sculpture room closes at 3 on Saturday, while the café stays open until 5. The team wants a short visitor summary and 2 opening-hours fields. 3 proposals advertise the same foundation-model family. Can the team treat those proposals as the same system, or choose

the one with the largest parameter count? Begin with what the broad model makes possible. A task-specific model might take a fixed table and predict whether a transaction is fraudulent. A broadly pretrained language model learns useful patterns across many sequences.

1 learned base can support summarizing the museum notice, extracting its times, translating a question, or drafting code. Each use still needs a clear task and an appropriate test. Foundation models can also work with images, audio, or several input types; this course first develops the language-model chain.

In this classroom example, keep the notice fixed. For summarization, the task is to preserve which closing time belongs to which place. For extraction, the task asks for separate sculpture-room and café fields. An output that assigns 5 o’clock to the sculpture room fails either

task even if its sentence is fluent or its fields are well formed. These are specified checks on illustrative outputs, rather than results from a model run. Reusing a learned base creates opportunities; the actual output determines whether each opportunity becomes useful. Pretraining establishes learned parameters through

an objective applied across training examples. A parameter is a numerical value that helps define the model’s transformations. A checkpoint saves a particular trained state. You will see the prediction objective and its update signal later. For now, the important boundary is that changing the saved trained state

can change behavior across future requests. Post-training can change that state toward instructions, preferences, or selected capabilities. The museum might compare a base checkpoint with an instruction-tuned version from the same family. The instruction-tuned version has undergone additional training intended to make requests such

as summarize this notice more useful. That is a change to the model under test. Simply placing a summary instruction and the notice into a request conditions that request; it does not by itself perform a lasting parameter update. A historical example makes the difference concrete.

In March 2022, Ouyang and colleagues described InstructGPT. They began with pretrained GPT-3, trained on human demonstrations, then used ranked outputs to train a reward model and further adapt behavior. Their raters preferred adapted outputs on the study’s prompt distribution.

This supports examining adaptation alongside model size; it does not establish performance on our museum task or every later system. Now consider a proposal that keeps the same checkpoint but supplies the museum’s current notice. The application formats the request, adds the task instruction and approved notice,

and sends that context to the model. If a visitor asks whether the sculpture room is open at 4, the supplied notice is relevant evidence. The application must preserve its scope and check the answer. If the notice is missing, a familiar closing-time pattern supplies

no observation about this museum. The application can obtain the notice or ask for the missing information before answering. Other application components change the service again. A timetable tool can supply a scheduled event time. A permission check can restrict a staff-only notice.

Stored conversation state can retain a visitor’s language preference under the application’s rules. The interface can expose a draft to a staff member before it reaches visitors. These components determine which information and actions are available around the model. A test of a bare checkpoint and a test of this

service answer different comparison questions. The team therefore needs 2 kinds of controlled comparison. To study a trained-version change, keep the task, notice, formatting, settings, scoring rule and access conditions as consistent as the experiment permits, and identify the 2 exact checkpoints.

To study the value of supplying the notice, hold the checkpoint fixed and change the defined context condition. If both the trained version and the evidence change together, an observed difference belongs to the combined configuration. The experiment cannot isolate which change produced it.

Generalization concerns performance beyond the exact examples used in development under a stated claim. After checking the sculpture-room notice, the team can reserve a new notice about archive and gallery hours, an exception such as a cancelled event, and a visitor question with missing information. A correct familiar example cannot

establish reliable performance on those cases. The expected decision and the evidence supporting it should be written before inspecting outputs. This gives the team a way to recognize a useful transfer and a specific failure. Here is a checkpoint. An assistant answers a new notice question

correctly after the application supplies that notice. The checkpoint file is unchanged. Has this observation established permanent learning in the model, and has it shown that this model is better than a competitor given no notice? Pause and decide. The observation can support successful use

of supplied context on that case. It has not established a parameter update. The competitor received a different evidence condition, so that result compares complete configurations. To compare the model versions, give them the same defined task and evidence and record the remaining conditions. Further held-out cases are needed

for a broader performance claim. For a separate practice task, a rail service compares 1 model given a current timetable with another using only the passenger’s question. List what would have to remain fixed to test model capability, and what you would change to test the timetable’s contribution.

Pause and make a brief plan before reading the worksheet key. Your plan should identify the exact trained versions, the same task and source packet, output rules, generation settings, access conditions and scoring. A context comparison keeps the model fixed while changing the timetable condition.

The rail task changes the domain, but the reasoning is the same: name the intervention before attributing the result. The museum can now describe a proposal in useful terms: a particular checkpoint and adaptation, for specified tasks, inside an application that supplies evidence, controls access and checks outputs.

Broad learning makes reuse possible. Evaluation establishes how well that reuse works under the conditions that matter. Next, we will follow the notice into the model and see why its sequence units depend on a tokenizer.

Main Point

A foundation-model proposal becomes testable when it identifies the trained checkpoint, adaptation, task, context and application conditions.

Key Points

1. Turn a proposal into a task

The museum notice says the sculpture room closes at 3 p.m. on Saturday and the café closes at 5 p.m. A summary must preserve that relationship. An extraction task needs separate fields with the correct place and time. Fluent wording and valid field types do not compensate for assigning the café’s closing time to the sculpture room. These are classroom specifications, with no observed model result.

A task-specific fraud model might consume a defined table and predict a category. A broadly pretrained language model can support summarization, extraction, translation and code tasks through shared learned representations. The broader foundation-model category also includes other modalities. Reuse opens possible tasks; each task still needs its own acceptance evidence.

2. Separate the 2 update boundaries

Pretraining learns numerical parameters from a training objective. A checkpoint records a particular trained state. Post-training further adjusts behavior toward instructions, preferences or other goals. A family name alone leaves those trained differences unspecified.

By contrast, an application can keep the checkpoint fixed and supply a new instruction and approved notice for the current request. That changes the information conditioning the output. It does not establish persistent parameter learning. A staff member who wants a permanent model update would need a separate defined training process and subsequent evaluation.

In their March 2022 InstructGPT study, Ouyang and colleagues reported preferred adapted outputs on their test prompts after demonstrations and feedback-based training. The case shows why adaptation deserves inspection alongside size. It supplies no result for this fictional museum or a universal reliability guarantee.

3. Follow the application boundary

A complete service formats messages, supplies evidence, handles stored state and tools, enforces permissions and validates outputs. A current notice may answer a 4 p.m. opening question. A timetable tool may supply another event time. A staff-only document needs an access decision. A draft may need human review. Record these conditions because a service can succeed or fail through them even when its checkpoint is unchanged.

4. Design the comparison before seeing an answer

Controlled questionKeep fixed where feasibleChange deliberately
Does trained version B perform better on this task?Task, evidence, format, settings, scoring and access conditionsExact checkpoint/adaptation
Does the notice help this checkpoint answer?Checkpoint, task, other settings and scoringDefined notice/context condition
Does the complete service meet the workflow need?Task and acceptance criteriaDocument each component that differs

If the checkpoint and evidence both change, the observed difference belongs to the combined configuration. It cannot isolate either factor. Record unavoidable differences rather than hiding them.

5. Test the transfer claim

Reserve new archive/gallery notices, a cancellation exception and a missing-information question. Specify the supported answer or required clarification before running a model. Performance on a familiar example supports a narrow observation; held-out cases test a broader generalization claim.

6. Closing

The useful description is a particular trained version doing specified work inside a defined application. You can now identify an intervention and avoid crediting a changed evidence packet to model capability. Lesson 2 follows the notice into tokenizer-dependent sequence units.

7. Learning Checks

Attempt each question before opening its explanation. The blank worksheet and separate key remain available for a longer response.

M14-L01-Q01

An assistant answers a new notice question correctly after the application supplies that notice. Its checkpoint file is unchanged. Has this observation established permanent learning, and has it shown that this model is better than a competitor given no notice?

Your attempt: ____________________

Show explanation after your attempt

The successful case can support correct use of supplied context under the recorded conditions. The unchanged checkpoint supplies no evidence of a parameter update. The competitor had less evidence, so the comparison concerns complete configurations. A model comparison should supply the same defined notice/task and control other relevant conditions, identify exact trained versions, and test more held-out cases before a broader claim.

M14-L01-P01

A rail service compares 1 model given a current timetable with another given only the passenger’s question. List the conditions needed to test model capability. Then design a separate comparison of the timetable’s contribution.

Your attempt: ____________________

Show explanation after your attempt

Record exact checkpoints/adaptation, the same passenger question and timetable, output format, generation settings, access conditions, scoring and repetitions. Change the checkpoint for the model comparison. Hold the checkpoint fixed while changing the defined timetable condition for the context comparison. Include a new route, a cancellation, and a missing date/platform case, with expected behavior written first. Unavoidable implementation differences must be recorded; they limit isolation of the model effect.

Sources

Learner Materials

Download Lesson 1 Learner Materials

Use the supplied fictional cases and templates for practice.

Practice

Write your answer, compare it with the model answer and decide what to revisit. These written checkpoints are self-assessed.

An assistant answers a new notice question correctly after the application supplies that notice. Its checkpoint file is unchanged. Has this observation established permanent learning, and has it shown that this model is better than a competitor given no notice?

Show The Model Answer

The successful case can support correct use of supplied context under the recorded conditions. The unchanged checkpoint supplies no evidence of a parameter update. The competitor had less evidence, so the comparison concerns complete configurations. A model comparison should supply the same defined notice/task and control other relevant conditions, identify exact trained versions, and test more held-out cases before a broader claim.

Compare your reasoning with the model answer. These written checks are self-assessed.

A rail service compares 1 model given a current timetable with another given only the passenger’s question. List the conditions needed to test model capability. Then design a separate comparison of the timetable’s contribution.

Show The Model Answer

Record exact checkpoints/adaptation, the same passenger question and timetable, output format, generation settings, access conditions, scoring and repetitions. Change the checkpoint for the model comparison. Hold the checkpoint fixed while changing the defined timetable condition for the context comparison. Include a new route, a cancellation, and a missing date/platform case, with expected behavior written first. Unavoidable implementation differences must be recorded; they limit isolation of the model effect.

Compare your reasoning with the model answer. These written checks are self-assessed.

Open Practice And Save Your Work