Benchmarking Positional Encodings for GNNs and Graph Transformers

Florian Grötschla, Jiaqing Xie, Roger Wattenhofer
11/19/2024
cs.LGcs.AI

No official code found. Best implementation: ETH-DISCO/Benchmarking-PEs (11 stars, last commit 2025-12-02).

Abstract

Recent advances in Graph Neural Networks (GNNs) and Graph Transformers (GTs) have been driven by innovations in architectures and Positional Encodings (PEs), which are critical for augmenting node features and capturing graph topology. PEs are essential for GTs, where topological information would otherwise be lost without message-passing. However, PEs are often tested alongside novel architectures, making it difficult to isolate their effect on established models. To address this, we present a comprehensive benchmark of PEs in a unified framework that includes both message-passing GNNs and GTs. We also establish theoretical connections between MPNNs and GTs and introduce a sparsified GRIT attention mechanism to examine the influence of global connectivity. Our findings demonstrate that previously untested combinations of GNN architectures and PEs can outperform existing methods and offer a more comprehensive picture of the state-of-the-art. To support future research and experimentation in our framework, we make the code publicly available.

View on arXivView PDF

Code Implementations(1)

Benchmarking PEs for GNNs and Graph Transformers (KDD 2026)

111Shell, PythonNov 19, 202410 months ago
expressivenessgnngnn-benchmarkgraph-neural-networksgraph-transformer+2 more

Similar Papers

Cite this paper

@article{grtschla2024benchmarking,
  title  = {Benchmarking Positional Encodings for GNNs and Graph Transformers},
  author = {Florian Grötschla and Jiaqing Xie and Roger Wattenhofer},
  year   = {2024},
  eprint = {2411.12732},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.12732v1}
}

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

Discussion