Transfer Learning
Transfer learning is a machine learning paradigm where a model developed for a source task is repurposed as the starting point for a second, related target task. Instead of training a model from scratch—which requires vast amounts of data and computational resources—transfer learning leverages previously acquired knowledge to improve performance and efficiency on the target task.
This approach is particularly prominent in Deep Learning and computer vision/natural language processing, where models trained on large benchmarks (e.g., ImageNet or web-scale text corpora) serve as foundational starting points.
Key Features
- Knowledge Reuse: Reuses learned weights, biases, and feature representations from a pre-trained model rather than initializing them randomly.
- Data and Computational Efficiency: Reduces the training time and the volume of labeled target data required to achieve high accuracy.
- Hierarchical Feature Extraction: Exploits the hierarchical nature of neural networks, allowing early layers (capturing low-level features like edges or shapes) to remain frozen, while deeper layers are adapted.
- Mitigation of Overfitting: Starting with generalized features learned from larger source datasets reduces the risk of overfitting on small target datasets.
Key Approaches
- Feature Extraction: The pre-trained model is used as a static feature extractor (its weights are frozen), and a new classifier/regression head is trained on the target task data.
- Fine-Tuning: The pre-trained model’s weights are unfrozen (partially or fully) and updated with a very small learning rate during training on the target task.
Related Topics
- Domain Adaptation: Adapting a model when the source and target tasks are identical, but the input data distributions differ.
- Multi-Task Learning: Training a model on several related tasks concurrently to learn a shared, more generalizable representation.
- Self-Supervised Learning: A technique where models learn representations from unlabeled data prior to fine-tuning on a supervised downstream task.
- Zero-Shot Learning / Few-Shot Learning: Evaluating or training a model to perform tasks with little to no task-specific examples by leveraging foundational knowledge.
- Negative Transfer: A phenomenon where transferring knowledge from an unrelated source task reduces target task performance.