Table of Contents
Fetching ...

Fine-Grained Expressive Power of Weisfeiler-Leman: A Homomorphism Counting Perspective

Junru Zhou, Muhan Zhang

TL;DR

The paper tackles the problem of quantifying graph neural networks' expressive power by focusing on homomorphism counting. It introduces generalized folklore Weisfeiler-Leman (GFWL) algorithms as a broad, unifying design space for WL-type GNNs and develops a meta-algorithm that determines the exact homomorphism-counting power of any GFWL instance. The core results establish a precise equivalence between WL indistinguishability and differences in homomorphism counts for a finite family of query graphs, using EF and Cops-Robber pebble games to connect color refinement with counting power. The work provides a principled, automatable framework for analyzing and potentially guiding GNN design, while acknowledging current limitations and outlining directions for extending the theory to broader WL variants and substructure counting.

Abstract

The ability of graph neural networks (GNNs) to count homomorphisms has recently been proposed as a practical and fine-grained measure of their expressive power. Although several existing works have investigated the homomorphism counting power of certain GNN families, a simple and unified framework for analyzing the problem is absent. In this paper, we first propose \emph{generalized folklore Weisfeiler-Leman (GFWL)} algorithms as a flexible design basis for expressive GNNs, and then provide a theoretical framework to algorithmically determine the homomorphism counting power of an arbitrary class of GNN within the GFWL design space. As the considered design space is large enough to accommodate almost all known powerful GNNs, our result greatly extends all existing works, and may find its application in the automation of GNN model design.

Fine-Grained Expressive Power of Weisfeiler-Leman: A Homomorphism Counting Perspective

TL;DR

The paper tackles the problem of quantifying graph neural networks' expressive power by focusing on homomorphism counting. It introduces generalized folklore Weisfeiler-Leman (GFWL) algorithms as a broad, unifying design space for WL-type GNNs and develops a meta-algorithm that determines the exact homomorphism-counting power of any GFWL instance. The core results establish a precise equivalence between WL indistinguishability and differences in homomorphism counts for a finite family of query graphs, using EF and Cops-Robber pebble games to connect color refinement with counting power. The work provides a principled, automatable framework for analyzing and potentially guiding GNN design, while acknowledging current limitations and outlining directions for extending the theory to broader WL variants and substructure counting.

Abstract

The ability of graph neural networks (GNNs) to count homomorphisms has recently been proposed as a practical and fine-grained measure of their expressive power. Although several existing works have investigated the homomorphism counting power of certain GNN families, a simple and unified framework for analyzing the problem is absent. In this paper, we first propose \emph{generalized folklore Weisfeiler-Leman (GFWL)} algorithms as a flexible design basis for expressive GNNs, and then provide a theoretical framework to algorithmically determine the homomorphism counting power of an arbitrary class of GNN within the GFWL design space. As the considered design space is large enough to accommodate almost all known powerful GNNs, our result greatly extends all existing works, and may find its application in the automation of GNN model design.
Paper Structure (18 sections, 18 theorems, 55 equations)

This paper contains 18 sections, 18 theorems, 55 equations.

Key Result

Theorem 4.10

Let $F\in\mathcal{G}$. Assume that $\mathcal{R}(\cdot)$ and $\mathcal{F}(\cdot,\cdot)$ in Assumption assump are both closed under homomorphisms. Then the following two statements are equivalent: (a).$G$ and $H$ get different colors $W(G)$ and $W(H)$ from the Weisfeiler-Leman algorithm; (b).$\exists

Theorems & Definitions (35)

  • Definition 2.1: Invariant set
  • Definition 2.2: Equivariant set
  • Definition 4.1: Concatenation
  • Definition 4.2: Replacement
  • Definition 4.3
  • Definition 4.5: Generalized folklore Weisfeiler-Leman algorithms
  • Definition 4.6: Ehrenfeucht-Fraïssé game
  • Definition 4.7: Cops-Robber game
  • Definition 4.8
  • Definition 4.9
  • ...and 25 more