Lune

ICML2024Top-tier venue

Homomorphism Counts for Graph Neural Networks: All About That Basis

Emily Jin, Michael M. Bronstein, Ismail Ilkan Ceylan, Matthias Lanzinger

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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

11 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Cooperative Graph Neural Networks cites What graph neural networks cannot learn: depth vs width
  • Cooperative Graph Neural Networks cites Equivariant Subgraph Aggregation Networks
  • Logical Expressiveness of Graph Neural Networks with Hierarchical Node Individualization cites Equivariant Subgraph Aggregation Networks
  • Deep Homomorphism Networks cites What graph neural networks cannot learn: depth vs width
  • Equivariant Subgraph Aggregation Networks cites Open Graph Benchmark: Datasets for Machine Learning on Graphs
  • Equivariant Subgraph Aggregation Networks cites What graph neural networks cannot learn: depth vs width
  • Can Graph Neural Networks Count Substructures? cites Open Graph Benchmark: Datasets for Machine Learning on Graphs
  • Can Graph Neural Networks Count Substructures? cites What graph neural networks cannot learn: depth vs width
  • Graph Representational Learning: When Does More Expressivity Hurt Generalization? cites Equivariant Subgraph Aggregation Networks
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers11

  1. Cooperative Graph Neural NetworksBen Finkelshtein, Xingyue Huang, Michael M. Bronstein, Ismail Ilkan CeylanICML 2024 · 57 citations
  2. Avoiding Materialisation for Guarded Aggregate QueriesMatthias Lanzinger, Reinhard Pichler, Alexander SelzerVLDB 2025 · 7 citations
  3. Graph Representational Learning: When Does More Expressivity Hurt Generalization?Sohir Maskey, Raffaele Paolino, Fabian Jogl, Gitta Kutyniok et al.ICLR 2026 · 4 citations
  4. Logical Expressiveness of Graph Neural Networks with Hierarchical Node IndividualizationArie Soeteman, Balder ten CateNeurIPS 2025 · 3 citations
  5. Deep Homomorphism NetworksTakanori Maehara, Hoang NTNeurIPS 2024 · 2 citations

Builds on19

  1. Open Graph Benchmark: Datasets for Machine Learning on GraphsWeihua Hu, Matthias Fey, Marinka Zitnik, Yuxiao Dong et al.NeurIPS 2020 · 3,935 citations
  2. Can Graph Neural Networks Count Substructures?Zhengdao Chen, Lei Chen, Soledad Villar, Joan BrunaNeurIPS 2020 · 392 citations
  3. What graph neural networks cannot learn: depth vs widthAndreas LoukasICLR 2020 · 336 citations
  4. Equivariant Subgraph Aggregation NetworksBeatrice Bevilacqua, Fabrizio Frasca, Derek Lim, Balasubramaniam Srinivasan et al.ICLR 2022 · 217 citations
  5. GNN-FiLM: Graph Neural Networks with Feature-wise Linear ModulationMarc BrockschmidtICML 2020 · 180 citations

Related papers

  1. Beyond Weisfeiler-Lehman: A Quantitative Framework for GNN ExpressivenessBohang Zhang, Jingchu Gai, Yiheng Du, Qiwei Ye et al.ICLR 2024 · 59 citations
  2. Graph Neural Networks Can (Often) Count SubstructuresPaolo Pellizzoni, Till Hendrik Schulz, Karsten M. BorgwardtICLR 2025
  3. Distance-Restricted Folklore Weisfeiler-Leman GNNs with Provable Cycle Counting PowerJunru Zhou, Jiarui Feng, Xiyuan Wang, Muhan ZhangNeurIPS 2023 · 15 citations
  4. Homomorphism Expressivity of Spectral Invariant Graph Neural NetworksJingchu Gai, Yiheng Du, Bohang Zhang, Haggai Maron et al.ICLR 2025
  5. The Expressive Power of Path-Based Graph Neural NetworksCaterina Graziani, Tamara Drucks, Fabian Jogl, Monica Bianchini et al.ICML 2024 · 13 citations
Dusk over the sea between two cliffs drawn in fine vertical lines