Accurate, Efficient and Scalable Graph Embedding

Hanqing Zeng, Hongkuan Zhou, Ajitesh Srivastava, Rajgopal Kannan, Viktor K. PrasannaIPDPS 2018 · DOI

Abstract: The Graph Convolutional Network (GCN) model and its variants are powerful graph embedding tools for facilitating classification and clustering on graphs. However, a major challenge is to reduce the complexity of layered GCNs and make them parallelizable and scalable on very large graphs -- state-of the art techniques are unable to achieve scalability without losing accuracy and efficiency. In this paper, we propose novel parallelization techniques for graph sampling-based GCNs that achieve superior scalable performance on very large graphs without compromising accuracy. Specifically, our GCN guarantees work-efficient training and produces order of magnitude savings in computation and communication. To scale GCN training on tightly-coupled shared memory systems, we develop parallelization strategies for the key steps in training: For the graph sampling step, we exploit parallelism within and across multiple sampling instances, and devise an efficient data structure for concurrent accesses that provides theoretical guarantee of near-linear speedup with number of processing units. For the feature propagation step within the sampled graph, we improve cache utilization and reduce DRAM communication by data partitioning. We prove that our partitioning strategy is a 2-approximation for minimizing the communication time compared to the optimal strategy. We demonstrate that our parallel graph embedding outperforms state-of-the-art methods in scalability (with respect to number of processors, graph size and GCN model size), efficiency and accuracy on several large datasets. On a 40-core Xeon platform, our parallel training achieves 64x speedup (with AVX) in the sampling step and 25x speedup in the feature propagation step, compared to the serial implementation, resulting in a net speedup of 21x.

Introduction

Graph Convolutional Networks (GCNs) have revolutionized how we handle relational data, but they have a notorious "scaling problem." As you go deeper into the network, the number of neighbors you need to track grows exponentially—a phenomenon known as "neighbor explosion." Standard GCNs are difficult to scale to massive graphs containing millions of nodes and edges. The industry standard has been "layer sampling" (like GraphSAGE), where each node in a mini-batch samples a few neighbors from the previous layer. However, this leads to significant redundancy; a 3-layer GCN might end up processing thousands of redundant nodes for just a single target vertex.

Methodology: Graph Sampling vs. Layer Sampling

The authors shift the paradigm from layer sampling to graph sampling to ensure work-efficiency and scalability. The core insight is that as long as the sampled subgraphs preserve the connectivity characteristics of the original graph (using frontier sampling), the GCN can learn effectively.

Comparison between Layer Sampling and Graph Sampling based GCNs
  1. Induced Subgraph Training: Instead of building a GCN layer-by-layer for a batch, the proposed method samples a small, connected subgraph from the original graph and builds a complete GCN on that subgraph. This ensures that every node in the mini-batch stays within the same small set of vertices across all layers, eliminating neighbor explosion.
  2. Parallel Dashboard Sampler: Sampling from a dynamic degree distribution is usually a sequential bottleneck. The authors introduced a "Dashboard" data structure—a table-based approach that allows multiple threads to concurrently probe and update the frontier of the sampled graph with near-linear speedup.
  3. Cache-Efficient Feature Propagation: Feature propagation in GCNs is often bottlenecked by DRAM communication. The authors developed a partitioning strategy for the feature dimensions, mathematically proven to be a 2-approximation for minimizing communication time, ensuring data stays in the fast CPU cache.

Experimental Setup

The method was evaluated on four large-scale datasets representing diverse graph topologies, ranging from protein interactions to massive e-commerce networks.

Statistics of the datasets used for evaluation, including vertices, edges, and attributes.
  • PPI (Protein-Protein Interaction): A standard benchmark for multi-class biological graphs.
  • Reddit: A large social graph of post-to-links.
  • Yelp: A social network graph where edges represent friendships and attributes are derived from user comments.
  • Amazon: A massive item-item graph (~1.6 million nodes and 132 million edges) where edges represent co-purchasing behavior.

Key Results

The proposed parallelization techniques yield significant performance gains without compromising accuracy:

  • Massive Speedups: On a 40-core Xeon platform, the parallel training achieved a 21× net speedup over serial execution.
  • Sampling Efficiency: The "Dashboard" sampler achieved a 64× speedup (using AVX instructions), proving that sampling doesn't have to be a bottleneck.
  • Deep GCN Scaling: For a 3-layer GCN on the Reddit dataset, the implementation was 1306× faster than the state-of-the-art TensorFlow implementation.
  • Accuracy: On the PPI and Reddit datasets, the proposed method achieved higher F1 scores than GraphSAGE, demonstrating that subgraph sampling effectively preserves structural information.

Conclusion

By shifting to graph-based sampling and optimizing for hardware-level constraints (like L2 cache sizes and AVX instructions), this work demonstrates that GCNs can scale to massive datasets efficiently. While the current focus is on shared-memory systems, future work could extend these strategies to distributed-memory clusters to further push the boundaries of graph embedding scalability.

Summary updated

BibTeX
@inproceedings{zeng2018accurate,
  author = {Hanqing Zeng and Hongkuan Zhou and Ajitesh Srivastava and Rajgopal Kannan and Viktor K. Prasanna},
  title = {{Accurate, Efficient and Scalable Graph Embedding}},
  booktitle = {IPDPS},
  year = {2018},
  doi = {10.1109/ipdps.2019.00056},
}
Figure