Beyond Weisfeiler-Lehman: A Quantitative Framework for GNN Expressiveness
Bohang Zhang, Jingchu Gai, Yiheng Du, Qiwei Ye, Di He, Liwei Wang
Abstract
Designing expressive Graph Neural Networks (GNNs) is a fundamental topic in the graph learning community. So far, GNN expressiveness has been primarily assessed via the Weisfeiler-Lehman (WL) hierarchy. However, such an expressivity measure has notable limitations: it is inherently coarse, qualitative, and may not well reflect practical requirements (e.g., the ability to encode substructures). In this paper, we introduce a unified framework for quantitatively studying the expressiveness of GNN architectures, addressing all the above limitations. Specifically, we identify a fundamental expressivity measure termed homomorphism expressivity, which quantifies the ability of GNN models to count graphs under homomorphism. Homomorphism expressivity offers a complete and practical assessment tool: the completeness enables direct expressivity comparisons between GNN models, while the practicality allows for understanding concrete GNN abilities such as subgraph counting. By examining four classes of prominent GNNs as case studies, we derive simple, unified, and elegant descriptions of their homomorphism expressivity for both invariant and equivariant settings. Our results provide novel insights into a series of previous work, unify the landscape of different subareas in the community, and settle several open questions. Empirically, extensive experiments on both synthetic and real-world tasks verify our theory, showing that the practical performance of GNN models aligns well with the proposed metric. * Equal technical contributions.
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.
29 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Recipe for a General, Powerful, Scalable Graph Transformer cites Do Transformers Really Perform Badly for Graph Representation?
- Recipe for a General, Powerful, Scalable Graph Transformer cites Rethinking Graph Transformers with Spectral Attention
- Recipe for a General, Powerful, Scalable Graph Transformer cites Graph Neural Networks with Learnable Structural and Positional Representations
- Recipe for a General, Powerful, Scalable Graph Transformer cites Principal Neighbourhood Aggregation for Graph Nets
- A Canonicalization Perspective on Invariant and Equivariant Learning cites Rethinking Graph Transformers with Spectral Attention
- A Canonicalization Perspective on Invariant and Equivariant Learning cites Graph Neural Networks with Learnable Structural and Positional Representations
- A Canonicalization Perspective on Invariant and Equivariant Learning cites Principal Neighbourhood Aggregation for Graph Nets
- Do Transformers Really Perform Badly for Graph Representation? cites Rethinking Graph Transformers with Spectral Attention
- Do Transformers Really Perform Badly for Graph Representation? cites Principal Neighbourhood Aggregation for Graph Nets
- Rethinking Graph Transformers with Spectral Attention cites Principal Neighbourhood Aggregation for Graph Nets
- An Empirical Study of Realized GNN Expressiveness cites Do Transformers Really Perform Badly for Graph Representation?
- Graph Neural Networks with Learnable Structural and Positional Representations cites Rethinking Graph Transformers with Spectral Attention
- Graph Neural Networks with Learnable Structural and Positional Representations cites Principal Neighbourhood Aggregation for Graph Nets
Cited by top-tier papers29
- GFT: Graph Foundation Model with Transferable Tree VocabularyZehong Wang, Zheyuan Zhang, Nitesh V. Chawla, Chuxu Zhang et al.NeurIPS 2024 · 108 citations
- A Canonicalization Perspective on Invariant and Equivariant LearningGeorge Ma, Yifei Wang, Derek Lim, Stefanie Jegelka et al.NeurIPS 2024 · 38 citations
- An Empirical Study of Realized GNN ExpressivenessYanbo Wang, Muhan ZhangICML 2024 · 29 citations
- Homomorphism Counts for Graph Neural Networks: All About That BasisEmily Jin, Michael M. Bronstein, Ismail Ilkan Ceylan, Matthias LanzingerICML 2024 · 23 citations
- Generalization Performance of Hypergraph Neural NetworksYifan Wang, Gonzalo R. Arce, Guangmo TongWWW 2025 · 6 citations
Builds on46
- Do Transformers Really Perform Badly for Graph Representation?Chengxuan Ying, Tianle Cai, Shengjie Luo, Shuxin Zheng et al.NeurIPS 2021 · 1,632 citations
- Recipe for a General, Powerful, Scalable Graph TransformerLadislav Rampásek, Michael Galkin, Vijay Prakash Dwivedi, Anh Tuan Luu et al.NeurIPS 2022 · 1,216 citations
- Principal Neighbourhood Aggregation for Graph NetsGabriele Corso, Luca Cavalleri, Dominique Beaini, Pietro Liò et al.NeurIPS 2020 · 914 citations
- Rethinking Graph Transformers with Spectral AttentionDevin Kreuzer, Dominique Beaini, William L. Hamilton, Vincent Létourneau et al.NeurIPS 2021 · 854 citations
- Graph Neural Networks with Learnable Structural and Positional RepresentationsVijay Prakash Dwivedi, Anh Tuan Luu, Thomas Laurent, Yoshua Bengio et al.ICLR 2022 · 464 citations
Related papers
- Towards a Complete Logical Framework for GNN ExpressivenessTuo XuICLR 2025
- 𝒩-WL: A New Hierarchy of Expressivity for Graph Neural NetworksQing Wang, Dillon Ze Chen, Asiri Wijesinghe, Shouheng Li et al.ICLR 2023
- Equivariant Polynomials for Graph Neural NetworksOmri Puny, Derek Lim, Bobak Toussi Kiani, Haggai Maron et al.ICML 2023 · 41 citations
- 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
- Homomorphism Expressivity of Spectral Invariant Graph Neural NetworksJingchu Gai, Yiheng Du, Bohang Zhang, Haggai Maron et al.ICLR 2025
