Module 1 · How we got here · Lesson 1C.4
Attention: reading every word in context
In 2017, a new design let a model weigh every word against every other word at once.
How it works
It reads the whole sentence at once.
Older systems read one word at a time, left to right, and lost track of the start of long sentences. The 2017 design, called the Transformer, looks at every word together.
How it works
It weighs every word against every other word.
For each word, it works out which other words matter most to its meaning. In “The trophy didn’t fit in the suitcase because it was too big,” the word “it” pays the most attention to “trophy.”
How it works
Change one word, and the weights shift.
Swap “big” for “small,” and “it” now points to “suitcase.” Nothing else changed. That’s attention: meaning worked out from context, every time.
Good to know
Where the name comes from
The 2017 paper that introduced it was called “Attention Is All You Need.” The T in GPT stands for Transformer.
What experience teaches
Meaning lives in context.
The model works out what each word means from the words around it. So the words around your question matter just as much as the question. “Write a letter” and “Write a letter to my landlord about the broken heater, firm but polite” are different requests, because every word you add shifts what the others mean.
That’s why giving the backstory works, and why one vague word can send an answer somewhere you didn’t expect.
Try this · 1 of 2
Change one word
Then open a new chat and try “The bank was closed, so we walked to the next one.”
You’ll see a riverbank in the first answer and a money bank in the second.
Try this · 2 of 2
Add the backstory
Then ask again with “asking them to move their car from my driveway, friendly but clear.”
You’ll see the second note fits; the first is generic.
Why: every word you add changes how the model reads all the others.
The catch
The lines in the picture are drawn to show the idea, not measured from a real model. Real models do this many times over, in many layers at once, and nobody can fully read what each layer is doing.
Attention explains a lot. It doesn’t explain everything.
Remember
Meaning lives in context. Change one word and everything shifts, for the model and for you.
Next lesson1C.5, How it writes.→Facts checked November 2026. Checked again every three months. New, and still being tested with real beginners.