The dot product supplies alignment. The factor \(1/\sqrt{d_k}\) controls scale. Softmax later converts all scores for query \(m\) into weights, but RoPE acts earlier, on \(\mathbf q_m\) and \(\mathbf k_n\).
Let \(\mathbf q=(1,0)\). Then \(\mathbf q^{\mathsf T}(1,0)=1\), while \(\mathbf q^{\mathsf T}(0,1)=0\). Rotating a key changes its alignment with the query even though its length stays one.
Retrieval check
Which pair does original RoPE rotate?
Practice before moving on
Compute \((1,2)^{\mathsf T}(3,4)\).
Which has greater alignment with \((1,0)\): \((0.8,0.2)\) or \((0.2,0.8)\)? Show the two dot products.
Write the scaled score for \(d_k=4\), \(\mathbf q=(1,2)\), and \(\mathbf k=(3,4)\).
State in one sentence why RoPE rotates \(Q\) and \(K\), not only \(V\).
If \(R_m=I\) and \(R_n\) is a quarter turn, compute \((R_m(1,0))^{\mathsf T}(R_n(1,0))\).
Check solutions
\(11\).
\((0.8,0.2)\); the scores are \(0.8\) and \(0.2\).
\(11/\sqrt4=5.5\).
The query-key dot product creates the comparison score that needs positional information.
\((1,0)^{\mathsf T}(0,1)=0\).
Keep the scope narrow: to understand RoPE, you need the query-key score. You do not yet need multi-head concatenation, masking, or the output projection.