Abstract
Training Graph Neural Networks (GNNs) on large-scale graphs is computationally challenging due to the "neighbor explosion" problem, where the number of nodes involved in aggregation grows exponentially with network depth. While sampling techniques mitigate this, they introduce high variance that degrades model performance. This paper presents HE-SGNN, a framework that addresses the "circular dependency" in optimal sampling—where the ideal sampling probability requires node embeddings that are yet to be computed. By employing hierarchical estimation, HE-SGNN approximates these embeddings to stabilize training and reduce variance across layer-wise, subgraph, and node-wise sampling paradigms.
Introduction
GNNs are powerful tools for learning on graph-structured data, but their scalability is limited by the recursive neighborhood aggregation process. To handle massive graphs, researchers use sampling methods to select a subset of neighbors or subgraphs for each training step. However, sampling introduces variance, which can lead to unstable training and suboptimal accuracy.
Theoretically, the variance of a sampler is minimized when the sampling probability is proportional to the importance of a node, which is determined by its current embedding. This creates a circular dependency: one needs to sample to calculate embeddings, but one needs the embeddings to know how to sample optimally. Previous methods often bypassed this by using static heuristics or expensive external parameters. HE-SGNN resolves this by introducing a hierarchical estimation framework that breaks this cycle without significant computational overhead.
Methodology: Breaking the Circular Dependency
HE-SGNN operates through a two-level approach: Estimation and Execution. In the estimation phase, the framework approximates the missing embedding information needed to calculate near-optimal sampling probabilities. In the execution phase, it performs the actual GNN aggregation using these probabilities.
Layer-wise Sampling (HE-SGNN-L)
For layer-wise sampling, HE-SGNN-L treats the training process as a Time Series Simulation. Since node embeddings typically change slowly between training epochs, the framework uses historical embeddings from previous rounds as proxies for current values. To ensure that all nodes are explored early in training, it uses Optimistic Initialization, assigning high estimated values to nodes that haven't been sampled frequently. This prevents a "vicious cycle" where a node with a low initial probability is never sampled and thus never updated.
Subgraph and Node-wise Sampling
In subgraph sampling (HE-SGNN-S), where partitioning often happens before training begins, historical data is unavailable. Instead, the framework uses a Feature-based Simulation, leveraging raw input features as a proxy for hidden embeddings. The authors also derived a novel Edge Sampler (SE) to reduce the risk of creating isolated nodes during the sampling process.
Experimental Evaluation
The model was evaluated on seven authoritative benchmarks, including citation networks (Cora, Citeseer, Pubmed), social networks (Flickr, Reddit), and massive industrial graphs like Ogbn-products (an Amazon product graph with ~2.4 million nodes and 61 million edges).
Key Results
- Superior Accuracy: HE-SGNN consistently outperformed state-of-the-art samplers like FastGCN, ASGCN, and GraphSAINT. On the massive Ogbn-products dataset, the HE-SGNN subgraph edge sampler achieved an accuracy of 80.3%, significantly higher than standard GCN baselines.
- Efficiency and Convergence: The framework maintains the speed of the fastest "unbiased" samplers. Unlike models that use complex attention mechanisms, HE-SGNN adds almost zero computational overhead by reusing training history or raw features. Furthermore, the reduction in sampling variance leads to smoother and faster convergence.
Conclusion and Future Work
HE-SGNN provides a unified theoretical foundation for variance reduction in GNN sampling. By identifying the circular dependency problem and solving it through hierarchical estimation, the framework enables efficient and effective training on large-scale graphs. While the current implementation focuses on layer-wise and subgraph methods, the underlying theory is applicable to node-wise sampling as well. Future research may explore more sophisticated simulation techniques to further tighten variance bounds and improve performance on graphs with noisy features.
Summary updated