liveBook · Manning

Transfer learning

As explained in Generative AI in Action

Transfer learning adapts knowledge learned from one task or dataset to improve performance on another task.

Transfer learning reuses a model trained for one task as a starting point for a related task. Rather than training from scratch, it applies previously learned knowledge to improve performance on new data or a new task. Foundation models support this approach by learning broad representations that can be adapted to different applications. section 2.1 section 9.1.1

Adapting across languages

A model trained on English text might be adapted to work with French text, using knowledge learned in one language to help with another. section 9.1.1

Transfer learning describes the reuse of learned knowledge; fine-tuning is one way to adapt a pretrained model by continuing training on a smaller, specialized dataset. Full fine-tuning updates all model parameters. Low-rank adaptation (LoRA) instead trains a smaller set of added components, reducing the number of parameters that need adjustment. section 9.1.1

A practical fine-tuning workflow includes these stages:

  • Choose a suitable foundation model and adaptation method, considering the task, dataset, input and output sizes, and available infrastructure. section 9.2.1
  • Prepare task-specific data: clean and normalize it, make it compatible with the model, and cover scenarios expected in production. section 9.2.1
  • Train on the prepared data, using validation and hyperparameter tuning to refine performance. section 9.2.1
  • Evaluate on a test dataset before deployment to check performance on the task and generalization to new data. section 9.2.1

How Generative AI in Action covers it

How deep it goes
Defines knowledge reuse, contrasts fine-tuning methods, and outlines a fine-tuning workflow without detailed mathematical derivation.
Examples
Illustrates transfer with a model trained on English text and adapted to French text.
What you can do after
Evaluate/understand how to select, adapt, and test a pretrained model for a related task.
How it connects
Connects transfer learning to foundation models, self-supervised learning, fine-tuning, and low-rank adaptation.

Also explained in

Compare how 13 books explain transfer learning →

Related concepts

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