Lune

ICLR2024Top-tier venue

On the Power of the Weisfeiler-Leman Test for Graph Motif Parameters

Matthias Lanzinger, Pablo Barceló

Abstract

Seminal research in the field of graph neural networks (GNNs) has revealed a direct correspondence between the expressive capabilities of GNNs and the kdimensional Weisfeiler-Leman (kWL) test, a widely-recognized method for verifying graph isomorphism. This connection has reignited interest in comprehending the specific graph properties effectively distinguishable by the kWL test. A central focus of research in this field revolves around determining the least dimensionality k, for which kWL can discern graphs with different number of occurrences of a pattern graph P . We refer to such a least k as the WL-dimension of this pattern counting problem. This inquiry traditionally delves into two distinct counting problems related to patterns: subgraph counting and induced subgraph counting. Intriguingly, despite their initial appearance as separate challenges with seemingly divergent approaches, both of these problems are interconnected components of a more comprehensive problem: "graph motif parameters". In this paper, we provide a precise characterization of the WL-dimension of labeled graph motif parameters. As specific instances of this result, we obtain characterizations of the WL-dimension of the subgraph counting and induced subgraph counting problem for every labeled pattern P . Particularly noteworthy is our resolution of a problem left open in previous work concerning induced copies. We additionally demonstrate that in cases where the kWL test distinguishes between graphs with varying occurrences of a pattern P , the exact number of occurrences of P can be computed uniformly using only local information of the last layer of a corresponding GNN. We finally delve into the challenge of recognizing the WLdimension of various graph parameters. We give a polynomial time algorithm for determining the WL-dimension of the subgraph counting problem for given pattern P , answering an open question from previous work. We additionally show how to utilize deep results from the field of graph motif parameters, together with our characterization, to determine the WL-dimension of induced subgraph counting and counting k-graphlets.

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.

5 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

  • Towards Bridging Generalization and Expressivity of Graph Neural Networks cites Weisfeiler and Leman go sparse: Towards scalable higher-order graph embeddings
  • Towards Bridging Generalization and Expressivity of Graph Neural Networks cites Homomorphism Counts for Graph Neural Networks: All About That Basis
  • Message Passing on the Edge: Towards Scalable and Expressive GNNs cites Towards Bridging Generalization and Expressivity of Graph Neural Networks
  • Message Passing on the Edge: Towards Scalable and Expressive GNNs cites Weisfeiler and Leman go sparse: Towards scalable higher-order graph embeddings
  • Message Passing on the Edge: Towards Scalable and Expressive GNNs cites Homomorphism Counts as Structural Encodings for Graph Learning
  • Message Passing on the Edge: Towards Scalable and Expressive GNNs cites Can Graph Neural Networks Count Substructures?
  • Message Passing on the Edge: Towards Scalable and Expressive GNNs cites Homomorphism Counts for Graph Neural Networks: All About That Basis
  • Neural Bellman-Ford Networks: A General Graph Neural Network Framework for Link Prediction cites Inductive Relation Prediction by Subgraph Reasoning
  • Weisfeiler and Leman go sparse: Towards scalable higher-order graph embeddings cites Can Graph Neural Networks Count Substructures?
  • Homomorphism Counts as Structural Encodings for Graph Learning cites Homomorphism Counts for Graph Neural Networks: All About That Basis
  • Homomorphism Counts for Graph Neural Networks: All About That Basis cites Can Graph Neural Networks Count Substructures?
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. Homomorphism Counts for Graph Neural Networks: All About That BasisEmily Jin, Michael M. Bronstein, Ismail Ilkan Ceylan, Matthias LanzingerICML 2024 · 23 citations
  2. Counting Small Induced Subgraphs: Hardness via Fourier AnalysisRadu Curticapean, Daniel NeuenSODA 2025 · 1 citation
  3. Towards Bridging Generalization and Expressivity of Graph Neural NetworksShouheng Li, Floris Geerts, Dongwoo Kim, Qing WangICLR 2025
  4. Message Passing on the Edge: Towards Scalable and Expressive GNNsPablo Barcelo, Fabian Jogl, Alexander Kozachinskiy, Matthias Lanzinger et al.ICML 2026
  5. Homomorphism Counts as Structural Encodings for Graph LearningLinus Bao, Emily Jin, Michael M. Bronstein, Ismail Ilkan Ceylan et al.ICLR 2025

Builds on7

  1. Neural Bellman-Ford Networks: A General Graph Neural Network Framework for Link PredictionZhaocheng Zhu, Zuobai Zhang, Louis-Pascal A. C. Xhonneux, Jian TangNeurIPS 2021 · 546 citations
  2. A Fair Comparison of Graph Neural Networks for Graph ClassificationFederico Errica, Marco Podda, Davide Bacciu, Alessio MicheliICLR 2020 · 508 citations
  3. Inductive Relation Prediction by Subgraph ReasoningKomal K. Teru, Etienne G. Denis, William L. HamiltonICML 2020 · 493 citations
  4. Can Graph Neural Networks Count Substructures?Zhengdao Chen, Lei Chen, Soledad Villar, Joan BrunaNeurIPS 2020 · 392 citations
  5. Weisfeiler and Leman go sparse: Towards scalable higher-order graph embeddingsChristopher Morris, Gaurav Rattan, Petra MutzelNeurIPS 2020 · 190 citations

Related papers

  1. 𝒩-WL: A New Hierarchy of Expressivity for Graph Neural NetworksQing Wang, Dillon Ze Chen, Asiri Wijesinghe, Shouheng Li et al.ICLR 2023
  2. WL meet VCChristopher Morris, Floris Geerts, Jan Tönshoff, Martin GroheICML 2023 · 36 citations
  3. A Complete Expressiveness Hierarchy for Subgraph GNNs via Subgraph Weisfeiler-Lehman TestsBohang Zhang, Guhao Feng, Yiheng Du, Di He et al.ICML 2023 · 84 citations
  4. Graph Neural Networks with Local Graph ParametersPablo Barceló, Floris Geerts, Juan L. Reutter, Maksimilian RyschkovNeurIPS 2021 · 81 citations
  5. Three Iterations of (d - 1)-WL Test Distinguish Non Isometric Clouds of d-dimensional PointsValentino Delle Rose, Alexander Kozachinskiy, Cristobal Rojas, Mircea Petrache et al.NeurIPS 2023 · 14 citations
Dusk over the sea between two cliffs drawn in fine vertical lines