Part 2 · Lesson 15 · 5 min
Bridge: how machines make their own labels
Nobody labeled the whole internet. So how did ChatGPT learn from it?
The answer key was hiding in the text all along.
Most of this part has been about learning from examples with answers. Someone has to write those answers, and that is slow and expensive. For a chatbot that has to learn from a huge share of the written web, hiring people to label it all is impossible.
So researchers use a trick: a fill-in-the-blanks game you can make from any page, where the answer is already printed right there.
Fill in the blank
This is called self-supervised learning. The data supplies its own labels: hide a word, and the hidden word is the answer. ChatGPT-style models play a version of this game where the blank is always the next word.
Guessing the next word sounds too simple to matter. But to guess well across billions of sentences, a model has to pick up grammar, facts, and some patterns of reasoning along the way.
Back to A to B
So a chatbot is not a new kind of magic. It is the same input A to output B idea from lesson 2.01, with the same guess, check, nudge loop, done at a scale that is hard to picture. That also explains its weakness: it learned what text usually looks like, not what is true.
Go deeper optional
Training happens in stages. Pre-training is the huge fill-in-the-blank phase on unlabeled text. Fine-tuning comes after, on a much smaller set of examples, often written or rated by people, to make the model helpful and follow instructions. So self-supervised does not mean the model teaches itself everything. Human feedback still matters, as Part 6 explains.
The same trick works beyond text. Image models can learn by hiding patches of a picture and predicting them. Parts 5 and 6 look at why "predict the next word" works so well.
Check yourself
1. Where do the "labels" come from in next-word prediction?
Hide a word and the text already holds the answer. Human labeling is used in later stages, but the bulk of training needs none.
2. Which earlier idea does next-word prediction fit?
The words so far are A and the next word is B. Clustering has no correct answer to check, but next-word prediction always does.