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?
2 / 17
BackNext

This chapter explains the most important machine in modern AI, so let us be very clear about the one job it does before we open it up. If you hold this, the rest will make sense.

Two chapters ago, in the embeddings module, we hit a wall. A word like "bank" means different things in "river bank" and "bank account," but a fixed position in the space of meaning can only put "bank" in one spot. We said the fix was to recompute each word's position from the words around it, every time, and that doing so needed a special machine we had not built yet.

Attention is that machine. That is its entire purpose: to take each word and adjust its meaning based on the other words in the sentence, so "bank" lands near "river" in one sentence and near "money" in another.

That is all attention is for. Everything in this chapter, the leaning, the blending, the want-ads and folders, is just how it pulls that off. So as the mechanics arrive, keep asking one question: how does this help a word take on colour from its neighbours? Because that, and only that, is what attention is solving.

Citations