G2N2 : Weisfeiler and Lehman go grammatical
Jason Piquenot, Aldo Moscatelli, Maxime Berar, Pierre Héroux, Romain Raveaux, Jean-Yves Ramel, Sébastien Adam
Abstract
This paper introduces a framework for formally establishing a connection between a portion of an algebraic language and a Graph Neural Network (GNN). The framework leverages Context-Free Grammars (CFG) to organize algebraic operations into generative rules that can be translated into a GNN layer model. As CFGs derived directly from a language tend to contain redundancies in their rules and variables, we present a grammar reduction scheme. By applying this strategy, we define a CFG that conforms to the third-order Weisfeiler-Lehman (3-WL) test using MATLANG. From this 3-WL CFG, we derive a GNN model, named G 2 N 2 , which is provably 3-WL compliant. Through various experiments, we demonstrate the superior efficiency of G 2 N 2 compared to other 3-WL GNNs across numerous downstream tasks. Specifically, one experiment highlights the benefits of grammar reduction within our framework.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers1
Ask how each one uses itBuilds on14
- Distance Encoding: Design Provably More Powerful Neural Networks for Graph Representation LearningPan Li, Yanbang Wang, Hongwei Wang, Jure LeskovecNeurIPS 2020 · 391 citations
- Weisfeiler and Lehman Go Cellular: CW NetworksCristian Bodnar, Fabrizio Frasca, Nina Otter, Yuguang Wang et al.NeurIPS 2021 · 330 citations
- Weisfeiler and Lehman Go Topological: Message Passing Simplicial NetworksCristian Bodnar, Fabrizio Frasca, Yuguang Wang, Nina Otter et al.ICML 2021 · 315 citations
- GraphNorm: A Principled Approach to Accelerating Graph Neural Network TrainingTianle Cai, Shengjie Luo, Keyulu Xu, Di He et al.ICML 2021 · 224 citations
- Nested Graph Neural NetworksMuhan Zhang, Pan LiNeurIPS 2021 · 213 citations
Related papers
- 𝒩-WL: A New Hierarchy of Expressivity for Graph Neural NetworksQing Wang, Dillon Ze Chen, Asiri Wijesinghe, Shouheng Li et al.ICLR 2023
- Towards a Complete Logical Framework for GNN ExpressivenessTuo XuICLR 2025
- From Relational Pooling to Subgraph GNNs: A Universal Framework for More Expressive Graph Neural NetworksCai Zhou, Xiyuan Wang, Muhan ZhangICML 2023 · 22 citations
- Equivariant Polynomials for Graph Neural NetworksOmri Puny, Derek Lim, Bobak Toussi Kiani, Haggai Maron et al.ICML 2023 · 41 citations
- A New Perspective on "How Graph Neural Networks Go Beyond Weisfeiler-Lehman?"Asiri Wijesinghe, Qing WangICLR 2022 · 120 citations
