179 questions
No questions match those filters.
Explain RoPE. How does it differ from absolute position...
This is one of the questions in the full AI/ML interview bank. Pro unlocks all 1789 questions; Premium includes the same bank plus the highest daily Practice limit.
See plansRotary Position Embedding (RoPE) encodes positional information by rotating query and key vectors in the complex plane, such that the attention dot product between position m and n depends solely on the relative offset (m - n). This is a significant departure from absolute positional embeddings, which inject position information directly into the residual stream before the attention layers. Because absolute embeddings are tied to specific positions, they often fail when the model encounters sequence lengths longer than those seen during training. RoPE is applied at every attention head and is inherently more robust, allowing for better generalization and compatibility with length extension techniques like YaRN or RoPE scaling.