FastGCN: Fast Learning with Graph Convolutional Networks via Importance Sampling

Jie Chen, Tengfei Ma, Cao Xiao

Graph Convolutional Networks (GCNs) have emerged as a powerful tool for learning on graph-structured data. However, as graphs grow in size and complexity, standard GCNs face severe scalability bottlenecks. The paper "FastGCN: Fast Learning with Graph Convolutional Networks via Importance Sampling" (ICLR 2018) by Jie Chen, Tengfei Ma, and Cao Xiao addresses these limitations by reinterpreting graph convolutions as integral transforms. By utilizing layer-wise importance sampling instead of recursive neighborhood expansion, FastGCN achieves orders-of-magnitude faster training and enables inductive learning on massive, dynamic graphs without sacrificing accuracy.

The Scalability Bottleneck in Standard GCNs

Standard GCNs face two major hurdles when applied to real-world tasks:

  1. The "Neighbor Explosion" Problem: To compute the representation of a single node in a deep GCN, the model must aggregate features from its neighbors, its neighbors' neighbors, and so on. In dense or "power-law" graphs (like social networks), this recursive expansion quickly touches a massive portion of the graph. Consequently, mini-batch training becomes extremely memory-intensive and slow.
  2. Transductive Learning Limitations: Original GCN architectures are inherently "transductive," meaning they require the entire graph structure—including test nodes—to be present during training. This makes them impractical for dynamic applications where new nodes continuously join the network.

The FastGCN Approach: Integral Transforms and Sampling

To overcome these challenges, FastGCN shifts the perspective of graph convolutions from discrete matrix operations to a functional, continuous domain.

Graph convolution vs. integral transform view
  • Integral Transform View: The authors interpret graph convolutions as integral transforms of embedding functions under a probability measure. This paradigm shift allows them to treat graph nodes as independent and identically distributed (i.i.d.) samples from a continuous distribution, justifying the use of Monte Carlo methods to estimate the "convolution" integral.
  • Layer-wise Sampling: Unlike previous methods (such as GraphSAGE) that sample a fixed number of neighbors for every node, FastGCN samples a fixed number of nodes for each layer independently. This decoupling means the computational cost grows additively with the number of layers, rather than exponentially, effectively solving the neighbor explosion problem.
  • Importance Sampling: Random uniform sampling can introduce high variance. To stabilize gradients and improve convergence, FastGCN employs an importance sampling scheme. A sampling probability is calculated for each node based on the $L_2$ norm of the columns of the normalized adjacency matrix. This ensures that structurally "influential" nodes are sampled more frequently.
  • Inductive Capability: Because the model learns a generalized embedding function rather than fixed, transductive node embeddings, it can seamlessly perform inference on new, unseen nodes.

Key Insights and Performance

The authors evaluated FastGCN on three benchmark citation and social network datasets: Cora (small), Pubmed (medium), and Reddit (large, dense, ~11.6 million edges).

Training time comparison across models

Massive Speedup and Memory Efficiency The most striking result is FastGCN's efficiency. On the large Reddit dataset, FastGCN's per-batch training time was approximately 0.0129 seconds, compared to 2.17 seconds for a batched version of the original GCN—a speedup of over 100x. Furthermore, while the original GCN ran out of memory on Reddit, FastGCN handled the dense graph easily due to its decoupled layer-wise sampling.

Competitive Accuracy Despite relying heavily on sampling, FastGCN maintains high predictive performance. On the Reddit dataset, it achieved a Micro F1 score of 0.937, outperforming GraphSAGE-GCN (0.923) and remaining highly competitive with the best-performing models. The paper also demonstrates that importance sampling consistently yields higher accuracy than uniform sampling by focusing the model on the most structurally significant parts of the graph.

Limitations and Future Directions

While FastGCN offers a massive leap in scalability, it does come with trade-offs. Monte Carlo estimation is inherently noisier than using the full graph, introducing variance into the training process. Additionally, the theoretical convergence proofs rely on the assumption of $l$-strict convexity of the objective function, which may not strictly hold in all complex deep learning scenarios.

Future work could explore more adaptive sampling distributions that update dynamically during training, rather than relying solely on a pre-computed adjacency matrix compromise. Furthermore, the functional sampling framework introduced by FastGCN could potentially be extended to other graph-based architectures, such as models operating on manifolds or more complex message-passing networks.

Summary updated

BibTeX
@inproceedings{chen2018fastgcn,
  author = {Jie Chen and Tengfei Ma and Cao Xiao},
  title = {{FastGCN: Fast Learning with Graph Convolutional Networks via Importance Sampling}},
  booktitle = {International Conference on Learning Representations},
  year = {2018},
  url = {https://openreview.net/forum?id=rytstxWAW},
}
Figure