Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Multi-head attention with N heads of dimension d_head and a single head with dimension d_model = N × d_head have the same total parameter count. Why does multi-head consistently outperform in practice? Reference both the design rationale and interpretability findings.
Same parameters, but multi-head gives N parallel attention distributions per query; a single big head only gives one. Interpretability shows heads specialize.
Imagine you have the same total amount of paint, but you have to choose between one giant brush and a dozen smaller brushes you can use in parallel. The giant brush forces every stroke to do every job at once, outlines, shadows, highlights, and the result is a blurry compromise. The twelve smaller brushes can each focus on one thing. One paints outlines, another paints shadows, another paints highlights. When you layer the strokes together, the finished painting is much richer, even though you used exactly the same amount of paint. Multi-head attention works the same way.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
Walk through the parameter count equivalence; the rank-1-per-head structural argument; emergent specialization findings (Voita, Clark, Olsson); the head-pruning paradox and its resolution; and modern GQA/MQA variants confirming query side diversity matters most.
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Attributing the multi-head win to extra parameters or extra capacity, it's neither; it's parallel attention patterns at the same parameter budget.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.