0.2AI, machine learning, deep learning, LLMs
How these words relate, as nested circles, with one real example each.
On this page
The written lesson is coming soon
Every episode gets a hands-on lesson to go with the video. Until then, the full transcript and its sources are below.
Video transcript What the narrator says, chapter by chapter.
Four machines, four words
Four machines. One plays chess. One catches spam. One finds the dog in your photos. And one is a chatbot.
All four of them get called AI.
But one of them, didn't learn its skill. At all.
People wrote it in, by hand.
Which one? Keep a guess in mind.
They also line up with four words. AI, machine learning, deep learning, and large language models.
Most people swap these words freely, as if they all meant the same thing.
They don't. But they aren't four separate things, either.
They fit inside each other. Every large language model is a kind of deep learning.
All deep learning is machine learning. And all machine learning is AI.
But not the other way round.
There's plenty of AI out here, that never learns at all.
So let's walk in from the outside, with one real machine in each ring.
Rules written by people
May, nineteen ninety-seven. IBM's chess computer, Deep Blue, beats the world champion, Garry Kasparov.
How? It looks ahead. Every move it could make, every reply, and every reply to that.
Often around two hundred million positions, every single second.
To judge each position, it adds up scores for things like king safety and pawn structure. About eight thousand of them.
And almost every one of those scores was written and tuned by hand, by its team, with help from a chess grandmaster.
Deep Blue didn't learn chess from experience. People wrote the rules, and it followed them, very, very fast.
So that's the answer to our guess. The chess machine is the one.
And it's still artificial intelligence. A machine doing something we'd call intelligent, if a person did it.
That's roughly how the people who coined the term put it, back in nineteen fifty-five.
Rules learned from examples
Now a different job: spotting spam. You could write rules by hand.
If an email says free prize, it's spam. Caught.
But spammers just change the spelling, and the next one walks straight past your rule.
Machine learning flips the job around. Instead of writing rules, you collect examples. Thousands of emails, each marked spam, or not spam.
The program counts which words turn up in spam, and which in real mail, and sets a dial for each word, by itself.
When spammers invent a new spelling, it shows up in the new examples, and its dial gets learned too.
A fresh email arrives. The filter adds up the dials for its words. Spam.
Filters like this took off around two thousand two. One early filter, on its author's own inbox, missed fewer than five spams in a thousand.
Today's big filters add deep learning on top. But this simpler kind is already machine learning.
The rules come from examples, not from a person.
Learning what to look at
But a person still chose what that filter looks at. The words.
Now, try the same trick on a photo. Is there a dog, in this picture?
So, what are the words, of a photo?
Zoom in, and it's just a grid of numbers. How bright each dot is.
No single number means dog. There's nothing obvious to count.
Deep learning's answer: stack many layers of simple units. Each layer takes in numbers, and passes new numbers on to the next.
The connections between them are set by dials.
Show it millions of labelled photos, and the dials get nudged, a tiny bit at a time, just like last episode.
Nobody tells the layers what to look for.
But in networks like this, early layers end up catching edges, later ones textures, and deeper ones, parts like dog faces.
Deep just means many layers. And the network learns what to look at, by itself.
In twenty thirteen, Google used networks like this to let people search their own photos, without labelling a single one.
The smallest circle
And the smallest circle: large language models. Deep learning again, but for language.
Same layers of dials. But instead of photos, it trains on text, with one job: guess the next piece.
The cat sat on the, mat. Exactly the loop from last episode.
Large is the key word. The photo network that helped kick off the deep learning boom, in twenty twelve, had about sixty million dials.
GPT-3, in twenty twenty, had a hundred and seventy-five billion, stacked in ninety-six layers.
Two years later, a model from that same family was trained to chat.
That became ChatGPT, released in November, twenty twenty-two.
The whole map
So here's the whole map.
Rules written by people. Rules learned from examples. Learned through many layers. And many layers, trained on text.
Try one yourself. AlphaFold predicts the shapes of proteins. Its makers shared the twenty twenty-four Nobel Prize in Chemistry.
It's built with deep learning, but it doesn't read or write language. So where does it go?
Deep learning. But not a large language model.
So next time a headline says AI, ask: which circle?
These days it often means the smallest one. But the word covers all of this.
Next time: how we got from the outer ring to the inner one. From Eliza, to ChatGPT.
Sources Where the facts in this episode come from.
- aclanthology.org/D07-1090 aclanthology.org
- www-formal.stanford.edu/jmc/history/dartmouth/dartmouth.html www-formal.stanford.edu
- paulgraham.com/spam.html paulgraham.com
- microsoft.com/en-us/research/publication/a-bayesian-approach-to-filtering-junk-e-mail microsoft.com
- workspace.google.com/blog/product-announcements/ridding-gmail-of-100-million-more-spam-messages-with-tensorflow workspace.google.com
- arxiv.org/abs/1311.2901 arxiv.org
- research.google/blog/improving-photo-search-a-step-across-the-semantic-gap research.google
- papers.nips.cc/paper/4824 papers.nips.cc
- arxiv.org/abs/2005.14165 arxiv.org
- openai.com/index/chatgpt openai.com
- nobelprize.org/prizes/chemistry/2024/press-release nobelprize.org