AI Glossary Term
What does “RoPE (Rotary Positional Embeddings)” mean?
Definition
A positional encoding method that rotates query and key vectors to encode relative token positions.
How RoPE (Rotary Positional Embeddings) works
Example
Two tokens three places apart get rotated by amounts whose difference depends only on that gap. Attention can then favor nearby tokens in a way that works wherever in the text the pair appears.
Why it matters
RoPE is used in many popular open models and supports techniques that extend context length. It encodes relative position directly in attention.
Common questions
Who proposed RoPE?
Su and colleagues in the 2021 RoFormer paper.
Can RoPE models handle longer text than they trained on?
Not automatically, but scaling tricks can extend usable context, often with some fine-tuning.
RoPE vs absolute encoding?
Absolute encoding marks each token's place; RoPE encodes how far apart tokens are.