Term
RoPE
Meaning
A positional encoding method that gives a transformer information about token positions by rotating the query and key representations, rather than adding fixed position vectors to the input embeddings.
How papers use it 10 papers
LLaMA: Open and Efficient Foundation Language Models
Use Replaces the absolute positional embeddings in LLaMA and is applied at each layer of the network.
Qwen Technical Report
Use Chosen by QWEN as the mechanism for adding positional information to the model. The inverse frequency matrix used for the rotations is computed in FP32 rather than BF16 or FP16, which the authors adopt to favor accuracy. QWEN's choice follows its use in models such as PaLM and LLaMA.
Meaning Rotary Positional Embedding, a method that encodes token position by rotating the query and key vectors in attention. The rotation angles depend on position, so the attention scores reflect relative positions.
Gemma 2: Improving Open Language Models at a Practical Size
Use Used as the position encoding in Gemma 2, inherited from the first Gemma generation. The paper lists it among the architectural elements that Gemma 2 shares with Gemma 1, alongside the 8192-token context length and the GeGLU non-linearity.
Meaning A position encoding method that injects token position into attention by rotating the query and key vectors by position-dependent angles, so that attention scores reflect relative positions.
ChatGLM: A Family of Large Language Models from GLM-130B to GLM-4 All Tools
Use GLM-4 extends RoPE to a two-dimensional form for the 2D positional encoding used in GLM.
Meaning Rotary positional embedding, which encodes position by rotating query and key vectors.
Retentive Network: A Successor to Transformer for Large Language Models
Use Cited as a relative position method with a formulation similar to the retention query-key form, alongside xPos, in the comparison with prior position-encoding approaches for Transformers.
Meaning A rotary relative position embedding for Transformers that rotates query and key vectors by position-dependent angles, so their dot product depends on the relative position between tokens.
Single-Transformer Latent Diffusion
Use Provides the positional encoding in the shared DiT blocks of the backbone. In this paper, each pixel patch, latent token and noisy latent token at one sequence index shares the same RoPE position, which is what makes the three modes position-aligned.
Meaning Rotary position embedding, a positional encoding that injects token position by rotating query and key vectors inside attention, so that attention scores depend on relative position.
Code Llama: Open Foundation Models for Code
Use The long-context stage raises its base period from 10,000 to 1,000,000.
Meaning Rotary position embedding, which encodes token position by rotating query and key vectors by position-dependent angles.
Gemma: Open Models Based on Gemini Research and Technology
Use Applied in every layer of the Gemma models in place of absolute positional embeddings. The authors also tie the input and output embeddings to reduce model size, which is a separate design choice alongside this positional scheme.
Meaning Rotary positional embeddings, a method that encodes token positions by rotating query and key vectors through position-dependent angles, so that attention scores depend on relative position.
The Llama 3 Herd of Models
Use Used as the positional embedding of Llama 3. The paper raises the RoPE base frequency to 500,000 to better support long contexts, citing prior work that found this value effective for context lengths up to 32,768.
Meaning Rotary position embeddings, a way of encoding token positions by rotating query and key vectors through angles that depend on position. A base frequency parameter sets how quickly these rotations vary across dimensions.
A Comprehensive Overview of Large Language Models
Use Presented together with Alibi as one of the two widely used relative positional embeddings in LLMs.
Meaning A positional encoding that rotates the query and key vectors by an angle proportional to each token's position in the sequence. The resulting attention depends on relative positions, and its effect decays as the distance between tokens grows.