Queries, Keys & Values: Contextualizing Ambiguous Words
In `"The animal didn't cross the street because it was too tired"`, what does **`"it"`** refer to? Static embeddings can’t tell—`"it"` must dynamically gather evidence from earlier tokens.
Each token projects into three vectors: a **Query ($Q$)** asking *"what context do I need?"*, a **Key ($K$)** advertising *"what information do I hold?"*, and a **Value ($V$)** carrying the payload to blend into the output. Watch the bold cobalt beam linking **`"it"`** straight back to **`"animal"`**!
idea:Click any word on the left column or hover any cell in the heatmap on the right to inspect live Q·Kᵀ dot-product scores in the Math Inspector.