AI Glossary

Transfer Learning

Transfer learning reuses knowledge learned from one task or domain to help with another. A pretrained model can supply fixed features or provide weights that are adapted to the target data.

· Updated · Chain of Thought

A factory could start with an image model pretrained on a broad collection of objects and replace its final classifier with a head for “defective” and “acceptable.” The model’s feature extractor supplies a useful starting representation for the factory’s labeled photographs.

In one approach, freeze the extractor and train only the new head. In another, also update some pretrained layers: this is fine-tuning. Both are transfer learning. Freezing means the extractor’s weights stay fixed during the head’s training; it does not mean the whole pipeline has no trainable parameters.

Reuse can reduce the training work and labeled data needed, but the benefit depends on how well the source representation fits the target. Compare held-out results and avoid assuming general object features capture every manufacturing defect. Transfer learning describes reuse across a task or domain boundary, not a guarantee of better accuracy.

Reuse features; choose what to trainBoth adaptation paths start from a pretrained image feature extractor and add a new defect classifier. In the fixed-feature path, the extractor is frozen and only the new head is trained. In the fine-tuning path, the head and selected pretrained layers are trained on target examples. Reuse features; choose what to trainTwo ways to adapt a pretrained image model to defect labels Start: pretrained feature extractor + new defect classifierFixed featuresFine-tuningFeature extractor: frozenNew classifier: trainData: labeled defect photosSelected pretrained layers: trainNew classifier: trainData: labeled defect photosEvaluate both on held-out defect photos; reuse does not guarantee better results.Both paths transfer learned knowledge. Fine-tuning is one adaptation method.
The two transfer paths follow PyTorch’s tutorial. “Frozen” means weights stay fixed during adaptation; it does not mean the new classifier is untrained. Download the image

Sources

Go deeper