Abstract
Deep Graph Neural Networks (GNNs) are essential for capturing long-range dependencies in complex graphs, yet they are frequently bottlenecked by the "neighborhood explosion" problem. As depth increases, the number of nodes required for a single update grows exponentially, making end-to-end training on massive industrial-scale graphs computationally prohibitive. We present LazyGNN, a novel framework that achieves the expressive power of deep GNNs using shallow architectures. By "lazily" propagating information across training iterations and utilizing implicit gradient methods, LazyGNN decouples memory consumption from model depth. Our results on large-scale benchmarks like ogbn-products demonstrate that LazyGNN achieves state-of-the-art accuracy while being significantly faster and more memory-efficient than existing scalable GNN variants.
1. Introduction
Graph Neural Networks have revolutionized tasks ranging from social network analysis to molecular discovery. However, a fundamental tension exists between a model's depth and its scalability. To capture information from distant nodes, a GNN must stack multiple layers of message passing. In large, dense graphs, this leads to the neighborhood explosion problem: the receptive field of a single node can quickly encompass a significant portion of the entire graph.
Existing strategies to mitigate this, such as neighbor sampling or graph partitioning, often introduce high approximation errors or sacrifice the benefits of end-to-end learning. LazyGNN offers a different paradigm: instead of performing deep propagation in every forward pass, it distributes the propagation over the course of the training process.
2. The LazyGNN Framework
2.1 Lazy Forward Propagation
The core intuition behind LazyGNN is the observation of computational redundancy. In traditional training, hidden features are recomputed from scratch every epoch, even though model parameters change only incrementally.
LazyGNN stays "shallow" (typically 1-2 layers) but maintains a memory of propagated features from the previous training iteration (epoch $k-1$). By mixing these historical features into the current iteration (epoch $k$), the model effectively accumulates long-range information over time. This allows a 2-layer model to eventually behave like a 10-layer model, capturing deep graph structures without the immediate overhead of a 10-layer receptive field.
2.2 Implicit Gradient Computation
Reusing historical states usually necessitates Backpropagation Through Time (BPTT), which is notoriously memory-intensive. To avoid this, LazyGNN employs the Implicit Function Theorem. By treating the graph diffusion process as a fixed-point problem, the model can compute gradients based on the equilibrium state of the features. This mathematical approach ensures that the memory cost remains $O(NH)$ (where $N$ is the number of nodes and $H$ is the hidden dimension), making it entirely independent of the number of virtual propagation layers.
2.3 Mini-batch Scalability
LazyGNN is designed for real-world application through a mini-batch compatible version. Because the physical model remains shallow, the subgraphs sampled for each batch remain small and manageable. This compatibility ensures that LazyGNN can scale to graphs with millions of nodes and tens of millions of edges without requiring specialized high-memory hardware.
3. Experimental Evaluation
3.1 Benchmarks and Setup
The researchers evaluated LazyGNN against several competitive baselines (including GraphSAGE, Cluster-GCN, and APPNP) across various large-scale datasets:
- Social/Web Networks: REDDIT, YELP, and FLICKR.
- Open Graph Benchmark (OGB):
ogbn-arxivandogbn-products(2.4M nodes, 61M edges).
3.2 Performance and Efficiency
LazyGNN demonstrated superior performance in both predictive accuracy and computational efficiency:
- Accuracy: On the
ogbn-productsdataset, LazyGNN achieved 82.3% accuracy, outperforming complex deep baselines. - Training Speed: LazyGNN proved remarkably fast. On
ogbn-products, it required only 7.7 seconds per epoch. In comparison, GCN (GAS) took 28.8 seconds, and APPNP (GAS) took 84.5 seconds. - Memory Footprint: The model required only 878 MB of additional storage for feature and gradient tensors on the largest benchmark, maintaining this efficiency regardless of the simulated depth.
4. Discussion and Conclusion
LazyGNN represents a shift in how we think about GNN depth. By recognizing that "shallow can be deep" when information is allowed to persist across iterations, the framework effectively bypasses the neighborhood explosion problem.
While currently optimized for node classification, the underlying principle of lazy propagation holds potential for other graph-based tasks. Future work will involve extending this implicit modeling to non-linear GNN architectures and exploring hardware-level optimizations to further accelerate the fixed-point convergence. LazyGNN proves that capturing the "deep" graph does not have to come with a "deep" computational headache.
Summary updated