You have 800 labelled medical images and a model pretrained on millions of natural images. What is the usual approach?
- Exam domain
- Performance Optimization10% of the exam
- Difficulty
- Medium
- In this mock
- 5 questions on this domainPractise this domain
Why the exam asks this
Performance Optimization (10% of the exam)
Objective in the exam guide: Develop content for multimodal-specific transfer learning.
Transfer learning appears in both the core and optimization domains.
Why C is the answer
Fine-tune the pretrained model, starting with its later layers
Transfer learning reuses general features from the pretrained model. Fine-tuning the later layers, and then more if needed, adapts it to the new domain with little data.
Remember: Small data: fine-tune a pretrained model.
How it works
Transfer learning adapts a pretrained model to a new task by fine-tuning some or all of its layers.
In detail
- Small data favours transfer learning.
- Freeze early layers, tune later ones first.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Discard the pretrained model and collect a million images firstWrong
Collecting a million images is not needed.
B. Use the pretrained model as-is with no trainingWrong
Without tuning it will not know the new classes.
C. Fine-tune the pretrained model, starting with its later layersRight
Small data: fine-tune a pretrained model.
D. Train a new model from random weights on the 800 imagesWrongMost tempting
800 images are too few to train from scratch.
Why it tempts: Training your own model feels more tailored.
Use case
An illustrative scenario, not a real incident.
Illustrative: fine-tuning reaches 90% accuracy where training from scratch reaches 65%.
See it in different ways
flowchart LR S0["Load pretrained model"] --> S1["Replace the head"] --> S2["Freeze early layers"] --> S3["Train the head"] --> S4["Unfreeze and fine-tune"]
How to read this chart
- Read it in order: Load pretrained model, then Replace the head, then Freeze early layers, then Train the head, then Unfreeze and fine-tune.
flowchart TD
Q{"How much data?"}
Q -->|"Very little"| A0["Train the head only"]
Q -->|"Moderate"| A1["Fine-tune later layers"]
Q -->|"Lots"| A2["Fine-tune everything"]How to read this chart
- At "How much data?": if "Very little", go to "Train the head only"; if "Moderate", go to "Fine-tune later layers"; if "Lots", go to "Fine-tune everything".