Homomorphism Counts as Structural Encodings for Graph Learning

Linus Bao, Emily Jin, Michael M. Bronstein, I. Ceylan, Matthias Lanzinger
10/1/2024

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Graph Transformers are popular neural networks that extend the well-known Transformer architecture to the graph domain. These architectures operate by applying self-attention on graph nodes and incorporating graph structure through the use of positional encodings (e.g., Laplacian positional encoding) or structural encodings (e.g., random-walk structural encoding). The quality of such encodings is critical, since they provide the necessary $\textit{graph inductive biases}$ to condition the model on graph structure. In this work, we propose $\textit{motif structural encoding}$ (MoSE) as a flexible and powerful structural encoding framework based on counting graph homomorphisms. Theoretically, we compare the expressive power of MoSE to random-walk structural encoding and relate both encodings to the expressive power of standard message passing neural networks. Empirically, we observe that MoSE outperforms other well-known positional and structural encodings across a range of architectures, and it achieves state-of-the-art performance on a widely studied molecular property prediction dataset.

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. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

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

Cite this paper

@article{bao2024homomorphism,
  title  = {Homomorphism Counts as Structural Encodings for Graph Learning},
  author = {Linus Bao and Emily Jin and Michael M. Bronstein and I. Ceylan and Matthias Lanzinger},
  year   = {2024},
  eprint = {2410.18676},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2410.18676},
  journal = {ICLR 2024 2024}
}

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

Discussion