Transformers need positional information because they process a whole context at once. RoPE supplies it by rotating pairs of values in attention queries and keys at different rates, so their relative rotations encode token distance. The method may waste representational capacity: fast rotations can disrupt semantic comparisons, while very slow rotations contribute little positional information. The evidence suggests the model uses RoPE in three ways: fast-moving pairs track exact nearby offsets, middle-rate pairs provide a rough distance signal, and slow pairs mainly carry semantic content. In a test with SmolLM-135M, removing contributions from pairs that had rotated at least twice damaged exact recall beyond 32 tokens but barely affected ordinary prose performance. This indicates that long-range positional detail matters for specialized recall more than for typical language tasks.
Alternative designs assign these functions directly rather than asking the model to learn around rotations. Thinky’s Inkling models use short convolutions to represent nearby token offsets and learned, query-dependent relative-position biases for distances within the local window or the latest 1,000 tokens. Beyond that range, they omit positional encoding. Other approaches, including partial RoPE and HiSA’s suppression of attention contributions at large relative angles, also suggest that extensive rotation can be unnecessary or even counterproductive. The overall case is not that position never matters, but that models likely need precise local cues and some medium-range distance information - not elaborate positional signals across the entire context. Causal attention itself can also provide a rough sense of position, enabling models to work without RoPE in some layers.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.