Graph Alignment for Benchmarking Graph Neural Networks and Learning Positional Encodings

Adrien Lagesse, Marc Lelarge
5/19/2025
2 citations
cs.LGcs.AI
gnncontrastive-ssl

Official code: adrien-lagesse/graph-alignment-benchmark (2 stars, Python, MIT, last commit 2025-10-03).

Abstract

We propose a novel benchmarking methodology for graph neural networks (GNNs) based on the graph alignment problem, a combinatorial optimization task that generalizes graph isomorphism by aligning two unlabeled graphs to maximize overlapping edges. We frame this problem as a self-supervised learning task and present several methods to generate graph alignment datasets using synthetic random graphs and real-world graph datasets from multiple domains.

Show full abstract

For a given graph dataset, we generate a family of graph alignment datasets with increasing difficulty, allowing us to rank the performance of various architectures. Our experiments prove that there is an optimal task difficulty for having a statistically relevant ranking of different models and that, even on a structure-only task, anisotropic models perform better compared to isotropic ones. To further prove that our synthetic task capture meaningful information, we show its effectiveness for self-supervised GNN pre-training: the learned node embeddings can be leveraged as positional encodings by transformers for graph regression or can be used to reconstruct the full structure of the graph with $98\%$ accuracy. To support reproducibility and further research, we provide an open-source Python package to generate graph alignment datasets and benchmark new GNN architectures. The source code is available at https://github.com/adrien-lagesse/graph-alignment-benchmark.

View on arXivView PDF

Code Implementations(1)

MIT

Benchmarking and generating PE for GNNs via the Graph Alignment task. Code for our paper: Graph Alignment for Benchmarking Graph Neural Networks and Learning Positional Encodings

20Python, ShellAug 11, 20251 years agoMIT
benchmarkcombinatorial-optimizationgeometric-deep-learninggnngraphs+2 more

Similar Papers

Cite this paper

@article{lagesse2025graph,
  title  = {Graph Alignment for Benchmarking Graph Neural Networks and Learning Positional Encodings},
  author = {Adrien Lagesse and Marc Lelarge},
  year   = {2025},
  eprint = {2505.13087},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.13087v2}
}

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

Discussion