0.3From ELIZA to ChatGPT
The 60-year story: rules, statistics, neural nets, transformers, scale.
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.
Overnight?
November thirtieth, twenty twenty-two. A company called OpenAI puts a new chatbot online, for anyone to try.
Five days later, more than a million people have signed up.
It seemed to come out of nowhere. And most people picture something like this inside. A giant rulebook, written by programmers, saying what to answer.
That is how chatbots began, sixty years ago.
But the real story is how that rulebook slowly disappeared.
Rules, 1966
Nineteen sixty-six. At M.I.T., Joseph Weizenbaum publishes Eliza, one of the very first chatbots.
Eliza played a therapist. You typed how you felt, and it answered.
People confided in it. Weizenbaum wrote that his own secretary, who had watched him build it, asked him to leave the room.
But inside, there was no understanding at all. Just a list of rules, written by hand.
Each rule waits for a keyword, and fills in a template. My boyfriend comes back as your boyfriend.
Now type: my computer won't turn on. The rule for computer fires, and Eliza asks: do computers worry you?
And a sentence with no keyword at all just gets: please go on.
For about twenty years, most language software worked like this. Every new kind of sentence needed another rule. And sentences never run out.
Counting, 1990 to 2006
Around nineteen ninety, a team at IBM tried the opposite. Stop writing rules. Let the computer count.
Their program learned to translate French into English from records of the Canadian parliament, which are printed in both languages.
Counting can also guess the next word. Find every place the words on the appear, and tally what comes next.
Turn the tallies into shares, and you get a score for every next word. The same chart you saw in the first episode.
In two thousand six, Google shared counts like these, gathered from about a trillion words on the web.
That same year, Google Translate launched, built on the same idea: statistics from United Nations and European Parliament documents that people had already translated.
But counting has a blind spot. Take: I grew up in France, so I speak fluent. The counts only see the last couple of words, and miss France.
Look further back, and the counts run out. Most long strings of words never appear, even once, in a trillion words.
Learning, 2003 to 2016
The next idea: don't count, learn. A neural network is a wall of dials, nudged during training, just like in the first episode.
In two thousand three, a team in Montreal showed that a network like this could beat the counting models at guessing the next word.
But training was slow, until twenty twelve. A network trained on two gaming graphics cards won an image recognition contest by a mile.
It got fifteen percent wrong. The runner-up got twenty-six percent wrong. After that, neural networks took off.
Graphics cards were built for video games. They do thousands of tiny sums at once. Neural networks turned out to need exactly that.
In twenty sixteen, Google Translate switched to a neural network, and cut its errors by more than half, in Google's own tests.
But these networks read one word at a time, in order, each step waiting for the one before. That made them slow to train on huge amounts of text.
The transformer, 2017
Twenty seventeen. Eight researchers, most of them at Google, publish a paper called Attention Is All You Need.
It describes a new design, built for translation. They call it the transformer. It's the T in ChatGPT.
For this story, one thing matters. It takes in every word at once, instead of one after another.
That suits graphics chips, which do thousands of small jobs side by side. Their biggest version trained in three and a half days, on eight of them.
How it works inside comes later in this course. What matters now: you could feed it far more text than ever before.
Scale, 2018 to 2020
OpenAI took the transformer and trained it on the task from the first episode: guess the next word. They called it GPT.
That stands for generative pre-trained transformer.
Then they made it bigger. Twenty eighteen: about a hundred million dials.
Twenty nineteen, GPT-2: one and a half billion.
At first, OpenAI held back the full GPT-2, worried it could be misused. They released it in stages, over nine months.
Twenty twenty, GPT-3: a hundred and seventy-five billion. Same recipe. Far more dials, and far more text.
And size brought a surprise. Show GPT-3 a few examples in the prompt, and it picks up the pattern, with no extra training.
Chat, 2022
But GPT-3 was still a text continuer. Ask it a question, and it might just write more questions.
So OpenAI added the second round of training from the first episode: example conversations, and people rating answers.
The result was striking. People preferred the answers of a tuned model with one point three billion dials over the untuned one, with a hundred and seventy-five billion.
Put that tuning on a bigger model, give it a chat window, and you get ChatGPT. November thirtieth, twenty twenty-two.
Sixty years
So, back to that rulebook. Nobody wrote ChatGPT's rules. Sixty years of progress meant writing fewer rules, and letting the machine learn more.
Rules. Then counting. Then learned dials. Then a design that takes in every word at once. Then bigger. And finally, training it to chat.
Same words in, fifty-six years apart. One matches a keyword. The other scores every possible next piece, one at a time.
Next: training versus inference. Making a model once, and running it billions of times.
Sources Where the facts in this episode come from.
- dl.acm.org/doi/10.1145/365153.365168 dl.acm.org
- arxiv.org/html/2501.06707 arxiv.org
- spectrum.ieee.org/why-people-demanded-privacy-to-confide-in-the-worlds-first-chatbot spectrum.ieee.org
- d.umn.edu/~tcolburn/cs1581/lectures/chapter07/intelligence/slide016.html d.umn.edu
- github.com/jeffshrager/elizagen.org github.com
- sites.google.com/view/elizaarchaeology/blog/3-weizenbaums-secretary sites.google.com
- aclanthology.org/J93-2003.pdf aclanthology.org
- ar5iv.labs.arxiv.org/html/1706.03762 ar5iv.labs.arxiv.org
- openai.com/index/gpt-2-1-5b-release openai.com
- ai.stanford.edu/blog/in-context-learning ai.stanford.edu