Transfer learning takes a model already trained on one large task and adapts it to a related task, so you get a capable model with a fraction of the data, time and cost of training from scratch. Nearly every AI system we build at Saraswati Stitch relies on it, because prompting or fine-tuning a pretrained model is a form of transfer learning.

How it works

A model trained on a big general dataset learns features that are useful far beyond that dataset. Image models trained on ImageNet, a dataset of more than 14 million labelled images, learn edges, textures and shapes in their early layers. To build a new classifier, you keep those layers, replace the final layers and train only the new part on your own smaller dataset. With enough data, you can also unfreeze more layers and adjust them slightly, which is fine-tuning.

The same idea in large language models

Large language models follow the same pattern. A general model is pretrained on vast text, then adapted to a job through fine-tuning, or simply through instructions and examples in the prompt.

Business examples

TaskStarting modelYour data needed
Spotting product defects on a linePretrained image modelA few hundred labelled photos
Routing support tickets by topicPretrained language modelPast tickets with their categories
Sentiment of reviews in your nicheGeneral sentiment modelA sample of your own reviews, labelled
Reading a specific form typeDocument AI modelDozens of example forms

When it does not work well

Transfer helps most when the new task resembles the original. A model pretrained on everyday photos transfers less well to X-rays or satellite images than to product photos, and may need more of your own data. Our guide on training AI on your own data covers the options, and deep learning explains the layered models underneath.