# Transfer learning

> Canonical: https://skillalmanac.com/glossary/transfer-learning | Last verified: 2026-11-25 | Index status: index-eligible

Transfer learning reuses knowledge or representations learned on one task or dataset for another. It can reduce the target task's data or training needs, but benefits depend on the tasks and data; negative transfer is possible.

Also called: transfer learning in deep learning, what is transfer learning, transfer learning model, transfer learning in machine learning.

## In plain language

Transfer learning is reusing what a model already learned. Imagine a person who plays the piano picking up the organ: they do not start from zero because reading music and finger skills carry over. A model trained on a very large set of photos can be adapted to spot a narrower thing, such as damage on your products, using far fewer of your own photos. It does not always work. IBM notes that when the new task is too different from the old one, the borrowed knowledge can hurt, which is called negative transfer. It also cannot fix poor data. Neural fine-tuning needs suitable target-task examples and training compute. Transfer can also be zero-shot, without dataset-specific training examples, as in the original CLIP evaluation.

## Technical definition

In neural transfer learning, a model trained on source data can supply learned weights or representations for a target task. Two common patterns appear in Stanford's CS231n notes: treat the pretrained network, minus its final classifier layer, as a fixed feature extractor and train a new classifier on the features; or fine-tune, continuing backpropagation to update some or all pretrained weights, often with a smaller learning rate. CS231n says that with small data you can keep early layers fixed, or avoid fine-tuning, to limit overfitting. IBM states that transfer works best when tasks and data distributions are similar and that negative transfer can occur otherwise.

## How it shows up when you use agents

You do not usually run transfer learning yourself when you use a coding agent. It becomes a decision when you want a model to do a narrow job, such as classifying your support tickets, and you have a modest set of your own examples.

The usual choices are to prompt an existing model, to retrieve documents for it, or to adapt it with your own data through [fine-tuning](/glossary/fine-tuning). The last is a form of transfer learning, and it starts from a model produced by [pretraining](/glossary/pretraining). Large reusable starting points are called [foundation models](/glossary/foundation-model).

What breaks when transfer learning is misunderstood: people expect borrowed knowledge to fix a weak dataset, or adapt a model to a task far from its original one and see worse results. A next action is to measure first. Build a small validated test set with [llm-eval-test-sets](/skills/skill-almanac/llm-eval-test-sets), keep it separate from training with [split-leakage-check](/skills/skill-almanac/split-leakage-check), and compare the starting model with the adapted one on it. With little data, adapting too many layers risks [overfitting](/glossary/overfitting).

## Common confusions

- **Transfer learning versus fine-tuning.** Fine-tuning is one way to do transfer learning: further training of a pretrained model on a task-specific dataset. Transfer learning also covers reusing a frozen model as a feature extractor. See [Fine-tuning](/glossary/fine-tuning).
- **Transfer learning versus pretraining.** Pretraining produces the starting model. Transfer learning is reusing it for a new task. See [Pretraining](/glossary/pretraining).
- **Transfer learning versus training from scratch.** For the neural fine-tuning case discussed here, training from scratch starts without pretrained weights, commonly from random initialization. Reusing pretrained weights can reduce target-task training needs; zero-shot transfer is another case.
- **Myth.** Transfer always helps. IBM describes negative transfer, where the earlier knowledge hurts performance on the new task.

## Worked examples in this catalogue

### [huggingface-datasets](https://skillalmanac.com/skills/huggingface/huggingface-datasets)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Dataset metadata, rows, search and filters read through the Hugging Face Dataset Viewer API.

Why it exercises the concept: Before fine-tuning a pretrained model, you need suitable training data for the new task; zero-shot transfer need not use dataset-specific training examples. This skill lets an agent look at a dataset's rows and metadata to judge whether it fits the target task.

### [split-leakage-check](https://skillalmanac.com/skills/skill-almanac/split-leakage-check)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A check of train, validation and test files for duplicates, shared groups, time and label leakage, printed as JSON.

Why it exercises the concept: The target-task data you adapt a model with still needs clean train and test splits, or the result looks better than it is.

### [llm-eval-test-sets](https://skillalmanac.com/skills/skill-almanac/llm-eval-test-sets)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: An eval dataset for an LLM feature, built and validated with a checker for duplicates, missing graders, imbalance and leakage.

Why it exercises the concept: After you adapt a pretrained model to a task, a validated test set is how you check that it works on that task.

## Related terms

- [Fine-tuning](https://skillalmanac.com/glossary/fine-tuning.md)
- [Pretraining](https://skillalmanac.com/glossary/pretraining.md)
- [Foundation model](https://skillalmanac.com/glossary/foundation-model.md)
- [Deep learning](https://skillalmanac.com/glossary/deep-learning.md)
- [Neural network](https://skillalmanac.com/glossary/neural-network.md)
- [Overfitting](https://skillalmanac.com/glossary/overfitting.md)

## Sources

- [What is transfer learning?](https://www.ibm.com/think/topics/transfer-learning), IBM (accessed 2026-11-24)
- [CS231n Convolutional Neural Networks for Visual Recognition: Transfer Learning](https://cs231n.github.io/transfer-learning/), Stanford University (accessed 2026-11-24)
- [Machine Learning Glossary: transfer learning](https://developers.google.com/machine-learning/glossary#transfer-learning), Google for Developers (accessed 2026-11-24)
- [Transfer learning and fine-tuning](https://www.tensorflow.org/tutorials/images/transfer_learning), TensorFlow (accessed 2026-11-24)
- [Learning Transferable Visual Models From Natural Language Supervision, v1](https://arxiv.org/abs/2103.00020v1), Radford et al. (accessed 2026-11-25)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-25. [Glossary index](https://skillalmanac.com/glossary.md).
