Rotary positional embedding (RoPE) is widely used in modern large language models, but recent evidence
suggests it can introduce inductive biases that hinder long-context reasoning, such as attention sink and
degraded mid-context sensitivity. In this ...
Rotary positional embedding (RoPE) is widely used in modern large language models, but recent evidence
suggests it can introduce inductive biases that hinder long-context reasoning, such as attention sink and
degraded mid-context sensitivity. In this work, we examine whether RoPE can be partially removed in
pretrained models—by converting selected attention heads to No Positional Encoding (NoPE)—without any
additional training.
Through systematic head- and layer-wise ablations on Llama-3.2-3B-Instruct evaluated with the RULER
benchmark at 4K–8K context lengths, we find that NoPE replacement is not uniformly harmful. While
early layers are highly sensitive to RoPE removal, later layers contain heads for which NoPE replacement
consistently improves performance. Both position–awareness–guided and random head selection can yield
gains, indicating that benefits arise from reducing positional bias rather than precise head identification.
Finally, attention analysis shows that NoPE replacement mitigates attention sink by redistributing attention
toward mid-context tokens. These results demonstrate that selective NoPE replacement at inference time can
improve long-context behavior in pretrained models without retraining.