Comparing Graph Transformers via Positional Encodings
Not on the map. Why?
Abstract (arXiv)
The distinguishing power of graph transformers is closely tied to the choice of positional encoding: features used to augment the base transformer with information about the graph. There are two primary types of positional encoding: absolute positional encodings (APEs) and relative positional encodings (RPEs). APEs assign features to each node and are given as input to the transformer. RPEs instead assign a feature to each pair of nodes, e.g., graph distance, and are used to augment the attention block. A priori, it is unclear which method is better for maximizing the power of the resulting graph transformer. In this paper, we aim to understand the relationship between these different types of positional encodings. Interestingly, we show that graph transformers using APEs and RPEs are equivalent in terms of distinguishing power. In particular, we demonstrate how to interchange APEs and RPEs while maintaining their distinguishing power in terms of graph transformers. Based on our theoretical results, we provide a study on several APEs and RPEs (including the resistance distance and the recently introduced stable and expressive positional encoding (SPE)) and compare their distinguishing power in terms of transformers. We believe our work will help navigate the huge number of choices of positional encoding and will provide guidance on the future design of positional encodings for graph transformers.
Key facts. Cited by 20 papers in the map (data through 7 Oct 2026). Builds on 30 of its 41 references that are in the map. First posted on arXiv 22 Feb 2024.
Builds on
30 of 41 references.
References · 30
- 2017Attention Is All You Needcited by 59,932
- 2018How Powerful are Graph Neural Networks?cited by 4,355
- 2017Neural Message Passing for Quantum Chemistrycited by 3,460
- 2016Gaussian Error Linear Units (GELUs)cited by 3,431
- 2017Deep Setscited by 1,394
- 2018Self-Attention with Relative Position Representationscited by 1,112
- 2022Recipe for a General, Powerful, Scalable Graph Transformercited by 702
- 2020Benchmarking Graph Neural Networkscited by 672
- 2020A Generalization of Transformer Networks to Graphscited by 653
- 2021Rethinking Graph Transformers with Spectral Attentioncited by 468
- 2019Provably Powerful Graph Networkscited by 385
- 2018Invariant and Equivariant Graph Networkscited by 339
18 more
- 2020Can Graph Neural Networks Count Substructures?cited by 235
- 2022Sign and Basis Invariant Networks for Spectral Graph Representation Learningcited by 176
- 2023Graph Inductive Biases in Transformers without Message Passingcited by 150
- 2021GraphiT: Encoding Graph Structure in Transformerscited by 146
- 2023Rethinking the Expressive Power of GNNs via Graph Biconnectivitycited by 119
- 2020Expressive Power of Invariant and Equivariant Graph Neural Networkscited by 100
- 2023Attending to Graph Transformerscited by 81
- 2022A Short Tutorial on The Weisfeiler-Lehman Test And Its Variantscited by 52
- 2023Transformers Meet Directed Graphscited by 39
- 2021From block-Toeplitz matrices to differential equations on graphs: towards a general theory for scalable masked Transformerscited by 38
- 2023An Empirical Study of Realized GNN Expressivenesscited by 33
- 2016Magnetic Eigenmaps for the Visualization of Directed Networkscited by 25
- 2023Fine-grained Expressivity of Graph Neural Networkscited by 25
- 2023Edgeformers: Graph-Empowered Transformers for Representation Learning on Textual-Edge Networkscited by 23
- 2023On Structural Expressive Power of Graph Transformerscited by 19
- 2022Weisfeiler-Lehman meets Gromov-Wassersteincited by 14
- 2023Three iterations of (d-1)-WL test distinguish non isometric clouds of d-dimensional pointscited by 9
- 2023The Weisfeiler-Lehman Distance: Reinterpretation and Connection with GNNscited by 7
Built on by
Citing papers per year: 2024: 6; 2025: 9; 2026: 5.
20 papers.
Sort:
By area:
- 2025Relational Transformer: Toward Zero-Shot Foundation Models for Relational Datacited by 32
- 2025Learning Efficient Positional Encodings with Graph Neural Networkscited by 21
- 2024Benchmarking Positional Encodings for GNNs and Graph Transformerscited by 13
- 2025A Survey of Graph Transformers: Architectures, Theories and Applicationscited by 12
- 2024What Are Good Positional Encodings for Directed Graphs?cited by 7
- 2024CKGConv: General Graph Convolution with Continuous Kernelscited by 4
- 2025Homomorphism Expressivity of Spectral Invariant Graph Neural Networkscited by 4
- 2024Foundations and Frontiers of Graph Learning Theorycited by 3
- 2024A Hierarchical Language Model For Interpretable Graph Reasoningcited by 3
- 2024Graph Transformers Dream of Electric Flowcited by 2
- 2025Plain Transformers Can be Powerful Graph Learnerscited by 2
- 2025Generalizable Insights for Graph Transformers in Theory and Practicecited by 2
8 more
- 2025Graph Inference with Effective Resistance Queriescited by 1
- 2025Few-shot Learning on AMS Circuits and Its Application to Parasitic Capacitance Predictioncited by 1
- 2025From Small to Large: Generalization Bounds for Transformers on Variable-Size Inputscited by 1
- 2026Size Transferability of Graph Transformers with Convolutional Positional Encodingscited by 0
- 2026Understanding Truncated Positional Encodings for Graph Neural Networkscited by 0
- 2026A Weisfeiler-Leman Characterization of Global-Attention Graph Transformers for Mixed-Integer Linear Programscited by 0
- 2026Do Geometry-Aware Positional Encodings Help Transformers in Spatial Imperfect-Information Games?cited by 0
- 2026Converse and Collision-Based Achievability for Node Localization with Hybrid Distance-Spectral Graph Positional Encodingscited by 0
- 2026Converse and Collision-Based Achievability for Node Localization with Hybrid Distance-Spectral Graph Positional Encodings31 Aug 2026
- 2026Do Geometry-Aware Positional Encodings Help Transformers in Spatial Imperfect-Information Games?15 Aug 2026
- 2026A Weisfeiler-Leman Characterization of Global-Attention Graph Transformers for Mixed-Integer Linear Programs20 Jul 2026
- 2026Understanding Truncated Positional Encodings for Graph Neural Networks11 Jun 2026
- 2026Size Transferability of Graph Transformers with Convolutional Positional Encodings16 Feb 2026
- 2025From Small to Large: Generalization Bounds for Transformers on Variable-Size Inputs14 Dec 2025
- 2025Generalizable Insights for Graph Transformers in Theory and Practice11 Nov 2025
- 2025Relational Transformer: Toward Zero-Shot Foundation Models for Relational Data7 Oct 2025
- 2025Few-shot Learning on AMS Circuits and Its Application to Parasitic Capacitance Prediction9 Jul 2025
- 2025Plain Transformers Can be Powerful Graph Learners17 Apr 2025
- 2025Homomorphism Expressivity of Spectral Invariant Graph Neural Networks1 Mar 2025
- 2025Graph Inference with Effective Resistance Queries25 Feb 2025
8 more
- 2025A Survey of Graph Transformers: Architectures, Theories and Applications23 Feb 2025
- 2025Learning Efficient Positional Encodings with Graph Neural Networks3 Feb 2025
- 2024Benchmarking Positional Encodings for GNNs and Graph Transformers19 Nov 2024
- 2024A Hierarchical Language Model For Interpretable Graph Reasoning29 Oct 2024
- 2024Graph Transformers Dream of Electric Flow22 Oct 2024
- 2024What Are Good Positional Encodings for Directed Graphs?30 Jul 2024
- 2024Foundations and Frontiers of Graph Learning Theory3 Jul 2024
- 2024CKGConv: General Graph Convolution with Continuous Kernels21 Apr 2024
- 2025Relational Transformer: Toward Zero-Shot Foundation Models for Relational Datacited by 32
- 2025Learning Efficient Positional Encodings with Graph Neural Networkscited by 21
- 2024Benchmarking Positional Encodings for GNNs and Graph Transformerscited by 13
- 2025A Survey of Graph Transformers: Architectures, Theories and Applicationscited by 12
- 2024What Are Good Positional Encodings for Directed Graphs?cited by 7
- 2024CKGConv: General Graph Convolution with Continuous Kernelscited by 4
- 2025Homomorphism Expressivity of Spectral Invariant Graph Neural Networkscited by 4
- 2024Foundations and Frontiers of Graph Learning Theorycited by 3
- 2024Graph Transformers Dream of Electric Flowcited by 2
- 2025Plain Transformers Can be Powerful Graph Learnerscited by 2
- 2025Generalizable Insights for Graph Transformers in Theory and Practicecited by 2
- 2025Graph Inference with Effective Resistance Queriescited by 1
12 most cited of 19 All 19 (JSON)
- 2026Converse and Collision-Based Achievability for Node Localization with Hybrid Distance-Spectral Graph Positional Encodings31 Aug 2026
- 2026Do Geometry-Aware Positional Encodings Help Transformers in Spatial Imperfect-Information Games?15 Aug 2026
- 2026A Weisfeiler-Leman Characterization of Global-Attention Graph Transformers for Mixed-Integer Linear Programs20 Jul 2026
- 2026Understanding Truncated Positional Encodings for Graph Neural Networks11 Jun 2026
- 2026Size Transferability of Graph Transformers with Convolutional Positional Encodings16 Feb 2026
- 2025From Small to Large: Generalization Bounds for Transformers on Variable-Size Inputs14 Dec 2025
- 2025Generalizable Insights for Graph Transformers in Theory and Practice11 Nov 2025
- 2025Relational Transformer: Toward Zero-Shot Foundation Models for Relational Data7 Oct 2025
- 2025Few-shot Learning on AMS Circuits and Its Application to Parasitic Capacitance Prediction9 Jul 2025
- 2025Plain Transformers Can be Powerful Graph Learners17 Apr 2025
- 2025Homomorphism Expressivity of Spectral Invariant Graph Neural Networks1 Mar 2025
- 2025Graph Inference with Effective Resistance Queries25 Feb 2025
12 newest of 19 All 19 (JSON)