Training and fine-tuning: AIF-C01 study notes and practice questions
What to know about Training and fine-tuning for the AIF-C01 exam, from the Applications of Foundation Models domain (28% of the exam guide), then 4 free questions to test it. Part of the AIF-C01 study guide.
A research lab is planning the lifecycle of a new foundation model, from the first training run to the feedback it collects after release.
Put these lifecycle stages in order, first stage first.
Put these 5 steps in order.
AA. Fine-tune the model on smaller, task-specific datasets.
BB. Collect feedback from real use to guide the next improvements.
CC. Pre-train the model on a very large, broad dataset.
DD. Deploy the model so that applications can call it.
EE. Evaluate the model against benchmarks and the lab's requirements.
Show the answer and explanation
Correct order: C, A, E, D, B
C. Pre-train the model on a very large, broad dataset. First: the lifecycle starts with a broad pre-training run on a very large dataset, which gives the model general language or visual knowledge.
A. Fine-tune the model on smaller, task-specific datasets. Second: fine-tuning adapts the broadly trained model to specific tasks, which happens after the large pre-training run.
E. Evaluate the model against benchmarks and the lab's requirements. Third: before release, the model is measured against benchmarks and the lab's own requirements to confirm it is fit for use.
D. Deploy the model so that applications can call it. Fourth: once the model has been tuned and checked, it is deployed so applications can send it requests.
B. Collect feedback from real use to guide the next improvements. Last: feedback from users shows where the deployed model falls short, and it guides the next round of work.
Explanation
A foundation model begins with broad pre-training, is then adapted to tasks through fine-tuning, is evaluated against requirements, and is deployed. Feedback from real use closes the loop and feeds the next cycle. This question tests the order of the foundation model lifecycle.
A media group is comparing ways to adapt foundation models for five projects.
Match each project's description to the technique it describes. Each option is used at most once, and one option is not needed.
Match each item to one answer. An answer can be used more than once, and some may not be used.
Items
Keep training an existing model on a large, unlabeled archive of the group's film scripts so it absorbs their vocabulary and background
Train an existing model on labeled pairs of creative briefs and approved scripts, so it learns to draft scripts from briefs
Train a smaller, cheaper model on responses produced by a larger model for one use case
Train a reward model from human rankings of responses, then tune the model to score well against it
Put a few worked examples in the prompt, with no change to the model's weights
Answers
AA. Continued pre-training on a large unlabeled corpus
BB. Distillation from a larger teacher model
CC. In-context learning with examples placed in the prompt
DD. Pre-training a brand-new model from scratch
EE. RLHF, using human rankings to train a reward model
FF. Supervised fine-tuning on labeled prompt-response pairs
Show the answer and explanation
Correct matches
Keep training an existing model on a large, unlabeled archive of the group's film scripts so it absorbs their vocabulary and background: A. Continued pre-training on a large unlabeled corpus
Train an existing model on labeled pairs of creative briefs and approved scripts, so it learns to draft scripts from briefs: F. Supervised fine-tuning on labeled prompt-response pairs
Train a smaller, cheaper model on responses produced by a larger model for one use case: B. Distillation from a larger teacher model
Train a reward model from human rankings of responses, then tune the model to score well against it: E. RLHF, using human rankings to train a reward model
Put a few worked examples in the prompt, with no change to the model's weights: C. In-context learning with examples placed in the prompt
About each answer
A. Continued pre-training keeps training an existing model on large amounts of unlabeled domain text. It matches the first description, where the goal is domain knowledge rather than one task.
B. Distillation trains a smaller student model on outputs from a larger teacher model, which lowers cost and latency. It matches the third description.
C. In-context learning gives the model examples inside the prompt, with no training and no change to its weights. It matches the fifth description.
D. Pre-training from scratch builds a new model from a very large dataset, far beyond these projects. No description starts from nothing, so this option is not needed.
E. RLHF trains a reward model from human rankings of responses, then tunes the model to score well with it. It matches the fourth description.
F. Supervised fine-tuning updates a model with labeled input and output pairs for one task. It matches the second description.
Explanation
Techniques differ in the data they need and the cost they carry. In-context learning needs no training, fine-tuning needs labeled examples, continued pre-training needs large unlabeled text, distillation uses a teacher model, and RLHF uses human preference data. Building a model from scratch is not needed to adapt one.
A retailer uses a very large foundation model to classify customer emails. Accuracy is excellent, but responses are slow and costly at peak volume.
The retailer has 10,000 past emails but no labeled answers, and it wants a model that keeps similar accuracy for this one task at lower cost.
Which approach fits BEST?
Choose one answer.
AA. Continued pre-training of the large model on all of the company's historical emails
BB. Raising the large model's temperature so it produces shorter answers
CC. Pre-training a new small model from scratch on public email datasets
DD. Model distillation, where the large model's answers train a smaller student
Show the answer and explanation
Answer: D
A. Wrong: Continued pre-training adds knowledge to the same large model, which stays just as slow and costly per request. It also needs large volumes of unlabeled text, not a task-specific target.
B. Wrong: Temperature changes randomness in the output, not the speed or cost of running the model. Shorter answers would not make a classification task cheaper.
C. Wrong: Training from scratch is the most expensive route and needs a very large dataset. A model trained on public email data would not match the retailer's accuracy on its own emails.
D. Right: Correct. Amazon Bedrock Model Distillation takes prompts, lets the teacher model generate responses, and fine-tunes a smaller, cheaper student on them. The retailer's emails can serve as prompts, so no labeled answers are needed. Learn more: Amazon Bedrock Model Distillation (opens in a new tab)
Explanation
Amazon Bedrock Model Distillation transfers knowledge from a large teacher model to a smaller student model that is faster and cheaper to run. It can start from prompts alone, because the teacher generates the responses. The resulting distilled model is available only to the customer.
A bank plans to fine-tune a model to draft replies to customer complaints in its house style. Its complaint archive contains customers' names, account numbers and addresses.
Which TWO data preparation practices will MOST improve the result? (Choose two.)
Choose two answers.
AA. Use accurate, reviewed example replies that match the complaints the bank handles
BB. Add large volumes of unrelated public text so the dataset is bigger
CC. Remove or mask customers' personal data from the examples before training
DD. Include unreviewed model drafts and label them as ideal replies
EE. Keep only complaints about one product to keep the dataset small
Show the answer and explanation
Answers: A, C
A. Right: Correct. Fine-tuning learns from the examples it receives, so accurate, reviewed replies teach the house style and the right answers. The examples should reflect the complaints the bank actually handles. Learn more: Customize your model (opens in a new tab)
B. Wrong: Unrelated text dilutes the signal the model needs. Relevance and quality matter more than raw volume, so a bigger dataset is not better here.
C. Right: Correct. Personal data in training examples can leak into generated replies and creates privacy and compliance risk. Removing or masking it before training keeps customers' data out of the model.
D. Wrong: Unchecked drafts may contain errors, and labeling them as ideal teaches the model to repeat those errors. Only reviewed examples should be used as targets.
E. Wrong: A narrow sample is not representative of the complaints the bank receives. The model would handle other products poorly.
Explanation
Good fine-tuning data is accurate, relevant to the task, representative of real use, and free of sensitive personal data. Reviewed replies teach the house style, and masking personal data before training reduces privacy and leakage risk.
Want more on Training and fine-tuning? The 5 full-length practice sets have 18 more Training and fine-tuning questions, 325 in all, none of them in the free exam. One payment of $14.99, no subscription. See the practice sets →