paper-with-me

홈 › Papers

What Are Good Positional Encodings for Directed Graphs?

2024-07-30 · Yinan Huang, Haoyu Wang, Pan Li

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.

📄 PDF Abstract BibTeX arXiv:2407.20912

Code (1)

graph-com/multi-q-maglap 공식 구현 pytorch

Methods 이 논문이 사용한 방법론

LapEigen 설명 없음
Laplacian PE Laplacian eigenvectors represent a natural generalization of the…

Similar Papers 제목 키워드 기반

Propositional Encodings of Acyclicity and Reachability by using Vertex Elimination

2021-05-27 · Masood Feyzbakhsh Rankooh, Jussi Rintanen

We introduce novel methods for encoding acyclicity and s-t-reachability constraints for propositional formulas with underlying directed graphs. They are based on vertex elimination graphs, which makes them suitable for c…

Transformers Meet Directed Graphs

2023-01-31 · Simon Geisler, Yujia Li, Daniel Mankowitz, Ali Taylan Cemgil 외

Transformers were originally proposed as a sequence-to-sequence model for text but have become vital for a wide range of modalities, including images, audio, video, and undirected graphs. However, transformers for direct…

graph constructionGraph Property Prediction

Eigenbasis-Independent Learnable Spectral Positional Encodings for Directed Graphs via Hermitian Block Krylov Subspaces

2026-07-08 · Jiaqing Xie, Yuxin Wang arxiv

Spectral positional encodings (PEs) for \emph{directed} graphs face two obstacles: magnetic Laplacians require an $O(n^3)$ Hermitian eigendecomposition per potential, and their complex eigenvectors are defined only up to…

Recipe for a General, Powerful, Scalable Graph Transformer

2022-05-25 · Ladislav Rampášek, Mikhail Galkin, Vijay Prakash Dwivedi, Anh Tuan Luu 외

We propose a recipe on how to build a general, powerful, scalable (GPS) graph Transformer with linear complexity and state-of-the-art results on a diverse set of benchmarks. Graph Transformers (GTs) have gained popularit…

Graph ClassificationGraph Property PredictionGraph RegressionGraph Representation Learning+4

Rewiring with Positional Encodings for Graph Neural Networks

2022-01-29 · Rickard Brüel-Gabrielsson, Mikhail Yurochkin, Justin Solomon

Several recent works use positional encodings to extend the receptive fields of graph neural network (GNN) layers equipped with attention mechanisms. These techniques, however, extend receptive fields to the complete gra…

Graph Neural Network