Chapter zero
How machines learned to learn
Eighty years, four collapses, and one idea that refused to die. You need no background to follow this — only curiosity.
This plays like a film, and your scroll is the projector: drag down to run it forward, up to run it back. Every frame is a live simulation — real weights, real arithmetic, on your device. Turn on narration in the top bar to have it spoken.
Multiply each input by its weight. Add them up. If the total clears the line, fire. Everything in this course is built out of that.
Every line is one weight. Thickness is its size, colour is its sign. Watch them move.
A brain cell, written as arithmetic
Before any machine could learn, someone had to write down what a brain cell does.
01 / 11For the curious — the fine print
Why it mattered
McCulloch and Pitts proved that networks of these switches could carry out logic. For the first time, thinking and arithmetic looked like the same kind of thing — which meant a machine might, in principle, do it.
The dials were physical
The Mark I Perceptron's weights were potentiometers turned by electric motors. You could stand in the room and watch a model learn. Everything since has been the same idea with the dials hidden inside silicon.
The cruel part
Stacking layers would have fixed it, and everyone knew that. Nobody knew how to train the stack — there was no way to work out which dial in a hidden layer deserved the blame for a wrong answer.
Backpropagation
It is not a learning algorithm. It is a bookkeeping trick for computing gradients efficiently. The learning is still just gradient descent — the same downhill walk you are about to do by hand.
Why this still matters
Modern systems increasingly do both — a learned model that also searches over its own possible answers. Knowing which half is doing the work is how you predict where a system will fail.
The uncomfortable lesson
The idea had been correct and ignored for twenty-five years, waiting for hardware. A lot of AI history is not new ideas. It is old ideas finally becoming affordable.
Why it had to change
There is a second problem hiding here. Reading strictly in order means you cannot start word ten until word nine is done — so it cannot be spread across thousands of chips at once. The design that replaced it could be, and that is as much a reason it won as accuracy was.
Still just next-token prediction
A large language model has one training objective: guess what comes next. Everything you have watched it do is a side effect of getting extremely good at that one task.
Every machine in this story, including the one you spoke to this morning, is doing the same small thing: turning dials to make its mistakes smaller. In the next ten minutes you are going to do it by hand.
Train one yourself →