Graph Neural Networks (GNNs) often rely on deep architectures or complex message-passing schemes—such as K-Hop or K-Path aggregations—to achieve high expressive power. However, this pursuit of expressiveness introduces massive computational redundancy. This paper introduces "pruned" frameworks that strip out redundant structural computations, resulting in GNNs that maintain the exact same expressive power as their heavier counterparts but run significantly faster and require far fewer parameters.
The Cost of Expressiveness in GNNs
Standard Message Passing GNNs (MP-GNNs) are theoretically bounded by the 1-Weisfeiler-Lehman (1-WL) test, meaning they cannot distinguish between certain non-isomorphic graph structures. To overcome this limitation, researchers typically build much deeper networks or use higher-order aggregations like K-Hop or K-Path message passing, where a node aggregates data from $K$ steps away in a single layer.
Unfortunately, these approaches introduce severe inefficiencies. Deep MP-GNNs suffer from performance degradation due to excessive nonlinearity and over-smoothing. More importantly, standard, K-Hop, and K-Path GNNs all suffer from redundant structures. They repeatedly encode the exact same neighborhood cardinality information across multiple iterations. This bloats time and space complexity without actually adding new representational power, making the models harder to train and scale.
As shown above, standard WL aggregation creates highly overlapping, redundant neighborhood trees. Pruning these structures eliminates the repeated encoding of the same nodes.
Pruning Strategies for Efficient Aggregation
To solve this, the authors propose "pruned" versions of existing GNN architectures by altering when and how neighborhood information is aggregated. By carefully scheduling which hops or paths are aggregated at which layer, overlap is entirely cut off without losing the structural fingerprint of the graph.
- Pruned MP-GNN ($2^{k-1}$-walk): Instead of aggregating 1-hop neighbors at every single layer, the pruned MP-GNN aggregates features from $2^{k-1}$-walk neighbors at the $k$-th layer. This allows the receptive field to grow exponentially rather than linearly, bypassing the depth bottleneck and avoiding optimization difficulties associated with piling up dozens of layers.
- Pruned K-Path and K-Hop GNNs: In standard K-Path/Hop GNNs, nodes aggregate from 1-path/hop neighbors up to K-path/hop neighbors at every layer. The pruned versions streamline this: at layer $l$ (where $l \le K$), they only aggregate from $l$-path/hop neighbors up to $K$-path/hop neighbors, ignoring the shorter paths that were already encoded in previous layers.
To prove these pruned models do not lose information, the authors use MATLANG (a matrix query language). By mapping GNN operations to linear algebra, they mathematically prove that the pruned architectures are expressively equivalent to their unpruned counterparts (e.g., Pruned K-Path $\equiv$ standard K-Path).
Key Results and Performance
The pruned architectures deliver more power at a lower cost. Pruned K-Path and K-Hop GNNs actually end up with lower computational complexity than standard MP-GNNs when gathering information from distant nodes, yet they can distinguish complex non-isomorphic graphs that standard MP-GNNs cannot.
- Complexity Reduction: Time and space complexity for MP-GNNs drops from $\Theta(n \cdot L)$ to $\Theta(n \cdot \log L)$ (where $L$ is the distance of information gathered). For K-Hop/K-Path, it drops from $\Theta(n \cdot L)$ to $\Theta(n \cdot L/K)$.
- Expressive Equivalence: On synthetic datasets (EXP, SR25, CSL), the pruned models achieved the exact same accuracy as the original models, empirically validating the theoretical proofs of equivalent expressive power.
- Real-World Performance: Pruned K-Hop and Pruned K-Path consistently outperformed their original counterparts and baselines (like GraphSAGE and standard GIN) on molecular property prediction (QM9, ZINC) and TU datasets. For example, on ZINC, Pruned K-Hop achieved a test MAE of 0.077 (vs. 0.134 for standard GIN) while using approximately 100k fewer parameters than the unpruned K-Hop model.
- Speedup: Ablation studies on training efficiency showed that pruned models consistently required less training time per epoch compared to the unpruned versions.
Limitations and Future Directions
While the authors proved strict expressive equivalence for Pruned K-Path and Pruned MP-GNNs across all graphs, there is a slight theoretical gap for K-Hop. They could only mathematically prove equivalence for Pruned K-Hop on regular and strongly regular graphs. This is because the matrix language transformation loses some specific shortest-path count information during the proof process. However, empirically, the models perform equivalently on general graphs.
A natural extension of this work is applying these pruning strategies to other higher-order (e.g., 3-WL) or subgraph-based GNN architectures to further optimize the trade-off between expressivity and scalability.
Summary updated