179 questions
No questions match those filters.
Explain mechanistically why RoPE contributes to the U-c...
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 Positional Embeddings (RoPE) encode position by rotating query and key vectors in a high-dimensional space. The dot product between these vectors, which determines attention scores, is sensitive to the relative rotation between the query and key. As the distance between tokens increases, the dot product decays. This creates an envelope where tokens far from the current decoding step or the initial system prompt receive less attention, purely as a function of their position. This mechanism is a primary driver of the ‘U-curve’ in model performance, where the model performs best at the edges of the context window.