How do networks learn from errors?

Knowledge Videos

Short animated explainers, organised by subject.

How do networks learn from errors?

Loss as a landscape, gradient descent and backpropagation.

Transcript

The model's error is summed up in one number, the loss. Learning means making it smaller.

Picture the loss as a landscape over the weights. Low ground means a better model.

At any point, the gradient is the slope. It points uphill, so we step the opposite way.

The step size is the learning rate. Too small is slow, and too large overshoots.

A forward pass makes a prediction. Comparing it with the answer gives the error.

Backpropagation sends the error backwards, finding each weight's share of the blame.

Every weight then takes a small step downhill. Repeat, millions of times.

Predict, measure the error, send it backwards, and step downhill. Repeat that, and a network learns.

More in this series