NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Connectivity-Guided Sparsification of 2-FWL GNNs: Preserving Full Expressivity with Improved Efficiency

Rongqin Chen, Fan Mo, Pak Lon Ip, Shenghui Zhang, Dan Wu, Ye Li, Leong Hou U · DOI

Abstract

Higher-order Graph Neural Networks (GNNs) based on the 2-FWL hierarchy offer superior expressive power compared to standard message-passing GNNs but suffer from high computational costs ($O(n^3)$ operations and $O(n^2)$ memory). This paper introduces Co-Sparsify, a framework that leverages graph connectivity theory to prune redundant computations. By restricting 3-node interactions to biconnected components, Co-Sparsify reduces memory and runtime by up to 60% without sacrificing theoretical expressivity. Our results demonstrate that Co-Sparsify achieves state-of-the-art performance on molecular benchmarks like ZINC and QM9 while significantly improving scalability.

Introduction

Standard GNN architectures, such as GCN or GIN, are computationally efficient but theoretically limited by the 1-WL (Weisfeiler-Lehman) isomorphism test barrier. They cannot distinguish certain non-isomorphic graphs or detect complex substructures like cycles. Higher-Order GNNs (HOGNNs) overcome this by considering triplets of nodes, but their cubic complexity makes them impractical for large-scale applications. Previous sparsification attempts often relied on local neighborhoods or random sampling, which typically results in a loss of the model's "structural intelligence."

The core challenge addressed here is: Can we achieve the expressive power of 2-FWL models with sub-cubic efficiency?

Methodology: The Co-Sparsify Framework

Co-Sparsify utilizes the inherent topology of a graph to identify and eliminate "expressivity-redundant" calculations. The framework is built upon two fundamental concepts from graph theory:

  1. Connected Components: Subgraphs where every node is reachable from every other node.
  2. Biconnected Components (Blocks): Maximal subgraphs that remain connected even if any single node (an articulation point or "cut node") is removed. These components are where cycles and complex cliques reside.
Overview of Co-Sparsify: (a) 3-node interactions are restricted to biconnected components, (b) 2-node interactions handle connected components, and (c) component-level readouts aggregate information.

The Co-Sparsify Rule

To maintain 2-FWL expressivity while reducing overhead, Co-Sparsify applies the following logic:

  • 3-node interactions are performed only if all three nodes belong to the same biconnected component.
  • 2-node interactions are restricted to nodes within the same connected component.
  • Global Readouts aggregate information across disconnected components.

This decomposition is implemented using the Block-Cut Tree algorithm, which identifies these components in linear time ($O(n+m)$). By filtering message passing through this topological skeleton, the model ensures that critical structures like triangles or 4-cycles are always detected, while ignoring redundant triplets that do not contribute to structural distinction.

Theoretical Foundation

The validity of this pruning is rooted in Menger’s Theorem. The authors prove that 3-node interactions are only expressively necessary within biconnected components. If a path between two nodes must pass through a cut node, the 3-node interaction provides no information that isn't already captured by simpler 2-node interactions. Thus, Co-Sparsify is not an approximation; it is a deterministic optimization that preserves the full theoretical power of the 2-FWL test.

Experimental Results

The researchers evaluated the framework using CoSp-PPGN, a sparsified variant of Provably Powerful Graph Networks. The model was tested across synthetic substructure counting tasks, molecular regression (QM9, ZINC), and graph classification (TUD benchmarks).

Efficiency and Performance

On the QM9 dataset, Co-Sparsify reduced memory consumption by 52% and runtime by 37%. Despite this reduction in resource usage, the model maintained or improved upon the accuracy of dense 2-FWL models. Notably, CoSp-PPGN combined with Relative Random Walk Probabilities (RRWP) achieved state-of-the-art results on the ZINC-Full dataset with a Mean Absolute Error (MAE) of 0.018.

Performance comparison on the QM9 dataset. CoSp-PPGN+RRWP achieves state-of-the-art results across multiple targets while maintaining efficiency.

Conclusion and Future Work

Co-Sparsify demonstrates that graph topology can serve as a natural filter for high-order GNN computations. By focusing on biconnected components, the framework allows 2-FWL models to scale to larger, irregular graphs that were previously computationally prohibitive. While the current implementation focuses on the 2-FWL level, future work could extend this connectivity-guided logic to even higher-order hierarchies (e.g., 3-FWL), where the potential for computational savings is even greater. Additionally, addressing issues like "over-squashing" in very deep architectures remains a key area for further refinement.

Summary updated

BibTeX
@inproceedings{chen2026connectivity,
  author = {Rongqin Chen and Fan Mo and Pak Lon Ip and Shenghui Zhang and Dan Wu and Ye Li and Leong Hou U},
  title = {{Connectivity-Guided Sparsification of 2-FWL GNNs: Preserving Full Expressivity with Improved Efficiency}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i24.39110},
}
Figure