Cold Open MILO: Imagine reading a mystery through a cardboard slot. One word at a time, no looking back. You hit the line ‘It was gone.’ Do you bet on what ‘it’ means, or keep reading? I’d keep reading. That clue from the top of the page is already getting fuzzy. Now rip away the cardboard. Same page, same words. But the clue and that little ‘it’ are both right there. That’s where an AI design called a transformer gets to start. Welcome MILO: This is The Dossier. I'm Milo. Today's question: What is a transformer, and how did changing the way computers read make modern AI possible? Kofi, our researcher, start us off. Why step-by-step reading hit a wall KOFI: A transformer is an AI design that takes in a whole sequence at once and weighs how each piece relates to the others. MILO: I pictured a toy robot. I figured the computer still read left to right. KOFI: The toy gets partial credit: one researcher liked the name from childhood. The team introduced it in ‘Attention Is All You Need,’ a paper with a Beatles pun for a title. It’s the T in GPT, the family of models behind ChatGPT. It’s in phone autocorrect, too. MILO: Bernie, our technical writer—autocorrect? BERNIE: I was using it without asking for it. KOFI: Older networks finished each word before starting the next. Early clues could fade, and chips had to wait. Self-attention scores those connections at the same time, so lots of chips can share the work of training. MILO: Tamsin, our systems expert, let’s take one sentence. If the machine takes in every word at once, how does it keep them straight? Inside self-attention, step by step TAMSIN: The team built its transformer for translation. Take this sentence: ‘The animal didn’t cross the street because it was too tired.’ The machine chops it into tokens, pieces that can be whole words or just fragments. Each becomes a list of numbers. Then it adds a signal called positional encoding: numbers that mark where each piece belongs in the sentence. MILO: So picture a room full of people wearing badges with their seat numbers. They don’t have to line up to know the order. TAMSIN: Right. For self-attention, everyone holds up a slip saying what they’re looking for. That’s the query. They also show a label saying what they offer. That’s the key. The value is the information they can actually share. Everyone checks their slip against the labels at once, taking in more information from the stronger matches. MILO: And the slip for ‘it’ says, ‘Who are we talking about here?’ TAMSIN: In this example, with ‘tired’ in the sentence, ‘animal’ gets a stronger score than ‘street,’ so more of its information goes into ‘it.’ And that’s just one attention head, one set of checks. Other heads can pick up things like grammar or tone at the same time, with graphics chips sharing the work. BERNIE: Good. I wasn’t ready to hear how tired the street was. TAMSIN: Now, people in that room know what tired feels like. The machine is multiplying numbers to score matches. That’s enough to give ‘it’ a direct link to ‘animal,’ without reading word by word. MILO: Here’s where I get stuck, Kofi: does linking the right words mean the machine actually understands the sentence? Surface pattern matcher or world model? KOFI: Not from that link alone. The researchers who call language models ‘stochastic parrots’ would say the model can pick ‘animal’ without knowing what it means to be tired. A chatbot can sound just as sure when it’s making up a fact. TAMSIN: Sure, but ‘learned from patterns’ doesn’t mean ‘learned nothing but word pairings.’ Researchers found an internal map of a game board in a transformer trained only on lists of moves. I wouldn’t rule out the model learning something about animals from sentences, too. KOFI: A board map is real evidence. The link to ‘animal’ doesn’t tell us what the model learned about animals. And those checks have a cost: double the text and full attention does roughly four times the work. TAMSIN: Right, and some cheaper shortcuts are worse at finding an exact match. That’s worth paying for sometimes. It still doesn’t make finding a match the same as getting every step of a calculation right. BERNIE: So I can like the essay and still check the math. MILO: Fair. Bernie, bring us home: what are the three lines we should keep? The Summing Up BERNIE: A transformer is an AI design that takes in a whole stretch of text at once instead of reading it bit by bit. It marks where each piece goes and uses self-attention to weigh how much the other pieces matter to it. Once you rip away that cardboard slot, lots of chips can share the work of training. MILO: The big change was doing those checks at the same time. That let engineers train models on far more text and helped make modern AI possible. But getting the connection right doesn’t prove the machine understands it the way you do. Close MILO: Thank you, everyone. That's The Dossier. One idea, until it's yours. Now go explain it to somebody. I'm Milo.