Lune

ICLR2025Top-tier venue

What Are Good Positional Encodings for Directed Graphs?

Yinan Huang, Haoyu Peter Wang, Pan Li

Abstract

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 graphrelevant 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 basisinvariant 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 .

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

3 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Recipe for a General, Powerful, Scalable Graph Transformer cites Rethinking Graph Transformers with Spectral Attention
  • Recipe for a General, Powerful, Scalable Graph Transformer cites Graph Neural Networks with Learnable Structural and Positional Representations
  • Graph Alignment for Benchmarking Graph Neural Networks and Learning Positional Encodings cites Recipe for a General, Powerful, Scalable Graph Transformer
  • Generating Directed Graphs with Dual Attention and Asymmetric Encoding cites Recipe for a General, Powerful, Scalable Graph Transformer
  • Rethinking Graph Transformers with Spectral Attention cites Are Transformers universal approximators of sequence-to-sequence functions?
  • Graph Neural Networks with Learnable Structural and Positional Representations cites Rethinking Graph Transformers with Spectral Attention
  • Unitary Convolutions for Message-passing and Positional Encodings on Directed Graphs cites Recipe for a General, Powerful, Scalable Graph Transformer
  • Unitary Convolutions for Message-passing and Positional Encodings on Directed Graphs cites Rethinking Graph Transformers with Spectral Attention
  • Unitary Convolutions for Message-passing and Positional Encodings on Directed Graphs cites Graph Neural Networks with Learnable Structural and Positional Representations
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers3

  1. Generating Directed Graphs with Dual Attention and Asymmetric EncodingAlba Carballo-Castro, Manuel Madeira, Yiming QIN, Dorina Thanou et al.ICLR 2026 · 4 citations
  2. Graph Alignment for Benchmarking Graph Neural Networks and Learning Positional EncodingsAdrien Lagesse, Marc LelargeICML 2026 · 1 citation
  3. Unitary Convolutions for Message-passing and Positional Encodings on Directed GraphsLukas Fesser, Bobak Kiani, Melanie WeberICML 2026

Builds on27

  1. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
  2. Recipe for a General, Powerful, Scalable Graph TransformerLadislav Rampásek, Michael Galkin, Vijay Prakash Dwivedi, Anh Tuan Luu et al.NeurIPS 2022 · 1,216 citations
  3. Rethinking Graph Transformers with Spectral AttentionDevin Kreuzer, Dominique Beaini, William L. Hamilton, Vincent Létourneau et al.NeurIPS 2021 · 854 citations
  4. Are Transformers universal approximators of sequence-to-sequence functions?Chulhee Yun, Srinadh Bhojanapalli, Ankit Singh Rawat, Sashank J. Reddi et al.ICLR 2020 · 481 citations
  5. Graph Neural Networks with Learnable Structural and Positional RepresentationsVijay Prakash Dwivedi, Anh Tuan Luu, Thomas Laurent, Yoshua Bengio et al.ICLR 2022 · 464 citations

Related papers

  1. Transformers Meet Directed GraphsSimon Geisler, Yujia Li, Daniel J. Mankowitz, Ali Taylan Cemgil et al.ICML 2023 · 51 citations
  2. Homomorphism Counts as Structural Encodings for Graph LearningLinus Bao, Emily Jin, Michael M. Bronstein, Ismail Ilkan Ceylan et al.ICLR 2025
  3. On the Stability of Expressive Positional Encodings for GraphsYinan Huang, William Lu, Joshua Robinson, Yu Yang et al.ICLR 2024 · 32 citations
  4. MagNet: A Neural Network for Directed GraphsXitong Zhang, Yixuan He, Nathan Brugnone, Michael Perlmutter et al.NeurIPS 2021 · 223 citations
  5. Equivariant and Stable Positional Encoding for More Powerful Graph Neural NetworksHaorui Wang, Haoteng Yin, Muhan Zhang, Pan LiICLR 2022 · 138 citations
Dusk over the sea between two cliffs drawn in fine vertical lines