Skip to content

Attention Head

One of the parallel attention mechanisms in a transformer. Each head learns to track its own type of relationships: who refers to whom, which words are grammatically related.

Why Multiple Heads

One head sees one aspect, multiple heads see different ones. Together they form multi-head attention: the model 'looks' at the text from different angles simultaneously.

Example

One head may track pronouns ("she" → "Anna"), another the syntax, and a third the topic.

See Also

← All Terms