Subgraph Permutation Equivariant Networks

Joshua Mitton, Roderick Murray-Smith

Abstract

In this work we develop a new method, named Sub-graph Permutation Equivariant Networks (SPEN), which provides a framework for building graph neural networks that operate on sub-graphs, while using a base update function that is permutation equivariant, that are equivariant to a novel choice of automorphism group. Message passing neural networks have been shown to be limited in their expressive power and recent approaches to over come this either lack scalability or require structural information to be encoded into the feature space. The general framework presented here overcomes the scalability issues associated with global permutation equivariance by operating more locally on sub-graphs. In addition, through operating on sub-graphs the expressive power of higher-dimensional global permutation equivariant networks is improved; this is due to fact that two non-distinguishable graphs often contain distinguishable sub-graphs. Furthermore, the proposed framework only requires a choice of $k$-hops for creating ego-network sub-graphs and a choice of representation space to be used for each layer, which makes the method easily applicable across a range of graph based domains. We experimentally validate the method on a range of graph benchmark classification tasks, demonstrating statistically indistinguishable results from the state-of-the-art on six out of seven benchmarks. Further, we demonstrate that the use of local update functions offers a significant improvement in GPU memory over global methods.

The Expressivity Bottleneck in GNNs

Standard Message Passing Neural Networks (MPNNs) are the workhorses of graph machine learning, but they face a fundamental "glass ceiling": their expressive power is limited by the 1-Weisfeiler-Leman (1-WL) test. This means there are many pairs of non-isomorphic graphs—graphs that are structurally different—that an MPNN simply cannot tell apart because they produce identical node colorings under the WL algorithm.

WL-indistinguishable non-isomorphic graphs

To break this ceiling, researchers previously developed higher-dimensional GNNs (like $k$-GNNs) that are more expressive but suffer from poor scalability, often requiring $O(n^k)$ memory and computation. This makes them unusable for large graphs. Another approach involves using subgraphs, but existing methods often lack a principled way to handle the complex symmetries that arise when a graph is decomposed. SPEN seeks a middle ground: a model that is provably more expressive than 1-WL but scales linearly with the number of nodes.

Subgraph Permutation Equivariant Networks (SPEN)

The core of SPEN is a framework that boosts expressive power by operating on local subgraphs rather than the entire graph at once. By treating a graph as a "bag of bags of subgraphs" and enforcing specific symmetry constraints (automorphism equivariance), SPEN achieves high performance while remaining memory-efficient.

Overview of the SPEN architecture

The SPEN pipeline consists of several key stages:

  1. Graph Decomposition: The input graph is decomposed into $k$-hop ego-networks (subgraphs centered around each node).
  2. Bagging by Symmetry: These subgraphs are grouped into "bags" based on their size and structure. Each bag represents a different automorphism group.
  3. Equivariant Processing: Within each subgraph, the model uses a permutation equivariant base encoder (typically using order-1 tensors for nodes and order-2 for edges).
  4. Automorphism Equivariant Linear Maps: The model applies linear update functions that are shared among subgraphs in the same bag but can differ between bags. This allows the model to process different local structures with specialized kernels.
  5. Global Aggregation: Information is propagated locally within subgraphs and then promoted back to the global level via averaging and an MLP to produce the final output.

Key Insights and Scalability

  • Local vs. Global Symmetries: Global permutation equivariance is a very restrictive constraint. By moving to subgraphs, the model exploits local symmetries which are often more informative and computationally cheaper.
  • Distinguishable Subgraphs: Even if two global graphs are indistinguishable by the WL test, their constituent subgraphs are often distinguishable. By operating on these pieces, SPEN "sees" the structural differences the global test misses.
  • Memory Efficiency: Because SPEN operates on small subgraphs (typically 3–10 nodes) rather than the full graph, the memory footprint of higher-order tensor operations stays manageable. SPEN can process graphs with 10,000 nodes using less GPU memory than global methods require for just 500 nodes.

Experimental Results

The authors evaluated SPEN on seven standard graph classification benchmarks from the TUDataset collection, including bioinformatics (MUTAG, PTC, PROTEINS, NCI1, NCI109) and social networks (IMDB-B, IMDB-M).

  • Expressivity: SPEN successfully distinguished Strongly Regular graphs, a task where standard GCNs and even some higher-order models like PPGN fail.
  • Benchmark Performance: SPEN achieved results statistically indistinguishable from or better than the state-of-the-art on six out of seven benchmarks. For example, it achieved 93.3% accuracy on MUTAG and 83.7% on NCI1.
  • Scalability: In GPU memory tests, SPEN demonstrated an order-of-magnitude improvement over global permutation equivariant models, scaling comfortably to 10,000 nodes while global models hit limits at 500.

Limitations and Future Directions

The main limitation noted was on the IMDB-M dataset, where SPEN performed slightly weaker than some competitors, likely due to the specific parameterization of the automorphism constraint. Future work includes integrating higher-order representations (beyond order-2 tensors) and exploring different subgraph selection policies, such as specific structural motifs like cycles or paths, to provide better inductive biases for specialized domains.

Summary updated

BibTeX
@article{mitton2023subgraph,
  author = {Joshua Mitton and Roderick Murray-Smith},
  title = {{Subgraph Permutation Equivariant Networks}},
  journal = {Accepted by TMLR},
  year = {2023},
  url = {https://openreview.net/forum?id=3agxS3aDUs},
}
Figure