Attention begins with dot-product scores between query and key vectors. This lesson shows the displayed integer Q and K vectors and the exact score grid they generate.
highlighted = computed this step
Attention scores
Each query vector is compared with each key vector by a dot product. The displayed Q and K vectors are integer pairs, so every score is an exact integer.
Sij=Qi⋅Kj
Exact score rows
The recomputed score rows are [1,0,1], [0,1,1], and [1,1,2].
S=101011112
Summary
The score grid is still only integer dot products. The next step changes which scores are allowed to contribute.