Attention

  • ◷ 6 min
  • Beginner
  • 9 steps

How a model works out which earlier words matter for the word it is reading: “it” looks back and finds “the cat”.

Words
—
Weight on “cat”
—
All weights
—
Comparisons
—
  • “it”: the word that looks
  • line: how much it looks
  • not written yet