What is multi-head attention in a Transformer network, and how does it differ from…
- User
What is multi-head attention in a Transformer network, and how does it differ from single-head attention?
Assistant
Let me explain multi-head attention and how it differs from single-head attention in Transformer networks:
Single-head attention computes one set of attention weights between input elements using a single set of learned query (Q), key (K), and value (V) matrices. The attention weights determine how much each input element influences the output at each position.
Multi-head attention extends this by:
- Computing multiple independent attention "heads" in parallel
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.