Position-Sensing Graph Neural Networks: Proactively Learning Nodes Relative Positions

Zhenyue Qin, Yiqun Zhang Saeed Anwar, Dongwoo Kim, Yang Liu, Pan Ji +1 more
5/24/2021
cs.LG
gnn

Official code: kfzyqin/PSGNN (2 stars, Python, last commit 2026-05-12).

Abstract

Most existing graph neural networks (GNNs) learn node embeddings using the framework of message passing and aggregation. Such GNNs are incapable of learning relative positions between graph nodes within a graph.

Show full abstract

To empower GNNs with the awareness of node positions, some nodes are set as anchors. Then, using the distances from a node to the anchors, GNNs can infer relative positions between nodes. However, P-GNNs arbitrarily select anchors, leading to compromising position-awareness and feature extraction. To eliminate this compromise, we demonstrate that selecting evenly distributed and asymmetric anchors is essential. On the other hand, we show that choosing anchors that can aggregate embeddings of all the nodes within a graph is NP-complete. Therefore, devising efficient optimal algorithms in a deterministic approach is practically not feasible. To ensure position-awareness and bypass NP-completeness, we propose Position-Sensing Graph Neural Networks (PSGNNs), learning how to choose anchors in a back-propagatable fashion. Experiments verify the effectiveness of PSGNNs against state-of-the-art GNNs, substantially improving performance on various synthetic and real-world graph datasets while enjoying stable scalability. Specifically, PSGNNs on average boost AUC more than 14% for pairwise node classification and 18% for link prediction over the existing state-of-the-art position-aware methods. Our source code is publicly available at: https://github.com/ZhenyueQin/PSGNN.

View on arXivView PDF

Code Implementations(1)

kfzyqin/PSGNNOfficial100%
20PythonApr 13, 20216 months ago

Similar Papers

Cite this paper

@article{qin2021positionsensing,
  title  = {Position-Sensing Graph Neural Networks: Proactively Learning Nodes Relative Positions},
  author = {Zhenyue Qin and Yiqun Zhang Saeed Anwar and Dongwoo Kim and Yang Liu and Pan Ji and Tom Gedeon},
  year   = {2021},
  eprint = {2105.11346},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.11346}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2105.11346.svg)](https://codeofpaper.com/paper/2105.11346)

Discussion