Application of RoPE Rotation to a 2D Vector
The Rotary Positional Embedding (RoPE) rotation is applied to a two-dimensional vector by post-multiplying the vector by the corresponding 2D rotation matrix, . The resulting rotated vector's components are calculated as follows:
0
1
Tags
Ch.2 Generative Models - Foundations of Large Language Models
Foundations of Large Language Models
Foundations of Large Language Models Course
Computing Sciences
Related
Application of RoPE Rotation to a 2D Vector
RoPE Frequency Parameters
Definition of the 2x2 RoPE Rotation Matrix Block
RoPE Parameter Vector Definition
Definition of RoPE Parameter Vector (θ)
A language model encodes token positions by applying a unique, position-dependent rotational transformation to each token's initial embedding. The final, position-aware embedding for a token is the result of this transformation. If the exact same token (e.g., 'model') appears at position 4 and later at position 12 in a sequence, which statement best describes the relationship between their final embeddings, and ?
RoPE 2D Vector Rotation Formula
Formula for RoPE-Encoded Token Embedding
Uniqueness of RoPE-based Embeddings
Debugging a RoPE Implementation
Application of RoPE Rotation to a 2D Vector
Definition of the 2x2 RoPE Rotation Matrix Block
A developer is implementing a function to rotate a 2D row vector
vcounter-clockwise by an angleθ. The operation is performed by post-multiplying the vector by a 2x2 matrixR(i.e.,v_rotated = vR). Which of the following matrices correctly represents this transformation?Constructing a 90-Degree Rotation Matrix
Consider a transformation applied to a 2D row vector
vby post-multiplying it with a matrixR(i.e.,v_rotated = vR). The matrix correctly performs a counter-clockwise rotation of the vector by an angle θ.
Learn After
A two-dimensional vector is represented as
x = [3, 4]. Calculate the resulting vector after applying a rotational transformation with an angleθ = 90°(π/2 radians).Consider the transformation applied to a two-dimensional vector by an angle , resulting in a new vector . This transformation will always alter the magnitude (or length) of the original vector .
Analysis of Rotational Transformation Properties