Machine Learning, FoundationsLesson 82 of 92

Module 8 · Neural networks, built from what you already know

Standing on somebody else’s compute

In this lesson

  • 9 min read
  • 8 reading sections
  • Knowledge check
  • Lesson 10 of 10 in this chapter

This chapter’s goalExplain why a multi-layer network with no non-linearity collapses to a single linear model, trace one backpropagation step through a two-layer network by hand, diagnose a training failure from the loss curve and the gradients, and fine-tune a pretrained model on a few hundred labelled examples using free compute.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmWatch1:55Not available
Full audiobookNot availableNot available
Four ways to adapt a pretrained ResNet-50 to 300 labelled imagesFeature extraction, thenlogistic regression91Fine-tune the last blockonly92.4Fine-tune everything, rate100× lower90.6Fine-tune everything,from-scratch rate71.5% accuracy on held-out imagesOn this little data the frozen backbone with a logistic regression on its features is within twopoints of the best, and full fine-tuning at a from-scratch learning rate destroys the pretrainedfeatures in the first epoch. The steps are ordered by how much data each needs, and the measurementsays which one yours supports.
On this little data the frozen backbone with a logistic regression on its features is within two points of the best, and full fine-tuning at a from-scratch learning rate destroys the pretrained features in the first epoch. The steps are ordered by how much data each needs, and the measurement says which one yours supports.

Figure

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 10Free · no account needed
Lesson steps

Why you should not train from scratch

Training a vision model from random weights needs hundreds of thousands of labelled images. Training a language model from scratch needs hundreds of billions of tokens and a compute budget in the millions.

You do not have either. You do not need either, because someone already did it and released the weights.

Transfer learning takes a model trained on a large general dataset and adapts it to your specific task with a few hundred or few thousand examples. It is the single most practically important technique in this module, and it is what makes deep learning available to someone with a laptop.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the How a Language Model Actually Works exam.

Stuck on something?Ask Funke, your AI tutor

How to cite: Addaly (2026) ‘Standing on somebody else’s compute’, in Machine Learning, Foundations. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/machine-learning-foundations/transfer-learning (Accessed: 29 November 2026).