Transformer Blocks: Preserve Width While Mixing Context and Features
Project before splitting
For D=4, H=2, each head has width 2.
Q/K/V projections inspect all four input features, then split their output columns.
Splitting raw inputs first restricts the attention mechanism.
1 / 8