Layer-Dependent Importance Sampling for Training Deep and Large Graph Convolutional Networks

Difan Zou, Ziniu Hu, Yewen Wang, Song Jiang, Yizhou Sun, Quanquan Gu

TL;DR

LADIES (LAyer-Dependent ImportancE Sampling) is a novel sampling algorithm that enables efficient training of deep and large-scale Graph Convolutional Networks (GCNs). By conditioning the sampling of one layer on the nodes selected in the layer above, it ensures a dense computation graph while avoiding the exponential "neighbor explosion" that plagues traditional node-wise sampling methods.

What Problem Does This Paper Address?

Training GCNs on massive graphs—like social networks with billions of nodes—is notoriously difficult. Standard full-batch training requires loading the entire graph and all node embeddings into memory, which is often computationally impossible.

To solve this, researchers previously turned to two types of sampling:

  1. Node-wise Sampling (e.g., GraphSAGE): This recursively samples neighbors for each node. However, as the network gets deeper, the number of nodes to sample grows exponentially (the "neighbor explosion" problem), and many nodes are sampled redundantly.
  2. Layer-wise Sampling (e.g., FastGCN): This samples a fixed number of nodes per layer independently. While it solves the explosion problem, it introduces a "sparse connection problem": because nodes are sampled independently at each layer, they might not actually be connected to the nodes in the layer above, leading to poor information flow and high variance.
Comparison of Sampling Methods

Methods

The authors propose LADIES, which combines the best of both worlds. The key innovation is a top-down, layer-dependent sampling strategy:

  • Bipartite Subgraph Construction: Instead of sampling nodes for layer $l$ independently, LADIES looks at the nodes already sampled for layer $l+1$. It identifies all potential neighbors of these nodes in the original graph to form a bipartite matching.
  • Importance Sampling: It calculates an importance probability for these potential neighbors based on the graph's Laplacian matrix. This ensures that the nodes most "important" to the upper layer are more likely to be selected.
  • Fixed Sample Size: It samples a fixed number of nodes per layer, keeping the computation cost constant regardless of depth.
  • Row-wise Normalization: After sampling, the resulting small adjacency matrix is normalized to maintain the scale of embeddings and prevent vanishing or exploding gradients in deep architectures.

Key Insights and Ideas

  • Connectivity is King: The "aha moment" here is that sampling efficiency isn't just about the number of nodes, but how they connect across layers. By making sampling dependent on the layer above, LADIES guarantees a dense, well-connected computation graph.
  • Stochastic Regularization: Surprisingly, LADIES often achieves higher accuracy than full-batch GCNs. The authors argue that the stochastic nature of sampling acts as a form of regularization (similar to Dropout or Bagging), helping the model ignore noise in real-world graphs and generalize better.
  • Scalability to Deep Networks: Because the complexity is linear with respect to the number of layers (not exponential), LADIES allows researchers to experiment with much deeper GCNs than previously feasible on large graphs.

Key Results

The researchers evaluated LADIES on standard benchmarks, including Cora, Citeseer, Pubmed, and the large-scale Reddit dataset (over 230,000 nodes and 11 million edges).

Complexity Comparison Table
  • Superior Accuracy: On the Reddit dataset, LADIES achieved a 92.8% F1-score, outperforming both FastGCN (which struggled to converge on large graphs) and GraphSAGE.
  • Memory Efficiency: On Reddit, LADIES required only 7.26 MB of memory for hidden representations, compared to a staggering 2370.48 MB required by full-batch GCN—a reduction of over 300x.
  • Training Speed: LADIES is significantly faster than GraphSAGE because it eliminates redundant neighbor calculations. For example, on the Cora dataset, LADIES (512 samples) was nearly 10x faster in total training time than GraphSAGE.

Limitations and Future Work

  • Preprocessing Overhead: While the sampling itself is efficient, the method still requires the normalized Laplacian matrix of the full graph as input. For truly gargantuan graphs that don't fit on a single machine's disk, this could be a bottleneck.
  • Sample Size Sensitivity: While the paper shows LADIES works well even with small sample sizes (e.g., 64 or 512 nodes), the optimal sample size likely depends on the specific graph topology, which may require tuning.
  • Future Directions: The authors suggest that the layer-dependent importance sampling framework could be extended beyond GCNs to other types of graph neural networks or even different domains where hierarchical dependency exists.

Summary updated

BibTeX
@inproceedings{zou2019layer,
  author = {Difan Zou and Ziniu Hu and Yewen Wang and Song Jiang and Yizhou Sun and Quanquan Gu},
  title = {{Layer-Dependent Importance Sampling for Training Deep and Large Graph Convolutional Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
  url = {https://openreview.net/forum?id=Ur1HfY-dBQd},
}
Figure