Gradient

Courses

∇\nabla∇The maths behind AI0/72
π\piπMaths0/84
  • Matrices0/5
  • Derivatives0/5
  • Probability0/6
⋆\star⋆AI for everyone0/10
Γ\GammaΓGame theory0/49
py\texttt{py}pyPython for AI0/15
y^\hat{y}y^​Build your own AI0/15
All courses

Tuition

My tuitionOlympiad trackCompetitions

Practice

ProjectsAsk a questionTrain on a GPUExplorationsMaths StoriesUnsolved problemsPlaygroundScience labsMock testsOlympiad

Reference

GlossaryBlogDiscoveries
dydx\tfrac{dy}{dx}dxdy​Maths, module 12: Derivatives, lesson 4 of 5

Backpropagation by hand

Run a tiny model forwards to get its error, then send the blame backwards with the chain rule. This is how every network finds its gradient.

10 minute readOne thing to try6 questionsFree

Read the whole lesson free

Make a free account to read on, try the interactive parts, answer the 6 practice questions and keep your progress.

Create a free accountLog in

What this lesson covers

  • Forward pass: compute and store every intermediate value, ending with the loss.
  • Backward pass: walk the steps in reverse, multiplying by each step's local slope.
  • One forward and one backward pass give the gradient for every parameter at once.

More in Derivatives

  1. 1Slope and the derivative
  2. 2The chain rule
  3. 3Gradients
  4. 4Backpropagation by hand
  5. 5Valleys, peaks and saddles