Attention head
One copy of the attention mechanism. A model runs several of these in parallel, each learning to notice a different kind of word relationship (subject–verb, adjective–noun, coreference, etc.).
ⓘ Technical definition
A single (Q, K, V) triplet with its own weight matrices Wᵠ, Wᴷ, Wᵛ; produces a d_head-dimensional output vector. d_head = d_model / h, where h is the total number of heads.