What is multi-head attention in Vision Transformers?
Updated May 15, 2026
Short answer
Multi-head attention allows a model to attend to different representation subspaces simultaneously.
Deep explanation
Multi-head attention splits embeddings into multiple heads, each performing scaled dot-product attention independently. These heads learn different relationships (spatial patterns, textures, global context). Outputs are concatenated and linearly transformed, enabling richer representation learning than single-head attention.
Unlock with a Pro subscription to view this section.
View pricingReal-world example
No real-world example available yet.
Unlock with a Pro subscription to view this section.
Upgrade to ProCommon mistakes
No common mistakes listed yet.
Unlock with a Pro subscription to view this section.
Upgrade to ProFollow-up questions
No follow-up questions available yet.
Unlock with a Pro subscription to view this section.
Upgrade to Pro