On the Stability of Expressive Positional Encodings for Graphs

Yinan Huang, William Lu, Joshua Robinson, Yu Yang, Muhan Zhang +2 more
10/1/2023
53 citations
gnn

Official code: Graph-COM/SPE (20 stars, Python, last commit 2024-09-15).

Abstract

Designing effective positional encodings for graphs is key to building powerful graph transformers and enhancing message-passing graph neural networks. Although widespread, using Laplacian eigenvectors as positional encodings faces two fundamental challenges: (1) \emph{Non-uniqueness}: there are many different eigendecompositions of the same Laplacian, and (2) \emph{Instability}: small perturbations to the Laplacian could result in completely different eigenspaces, leading to unpredictable changes in positional encoding.

Show full abstract

Despite many attempts to address non-uniqueness, most methods overlook stability, leading to poor generalization on unseen graph structures. We identify the cause of instability to be a ``hard partition'' of eigenspaces. Hence, we introduce Stable and Expressive Positional Encodings (SPE), an architecture for processing eigenvectors that uses eigenvalues to ``softly partition'' eigenspaces. SPE is the first architecture that is (1) provably stable, and (2) universally expressive for basis invariant functions whilst respecting all symmetries of eigenvectors. Besides guaranteed stability, we prove that SPE is at least as expressive as existing methods, and highly capable of counting graph structures. Finally, we evaluate the effectiveness of our method on molecular property prediction, and out-of-distribution generalization tasks, finding improved generalization compared to existing positional encoding methods. Our code is available at \url{https://github.com/Graph-COM/SPE}.

View on arXivView PDF

Code Implementations(1)

Graph-COM/SPEOfficial100%

Official code for SPE

201Python, ShellOct 3, 20232 years ago

Similar Papers

Cite this paper

@article{huang2023stability,
  title  = {On the Stability of Expressive Positional Encodings for Graphs},
  author = {Yinan Huang and William Lu and Joshua Robinson and Yu Yang and Muhan Zhang and Stefanie Jegelka and Pan Li},
  year   = {2023},
  eprint = {2310.02579},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2310.02579},
  journal = {ICLR 2023 2023}
}

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

Discussion