00 · 1958 · The first learning machine

Perceptron

A perceptron is a single artificial neuron. It looks at a point’s two coordinates, multiplies each by a weight, adds them up and says blue or amber depending on which side of zero the total lands. Geometrically, that is a straight line cutting the plane in two.

Frank Rosenblatt built the first one in 1958 and it could learn its own weights from examples. It made headlines, and then a famous problem called XOR nearly ended the whole field. You can reproduce both stories below.

How it works

  1. Guess. For each point the neuron computes w₁x + w₂y + b. Positive means amber, negative means blue.
  2. Check. Take a point it got wrong. Amber when it said blue, or the other way round.
  3. Nudge. Move the line a little so that point ends up on the right side: add (or subtract) the point to the weights. Repeat until no point is wrong.
  4. Fail on purpose. Switch to XOR. No single straight line can separate those two diagonal pairs, so the neuron can never stop making mistakes.

Try it

runs in your browser
click the plane to add a point

Data

Click adds

Accuracy
0%
Mistakes in pass
0
Rounds
0
Weights
—

Learning curve (accuracy after each full pass: it should climb to 100%)

Things to try

Why XOR matters

In 1969 Marvin Minsky and Seymour Papert proved that one layer of these neurons can only draw straight lines. Many read it as proof that neural networks were a dead end, and funding dried up. The fix was already known: add a second layer. Next page.

Still alive today

A perceptron is the building block of every network on this site. A modern language model is, at heart, billions of these neurons wired in layers, with a smoother squashing function than a hard yes/no.

The maths in one line

output = step(w·x + b). Learning rule: if wrong, w ← w + η·(target − output)·x. The perceptron convergence theorem guarantees this stops if the classes can be separated by a line.