Multi-Head Attention
Category: Neural Networks & Architectures
An extension of attention that runs multiple attention operations in parallel with different learned projections, capturing diverse relationship patterns.
Full Explanation
Multi-head attention runs multiple self-attention operations (heads) in parallel, each with its own learned linear projections of queries, keys, and values. The outputs from all heads are concatenated and linearly projected to produce the final output. Each head can learn to attend to different types of relationships: one might focus on syntactic dependencies, another on semantic similarity, and yet another on positional proximity. The original Transformer used 8 heads, while larger models use 32 to 128 heads. Multi-head attention provides richer representational capacity than single-head attention at the same computational cost. It is a fundamental component of every transformer layer. Research has shown that different heads do indeed specialize in capturing different linguistic phenomena.
Related Terms
More in Neural Networks & Architectures
Explore More
- AI Tools Library — Discover AI tools related to Multi-Head Attention
- AI Education — Courses to learn about Neural Networks & Architectures
- AI News — Latest news and updates