Modern Deep Learning Foundations
- Labs
- 6
Fine-tuning is a choice about which parameters are allowed to change
Frozen stages preserve pretrained representations and require no gradient update. Unfreezing later stages increases adaptation capacity, memory use, and the risk of overwriting useful source knowledge.
The best strategy depends on target-data volume and domain similarity. Treat the displayed accuracy and forgetting values as comparative estimates, not measured training results.
Lesson 19 - Transfer Learning and Fine-Tuning
Printed pages 120-125; PDF pages 122-127.
- Three Fine-Tuning Strategies printed pp. 121-123 / PDF pp. 123-125 feature extraction, partial, and full fine-tuning paragraphs
- Mathematical Considerations printed pp. 123-124 / PDF pp. 125-126 parameter-update objective; Equation 19.1
- When Not to Use / Best Practices printed pp. 124-125 / PDF pp. 126-127 domain-shift and validation guidance
Evidence and provenance
Stage depth and parameter counts follow the selected pretrained backbone.
Moving the freeze boundary changes which stages receive gradients.
These values compare strategies; they are not results from a live training run.
The simulator supports planning, while final selection requires measured validation and training traces.
Run, inspect, and compare
Follow the three guided moves above. Change one variable at a time so every visual change has a clear cause.
Compare runs instead of trusting one result
Explain what happened, then transfer it
Use trainable parameters, freeze boundary, learning rate, adaptation estimate, and forgetting risk to justify the strategy.
Use at least one value or visible change from the experiment.Propose an empirical validation plan that could confirm or reject the simulator recommendation.
Name the new context and the design choice you would make.- Defines source and target domains
- Uses data volume and domain similarity
- Specifies frozen/trainable stages and learning rate
- Defines validation, cost, and forgetting measurements
By the end of this lesson, you will be able to:
- Identify frozen and trainable blocks in a pretrained neural-network architecture.
- Compare feature extraction, partial fine-tuning, and full fine-tuning strategies.
- Select an adaptation strategy that balances target accuracy, data volume, and forgetting risk.
Covers pretrained models and adaptation strategies. Explains feature extraction, partial, and full fine-tuning. Highlights catastrophic forgetting and best practices.
Leave with inspectable evidence, not a completion click
Your artifact combines the prerequisite check, prediction, experiment configuration, displayed evidence, explanation, transfer rubric, and confidence change.
Retrieve the concept after time has passed
Complete the artifact to schedule a 24-hour retrieval prompt and a seven-day transfer revisit.
Help evaluate whether the laboratory teaches the concept
No name, email address, free text, or IP address is retained in the learning record.
Transfer Learning and Fine-Tuning
Use the experiment to compare frozen features, partial fine-tuning, and full fine-tuning while tracking trainable parameters, adaptation, and forgetting risk.
What to change
Change the pretrained backbone, target-sample count, source–target similarity, and fine-tuning boundary separately.
What to inspect
Track which layers receive gradients, the number of trainable parameters, adaptation capacity, cost, and forgetting risk.
What to conclude
Fine-tune only as much of the network as the target evidence supports; more trainable layers are not automatically better.
TRANSFER LEARNING FAQ
What is transfer learning?
Transfer learning reuses representations learned on a source task to improve learning on a related target task.
When should the backbone stay frozen?
Freezing is useful with limited target data, similar domains, or strict compute and stability constraints.
When is partial fine-tuning appropriate?
It is often effective when the target differs moderately and enough data exists to adapt higher-level features.
When should the full model be fine-tuned?
Full fine-tuning may help with a large target dataset or substantial domain shift, but it increases cost and forgetting risk.
What is catastrophic forgetting?
It is the loss of useful pretrained behavior when target-task updates overwrite previously learned representations.
How should learning rates be chosen?
Use smaller rates for pretrained layers and potentially larger rates for newly initialized task-specific layers.
Does a larger target dataset always justify full fine-tuning?
No. Domain similarity, label quality, compute, robustness, and validation evidence still determine the best strategy.
How should transfer learning be evaluated?
Compare against training from scratch and frozen baselines using held-out performance, calibration, robustness, and deployment cost.