Multi-head attention splits an attention mechanism into separate heads. Each head analyzes a different chunk of an embedding vector, so the model can specialize in several kinds of relationships at once. section 1.20
Specialized segments
Imagine one segment of an embedding vector handling animal-related information while another handles tree-related information. The vectors remain difficult to interpret, but separating the work into heads performs better in practice than using one head for the whole vector. section 1.20
Figure 1.10 The attention mechanism calculates the relative relevance of all tokens in the context window to contextualize or disambiguate the last token.
Use the attention figure to connect multiple heads with the broader task of comparing token relevance while contextualizing or disambiguating the last token. section 1.20













