Concept

Dot Product of RoPE-Encoded Vectors as a Function of Relative Position

When analyzing Rotary Positional Embeddings in 2D Euclidean space, the dot product of two rotated vectors, Ro(x, tθ) and Ro(y, sθ), is shown to be a function of the relative position term (t − s)θ. This demonstrates that, similar to the inner product in complex space, the dot product in Euclidean space also inherently models the positional offset between tokens.

Image 0

0

1

Updated 2026-04-29

Contributors are:

Who are from:

Tags

Ch.2 Generative Models - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences