Abstract
Standard Graph Neural Networks (GNNs) rely on permutation equivariance, which often limits their expressivity to the 1-WL Weisfeiler-Lehman test. This paper introduces Natural Graph Networks (NGNs), a framework based on category theory that replaces permutation equivariance with the more general concept of naturality. By focusing on local isomorphisms, NGNs achieve the expressivity of global equivariant models while maintaining the linear scalability of message-passing networks.
Introduction
A fundamental requirement for GNNs is that their output remains invariant to node reordering, typically achieved through permutation equivariance. However, standard Message Passing Neural Networks (MPNNs) are isotropic, treating all neighbors identically. This prevents them from distinguishing certain non-isomorphic graph structures. While global equivariant networks can overcome this, they are computationally expensive and do not scale. NGNs address this by asking how to design a GNN that is maximally expressive yet efficient and local.
Methods: From Equivariance to Naturality
The core innovation of NGNs is the application of category theory to define graph feature spaces as functors and network layers as natural transformations. This allows the network to process different graphs differently, provided that isomorphic structures are treated equivalently.
To ensure scalability, the authors introduce Local Natural Graph Networks (LNGNs). These restrict naturality to local neighborhoods: if two edges have isomorphic neighborhoods, the network applies the same weights. For neighborhoods with internal symmetries (automorphisms), the convolution kernel must satisfy specific equivariance constraints. In irregular graphs where exact symmetries are rare, the kernel is parameterized by a small "message network" that adapts to the local structure, making the architecture universal for a given neighborhood size.
Key Insights
- Naturality as a Generalization: Equivariance is a restrictive special case of naturality. Moving to naturality unlocks a more flexible class of graph networks.
- Bridging GNNs and CNNs: On regular 2D grids, NGNs simplify into standard Group-Equivariant CNNs, providing a theoretical link between graph and grid-based deep learning.
- Breaking the WL-Limit: By sensing local geometry and symmetry, NGNs can distinguish "strongly regular graphs" that standard GCNs find identical.
- Efficiency: NGNs achieve global-level expressivity with $O(|E|)$ linear scaling, making them suitable for large-scale applications.
Results and Performance
NGNs were evaluated across diverse tasks:
- Synthetic Expressiveness: NGN variants were the only models to perfectly disambiguate strongly regular graphs.
- Graph Classification: NGNs achieved state-of-the-art results on benchmarks like NCI109 (83.00% accuracy) and top rankings on PTC, NCI1, and IMDB datasets.
- IcoMNIST: The model achieved 98.82% accuracy on spherical MNIST, demonstrating perfect equivariance to icosahedral symmetries.
While NGNs are approximately 2x slower than basic GCNs due to a higher constant factor, they remain significantly faster than global equivariant methods for large graphs.
Limitations and Future Work
The model's power depends on the $k$-hop neighborhood size; larger $k$ increases expressivity but adds complexity. Additionally, the category-theoretic foundations may be challenging for practitioners. Future work includes extending this framework to simplicial complexes and manifolds.
Summary updated