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 pricing

Real-world example

No real-world example available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Common mistakes

No common mistakes listed yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Follow-up questions

No follow-up questions available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

More Computer Vision interview questions

View all →