Machine Learning, FoundationsLesson 76 of 92

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

Backpropagation, traced through one tiny network

In this lesson

  • 10 min read
  • 6 reading sections
  • Knowledge check
  • Lesson 4 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
One backward pass through the three-weight networkd loss / d y =−2.62 × (y −target), with y= −0.3 andtarget 1d loss / d w2 =−2.6× h, and h = 1.0d loss / d h =0.78× w2 = −0.3Through ReLU:0.78h_pre waspositive, so ×1. Negativewould have given0 and w1 learnsnothing.d loss / d w1 =1.56× x = 2.0Read right to left in time, left to right on the page: each box is the number arriving from the layerabove multiplied by one local derivative. Ten layers would be ten such multiplications, which isexactly where gradients vanish or explode.
Read right to left in time, left to right on the page: each box is the number arriving from the layer above multiplied by one local derivative. Ten layers would be ten such multiplications, which is exactly where gradients vanish or explode.

Figure

A little at a time

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

Step 1 of 8Free · no account needed
Lesson steps

The question backpropagation answers

A network has thousands of weights. Change one, and the loss changes by some amount. Gradient descent needs that amount for every weight, and computing it by nudging each one and re-running the network would take one forward pass per weight: impossible at any real scale.

Backpropagation computes all of them in one backward pass, at roughly the cost of one forward pass. That efficiency is the reason deep learning exists at all.

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) ‘Backpropagation, traced through one tiny network’, in Machine Learning, Foundations. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/machine-learning-foundations/backpropagation-by-hand (Accessed: 29 November 2026).