Rotary Positional Embedding (RoPE) (RoPE)

Also known as: RoPE, rotary embedding

Quick definition

A transformer position-encoding technique that rotates query and key representations according to token positions.

A transformer position-encoding technique that rotates query and key representations according to token positions.

RoPE introduces relative-position information into attention calculations and is widely used in autoregressive language models.

Example: An LLM uses RoPE so attention can distinguish the order of identical words in different positions.

Common use cases: Transformer architecture, sequence modeling, and long-context language models.

Examples

  • An LLM uses RoPE so attention can distinguish the order of identical words in different positions.

Use cases

  • Transformer architecture, sequence modeling, and long-context language models.

Frequently asked questions

What is Rotary Positional Embedding (RoPE)?

A transformer position-encoding technique that rotates query and key representations according to token positions.

What should I know about Rotary Positional Embedding (RoPE)?

RoPE introduces relative-position information into attention calculations and is widely used in autoregressive language models.

Categories and tags