AI Glossary Term
What does “Multi-Head Attention” mean?
Definition
A transformer mechanism that runs several attention operations in parallel to capture different types of relationships.
How Multi-Head Attention works
Example
In one layer, one head may track which noun a pronoun refers to, while another focuses on neighboring words. Their results are combined into a richer representation.
Why it matters
Multiple heads let the model look at different relationships at once. Heads tend to specialize, though not always in neat human terms.
Common questions
How many heads?
It varies, from a handful to a hundred or more in large models.
How are head outputs combined?
They are concatenated and passed through a learned linear layer.
Does each head really specialize?
Some do, but many are redundant, and interpreting them is an active research area.