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
| Task | Starting model | Your data needed |
|---|---|---|
| Spotting product defects on a line | Pretrained image model | A few hundred labelled photos |
| Routing support tickets by topic | Pretrained language model | Past tickets with their categories |
| Sentiment of reviews in your niche | General sentiment model | A sample of your own reviews, labelled |
| Reading a specific form type | Document AI model | Dozens 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.
Saraswati Stitch®