Do traveling waves make good positional encodings?
Not on the map. Why?
Abstract (arXiv)
Transformers rely on positional encoding to compensate for the inherent permutation invariance of self-attention. Traditional approaches use absolute sinusoidal embeddings or learned positional vectors, while more recent methods emphasize relative encodings to better capture translation equivariances. In this work, we propose RollPE, a novel positional encoding mechanism based on traveling waves, implemented by applying a circular roll operation to the query and key tensors in self-attention. This operation induces a relative shift in phase across positions, allowing the model to compute attention as a function of positional differences rather than absolute indices. We show this simple method significantly outperforms traditional absolute positional embeddings and is comparable to RoPE. We derive a continuous case of RollPE which implicitly imposes a topographic structure on the query and key space. We further derive a mathematical equivalence of RollPE to a particular configuration of RoPE. Viewing RollPE through the lens of traveling waves may allow us to simplify RoPE and relate it to processes of information flow in the brain.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 13 of its 27 references that are in the map. First posted on arXiv 11 Nov 2025.
Builds on
13 of 27 references.
References · 13
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,361
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2024Rotary Position Embedding for Vision Transformercited by 236
- 2020On the Binding Problem in Artificial Neural Networkscited by 233
- 2024Round and Round We Go! What makes Rotary Positional Encodings useful?cited by 115
- 2022Complex-Valued Autoencoders for Object Discoverycited by 40
- 2024Artificial Kuramoto Oscillatory Neuronscited by 38
- 2023Rotating Features for Object Discoverycited by 29
- 2013Neuronal Synchrony in Complex-Valued Deep Networkscited by 28
- 2021Modeling Category-Selective Cortical Regions with Topographic Variational Autoencoderscited by 10
- 2023Computing with Residue Numbers in High-Dimensional Representationcited by 7
Built on by
Not cited yet.