GRPE: Relative Positional Encoding for Graph Transformer

Wonpyo Park, Woonggi Chang, Donggeon Lee, Juntae Kim, Seung-won Hwang
1/30/2022
cs.LGcs.AI
transformer-attentiongnn

Official code: lenscloth/GRPE (64 stars, Python, MIT, last commit 2022-08-16).

Abstract

We propose a novel positional encoding for learning graph on Transformer architecture. Existing approaches either linearize a graph to encode absolute position in the sequence of nodes, or encode relative position with another node using bias terms.

Show full abstract

The former loses preciseness of relative position from linearization, while the latter loses a tight integration of node-edge and node-topology interaction. To overcome the weakness of the previous approaches, our method encodes a graph without linearization and considers both node-topology and node-edge interaction. We name our method Graph Relative Positional Encoding dedicated to graph representation learning. Experiments conducted on various graph datasets show that the proposed method outperforms previous approaches significantly. Our code is publicly available at https://github.com/lenscloth/GRPE.

View on arXivView PDF

Code Implementations(1)

lenscloth/GRPEOfficial100%
MIT

Official Implementation of "GRPE: Relative Positional Encoding for Graph Transformer"

647Python, ShellMar 15, 20224 years agoMIT

Similar Papers

Cite this paper

@article{park2022grpe,
  title  = {GRPE: Relative Positional Encoding for Graph Transformer},
  author = {Wonpyo Park and Woonggi Chang and Donggeon Lee and Juntae Kim and Seung-won Hwang},
  year   = {2022},
  eprint = {2201.12787},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2201.12787}
}

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

Discussion