Graph Neural Networks with Learnable Structural and Positional Representations

Vijay Prakash Dwivedi, Anh Tuan Luu, Thomas Laurent, Yoshua Bengio, Xavier Bresson
10/15/2021
cs.LG
transformer-attentiongnn

Official code: vijaydwivedi75/gnn-lspe (266 stars, Python, MIT, last commit 2022-02-10).

Abstract

Graph neural networks (GNNs) have become the standard learning architectures for graphs. GNNs have been applied to numerous domains ranging from quantum chemistry, recommender systems to knowledge graphs and natural language processing.

Show full abstract

A major issue with arbitrary graphs is the absence of canonical positional information of nodes, which decreases the representation power of GNNs to distinguish e.g. isomorphic nodes and other graph symmetries. An approach to tackle this issue is to introduce Positional Encoding (PE) of nodes, and inject it into the input layer, like in Transformers. Possible graph PE are Laplacian eigenvectors. In this work, we propose to decouple structural and positional representations to make easy for the network to learn these two essential properties. We introduce a novel generic architecture which we call LSPE (Learnable Structural and Positional Encodings). We investigate several sparse and fully-connected (Transformer-like) GNNs, and observe a performance increase for molecular datasets, from 1.79% up to 64.14% when considering learnable PE for both GNN classes.

View on arXivView PDF

Code Implementations(1)

MIT

Source code for GNN-LSPE (Graph Neural Networks with Learnable Structural and Positional Representations), ICLR 2022

26637Python, Jupyter NotebookSep 13, 20214 years agoMIT
attentiongeometric-deep-learninggnngnn-lspegraph-deep-learning+11 more

Similar Papers

Cite this paper

@article{dwivedi2021graph,
  title  = {Graph Neural Networks with Learnable Structural and Positional Representations},
  author = {Vijay Prakash Dwivedi and Anh Tuan Luu and Thomas Laurent and Yoshua Bengio and Xavier Bresson},
  year   = {2021},
  eprint = {2110.07875},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2110.07875}
}

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/2110.07875.svg)](https://codeofpaper.com/paper/2110.07875)

Discussion