Glossary termTechnique

Transfer Learning

Technique of reusing a model trained on one task or dataset as the starting point for a different but related task, reducing data and compute needs.

Transfer learning rests on the observation that knowledge learned for one problem often helps with another. A network trained to recognize thousands of everyday objects has learned general visual features, such as edges, textures and shapes, that are also useful for spotting defects on a production line or classifying skin lesions. Instead of training from scratch, a practitioner starts from the pretrained model and adapts it, either by training a small additional output layer on top of frozen features or by Fine-Tuning some or all of the original weights.

In computer vision, models pretrained on ImageNet became standard starting points during the 2010s. Natural language processing followed in 2018, when methods such as ULMFiT and Google's BERT showed that a language model pretrained on large amounts of unlabeled text could be adapted to many downstream tasks with modest labeled data. This pretrain-then-adapt pattern became the organizing principle of foundation models, which are built specifically to be reused across many applications.

Transfer learning lowers the barrier to building useful AI. Teams with limited data or computing budgets can obtain strong results by adapting openly shared models, many distributed through hubs such as Hugging Face. The approach has limits: if the source and target domains differ too much, transferred features may help little or even hurt, a problem known as negative transfer. Pretrained models also carry their biases and blind spots into every downstream application, so problems in a widely reused base model can spread far.

Key points

  • Transfer learning starts from a pretrained model instead of training a model from scratch.
  • ImageNet-pretrained vision models and BERT-style language models made the approach standard in the 2010s.
  • Adapting pretrained models lets small teams build strong systems with limited labeled data.
  • Biases in a widely reused base model can carry over into many downstream applications.

Related entries

Glossary term

Further training of a pretrained model on a smaller, task-specific dataset so that it adapts its behavior to a particular domain, style or task.

Glossary term

Large AI model trained on broad data at scale, usually with self-supervision, that can be adapted to a wide range of downstream tasks.

Technology

Large database of labeled photographs organized by WordNet categories, whose recognition challenge helped launch the deep learning boom.

Organization

Company that runs a widely used platform for sharing machine learning models, datasets and demos and maintains popular open-source AI libraries.

Glossary term

Machine learning approach in which a model learns to map inputs to outputs from examples that have been labeled with the correct answers.

Glossary term

Neural network trained on very large amounts of text to predict the next token, able to generate language and perform many tasks from prompts.

Glossary term

Embedding

AIProgramming

A learned numerical vector that represents an item such as a word, document, image or user so that similar items have nearby vectors.