Cascade Insights · AI explainer series
How a model works out what a word means, shown on a word you can watch move
"Bank" doesn't know what it means yet. A language model stores every word as a point in a . That stored spot is the word's . When a sentence arrives, lets the neighboring words pull the point to wherever it belongs in this sentence.
New to the vocabulary? Tap any dotted term for a plain-language definition, or .
Click a clue word to cover it up and watch its pull vanish. Hover any word to find it on the map. The small number under each word is its attention weightFor every word it processes, the model scores how relevant each neighbor is, then squashes those scores so they sum to 100%. The resulting percentages are attention weights: the mixing recipe deciding how much each neighbor contributes to the word's updated meaning. A real layer computes many recipes side by side, one per attention head. This page shows a single one, with numbers hand-tuned for teaching, but the shape of the calculation is real., meaning how hard it pulls on bank.
These are the three steps the Step through the pull button plays on the map. That is the whole trick, and it is the calculation the 2017 paper "Attention Is All You Need" takes its title from, run once for one word. The three moves happen in order, each one needing the result of the last.
The word bank asks every other word in the sentence how relevant are you to me? "River" scores high. "The" scores almost nothing. Those scores come straight out of the themselves, with no rulebook and no grammar involved. Nothing measures similarity directly. The comparison runs through .
The scores get , producing the recipe printed under each word above. One loud neighbor can claim most of the mix, or the pull spreads thin when nothing commits. Real layers run many of these budgets at once, one per , so a word ignored in one can decide the outcome in another.
The word's vector gets rewritten as a weighted blend: mostly its own dictionary spot, plus a dose of every neighbor in proportion to its weight. The blended point you watched travel is the word's , and it is what the rest of the model reads. Nothing touches the stored itself. Only the working copy changes.
Everything above used a word whose two senses are both common in ordinary writing, so its dictionary spot sat neatly between them. The words your industry runs on are not like that. In the , churn is overwhelmingly something that happens to cream rather than to customers. Its frozen spot therefore starts inside the everyday cluster instead of between the two, and business context has to drag it out.
That is the mechanical case for feeding a model your domain: a glossary, , a few worked examples, a . Beyond helping it pick between two readings, you are overcoming a built from text where your meaning of the word barely appears. It also explains why a general-purpose model handles your own industry's vocabulary worst of all, and why it stays every bit as fluent while getting it wrong.
Frozen "bank" sits between its meanings and close to neither, because it is the average of every sentence the word ever appeared in. That average is why the un-moved point floats in no-man's-land, and why a model that stopped there would understand nothing precisely.
"It", "she" and "they" carry almost no dictionary meaning. Nearly everything they mean in a sentence arrives by attention, pulled in from whatever they refer to. A pronoun is a point that travels the whole map.
You watched one word through one channel. A real layer runs dozens of attention heads at once, each with its own separate 100% budget. Some follow topic, others follow grammar, position, or what a pronoun refers to. A word that is nearly silent in the topical head can dominate the structural one. Every runs all of this simultaneously, so "river" is being sharpened by "bank" at the same moment.
This map blends raw dictionary points a single time. A (the T in GPT) stacks that operation dozens of deep, and after the first pass it is no longer blending words but the results of earlier blends. That is how "not the river" gets composed into one unit meaning excluding river-ness before anything attends to it. A single pass has no way to build something like that.
Each teaching case above isolates a specific weakness of a single attention pass: