Periodicity of RoPE's Sine and Cosine Components
The sine and cosine functions, sin(iθ_k) and cos(iθ_k), which are fundamental components of Rotary Positional Embeddings (RoPE), are characterized by their periodicity. The period of these functions is a significant property related to how positional information is encoded.

0
1
Tags
Ch.3 Prompting - Foundations of Large Language Models
Foundations of Large Language Models
Foundations of Large Language Models Course
Computing Sciences
Related
Definition of the RoPE Cosine Vector
Definition of the RoPE Sine Vector
Periodicity of RoPE's Sine and Cosine Components
The application of a rotary positional embedding to a two-dimensional vector at position with frequency results in a new vector , where the components are calculated as:
Based on this structure, which statement best analyzes how the output vector's components are formed?
A positional encoding method transforms a two-dimensional vector at position into a new vector using the equations:
This transformation is considered non-linear with respect to the input vector because it involves trigonometric functions.
Matrix Representation of a 2D Rotary Transformation
Learn After
Formula for the Period of RoPE's Sine and Cosine Components
In a Rotary Positional Embedding system, a specific component
kuses sine and cosine functions of the positionito create a rotational transformation. For this component, these functions have a period ofT. How does the rotational transformation for this component at positionicompare to the rotational transformation at positioni + T?Analyzing the Role of Period Length in RoPE
Analyzing Positional Encoding in RoPE