Skip to main content

Multi-Head Attention

Multi-Head Attention

  • Core concepts
  • Stage 4 · Under the Hood
  • refs checked 2026-11-09
What problem it solves

Lets a model look at a sentence from several angles at once, instead of tracking only one kind of relation.

What it is
Repeats the attention computation several times, each pass focusing on a different kind of relation, then combines the results. The original paper used 8 heads — like 8 readers examining the same sentence simultaneously.
Why it matters

A single attention pass yields a single kind of understanding. Multiple heads capture grammar, coreference, and adjacency at the same time.

Sources
  • Attention Is All You Need §3.2 (paper) ↗
Use this term in a task

Don’t stop at the definition: use the task handbook for the order and checks, or filter three tool candidates for the job at hand.

Task handbooks → · Filter three candidates →