Why multiple heads? A single attention head can only compute one relationship pattern per token at a time. Multi-Head Attention splits the $d_{\text{model}}$ vector across $h$ parallel subspaces, allowing each head to specialize in distinct linguistic patterns simultaneously.
Head 1: Syntactic Tracking ($\mathbf{W}_{Q1}, \mathbf{W}_{K1}, \mathbf{W}_{V1}$)Subspace $d_k = d_{\text{model}} / h = 64$
You're reading this because RASL is blocked on: why check multiple evidence signals in the verifier โ why not just one similarity score?
Multi-head attention shows why looking at the same data through multiple parallel "questions" produces richer representations. RASL's verifier uses both cos_sim and precision@k for the same reason. Return to reliable-agent-lab/agent/verifier.py and continue building. Read only what unblocks you.
๐จ Lab: M-05 โ MultiHeadAttention wrapper๐ Multi-head intuition โ verifier uses cos_sim + precision@k๐ View full parallel plan โ