Loading slide

What Attention Means

  1. 01What Attention Means
  2. 02What attention is for
  3. 03Memory card
  4. 04Which word matters right now?
  5. 05It's just a weighted blend
  6. 06Looking, advertising, offering
  7. 07Catch your breath
  8. 08Watch it lean
  9. 09Take a breath
  10. 10All at once, not one at a time
  11. 11More than one kind of relevance
  12. 12Reinforce your understanding
  13. 13Question: Computing relevance
  14. 14Question: Why parallel matters
  15. 15Question: The distance problem, gone
  16. 16Quiz: answer
  17. 17What to carry out of this chapter
  18. 18Want to go deeper?
5 / 17
BackNext

It's just a weighted blend

You just recalled what a weight is: a dial for how much to listen to something. Attention is that dial, turned word by word. That is the mechanism, so let's see it concretely.

The scores from the last slide, how much each word matters to "it," become a set of weights, one per word. A big weight on "trophy," a big weight on "big," tiny weights on "the" and "because." Now the machine does the obvious thing with weights: it takes a blend.

Think of mixing paint. Every word in the sentence carries its own splash of colour (its , the numbers that stand for its meaning). To work out a richer, context-aware version of "it," the machine pours in a lot of "trophy," a lot of "big," and only a faint trace of every other word. Mix those together in those proportions, and out comes a new colour: an "it" that has absorbed "trophy" and "big," exactly the words it needed.

That blend is attention. The fancy word "attention" hides a plain action: a weighted average of all the words, where the weights say who matters right now. High weight, large pour. Low weight, barely a drop.

And notice what this buys us, looking back at the last chapter. "Trophy" pours into "it" in a single step, directly, no matter how many words sit between them. There is no chain to fade along, because the relevant word is poured straight into the blend. The distance problem is simply gone.

One question remains, and it is the interesting one. We have been assuming the machine already knows that "trophy" matters to "it." But where do those weights actually come from? How does it score one word against another in the first place? That is the next slide, and it is the cleverest part.

Citations(2)↓
  1. 1. arxiv.org
  2. 2. research.google
Citations(2)↓
  1. 1. arxiv.org
  2. 2. research.google