Simple Path Structural Encoding for Graph Transformers
Not on the map. Why?
Abstract (arXiv)
Graph transformers extend global self-attention to graph-structured data, achieving notable success in graph learning. Recently, random walk structural encoding (RWSE) has been found to further enhance their predictive power by encoding both structural and positional information into the edge representation. However, RWSE cannot always distinguish between edges that belong to different local graph patterns, which reduces its ability to capture the full structural complexity of graphs. This work introduces Simple Path Structural Encoding (SPSE), a novel method that utilizes simple path counts for edge encoding. We show theoretically and experimentally that SPSE overcomes the limitations of RWSE, providing a richer representation of graph structures, particularly for capturing local cyclic patterns. To make SPSE computationally tractable, we propose an efficient approximate algorithm for simple path counting. SPSE demonstrates significant performance improvements over RWSE on various benchmarks, including molecular and long-range graph datasets, achieving statistically significant gains in discriminative tasks. These results pose SPSE as a powerful edge encoding alternative for enhancing the expressivity of graph transformers.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 38 of its 55 references that are in the map. First posted on arXiv 13 Feb 2025.
Builds on
38 of 55 references.
References · 38
- 2017Attention Is All You Needcited by 59,932
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,282
- 2017Graph Attention Networkscited by 8,854
- 2018How Powerful are Graph Neural Networks?cited by 4,355
- 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
- 2020On the Bottleneck of Graph Neural Networks and its Practical Implicationscited by 624
- 2019Graph Transformer Networkscited by 520
- 2021Understanding over-squashing and bottlenecks on graphs via curvaturecited by 471
- 2021Rethinking Graph Transformers with Spectral Attentioncited by 468
26 more
- 2017Residual Gated Graph ConvNetscited by 341
- 2021OGB-LSC: A Large-Scale Challenge for Machine Learning on Graphscited by 328
- 2022Long Range Graph Benchmarkcited by 258
- 2022Neural Sheaf Diffusion: A Topological Perspective on Heterophily and Oversmoothing in GNNscited by 208
- 2022Representing Long-Range Context for Graph Neural Networks with Global Attentioncited by 193
- 2022Structure-Aware Transformer for Graph Representation Learningcited by 191
- 2023Exphormer: Sparse Transformers for Graphscited by 166
- 2021From Stars to Subgraphs: Uplifting Any GNN with Local Structure Awarenesscited by 154
- 2023Graph Inductive Biases in Transformers without Message Passingcited by 150
- 2021GraphiT: Encoding Graph Structure in Transformerscited by 146
- 2021Global Self-Attention as a Replacement for Graph Convolutioncited by 113
- 2023Specformer: Spectral Graph Neural Networks Meet Transformerscited by 102
- 2022A Generalization of ViT/MLP-Mixer to Graphscited by 93
- 2023DRew: Dynamically Rewired Message Passing with Delaycited by 81
- 2023Path Neural Networks: Expressive and Accurate Graph Neural Networkscited by 32
- 2023Graph Positional and Structural Encodercited by 31
- 2022Transformers over Directed Acyclic Graphscited by 23
- 2022PACE: A Parallelizable Computation Encoder for Directed Acyclic Graphscited by 20
- 2023Enhancing Graph Transformers with Hierarchical Distance Structural Encodingcited by 16
- 2024Topology-Informed Graph Transformercited by 13
- 2023Meta-Path Learning for Multi-relational Graph Neural Networkscited by 10
- 2023Graph Propagation Transformer for Graph Representation Learningcited by 9
- 2024FlowerFormer: Empowering Neural Architecture Encoding using a Flow-aware Graph Transformercited by 9
- 2023Self-Attention in Colors: Another Take on Encoding Graph Structure in Transformerscited by 7
- 2016A general purpose algorithm for counting simple cycles and simple paths of any lengthcited by 3
- 2024SPHINX: Structural Prediction using Hypergraph Inference Networkcited by 3
Built on by
Citing papers per year: 2025: 1.
1 paper.