CIFAR-10 Transfer Learning
- Role
- Solo — experiment design, training, analysis
- Context
- Personal research project
- Stack
- PythonPyTorchtorchvisionNumPy
A controlled PyTorch study measuring ImageNet-pretrained ResNet18 fine-tuning against a 330K-parameter CNN trained from scratch, under deliberate label scarcity.
- 01
Held everything constant except the thing under test: the same stratified subsets, the same preprocessing, the same evaluation protocol for both models.
- 02
Compared an ImageNet-pretrained ResNet18, fine-tuned, against a 330K-parameter CNN trained from scratch.
- 03
Ran the comparison at two label budgets — 5% and 20% of CIFAR-10 — to measure how the advantage scales with data.
- 04
Made the whole thing reproducible: fixed seeds, scripted dataset preprocessing, experiment tracking and JSON metrics written out per run.
At 5% of labels: 89.2% test accuracy fine-tuned, against 50.9% from scratch.
At 20% of labels: 94.5% against 74.7%.
A quantified answer — the pretrained backbone is worth most exactly where data is scarcest.
- Fine-tuned @ 5% labels
- 0.0%Fine-tuned @ 5% labels
- From scratch @ 5% labels
- 0.0%From scratch @ 5% labels
- Scratch CNN parameters
- 0KScratch CNN parameters
Concepts applied
- Controlled experiments
- Transfer learning
- Reproducible pipelines
- Experiment tracking
- Evaluation design
Next project
04NyayMitra