How RoPE Improves on Sinusoidal Positional Encoding
Sinusoidal encoding has a neat rotation property, but it breaks once the encoding goes through attention’s projection matrices. We expand the dot product to see why, then put RoPE through the same expansion and watch the absolute positions cancel out.