The learning rate is a small number that controls how much the model changes its knowledge after seeing new data. It helps the model learn step by step without jumping too far.
Click to reveal answer
beginner
Why do we use a smaller learning rate when fine-tuning a pre-trained model?
We use a smaller learning rate to make small, careful updates. This helps keep the useful knowledge the model already learned and adjusts it gently to the new task.
Click to reveal answer
intermediate
How does a high learning rate affect fine-tuning?
A high learning rate can make the model forget what it learned before and cause unstable training. It might jump over good solutions and perform worse.
Click to reveal answer
beginner
In TensorFlow, how do you set a learning rate for fine-tuning?
You set the learning rate when you create the optimizer, for example: optimizer = tf.keras.optimizers.Adam(learning_rate=0.0001) This small rate helps fine-tune the model carefully.
Click to reveal answer
intermediate
What is a common strategy to adjust learning rate during fine-tuning?
A common strategy is to start with a small learning rate and reduce it further if the model stops improving. This is called learning rate scheduling or decay.
Click to reveal answer
Why is a smaller learning rate preferred for fine-tuning?
ATo speed up training drastically
BTo make small, careful updates preserving learned features
CTo ignore previous knowledge completely
DTo increase randomness in training
✗ Incorrect
A smaller learning rate helps the model adjust gently without losing what it already learned.
What happens if the learning rate is too high during fine-tuning?
AModel may forget previous knowledge and training becomes unstable
BModel ignores new data
CModel stops training immediately
DModel learns faster and better
✗ Incorrect
A high learning rate can cause the model to forget and jump over good solutions.
In TensorFlow, where do you specify the learning rate?
AWhen creating the optimizer
BIn the model architecture
CIn the dataset
DIn the loss function
✗ Incorrect
The learning rate is set when you create the optimizer, like Adam or SGD.
What is learning rate scheduling?
AIgnoring learning rate after first epoch
BFixing learning rate to a constant value
CChanging learning rate during training to improve results
DRandomly changing learning rate every batch
✗ Incorrect
Learning rate scheduling means adjusting the learning rate over time to help training.
Which learning rate is typical for fine-tuning a pre-trained model?
A1.0
B0.01
C0.1
D0.0001
✗ Incorrect
A small learning rate like 0.0001 is common to fine-tune carefully.
Explain why fine-tuning a model requires a different learning rate than training from scratch.
Think about how the model already knows something useful.
You got /4 concepts.
Describe how you would set up learning rate scheduling in TensorFlow for fine-tuning.
Consider how to change learning rate during training.
You got /4 concepts.
Practice
(1/5)
1. Why is it recommended to use a smaller learning rate when fine-tuning a pre-trained TensorFlow model?
easy
A. To increase the batch size automatically
B. To speed up training drastically
C. To make gentle updates and avoid destroying learned features
D. To skip the need for validation data
Solution
Step 1: Understand fine-tuning purpose
Fine-tuning adjusts a pre-trained model slightly to new data without losing learned knowledge.
Step 2: Reason about learning rate effect
A smaller learning rate makes small changes, preserving useful features learned before.
Final Answer:
To make gentle updates and avoid destroying learned features -> Option C
Quick Check:
Small learning rate = gentle fine-tuning [OK]
Hint: Small learning rate prevents big changes during fine-tuning [OK]
Common Mistakes:
Using a large learning rate that overwrites learned features
Ignoring the need to freeze layers before fine-tuning
Assuming learning rate affects batch size
2. Which of the following TensorFlow code snippets correctly sets a smaller learning rate for fine-tuning?
easy
A. optimizer = tf.keras.optimizers.Adam(learning_rate=0.0001)
B. optimizer = tf.keras.optimizers.Adam(learning_rate=0.001)
C. optimizer = tf.keras.optimizers.Adam(learning_rate=0.01)
D. optimizer = tf.keras.optimizers.Adam(learning_rate=0.1)
B. Loss function is wrong; use 'sparse_categorical_crossentropy'
C. Base model should be frozen; set trainable = False
D. Epochs are too few; increase to 50
Solution
Step 1: Identify learning rate problem
Learning rate 0.1 is very high for fine-tuning, causing unstable or no learning.
Step 2: Suggest fix
Lowering learning rate to 0.0001 allows gentle updates and loss decrease.
Final Answer:
Learning rate is too high; reduce it to 0.0001 -> Option A
Quick Check:
High learning rate blocks loss decrease [OK]
Hint: Lower learning rate if loss doesn't improve during fine-tuning [OK]
Common Mistakes:
Changing loss function unnecessarily
Freezing base model after unfreezing
Increasing epochs without fixing learning rate
5. You want to fine-tune a pre-trained TensorFlow model on a small dataset. Which learning rate strategy is best to balance learning speed and stability?
hard
A. Start with a small learning rate (e.g., 0.0001), then gradually increase it
B. Use a large learning rate (e.g., 0.1) from the start for faster training
C. Train all layers from scratch with a medium learning rate (e.g., 0.01)
D. Freeze the base model, train the new layers with a higher learning rate, then unfreeze and fine-tune with a smaller learning rate
Solution
Step 1: Understand fine-tuning best practice
Freeze base model first to train new layers safely with higher learning rate.
Step 2: Fine-tune with smaller learning rate after unfreezing
Unfreeze base model and use smaller learning rate to gently adjust pre-trained weights.
Final Answer:
Freeze the base model, train the new layers with a higher learning rate, then unfreeze and fine-tune with a smaller learning rate -> Option D
Quick Check:
Freeze first, then fine-tune with small learning rate [OK]
Hint: Freeze base, train new layers high LR, then fine-tune low LR [OK]
Common Mistakes:
Using large learning rate from start causing unstable training
Training all layers from scratch wasting pre-trained knowledge
Not freezing base model before fine-tuning
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.