- Concepts
- Keeping up with ML innovation
- Machine learning
- Deep learning
- Neural network
- Transformer
- Positional encoding
- Rotary position embedding
Rotary position embedding
MethodRotary position embedding rotates query and key coordinate pairs according to position so attention dot products reflect relative displacement.
In plain terms: Telling attention where each token sits by rotating its query and key vectors by an angle that grows with position, so scores depend on distance between tokens.
For example: Llama models use rotary embeddings, and raising the base frequency from 10,000 to 500,000 in Llama 3.1 was part of extending context to 128K tokens.
Read
Papers
- Chen et al.: Extending Context Window of Large Language Models via Positional Interpolation (opens in a new tab)arXiv / paper authors · 2023
About this resource
Shows how rescaling rotary position indices (position interpolation) extends a RoPE model's context window with brief fine-tuning instead of extrapolating to unseen angles.
Where to read: Abstract, authors and submission history
Checked 2026-10-31
Authority for this purpose: arXiv / paper authors publishes this original research record.
Destination inspection: Bounded public-address-pinned GET followed by destination text and concept-scope inspection
Useful destination; no explanatory claim is asserted from this link.
- arXiv record is a preprint. Verified the abstract and version record; no claim of full-paper review or venue status from the arXiv URL.
Reviewed authoritative resource
Where to read: Abstract, authors and submission history
A first-party destination supports its documented scope; it does not establish independent performance validation or historical priority.
- RoFormer: Enhanced Transformer with Rotary Position Embedding (opens in a new tab)arXiv / original manuscript authors · 2021
About this resource
Encodes positions by rotating query and key vector pairs so attention interactions incorporate relative-position information.
Where to read: Rotary query/key position transformations and relative phase
Checked 2026-10-08
Authority for this purpose: Existing scholarly source independently inspected against this concept; publication category is kept distinct from preprint and instruction.
Destination inspection: Bounded GET; public DNS/IP pinned; redirect-by-redirect validation; destination text inspection required; reviewed destination title, provenance and concept-specific subject
Useful destination; no explanatory claim is asserted from this link.
- Useful scoped source; attaching it does not establish historical priority or independent superiority. Author/archive copy; publication status is not inferred from the hosting URL. Verification covers the source record, abstract or official chapter routing; full linked text was not independently inspected unless separately noted in the receipt.
Attached reference
Original reference type: research preprint
Original reference verification scope: Bibliographic eligibility only; see scoped relationship evidence.
Introduction attribution in the ontology
Relationship: introducedIn · outgoing
The checked primary text presents the named contribution under the stated scope.
Relationship scope: Introduces named RoPE and describes rotation-based absolute encoding with relative-position dependence in attention. The preprint date and the inspected version date differ; neither supports unbounded-length extrapolation guarantees. No exclusive-inventor or universal earliest-priority claim is made.
Relationship review status: reviewed source-role attribution
Where to read: Abstract and submission history: first arXiv submission 20 April 2021; inspected current revision is v5, 2023.
Open the cited evidence (opens in a new tab)
Original reference type: research preprint
Original reference verification scope: Bibliographic eligibility only; see scoped relationship evidence.
A selected publication link does not by itself establish original invention or verify every claim.
Reviewed authoritative resource
Where to read: Rotary query/key position transformations and relative phase
A first-party destination supports its documented scope; it does not establish independent performance validation or historical priority.
Related concepts
Prerequisites
- AttentionMethod
- Matrix multiplicationMethod
Broader
- Positional encodingMethod
Narrower
Related
- Context windowSpecification
- Attention with linear biasesMethod
Papers and people
Books to go deeper
Natural Language Processing with Transformers
Lewis Tunstall, Leandro von Werra and Thomas Wolf · Revised edition
Transformer architectures, tokenization, training and practical NLP workflows.
View on Amazon (affiliate link) ↗Deep Learning
Ian Goodfellow, Yoshua Bengio and Aaron Courville · 2016 edition
Mathematical and neural-network foundations. Predates modern Transformers.
View on Amazon (affiliate link) ↗As an Amazon Associate I earn from qualifying purchases.
Loading discussion…
