Skip to story
ELI5 Yahaaa

Millions of tiny corrections

How Does a Computer Learn?

Nobody writes the rules for recognising a cat. The computer is shown cats and wrong answers until its guesses stop being wrong.

It makes a guess It is toldhow wrong itwas It nudges its numbers a little Millions oftimes over
Not taught. Corrected.
  1. Step 1 of 5

    Some rules cannot be written down.

    A rule you can write If it is over 18, letthem inA rule you cannot Is this a cat?

    Try writing exact instructions for telling a cat from a dog. Every rule you write has exceptions. People recognise cats without knowing how, which means we cannot type it out.

  2. Step 2 of 5

    So it starts by guessing badly.

    1 It starts withrandom numbers2 Shown a cat, itguesses dog3 It is told thatwas wrong

    The machine begins with random numbers inside and guesses at random. Shown a cat, it says dog. Being wrong is the starting point, not a failure.

  3. Step 3 of 5

    Each mistake nudges the numbers.

    One wrong answer Thousands ofnumbers nudged alittle

    Every wrong answer says which internal numbers pushed it that way, and each is shifted very slightly the other way. One nudge changes almost nothing; millions of them add up.

  4. Step 4 of 5

    It has to be tested on things it has never seen.

    Examples it studied It may have simplymemorised theseExamples held back The only honest test

    A machine can memorise its examples perfectly and be useless on anything new. So some examples are always held back, and only those count as a real test.

  5. Step 5 of 5

    It learns what was in the examples, faults included.

    1 Examples thatare lopsided2 The machinecopies thepattern3 It isconfidentlywrong on the

    A machine shown only sunny photos will fail in the rain. A machine shown biased decisions learns the bias precisely. It has no way to know that the examples were unrepresentative.

    This is why these systems need such vast numbers of examples. There is no understanding to fall back on — only what it has been shown.

The short version

A computer learns by guessing, being told how wrong it was and nudging its numbers — and it learns whatever its examples contain.

Try it yourself

Describe in exact rules how you know a friend's face. You will run out of rules long before you run out of certainty.

Topics