Towards Invariance to Node Identifiers in Graph Neural Networks

Maya Bechler-Speicher, Moshe Eliasof, Carola-Bibiane Schonlieb, Ran Gilad-Bachrach, Amir Globerson
2/19/2025
cs.LG

No confident code implementation found for this paper.

Abstract

Message-Passing Graph Neural Networks (GNNs) are known to have limited expressive power, due to their message passing structure. One mechanism for circumventing this limitation is to add unique node identifiers (IDs), which break the symmetries that underlie the expressivity limitation. In this work, we highlight a key limitation of the ID framework, and propose an approach for addressing it. We begin by observing that the final output of the GNN should clearly not depend on the specific IDs used. We then show that in practice this does not hold, and thus the learned network does not possess this desired structural property. Such invariance to node IDs may be enforced in several ways, and we discuss their theoretical properties. We then propose a novel regularization method that effectively enforces ID invariance to the network. Extensive evaluations on both real-world and synthetic tasks demonstrate that our approach significantly improves ID invariance and, in turn, often boosts generalization performance.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{bechlerspeicher2025towards,
  title  = {Towards Invariance to Node Identifiers in Graph Neural Networks},
  author = {Maya Bechler-Speicher and Moshe Eliasof and Carola-Bibiane Schonlieb and Ran Gilad-Bachrach and Amir Globerson},
  year   = {2025},
  eprint = {2502.13660},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.13660v1}
}

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

Discussion