Multi-head attention
Running several attention calculations in parallel, each learning to focus on a different kind of word relationship. The results are combined into a single output.
ⓘ Technical definition
h parallel attention heads whose outputs are concatenated then linearly projected: MultiHead(Q, K, V) = Concat(head₁, …, headₕ) Wᴼ, where headᵢ = Attention(Q Wᵢᵠ, K Wᵢᴷ, V Wᵢᵛ).