Introduction
As Graph Neural Networks (GNNs) are deployed on increasingly massive real-world datasets, such as social networks and molecular structures, the computational cost of inference has become a significant bottleneck. This is particularly true for memory-constrained edge devices. The primary driver of this complexity is graph density; more edges necessitate more message-passing operations, increasing both latency and power consumption.
Existing graph sparsification techniques often require expensive retraining or rely on heuristic importance scores that fail to distinguish between beneficial and detrimental edges. This paper proposes a novel approach using game-theoretic Shapley values to identify and prune unimportant or misleading edges in a one-shot manner, significantly accelerating inference without requiring model retraining.
Methodology: The GNNShap Workflow
The core of the proposed method is the use of Shapley values to rank edge importance. In this framework, edges are treated as players in a cooperative game where the "payout" is the GNN's prediction confidence. Unlike traditional importance scores, Shapley values can be negative, indicating that an edge actively reduces the model's confidence in the correct classification—essentially acting as noise or an adversarial connection.
The workflow consists of three main stages:
- Local Explanation: For a target node, the algorithm calculates the Shapley value for every edge within its computational neighborhood.
- Global Aggregation: Since an edge may participate in the neighborhoods of multiple nodes, local scores are combined using mean aggregation to derive a single global importance score for every edge in the graph.
- One-Shot Pruning: Edges are sorted by their global scores. The algorithm prunes edges starting from those with the most negative or lowest scores until the target sparsity is achieved.
To overcome the NP-hard nature of exact Shapley value computation, the authors utilize GNNShap, an efficient approximation method that employs a surrogate model to estimate edge contributions.
Experimental Evaluation
The method was evaluated on standard benchmarks, including citation networks (Cora, CiteSeer, PubMed) and coauthorship networks (Coauthor-CS). The results demonstrate that identifying "misleading" edges (those with negative attribution) is a powerful mechanism for maintaining performance at high sparsity levels.
On the Cora dataset, GNNShap successfully pruned 80% of edges with less than a 2% drop in accuracy for both GCN and GAT architectures. This level of pruning translated to a 64-65% reduction in Multiply-Accumulate (MAC) operations during the message-passing phase. Notably, GNNShap consistently outperformed other explainability-based baselines like Integrated Gradients and GNNExplainer, particularly at extreme pruning rates (above 50% sparsity).
Conclusion
Shapley-value-based sparsification offers a robust, "one-shot" solution for accelerating GNN inference. By leveraging negative attribution to remove misleading edges, the method achieves high sparsity with minimal accuracy loss. Furthermore, the resulting sparse graphs are inherently more interpretable, as they retain only the connections the model fundamentally relies on for its predictions.
Summary updated