Rotary position embedding's relative-position-dependent attention-score property is specifically what helps RoPE-based models generalize reasonably well to sequence lengths somewhat longer than whatever specific sequence length that particular model was actually originally trained on, since the model's learned attention behavior depends only on each token pair's own relative position difference rather than on either token's own absolute position within the sequence. This relative-position generalization property is one of RoPE's genuinely significant practical advantages over the original Transformer's absolute positional encoding scheme, which instead has no equivalent inherent mechanism for generalizing cleanly to sequence lengths longer than its own original training-time sequence length.