Joint Edge-Model Sparse Learning is Provably Efficient for Graph Neural Networks

Shuai Zhang, Meng Wang, Pin-Yu Chen, Sijia Liu, Songtao Lu, Miao Liu

Introduction

Training Graph Neural Networks (GNNs) on massive datasets, such as social networks or citation webs, presents a significant computational challenge. This difficulty arises from "neighbor explosion"—where feature aggregation grows exponentially with network depth—and excessive model complexity. While empirical techniques like graph sparsification (sampling edges) and model sparsification (pruning neurons) are commonly used to mitigate these costs, a theoretical understanding of their joint impact has been lacking. This paper provides the first mathematical proof that combining these two techniques significantly improves GNN efficiency, reducing both the required sample complexity and the time to convergence without sacrificing predictive accuracy.

Theoretical Framework and Methods

The authors analyze a two-layer GNN designed for node classification. The proposed "joint edge-model sparse learning" pipeline consists of three main stages:

  1. Pre-training: The model is initially trained using edge sparsification, where a subset of neighbors is sampled for each node to reduce aggregation overhead.
  2. Pruning: A fraction ($\beta$) of neurons with the lowest weight magnitudes are removed.
  3. Re-training: The remaining "lucky neurons"—those whose initial weights align well with class-relevant patterns—are rewound to their initial values, and the sparse model is re-trained using edge sampling.
The GNN architecture used for node classification, illustrating the aggregation of neighbor features followed by ReLU activation and an output layer.

The core theoretical contribution is a data model where node features comprise class-relevant patterns and class-irrelevant noise. The analysis demonstrates that magnitude-based pruning effectively filters out neurons that would otherwise memorize noise, while importance sampling ($\alpha$) focuses the model on class-relevant nodes.

Key Insights and Results

The research proves that graph sampling and model pruning are complementary strategies. Sampling reduces noise from irrelevant neighbors, while pruning removes "unlucky" neurons that slow down the learning of relevant features.

Sample Complexity and Convergence

The authors derived explicit polynomial-order bounds showing that sample complexity is quadratic in $(1-\beta)/\alpha$. This formally demonstrates that increasing the pruning rate $\beta$ (up to a threshold) and the sampling quality $\alpha$ directly reduces the data requirement.

Experimental results on synthetic data: (Left/Middle) Heatmaps showing sample complexity $|D|$ as a function of sampling rate $\alpha$ and pruning rate $\beta$. (Right) Number of iterations to zero error vs. sampling rate $\alpha$.

Experimental results on synthetic and real-world datasets (Cora, Citeseer, Pubmed, and OGB benchmarks) validate these findings:

  • Efficiency Gains: In synthetic tests, the number of iterations required to reach zero error decreased as the importance sampling rate ($\alpha$) increased (see Figure 3, right).
  • Robustness to Pruning: On the Citeseer dataset, the model maintained or even improved test accuracy after pruning over 90% of neurons and 25% of edges. For example, a sparse model with 96 training samples outperformed a dense model with 120 samples.

Conclusion

This work establishes a theoretical foundation for the joint use of edge and model sparsification in GNNs. While the current analysis focuses on two-layer networks and specific data structures, it paves the way for future research into deeper architectures and more complex sampling strategies like FastGCN. The findings suggest that joint sparsification is a "win-win" strategy for scaling GNNs to massive real-world graphs.

Summary updated

BibTeX
@inproceedings{zhang2023joint,
  author = {Shuai Zhang and Meng Wang and Pin-Yu Chen and Sijia Liu and Songtao Lu and Miao Liu},
  title = {{Joint Edge-Model Sparse Learning is Provably Efficient for Graph Neural Networks}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=4UldFtZ_CVF},
}
Figure