What Are Good Positional Encodings for Directed Graphs?
Not on the map. Why?
Abstract (arXiv)
Positional encodings (PEs) are essential for building powerful and expressive graph neural networks and graph transformers, as they effectively capture the relative spatial relationships between nodes. Although extensive research has been devoted to PEs in undirected graphs, PEs for directed graphs remain relatively unexplored. This work seeks to address this gap. We first introduce the notion of Walk Profile, a generalization of walk-counting sequences for directed graphs. A walk profile encompasses numerous structural features crucial for directed graph-relevant applications, such as program analysis and circuit performance prediction. We identify the limitations of existing PE methods in representing walk profiles and propose a novel Multi-q Magnetic Laplacian PE, which extends the Magnetic Laplacian eigenvector-based PE by incorporating multiple potential factors. The new PE can provably express walk profiles. Furthermore, we generalize prior basis-invariant neural networks to enable the stable use of the new PE in the complex domain. Our numerical experiments validate the expressiveness of the proposed PEs and demonstrate their effectiveness in solving sorting network satisfiability and performing well on general circuit benchmarks. Our code is available at https://github.com/Graph-COM/Multi-q-Maglap.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Builds on 43 of its 70 references that are in the map. First posted on arXiv 30 Jul 2024.
Builds on
43 of 70 references.
References · 43
- 2017Attention Is All You Needcited by 59,932
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2018How Powerful are Graph Neural Networks?cited by 4,355
- 2016Geometric deep learning: going beyond Euclidean datacited by 1,042
- 2022Recipe for a General, Powerful, Scalable Graph Transformercited by 702
- 2020Benchmarking Graph Neural Networkscited by 672
- 2021Rethinking Graph Transformers with Spectral Attentioncited by 468
- 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 404
- 2021Graph Neural Networks with Learnable Structural and Positional Representationscited by 326
- 2019Devign: Effective Vulnerability Identification by Learning Comprehensive Program Semantics via Graph Neural Networkscited by 266
- 2020A Comprehensive Survey of Neural Architecture Search: Challenges and Solutionscited by 253
31 more
- 2022Structure-Aware Transformer for Graph Representation Learningcited by 191
- 2022Sign and Basis Invariant Networks for Spectral Graph Representation Learningcited by 176
- 2020Labeling Trick: A Theory of Using Graph Neural Networks for Multi-Node Representation Learningcited by 148
- 2020Directional Graph Networkscited by 132
- 2019Neural Predictor for Neural Architecture Searchcited by 116
- 2021Global Self-Attention as a Replacement for Graph Convolutioncited by 113
- 2021MagNet: A Neural Network for Directed Graphscited by 104
- 2019D-VAE: A Variational Autoencoder for Directed Acyclic Graphscited by 98
- 2022Equivariant and Stable Positional Encoding for More Powerful Graph Neural Networkscited by 94
- 2020GCN-RL Circuit Designer: Transferable Transistor Sizing with Graph Neural Networks and Reinforcement Learningcited by 89
- 2020Directed Graph Convolutional Networkcited by 73
- 2021Directed Acyclic Graph Neural Networkscited by 70
- 2018MotifNet: a motif-based Graph Convolutional Network for directed graphscited by 63
- 2023CktGNN: Circuit Graph Neural Network for Electronic Design Automationcited by 55
- 2023Transformers Meet Directed Graphscited by 39
- 2019Spectral-based Graph Convolutional Network for Directed Graphscited by 38
- 2022MSGNN: A Spectral Graph Neural Network Based on a Novel Magnetic Signed Laplaciancited by 28
- 2016Magnetic Eigenmaps for the Visualization of Directed Networkscited by 25
- 2022High-Level Synthesis Performance Prediction using GNNs: Benchmarking, Modeling, and Advancingcited by 25
- 2022SigMaNet: One Laplacian to Rule Them Allcited by 23
- 2022Transformers over Directed Acyclic Graphscited by 23
- 2016Magnetic eigenmaps for community detection in directed networkscited by 22
- 2022Directed Graph Auto-Encoderscited by 22
- 2022PACE: A Parallelizable Computation Encoder for Directed Acyclic Graphscited by 20
- 2023HoloNets: Spectral Convolutions do extend to Directed Graphscited by 20
- 2024Comparing Graph Transformers via Positional Encodingscited by 20
- 2019edGNN: a Simple and Powerful GNN for Directed Labeled Graphscited by 17
- 2023TpuGraphs: A Performance Prediction Dataset on Large Tensor Computational Graphscited by 16
- 2023Expressive Sign Equivariant Networks for Spectral Geometric Learningcited by 15
- 2024Graph as Point Setcited by 4
- 2020Deep Data Flow Analysiscited by 2
Built on by
Citing papers per year: 2024: 1; 2025: 4; 2026: 2.
7 papers.
- 2025Generating Directed Graphs with Dual Attention and Asymmetric Encodingcited by 3
- 2024Towards Data-centric Machine Learning on Directed Graphs: a Surveycited by 2
- 2025Graph Alignment for Benchmarking Graph Neural Networks and Learning Positional Encodingscited by 1
- 2026GraViti: Graph-Level Variational Autoencoders with Relaxed Permutation Invariancecited by 1
- 2025Directed Homophily-Aware Graph Neural Networkcited by 0
- 2025State Space Models over Directed Graphscited by 0
- 2026Eigenbasis-Independent Learnable Spectral Positional Encodings for Directed Graphs via Hermitian Block Krylov Subspacescited by 0
- 2026Eigenbasis-Independent Learnable Spectral Positional Encodings for Directed Graphs via Hermitian Block Krylov Subspaces8 Jul 2026
- 2026GraViti: Graph-Level Variational Autoencoders with Relaxed Permutation Invariance15 May 2026
- 2025State Space Models over Directed Graphs17 Sep 2025
- 2025Generating Directed Graphs with Dual Attention and Asymmetric Encoding19 Jun 2025
- 2025Directed Homophily-Aware Graph Neural Network28 May 2025
- 2025Graph Alignment for Benchmarking Graph Neural Networks and Learning Positional Encodings19 May 2025
- 2024Towards Data-centric Machine Learning on Directed Graphs: a Survey28 Nov 2024