What is Transfer Learning?
Transfer learning takes a model already trained on a large general dataset and adapts it to a narrower task, so the new task needs far less labelled data and compute than training from scratch.
The plain definition
Training a large model from random initialisation requires enormous data and compute. Transfer learning sidesteps that. Someone else trains a model on a very large general corpus — hundreds of millions of images, or trillions of tokens of text — and that model learns broadly useful internal representations. You then start from those weights and adapt them to your specific problem.
The intuition is that low-level structure is shared. A vision model's early layers learn edges, textures, and gradients, which are the same whether the final task is identifying tumours or grading avocados. Only the later, more task-specific layers need to change. In language, the same logic applies to syntax, coreference, and factual association.
The four strategies, cheapest first
Feature extraction. Freeze the pretrained network entirely, use its output vectors as inputs to a small classifier such as logistic regression or a gradient-boosted tree. Fast, cheap, works with a few hundred examples, and a surprisingly strong baseline that teams skip too readily.
Full fine-tuning. Unfreeze all weights and continue training on your data at a low learning rate. Highest ceiling on accuracy, highest cost, and the highest risk of catastrophic forgetting, where the model loses general capability while over-adapting to your narrow set.
Parameter-efficient fine-tuning. Freeze the base weights and train a small number of new parameters — LoRA adapters are the dominant form. You get most of the benefit of full fine-tuning at a small fraction of the memory and storage cost, and you can host many task-specific adapters against one shared base model. For language models this is now the default choice.
In-context learning. Change nothing about the weights; put examples in the prompt. Zero training cost, instant iteration, but capped capability and a recurring inference cost that scales with prompt length. See prompt engineering and fine-tuning for where the line between these sits.
When transfer fails
Transfer learning is not free lunch, and its failure mode has a name: negative transfer, where starting from pretrained weights produces worse results than starting fresh. It happens when the pretraining domain is genuinely unlike the target domain. Natural-image models transfer poorly to certain scientific imaging modalities — seismic volumes, some medical scans, spectrograms — where the statistics of the signal share little with photographs.
The other trap is evaluation contamination. If your test set overlaps with the pretraining corpus, your measured performance is fiction. This is a live concern with large language models scraped from the public web: any benchmark, any published dataset, and quite possibly your own documentation may already be in the training data. When it matters, build a held-out evaluation set from data created after the model's cutoff, or from private data that was never published.
Why it changed the economics
Transfer learning is the reason applied machine learning became accessible to organisations that are not research labs. A decade ago a serious vision system meant a large labelled corpus and a GPU cluster. Now a well-chosen pretrained backbone plus a few thousand labelled examples reaches production quality on a single machine.
The practical consequence for project planning: your first question should not be 'what architecture should we train' but 'what has already been trained that is close to this, and what is the cheapest adaptation that clears our accuracy bar'. Working up from feature extraction is almost always faster than working down from full training.
- Reuse, then adapt — start from general pretrained representations instead of random weights
- Escalate cost deliberately — feature extraction, then LoRA, then full fine-tuning
- Domain distance matters — negative transfer is real when pretraining and target data differ fundamentally
- Watch for contamination — public benchmarks may already sit inside the pretraining corpus
More on Transfer Learning.
How much data do I need for transfer learning?
Far less than training from scratch, though the number depends on task difficulty and domain distance. Feature extraction on a close domain can work from a few hundred labelled examples per class. Fine-tuning typically wants low thousands. The reliable approach is to train on 10%, 25%, 50%, and 100% of what you have and plot the learning curve — if it is still climbing steeply at full data, more labelling will pay; if it has flattened, spend the money elsewhere.
What is catastrophic forgetting?
Catastrophic forgetting is when fine-tuning on a narrow dataset destroys general capability the model had before. A language model fine-tuned hard on support tickets may become fluent in your ticket format and noticeably worse at ordinary reasoning. Mitigations include lower learning rates, fewer epochs, mixing a fraction of general data into the fine-tuning set, and parameter-efficient methods such as LoRA that leave base weights untouched.
Is transfer learning the same as fine-tuning?
Fine-tuning is one technique within transfer learning. Transfer learning is the general idea of reusing pretrained knowledge; fine-tuning specifically means continuing to train some or all of the weights on new data. Feature extraction and in-context learning are also transfer learning but involve no weight updates to the base model.
Related terms.
Fine-Tuning
Fine-tuning continues training a pretrained model on a smaller task-specific dataset so that its weights adapt to your format, ton…
ReadNeural Network
A neural network is a machine learning model built from layers of simple weighted units that learn to map inputs to outputs by rep…
ReadTraining Data
Training data is the set of examples a model learns from, and its coverage, label quality, and representativeness set a hard ceili…
ReadPrompt Engineering
Prompt engineering is the practice of designing the text supplied to a language model — instructions, examples, and context — so t…
ReadNeed this built?
Applying this to a
real system?
We build and ship production machine learning. If transfer learning is part of a problem you are working on, tell us about it.
Start the conversationor write to us at [email protected]