Rotary Position Encodings for Graphs
Not on the map. Why?
Abstract (arXiv)
We study the extent to which rotary position encodings (RoPE), a recent transformer position encoding algorithm broadly adopted in large language models (LLMs) and vision transformers (ViTs), can be applied to graph-structured data. We find that rotating tokens depending on the spectrum of the graph Laplacian efficiently injects structural information into the attention mechanism, boosting performance in synthetic and real-world graph learning tasks. This approach, coined _Wave-Induced Rotary Encodings_ (WIRE), enjoys intriguing theoretical properties: it recovers regular RoPE on grids, and depends asymptotically on the graph effective resistance. Unlike bias-based relative position encodings, WIRE is compatible with linear attention.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 41 of its 63 references that are in the map. First posted on arXiv 26 Sep 2025.
Builds on
41 of 63 references.
References · 41
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2017Graph Attention Networkscited by 8,923
- 2016PointNet: Deep Learning on Point Sets for 3D Classification and Segmentationcited by 5,248
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2018How Powerful are Graph Neural Networks?cited by 4,393
- 2015ShapeNet: An Information-Rich 3D Model Repositorycited by 2,897
- 2020Open Graph Benchmark: Datasets for Machine Learning on Graphscited by 2,163
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
- 2020Big Bird: Transformers for Longer Sequencescited by 1,684
- 2020Rethinking Attention with Performerscited by 1,601
- 2018Self-Attention with Relative Position Representationscited by 1,120
- 2018Weisfeiler and Leman Go Neural: Higher-order Graph Neural Networkscited by 881
29 more
- 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 740
- 2020PCT: Point cloud transformercited by 732
- 2022Recipe for a General, Powerful, Scalable Graph Transformercited by 713
- 2020A Generalization of Transformer Networks to Graphscited by 661
- 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 601
- 2021Rethinking Graph Transformers with Spectral Attentioncited by 473
- 2019Provably Powerful Graph Networkscited by 389
- 2021Graph Neural Networks with Learnable Structural and Positional Representationscited by 333
- 2022Long Range Graph Benchmarkcited by 263
- 2022Sign and Basis Invariant Networks for Spectral Graph Representation Learningcited by 179
- 2023On Over-Squashing in Message Passing Neural Networks: The Impact of Width, Depth, and Topologycited by 166
- 2023Rethinking the Expressive Power of GNNs via Graph Biconnectivitycited by 119
- 2023Understanding Oversquashing in GNNs through the Lens of Effective Resistancecited by 97
- 2023Attending to Graph Transformerscited by 83
- 2022Expander Graph Propagationcited by 75
- 2020Learning to Encode Position for Transformer with Continuous Dynamical Modelcited by 61
- 2021SCENIC: A JAX Library for Computer Vision Research and Beyondcited by 57
- 2018Spectrally approximating large graphs with smaller graphscited by 56
- 2020A Large-Scale Database for Graph Representation Learningcited by 55
- 2021From block-Toeplitz matrices to differential equations on graphs: towards a general theory for scalable masked Transformerscited by 38
- 2021SHAPE: Shifted Absolute Position Embedding for Transformerscited by 37
- 2019Fast and Accurate Network Embeddings via Very Sparse Random Projectioncited by 29
- 2023Laplacian Canonization: A Minimalist Approach to Sign and Basis Invariant Spectral Embeddingcited by 21
- 2024Cayley Graph Propagationcited by 21
- 2025Learning the RoPEs: Better 2D and 3D Position Encodings with STRINGcited by 19
- 2022Affinity-Aware Graph Networkscited by 17
- 2024Linear Transformer Topological Masking with Graph Random Featurescited by 7
- 2024Masked Graph Transformer for Large-Scale Recommendationcited by 5
- 2023Multiresolution Graph Transformers and Wavelet Positional Encoding for Learning Hierarchical Structurescited by 4
Built on by
Citing papers per year: 2026: 2.
2 papers.
- 2026Analytic-Walk Rotary Positional Encodings for Graphscited by 0
- 2026Asymptotic Behavior of Transformerscited by 0
- 2026Asymptotic Behavior of Transformers14 Oct 2026
- 2026Analytic-Walk Rotary Positional Encodings for Graphs26 Sep 2026