When adapting a pretrained image classifier to a new dataset, when should you freeze the backbone and train only a new head versus fine-tuning the whole network?

Deep learning, Transfer learning
Level L1 Beginner. Length Short. Nature Th Theoretical.

What's being asked

Whether you know the standard decision rule for transfer learning based on target dataset size and domain similarity.

Key idea

Early CNN layers learn generic edge and texture detectors, while late layers learn task-specific features. When the new dataset is small and visually similar to the pretraining data, freeze the backbone to avoid overfitting; when it is large or from a distant domain (such as medical scans after ImageNet), unfreeze and fine-tune with a smaller learning rate.

Steps

  1. Describe feature extraction (frozen backbone): replace the final classification head, freeze all pretrained convolutional weights and train only the new linear or MLP head. Use this when the target dataset is small and visually similar to the source domain.
  2. Describe partial or full fine-tuning: unfreeze upper blocks (or the entire network) and train end-to-end when you have ample target data, or when the target domain differs sharply from the source (so high-level features must adapt).
  3. Give two practical safeguards when fine-tuning: use a 10×–100× smaller learning rate on the backbone (often after warming up the random head first so large initial gradients do not wreck pretrained filters), and be careful with batch normalisation statistics if target mini-batches are small.

Common mistakes

How long your answer should be

4–5 sentences; 2 minutes.

Last checked on 4 December 2026.

Read this

Previous in Deep learning: What is the difference between valid padding and same padding in a stride-1 convolution?
Next in Deep learning: Why does an ordinary autoencoder need a bottleneck smaller than the input dimension, or an explicit regulariser?