Analytic-Walk Rotary Positional Encodings for Graphs
Not on the map. Why?
Abstract (arXiv)
Rotary position encodings make attention sensitive to relative position, but extending them to graphs requires choosing how graph structure enters the rotation. Previous works assign each node a rotation from spectral coordinates, so the rotary factor between two nodes depends only on their endpoints and cannot distinguish the routes connecting them. We introduce textitAnalytic-Walk Rotary Positional Encodings (AW-RoPE), which place the rotations on edges and sum the transported features over all walks, so contributions along different routes can reinforce or cancel. An exact variant evaluates the complete sum by a differentiable linear solve, and a sparse variant truncates it at a finite depth. We prove forward and parameter-derivative truncation bounds at fixed inputs and parameters. Both variants act on projected queries and keys, and the sparse recurrence also augments message-passing networks. Across five synthetic tasks both variants reduce nRMSE by 15--58% relative to the strongest baseline, and on real superpixel, peptide and OGB benchmarks the sparse recurrence attains the best mean on every dataset with Performer kernels and on twelve of thirteen datasets with GIN. Analysis shows that AW-RoPE can distinguish routes whose only cue is how two endpoints are connected, while node-wise rotary encodings cannot.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 23 of its 25 references that are in the map. First posted on arXiv 26 Sep 2026.
Builds on
23 of 25 references.
References · 23
- 2017Attention Is All You Needcited by 59,932
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2018How Powerful are Graph Neural Networks?cited by 4,355
- 2020Open Graph Benchmark: Datasets for Machine Learning on Graphscited by 2,148
- 2020Rethinking Attention with Performerscited by 1,584
- 2018Self-Attention with Relative Position Representationscited by 1,112
- 2018Predict then Propagate: Graph Neural Networks meet Personalized PageRankcited by 987
- 2022Recipe for a General, Powerful, Scalable Graph Transformercited by 702
- 2020A Generalization of Transformer Networks to Graphscited by 653
- 2021Rethinking Graph Transformers with Spectral Attentioncited by 468
- 2021Graph Neural Networks with Learnable Structural and Positional Representationscited by 326
- 2020ReZero is All You Need: Fast Convergence at Large Depthcited by 260
11 more
- 2022Long Range Graph Benchmarkcited by 258
- 2022Neural Sheaf Diffusion: A Topological Perspective on Heterophily and Oversmoothing in GNNscited by 208
- 2022Sign and Basis Invariant Networks for Spectral Graph Representation Learningcited by 176
- 2023Exphormer: Sparse Transformers for Graphscited by 166
- 2023Graph Inductive Biases in Transformers without Message Passingcited by 150
- 2022NAGphormer: A Tokenized Graph Transformer for Node Classification in Large Graphscited by 137
- 2020Directional Graph Networkscited by 132
- 2021MagNet: A Neural Network for Directed Graphscited by 104
- 2024Benchmarking Positional Encodings for GNNs and Graph Transformerscited by 13
- 2025Polynomial Neural Sheaf Diffusion: A Spectral Filtering Approach on Cellular Sheavescited by 8
- 2025Rotary Position Encodings for Graphscited by 1
Built on by
Not cited yet.