cswork / OAOpen practice workspace

MeshyOA #4

Q4. RoPE (MCQ)

Estimated MediumConcept questionStatement and editorial — judging is being prepared

Topics (AI-labelled)Bits & Math

How does Rotary Positional Embedding (RoPE) encode positional information?

  • Add a sinusoidal position vector to each token embedding before self-attention.
  • Apply a position-dependent rotation to Q and K vectors, encoding relative positions through phase differences. <- correct
  • Learn absolute positional embeddings and add them to token embeddings.
  • Modify attention scores by directly computing a learned bias based on token distance.

Editorial

Loading solution…