Skip to content
all lessons3.3●●●○○

How attention blends meaning

Q·K → scores → softmax → weighted sum of Values.

1Drag Sharpness to sharpen or blur the blend, then watch the shares redistribute.your turn
lookingleaned on
the
cat
drinks
milk

drinks looks hardest at cat · 61%

drinks splits 100% of its attention across the words (these add up to 100%):

the
6%
cat
61%
drinks
15%
milk
18%

Each share scales that word's Value, the meaning it carries (from 3.2); add them up and you get drinks's new meaning.

Each row's bar shows where that word looks. Drag Sharpness; the shares always add to 100%.

Step 1 / 5

You've reached the end of the free preview. The next lesson needs your pass:

During training the model could cheat by seeing the future…

3.4 Why it can't peek ahead