[0.00, 0.00, 0.00, 0.00]
"What is this token seeking?"-
"Which token has high overlap?"-
$\Sigma(\text{Weight} \times \text{Value})$Interactive Scaled Dot-Product Self-Attention Model
[0.00, 0.00, 0.00, 0.00]
"What is this token seeking?"-
"Which token has high overlap?"-
$\Sigma(\text{Weight} \times \text{Value})$1. Vector Projection (Q, K, V): Each input token is turned into three distinct learned vectors: a Query (what it searches for), a Key (what it contains for others), and a Value (the content it shares).
2. Dot-Product Scoring: Multiplying $Q$ of the active token by $K^T$ of every other token measures contextual relevance. Scaling by $\sqrt{d_k}$ prevents gradient saturation, and $softmax$ turns raw scores into normalized probabilities summing to 100%.
3. Multi-Head Parallelism: Different attention heads specialize independently—one head captures grammatical structure, while another resolves coreferences (e.g., linking the pronoun "it" back to "animal").