Dot-product attention computes how strongly each token should relate to other positions. It projects token embeddings into queries (Q), keys (K), and values (V), scores queries against keys with dot products, scales by the key dimension, normalizes with softmax, and combines values into context-aware representations. section 3.1.1
Resolving a reference
In “The cat sat on the mat because it was tired,” self-attention can assign strong relevance between “it” and “the cat,” helping produce a context-aware representation that preserves the intended reference. section 3.1.1


