The inner ear — attention.
A soloist hears every note played so far, but never weighs them all the same. That selective listening — turning some notes up, most notes down — is attention.
Lesson 2 handed the model a window of everything so far. A good soloist has that whole window too, yet leans on only a slice of it at a time. To land a phrase home, they listen for where home is; to keep a run going, they lock onto the last few notes; to answer a phrase, they think back to how it opened. Same notes on the page — what moves is where the ear leans.
That leaning is attention. For each next note it chooses, the model looks back over everything so far and decides how much to lean on each one. A few notes get turned up loud in its inner ear; most get turned down low — so the next note is shaped mostly by the handful it's really listening to.
This is the idea modern AI is built on — the “T” in GPT stands for Transformer, which is this mechanism at scale. It's what lets a model follow your instructions instead of drifting, keep straight who “they” pointed to three sentences back, and stay coherent across a long answer. Over the next three pages it turns practical: it explains why models lose the thread in long prompts and why those prompts cost more, each with a simple habit that follows.
It's also the machinery under Lesson 1's “weighs everything so far” — not a vague blur, but a specific set of weights, recomputed for every single note, that says which parts of the past matter right now. That's how the model holds a thread across a long passage: to resolve a line it began sixteen bars ago, it can reach back and turn that opening note up loud, however many notes sit in between.
Tell the soloist what to do with the phrase, then hear its inner ear: the notes it's leaning on ring out loud, the rest stay quiet — and that blend shapes the next note.
You're pressing these to try it out — but a real model isn't told which aim to take. The context does it: your prompt and the notes so far imply the aim, and attention leans accordingly.
A weight on every earlier note.
For each next note, attention scores how relevant every earlier note is, turns those scores into weights that add to 1, and blends the notes by those weights.
It listens on purpose.
Attention is the model deciding, note by note, which parts of everything-so-far to lean on. A handful of earlier notes get turned up loud; the rest fade back. Change what you're trying to do and the weights shift — the same phrase gets heard a different way.
This is the engine behind “weighs everything so far”: not an even blur, but a precise, re-computed set of weights that lets the model stay on a thread across a long line — the reason it can resolve a phrase it began bars ago.