Spin to Encode

Rotary Position Embedding (RoPE) encodes token position by applying a position-dependent rotation to query and key vectors before computing QK⊤QK^\top. What property does this rotation give the attention scores?

A

It compresses the key and value vectors into half their original dimensionality for faster inference

B

The dot product between a rotated query and key depends only on their relative position (the difference in their positions), not their absolute positions

C

It guarantees attention scores are always symmetric, so token ii attends to token jj exactly as much as jj attends to ii

D

It removes the need for the d\sqrt{d} scaling factor since rotation already normalizes vector magnitude