Multi-Head Attention (MHA) (MHA)
Also known as: MHA
Quick definition
A neural-network operation that computes several parallel attention patterns and combines their outputs.
A neural-network operation that computes several parallel attention patterns and combines their outputs.
Different heads can focus on different token relationships, although a head does not necessarily correspond to an interpretable feature.
Example: A translation model attends to word order and agreement through multiple attention heads.
Common use cases: Transformer models, language translation, and sequence understanding.
Examples
- A translation model attends to word order and agreement through multiple attention heads.
Use cases
- Transformer models, language translation, and sequence understanding.
Frequently asked questions
What is Multi-Head Attention (MHA)?
A neural-network operation that computes several parallel attention patterns and combines their outputs.
What should I know about Multi-Head Attention (MHA)?
Different heads can focus on different token relationships, although a head does not necessarily correspond to an interpretable feature.