Homomorphism Counts for Graph Neural Networks: All About That Basis

Emily Jin, Michael M. Bronstein, I. Ceylan, Matthias Lanzinger
2/12/2026

No official code found. Best implementation: ejin700/hombasis-gnn (3 stars, MIT, last commit 2024-09-18).

Abstract

A large body of work has investigated the properties of graph neural networks and identified several limitations, particularly pertaining to their expressive power. Their inability to count certain patterns (e.g., cycles) in a graph lies at the heart of such limitations, since many functions to be learned rely on the ability of counting such patterns. Two prominent paradigms aim to address this limitation by enriching the graph features with subgraph or homomorphism pattern counts. In this work, we show that both of these approaches are sub-optimal in a certain sense and argue for a more fine-grained approach, which incorporates the homomorphism counts of all structures in the ``basis'' of the target pattern. This yields strictly more expressive architectures without incurring any additional overhead in terms of computational complexity compared to existing approaches. We prove a series of theoretical results on node-level and graph-level motif parameters and empirically validate them on standard benchmark datasets.

View on arXivView PDF

Code Implementations(1)

MIT
30Shell, PythonFeb 15, 20242 years agoMIT

Similar Papers

Cite this paper

@article{jin2026homomorphism,
  title  = {Homomorphism Counts for Graph Neural Networks: All About That Basis},
  author = {Emily Jin and Michael M. Bronstein and I. Ceylan and Matthias Lanzinger},
  year   = {2026},
  eprint = {2402.08595},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2402.08595},
  journal = {ICML 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/2402.08595.svg)](https://codeofpaper.com/paper/2402.08595)

Discussion