cover

The Pattern Machine

How does AI learn from examples?
You show your friend three photos โ€” cat, cat, dog โ€” and ask "which one's different?" ~~Easy, right?~~ Your brain just kn

You show your friend three photos โ€” cat, cat, dog โ€” and ask "which one's different?" Easy, right? Your brain just knows. But how would you teach a computer to do that, when a computer can't "just know" anything?

~~Here's the trick:~~ you give the computer **a million labeled photos**. "Cat." "Dog." "Cat." "Dog." The computer doesn

Here's the trick: you give the computer a million labeled photos. "Cat." "Dog." "Cat." "Dog." The computer doesn't understand what a cat IS, but it starts noticing patterns โ€” pointy ears show up in cat photos, floppy ears in dog photos, whisker-shadows here, wet noses there.

Inside the AI is a **massive tangle of virtual knobs and switches** โ€” **millions of them**, all set to random positions

Inside the AI is a massive tangle of virtual knobs and switches โ€” millions of them, all set to random positions at first. Each knob controls one tiny part of the decision: "does this pixel-patch look furry?", "are those shapes ear-like?", "is that a tail curve?" Individually, they're useless. Together, they can learn.

The AI guesses on the first photo: "Dog?" ~~Wrong โ€” it's a cat.~~ So the training algorithm reaches in and adjusts **ten

The AI guesses on the first photo: "Dog?" Wrong โ€” it's a cat. So the training algorithm reaches in and adjusts ten thousand knobs, just a nudge, in directions that would have made "cat" more likely. Next photo: another guess, another adjustment. Next photo. Next photo. A million photos, a billion tiny nudges.

After enough examples, ~~something clicks~~. The knobs have found a configuration โ€” a pattern of settings โ€” where **furr

After enough examples, something clicks. The knobs have found a configuration โ€” a pattern of settings โ€” where furry + pointy-ears + whiskers + certain colors = cat, while furry + floppy-ears + longer-snout = dog. The AI hasn't "met" a cat. It's built a cat-detector out of pixel math.

Show it a new cat photo it's never seen, and the cat-detector pathway lights up. The knobs work together like a chain of

Show it a new cat photo it's never seen, and the cat-detector pathway lights up. The knobs work together like a chain of decisions: "yes fur, yes pointy, yes whiskers" โ€” click, click, click โ€” "conclusion: cat." That's what we mean when we say the AI "learned." It carved the pattern out of examples.

**The same trick** works for almost anything. Give an AI a million sentences and it learns *word-patterns* โ€” which words

The same trick works for almost anything. Give an AI a million sentences and it learns word-patterns โ€” which words appear near each other, what usually comes next. Give it chess games and it learns move-patterns. Give it music and it learns rhythm-patterns. Examples in, patterns out.

~~That's the secret:~~ AI doesn't think or understand the way you do. It's a **patterns-from-examples machine**, built f

That's the secret: AI doesn't think or understand the way you do. It's a patterns-from-examples machine, built from millions of tiny adjustments, finding invisible shapes in oceans of data. And when the patterns match, it looks like magic โ€” but it's really just very, very good noticing.

How was this book?

A Wonderleaf Book

The Pattern Machine

โ€” How does AI learn from examples? โ€”

Wonderleaf Editions
โ€” ex libris โ€”
A Wonderleaf Book

The Pattern Machine

How does AI learn from examples?

Wonderleaf Editions ยท MMXXVI
Scene 1
You show your friend three photos โ€” cat, cat, dog โ€” and ask "which one's different?" ~~Easy, right?~~ Your brain just kn
The Pattern Machine2
Scene 1

You show your friend three photos โ€” cat, cat, dog โ€” and ask "which one's different?" Easy, right? Your brain just knows. But how would you teach a computer to do that, when a computer can't "just know" anything?

3The Pattern Machine
Scene 2
~~Here's the trick:~~ you give the computer **a million labeled photos**. "Cat." "Dog." "Cat." "Dog." The computer doesn
The Pattern Machine4
Scene 2

Here's the trick: you give the computer a million labeled photos. "Cat." "Dog." "Cat." "Dog." The computer doesn't understand what a cat IS, but it starts noticing patterns โ€” pointy ears show up in cat photos, floppy ears in dog photos, whisker-shadows here, wet noses there.

5The Pattern Machine
Scene 3
Inside the AI is a **massive tangle of virtual knobs and switches** โ€” **millions of them**, all set to random positions
The Pattern Machine6
Scene 3

Inside the AI is a massive tangle of virtual knobs and switches โ€” millions of them, all set to random positions at first. Each knob controls one tiny part of the decision: "does this pixel-patch look furry?", "are those shapes ear-like?", "is that a tail curve?" Individually, they're useless. Together, they can learn.

7The Pattern Machine
Scene 4
The AI guesses on the first photo: "Dog?" ~~Wrong โ€” it's a cat.~~ So the training algorithm reaches in and adjusts **ten
The Pattern Machine8
Scene 4

The AI guesses on the first photo: "Dog?" Wrong โ€” it's a cat. So the training algorithm reaches in and adjusts ten thousand knobs, just a nudge, in directions that would have made "cat" more likely. Next photo: another guess, another adjustment. Next photo. Next photo. A million photos, a billion tiny nudges.

9The Pattern Machine
Scene 5
After enough examples, ~~something clicks~~. The knobs have found a configuration โ€” a pattern of settings โ€” where **furr
The Pattern Machine10
Scene 5

After enough examples, something clicks. The knobs have found a configuration โ€” a pattern of settings โ€” where furry + pointy-ears + whiskers + certain colors = cat, while furry + floppy-ears + longer-snout = dog. The AI hasn't "met" a cat. It's built a cat-detector out of pixel math.

11The Pattern Machine
Scene 6
Show it a new cat photo it's never seen, and the cat-detector pathway lights up. The knobs work together like a chain of
The Pattern Machine12
Scene 6

Show it a new cat photo it's never seen, and the cat-detector pathway lights up. The knobs work together like a chain of decisions: "yes fur, yes pointy, yes whiskers" โ€” click, click, click โ€” "conclusion: cat." That's what we mean when we say the AI "learned." It carved the pattern out of examples.

13The Pattern Machine
Scene 7
**The same trick** works for almost anything. Give an AI a million sentences and it learns *word-patterns* โ€” which words
The Pattern Machine14
Scene 7

The same trick works for almost anything. Give an AI a million sentences and it learns word-patterns โ€” which words appear near each other, what usually comes next. Give it chess games and it learns move-patterns. Give it music and it learns rhythm-patterns. Examples in, patterns out.

15The Pattern Machine
Scene 8
~~That's the secret:~~ AI doesn't think or understand the way you do. It's a **patterns-from-examples machine**, built f
The Pattern Machine16
Scene 8

That's the secret: AI doesn't think or understand the way you do. It's a patterns-from-examples machine, built from millions of tiny adjustments, finding invisible shapes in oceans of data. And when the patterns match, it looks like magic โ€” but it's really just very, very good noticing.

17The Pattern Machine

~ finis ~

Tiny picture books for big little questions.

โ€” a small constellation of questions โ€”
โœฆWonderleaf
Editions