atlas

Research map / Architectures and efficiency / Attention and transformers

Round and Round We Go! What makes Rotary Positional Encodings useful?

ICLR 2025 · Architectures and efficiency › Attention and transformers · approach: Transformer expressivity and learnability · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Analyzes how a trained Gemma 7B uses RoPE frequencies, showing high frequencies build positional heads and low frequencies act as semantic channels, and proposes p-RoPE, which truncates the lowest RoPE frequencies and improves perplexity for Gemma 2B models.

Problem

Why RoPE is useful in LLMs is poorly understood; the common belief that it helps decay attention with relative distance relies on unrealistic constant queries and keys.

Approach

Mechanistic analysis of Gemma 7B's RoPE frequency usage shows the highest frequencies create robust positional attention, while the lowest frequencies carry semantic information but cannot be robust over long contexts; truncating the lowest frequencies (p-RoPE) gives robust semantic channels.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
truncate the lowest frequencies, keeping 0.75 of RoPE frequencies (ablation)Gemma 2B · Wiki validationperplexity: 4.4627 -> 4.4414Helped
truncate the lowest frequencies, keeping 0.75 of RoPE frequencies (ablation)Gemma 2B · FlanV2 validationperplexity: 6.4429 -> 6.4422Helped
truncate the lowest frequencies, keeping only 0.25 of RoPE frequencies (ablation)Gemma 2B · Wiki validationperplexity: 4.4414 -> 4.5302Hurt
truncate the lowest frequencies, keeping only 0.25 of RoPE frequencies (ablation)Gemma 2B · FlanV2 validationperplexity: 6.4422 -> 6.5111Hurt
increase the base wavelength from θ=10k to θ=500kGemma 2B · Wiki validationperplexity: 4.4627 -> 4.4485Helped
increase the base wavelength from θ=10k to θ=500kGemma 2B · FlanV2 validationperplexity: 6.4429 -> 6.4593Hurt
remove RoPE positional encodingGemma 2B · Wiki validationperplexity: 4.4627 -> 4.8594Hurt
remove RoPE positional encodingGemma 2B · FlanV2 validationperplexity: 6.4429 -> 6.6429Hurt
remove the highest frequencies instead of the lowest (ablation)Gemma 2B · Wiki validationperplexity: 4.4414 -> 4.4592Hurt
remove the highest frequencies instead of the lowest (ablation)Gemma 2B · FlanV2 validationperplexity: 6.4422 -> 6.4683Hurt
use partial RoPE instead of truncating the lowest frequencies (ablation)Gemma 2B · Wiki validationperplexity: 4.4414 -> 4.4537Hurt
use partial RoPE instead of truncating the lowest frequencies (ablation)Gemma 2B · FlanV2 validationperplexity: 6.4422 -> 6.4562Hurt

Surprising findings

Limitations

Experimental setup

Datasets: Wiki FlanV2 Shakespeare quotes

Benchmarks: Wiki validation perplexity FlanV2 validation perplexity

Metrics: validation perplexity mean 2-norm per RoPE frequency chunk attention coefficients

Baselines: NoPE RoPE RoPE theta=500k 0.75-RoPE reversed RoPE partial

Builds on: RoPE NoPE ALiBi Llama 3 long-context base wavelength increase

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy