Skip to content
StackDecode
AI & ML Atlas
Deep LearningtechniqueAnimated walkthrough

Transfer Learning

Reuses a model trained on one task as the starting point for another.

The idea

Early layers of a network trained on a big dataset learn general features such as edges and textures or word meaning. You keep those, replace the final layers with new ones for your task, and train on your small dataset. This needs far less data and time than training from scratch.

Watch it run

The pipeline lights up one step at a time. Use the controls to pause or step through it.

  1. 1Take a model pre-trained on a large dataset.
  2. 2Remove its task-specific output layer.
  3. 3Add a new head for your task.
  4. 4Train the new head (optionally unfreeze more layers later).
1/4

Step by step

  1. 1Take a model pre-trained on a large dataset.
  2. 2Remove its task-specific output layer.
  3. 3Add a new head for your task.
  4. 4Train the new head (optionally unfreeze more layers later).

Where it is used

Medical imaging, small-company NLP, anywhere labelled data is scarce.

Watch out for

It works best when the new task resembles the old; a big mismatch can hurt.

Related