Definition of the RoPE Sine Vector
In Rotary Positional Embeddings (RoPE), the sine vector for a position is a -dimensional vector represented as . It is constructed by taking the sine of the product of the position index and each respective frequency parameter . The formal definition is:
0
1
Tags
Ch.3 Prompting - Foundations of Large Language Models
Foundations of Large Language Models
Foundations of Large Language Models Course
Computing Sciences
Ch.2 Generative Models - Foundations of Large Language Models
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
Element-wise Formula for RoPE Rotation
Consider a system where positional information is encoded using periodic functions. A key component is a vector constructed for each position. Given a position index
i = 2and a set of frequency parametersθ = [π/2, π/4], what is the resulting 2-dimensional sine vector, defined as[sin(iθ₁), sin(iθ₂)]?Consider a method for encoding positional information where a
d-dimensional input vector is modified using periodic functions. In this method, a 'sine vector' is constructed for each positioni. This sine vector has a dimensionality equal tod.Determining Position Index from a Sine Vector