Computer Vision · Advanced level

Advanced level · Module 2: Transfer Learning and Model Optimization · Lesson 1 of 3

Fine-Tuning Strategies for Small Datasets

Learners improve transfer learning with gradual unfreezing, discriminative learning rates, strong regularisation and careful validation on small local datasets.

In this lesson you will

  • Apply gradual unfreezing and discriminative learning rates
  • Validate reliably with little data

Key concepts

gradual unfreezingparameter groupslabel smoothingcross-validation for small dataearly stopping

The lesson

With a few hundred images, unfreezing the whole network at once can destroy useful pretrained features. Gradual unfreezing trains the head first, then progressively later blocks.

Parameter groups in the optimiser give different learning rates to different parts of the model, smaller for early layers. Label smoothing (CrossEntropyLoss(label_smoothing=0.1)) and augmentation reduce overconfidence and overfitting.

With small data, one validation split is unreliable; use k-fold cross-validation or repeated splits, and keep a final test set untouched.

Step by step

  1. Set up parameter groups with three learning rates.
  2. Train with gradual unfreezing over three stages.
  3. Compare with a single-stage fine-tune using 5-fold cross-validation.
  4. Report mean and spread of accuracy.

Practice activity

Compare fine-tuning strategies on a small local dataset with cross-validation.

Expected result: A comparison with mean and spread, and a recommended strategy.

Check your understanding

  1. Why unfreeze gradually?

    Show answer

    To avoid destroying pretrained features while the new head is still random.

  2. Why report the spread of cross-validation scores?

    Show answer

    With small data, results vary a lot between splits.

Further learning

Taught live by an instructor — online or in person. Free course lessons are for self-study and do not lead to a certificate — see registration options.