The perceptron: one neuron that learns

Start with a single neuron that learns to convert ancient Egyptian cubits to metres: a weight, a loss, backpropagation and gradient descent, which you can try by dragging the weight.

This is the text of a chapter of the animated talk A Deep Seek into LLM Architecture by Ruben Galvão. Open the page with scripts on to play the slides, one key press per idea.

The perceptron

One input, one output

Data: cubits and metres

What the neuron must learn

A weight: y = w · x

The forward pass

The error

Loss: the squared error

Backpropagation: the output

Backpropagation: the weight

Your turn: drag the weight

Papers and sources