Formula

Period Matching Equation for RoPE Base Scaling

The period matching equation is a fundamental condition for adapting Rotary Positional Embeddings (RoPE) to handle sequence lengths different from the one it was trained on. The equation is expressed as: Ro(xi,iθ)=Ro(xi,iθ)Ro'(\mathbf{x}_i, i\theta) = Ro(\mathbf{x}_i, i\theta') This equation ensures that the scaled RoPE transformation (RoRo') applied with the original positional angle (heta heta) yields the same result as the original RoPE transformation (RoRo) applied with a scaled positional angle (heta heta'). Satisfying this condition preserves the relative positional encoding when extending the context length.

Image 0

0

1

Updated 2025-10-08

Contributors are:

Who are from:

Tags

Ch.3 Prompting - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences