Multi-Head Attention (MHA)

A form of attention that runs several independent attention lookups in parallel, each focusing on a different aspect of meaning, then combines all their results.

Technically: Multi-Head Attention splits the model dimension into h heads, each with its own learned W_Q, W_K, W_V projections, runs scaled dot-product attention independently, then concatenates and linearly projects the outputs. Each head can specialize in different syntactic or semantic relations. The output dimension equals the input dimension, making it a drop-in residual block; head count and head dimension together trade capacity against compute.

Category: Attention Mechanisms

Related ideas