What are Transfer Learning and Foundation Models?

Transfer LearningFoundation ModelVision TransformerFine-tuningIndustrial AI

Transfer learning carries what a model learned from millions of images over to a different problem with far less data. In industrial projects labelled data is expensive, so this is almost always the starting point.

Why Does It Work?

During pre-training the model learns general features such as edges, textures, corners and shapes that are useful in almost every visual task. Recognising a weld defect or a surface scratch does not require learning these basics from scratch; only the part that maps them to your classes is trained.

Backbone and Head

An image model roughly has two parts:

  • Backbone: extracts general features (edges, textures, shapes) from the image. Comes from pre-training.
  • Head: turns those features into your task (a tree mask, a building polygon, "defective/OK"). Trained from scratch.

Example: How Many Parameters Are Trained?

An ImageNet-pretrained ResNet-50 has about 25.6 million parameters and produces a 2048-dimensional feature vector before its last layer. A new classification head for "defective / OK" has:

2048 × 2 + 2 = 4,098 trainable parameters

So with the backbone frozen, less than 0.02% of all parameters are trained. That is why a meaningful starting model can be obtained even from a few hundred labelled images.

How Much to Train?

  1. Freeze the backbone, train only the head: fast, works with little data.
  2. Unfreeze the last backbone blocks (partial fine-tuning): usually the best balance. Unfrozen layers get a lower learning rate.
  3. Train the whole model: needs a lot of data and carries a high overfitting risk.

Foundation Models

A foundation model is a large model trained on very broad, diverse data that can be adapted to many tasks. In vision, Vision Transformer (ViT) based models such as DINOv3 stand out; versions pre-trained on satellite imagery generalise noticeably better on aerial photos than general image models.

In a project where we draw buildings and boundaries from orthophotos, unfreezing the last 8 blocks of a satellite-pretrained ViT backbone raised building F1 on an unseen region from 0.54 to 0.67. The gain came not from the model's name but from a large, domain-appropriate backbone plus partial fine-tuning.

Common Mistakes

  • Mismatched preprocessing: if the normalisation and input size used in the backbone's pre-training are not kept, performance drops.
  • Ignoring domain shift: a backbone trained on natural photos may help only a little on thermal or X-ray images; choose pre-training close to your domain where possible.
  • A high learning rate on every layer: can wipe out pre-trained knowledge in the first few epochs.

Industrial Use

In visual inspection, defective examples are scarce; transfer learning is the standard starting point there. Vibration signals can be converted to spectrograms and classified with image backbones, but this approach must be validated on a separate test set.

Related: Model Training and Optimisation, Industrial AI, Industrial AI solutions

Related Terms