Sequence Tokens
(Click any token to focus Query attention)
Query Token: [it] (Index 8)
Self-Attention Affinity Rays from Focus Token
Line opacity & thickness = Softmax Probability $\alpha_{i,j}$
Attention Weight Matrix
Softmax(QKáµ / âdâ)
Rows: Query (i) | Cols: Key (j)
Inspection & Vector Math
qâ · kâ
Attention(Q, K, V) = Softmax( (Q · Káµ) / âd_k ) · V