This paper presents a clever way to make high-order Graph Neural Networks (GNNs) faster without sacrificing their "brainpower." By leveraging classical graph theory—specifically the study of connectivity—the authors show that we can prune a massive amount of redundant computation while maintaining the theoretical expressivity of the 2-FWL test.
TL;DR
The authors introduce Co-Sparsify, a framework that prunes redundant 3-node interactions in higher-order GNNs by restricting them to biconnected components. This approach reduces memory and runtime by up to 60% while provably maintaining the same expressive power as dense 2-FWL models, achieving state-of-the-art results on molecular benchmarks like ZINC and QM9.
What Problem Does This Paper Address?
Standard GNNs (like GCN or GIN) are efficient but limited; they cannot distinguish certain non-isomorphic graphs, a limitation known as the "1-WL" barrier. To solve this, researchers use Higher-Order GNNs (HOGNNs) based on the 2-FWL (or 3-WL) hierarchy. These models look at triplets of nodes, allowing them to detect complex structures like cycles and cliques.
The catch? They are computationally expensive. A 2-FWL GNN typically requires $O(n^3)$ operations and $O(n^2)$ memory for a graph with $n$ nodes. While previous "sparsification" methods tried to speed this up by sampling subgraphs or restricting interactions to local neighborhoods, they almost always lost theoretical expressivity in the process. The challenge was: Can we have $O(n^3)$ power with sub-cubic efficiency?
Methods
The authors propose Co-Sparsify, which uses the graph’s own topology to decide which computations are actually necessary. Their approach relies on two key concepts from graph theory:
- Connected Components: Groups of nodes where every node can reach every other node.
- Biconnected Components (Blocks): Maximal subgraphs that remain connected even if any single node is removed. These are the "sturdy" parts of a graph where cycles live.
The Co-Sparsify Rule: * 3-node interactions are only performed if all three nodes belong to the same biconnected component. * 2-node interactions are only performed if the nodes are in the same connected component. * Global Readouts handle the relationships between disconnected components.
To implement this, they use the Block-Cut Tree decomposition (via Tarjan’s algorithm), which identifies these components in linear time ($O(n+m)$). By restricting message passing to these specific "neighborhoods," they eliminate "expressivity-redundant" calculations—triplets that don't actually help the model learn anything new about the graph's structure.
Datasets
The researchers evaluated Co-Sparsify (specifically a variant called CoSp-PPGN) on a wide range of benchmarks:
- Synthetic Substructure Counting: Tasks involving counting triangles, tailed triangles, chordal cycles, and cycles of lengths 3–6.
- Molecular Regression: The QM9 dataset (130k molecules) and the ZINC dataset (both the 12k subset and the 250k full version).
- Graph Classification: Several TUD benchmarks, including FRANKENSTEIN, NCI1, NCI109, and ENZYMES.
Key Insights and Ideas
- Menger’s Theorem is the Key: The authors use Menger’s theorem to prove that 3-node interactions are only "expressively necessary" inside biconnected components. If a path between two nodes must pass through a "cut node" (an articulation point), the 3-node interaction doesn't provide any information that isn't already captured by simpler 2-node interactions.
- Topology as a Natural Filter: Instead of using a fixed radius (like "only look 2 hops away") or random sampling, Co-Sparsify uses the graph's inherent "skeleton." This ensures that if a triangle or a 4-cycle exists, the model will see it, regardless of how "sparse" the overall computation becomes.
- No Approximation Needed: Unlike many efficiency methods, this isn't an approximation. It is a deterministic pruning of operations that are mathematically proven to be redundant for the 2-FWL test.
Key Results
- Efficiency Gains: On the QM9 dataset, memory consumption dropped by 52% and runtime was reduced by 37%. On ZINC-subset, runtime improved by 15%.
- Expressivity Preserved: The model matched the performance of dense 2-FWL models on synthetic substructure counting, proving that no "structural intelligence" was lost.
- State-of-the-Art (SOTA): CoSp-PPGN + RRWP (Relative Random Walk Probabilities) achieved SOTA results on ZINC-Full with a Mean Absolute Error (MAE) of 0.018, outperforming much heavier models.
- Scalability: Because the complexity scales with the size of the components rather than the whole graph, Co-Sparsify allows 2-FWL models to run on larger, irregular graphs that would normally crash a GPU due to memory limits.
Limitations and Future Work
- Over-squashing: Like many GNNs, the model still struggles with "over-squashing"—the loss of information when trying to compress long-range dependencies into a single vector. The authors noted that while the model is expressive, deep versions can sometimes perform worse than shallow ones on specific tasks like
Peptides-struct. - Distance-Aware Extension: To combat over-squashing, the authors experimented with a "Connectivity- and Distance-Aware" version that limits interactions to a 4-hop radius, which showed promise in improving generalization.
- Scaling Beyond 2-FWL: The current work focuses on the 2-FWL/3-WL level. A natural next step is extending this connectivity-guided logic to even higher orders (like 3-FWL), where the computational savings would be even more dramatic.
Summary updated