liveBook · Manning

Transfer learning

As explained in Outlier Detection in Python

Transfer learning is a technique that adapts knowledge learned by a model on one task or dataset to another task or dataset.

Transfer learning adapts knowledge learned by a neural network for one task to another task, reducing the effort required to train the second model. section 16.5.3

A foundation model learns reusable features, often through a self-supervised pretext task. Fine-tuning then reuses its embeddings, retraining the final layer or adding another layer for the new task. section 16.5.3

Transfer learning can provide practical advantages:

  • Reuse features that are relevant to both the original and target problems. section 16.5.3
  • Reduce training time and cost by starting from embeddings close to the target representation. section 16.5.3
  • Create large self-supervised training sets using pretext targets such as predicting image rotations. section 16.5.3

From cats and dogs to dog types

A network trained to distinguish cats from dogs can provide embeddings for a second network that distinguishes different types of dogs. This transfer is more feasible for images than for tabular data, where tables are generally much less alike. section 16.5.3

How Outlier Detection in Python covers it

How deep it goes
Explains foundation models, embeddings, fine-tuning, self-supervision, and efficiency benefits, but stops short of implementation code.
Examples
Uses cat-versus-dog classification, dog-type classification, image rotations, and comparisons between image and tabular data.
What it assumes
Assumes familiarity with neural networks and distinguishes image transfer from the more difficult case of tabular data.
What you can do after
Apply it via fine-tuning by reusing embeddings and retraining a final or added layer for a related task.
How it connects
Connects neural networks with foundation models, embeddings, fine-tuning, self-supervised learning, and outlier detection.

Also explained in

Compare how 11 books explain transfer learning →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Outlier Detection in Python. The section links point to the parts of the book it draws on.