Four Pours, One Vector

AttentionMedium+20 XP+20

Four Pours, One Vector

A head is reading "the black cat slept". The token "slept" has already done its scoring and its softmax, so its attention weights are settled:

tokenattention weight
the0.100.100.10
black0.250.250.25
cat0.450.450.45
slept0.200.200.20

Every token in the sentence projected a key and a value. Both tables are given in full:

tokenkeyvalue
the[ 1, 1, 0 ][\,1,\ 1,\ 0\,][1, 1, 0][ 3, −2, 1 ][\,3,\ -2,\ 1\,][3, −2, 1]
black[ 4, 1, 1 ][\,4,\ 1,\ 1\,][4, 1, 1][ 5, 0, −3 ][\,5,\ 0,\ -3\,][5, 0, −3]
cat[ 0, −3, 2 ][\,0,\ -3,\ 2\,][0, −3, 2][ −1, 4, 2 ][\,-1,\ 4,\ 2\,][−1, 4, 2]
slept[ −2, 5, 3 ][\,-2,\ 5,\ 3\,][−2, 5, 3][ 2, 2, 6 ][\,2,\ 2,\ 6\,][2, 2, 6]

The blending stage produces one context vector for "slept".

What is the third component of that context vector?

Round your answer to 2 decimal places.

the0.15 × [0.2, 0.1]
cat0.70 × [0.9, -0.4]
sat0.15 × [-0.3, 0.7]
↓ sum
0.61
-0.16

Add them up and one vector comes out — the context vector. Same size as any single value, but built from all of them.

Hints

Solve it to unlock the solution

Once you get it right, the reasoning behind the answer shows up here.