A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Transfer Learning in Neural Networks

Graduate Depth 97 in the knowledge graph ☐ I know this ☆ Set as goal
6topics build on this
687prerequisites beneath it
See this on the map →
Neural Network FundamentalsSupervised Learning Fundamentals+4 more→→Few-Shot LearningFine-Tuning Pretrained Models+2 more
transfer-learning domain-adaptation feature-reuse representation-learning

Core Idea

Transfer learning reuses features learned on large source tasks (e.g., ImageNet) for small target tasks, dramatically reducing data and computation requirements. Early layers capture generic features shared across domains while later layers are task-specific; freezing early layers and fine-tuning later layers is an effective strategy when target data is limited.

How It's Best Learned

Use a pretrained ImageNet model and fine-tune it on a small target dataset, comparing final accuracy with training from scratch to see transfer learning benefits.

Explainer

Training a neural network from scratch requires vast amounts of labeled data and compute. A deep CNN for image classification might have millions of parameters, and fitting them all from random initialization on a small dataset — say, 500 images of medical scans — leads to severe overfitting. Transfer learning sidesteps this problem by starting from a network that has already been trained on a large, general dataset, then adapting it to the specific task at hand. The insight is that many of the features a network learns are not task-specific — they are reusable building blocks.

Research on CNNs has revealed a striking pattern in what different layers learn. Early layers (close to the input) learn generic, low-level features: edge detectors, color gradients, texture patterns. These features are useful for virtually any visual task — detecting edges matters whether you are classifying dogs, diagnosing tumors, or reading street signs. Later layers combine these primitives into increasingly task-specific representations: dog faces, tumor shapes, letter forms. This hierarchy means that a network trained on ImageNet's 1.2 million images across 1,000 categories has already learned a rich vocabulary of visual features that transfer broadly.

The standard fine-tuning procedure works as follows. Take a pretrained network (the source model), remove its final classification layer, and replace it with a new layer sized for your target task. Then retrain, typically with a small learning rate so the pretrained weights shift gently rather than being destroyed. A common strategy is to freeze the early layers entirely (their generic features are already good) and only update the later layers and the new classification head. When target data is very scarce, freezing more layers prevents overfitting; when target data is abundant, unfreezing more layers allows deeper adaptation. This is a spectrum, and the right balance depends on how similar the source and target domains are.

The effectiveness of transfer learning depends on domain similarity. Transferring from ImageNet to a medical imaging task works well because both involve natural images with edges, textures, and shapes — the low-level features transfer cleanly. Transferring from ImageNet to satellite imagery still helps but less so, because the visual statistics differ more. Transferring from images to audio spectrograms can even work, since spectrograms share some structural properties with images. The more distant the domains, the fewer layers are worth keeping frozen. In all cases, transfer learning dramatically reduces the data and compute needed to reach strong performance — a pretrained model fine-tuned on 500 examples routinely outperforms a model trained from scratch on 5,000.

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Dividing Integers → Unit Rates → Proportions → Percent Concept → Converting Between Fractions, Decimals, and Percents → Operations with Rational Numbers → Two-Step Equations → Solving Multi-Step Equations → Equations with Variables on Both Sides → Angle Pairs: Complementary, Supplementary, and Vertical → Parallel Lines and Transversals → Corresponding Angles → Alternate Interior Angles → Triangle Angle Sum Theorem → Exterior Angle Theorem → Triangle Inequality Theorem → Similar Triangles: AA Similarity → Similar Triangles: SSS and SAS Similarity → Proportions in Similar Triangles → Right Triangle Trigonometry Introduction → Sine, Cosine, and Tangent Ratios → Trigonometric Ratios Review → Radian Measure → Converting Between Degrees and Radians → The Unit Circle → Graphing Sine and Cosine → Graphing Tangent and Reciprocal Trigonometric Functions → Derivatives of Trigonometric Functions → Antiderivatives → Indefinite Integrals → Basic Integration Rules → Riemann Sums → Definite Integral Definition → Probability Density Functions and Continuous Distributions → Cumulative Distribution Functions → Continuous Random Variables → Probability Density Functions → Expected Value → Linear Regression in Machine Learning → Neural Network Fundamentals → Backpropagation Algorithm → Multilayer Perceptrons (MLPs) → Activation Functions in Neural Networks → Vanishing Gradient Problem → Gradient Descent and Optimization → Transfer Learning in Neural Networks

Longest path: 98 steps · 687 total prerequisite topics

Prerequisites (6)

Leads To (4)