Rotation mechanics, frequency spectra, and distance-dependent attention decay.
RoPE encodes position by rotating Q and K vectors in 2D subspaces:
where m is position and θi = 10000-2i/d for dimension pair i.
The dot product between positions m and n becomes:
Attention naturally decays with position distance |m-n|.
This creates predictable attention patterns:
We exploit this for RoPE-aware prefetching — tokens near the current decode position are prefetched with higher priority.
RoPE-derived distance can be used as one prefetch hint, but no prefetch-hit-rate improvement is measured in this work. Any benefit must be validated on real attention traces and target hardware.