Communication-Efficient Graph Neural Networks with Probabilistic Neighborhood Expansion Analysis and Caching

Tim Kaler, Alexandros-Stavros Iliopoulos, Philip Murzynowski, Tao B. Schardl, Charles E. Leiserson, Jie Chen

TL;DR

This paper introduces SALIENT++, a system for efficient distributed training of Graph Neural Networks (GNNs) on massive graphs. It tackles the communication bottleneck in distributed GNNs by using a novel "Vertex Inclusion Probability" (VIP) analysis to intelligently cache frequently accessed data, achieving significant speedups and reduced memory usage compared to existing methods.

What Problem Does This Paper Address?

Training GNNs on massive graphs is crucial for applications like recommendation systems and financial forensics. However, when these graphs are too large to fit on a single machine and must be distributed, a major hurdle arises: communication. Specifically, in distributed settings using minibatch training with neighborhood sampling, each machine needs to fetch feature data for vertices that might reside on other machines. This constant data transfer across the network becomes a significant bottleneck, slowing down training and inference considerably. The paper aims to drastically reduce this communication overhead without sacrificing prediction accuracy or requiring excessive memory.

Methods

The core innovation is the Vertex Inclusion Probability (VIP) analysis. This method analytically models how likely each vertex is to be included in the sampled neighborhood during GNN training. By understanding these probabilities, SALIENT++ can implement a smart caching policy: frequently accessed remote vertex features are cached locally. This significantly reduces the need to fetch data from other machines.

Beyond caching, SALIENT++ builds upon the existing SALIENT system by incorporating a deep pipelining strategy. This pipeline overlaps various stages of GNN training, such as neighborhood sampling, data transfers, and model computation, allowing them to run concurrently and further hide latency. The system also includes vertex reordering to optimize data placement between CPU and GPU memory within a machine.

Datasets

The paper evaluates SALIENT++ on three standard benchmark datasets from the Open Graph Benchmark (OGB):

  • ogbn-products: A dataset for node property prediction.
  • ogbn-papers100M: A large citation network dataset.
  • lsc-mag240c: A homogeneous component of the larger mag240c heterogeneous graph dataset, also related to citations.

These datasets vary in size, with papers and mag240c being particularly large, making them suitable for testing distributed GNN training systems.

Key Insights and Ideas

  • Predicting communication needs is key: Instead of relying on heuristics, the VIP analysis provides a principled way to predict which vertex features will be most frequently accessed, enabling targeted caching.
  • Caching is more than just replication: The VIP-driven caching isn't about replicating the entire dataset but strategically caching a small fraction of the most relevant remote data.
  • Pipelining and caching are synergistic: While pipelining helps hide latency, caching reduces the amount of data that needs to be transferred, making the pipeline much more effective.
  • Local data organization matters too: Reordering local vertex features based on VIP analysis on the GPU can further reduce host-to-device data transfer times.

Key Results

  • Significant Speedup: SALIENT++ achieves a 7.1x faster training time compared to the prior state-of-the-art SALIENT system (on 8 GPUs vs. 1 GPU) and a 12.7x faster training time compared to DistDGL (on 8 GPUs vs. 8 GPUs).
  • Reduced Memory Footprint: SALIENT++ uses less than 50% of the memory required by SALIENT for distributed training, effectively reducing the memory overhead by a factor of K (number of machines).
  • Near-Optimal Caching: The VIP-driven caching policy is shown to be near-optimal, achieving communication volumes within 5% of an "oracle" policy that knows future access patterns.
  • Scalability: The system demonstrates good scalability, with the papers benchmark showing a 1.9x speedup from 2 to 4 GPUs and another 1.9x from 4 to 8 GPUs. The mag240c benchmark also shows significant speedups with increasing numbers of GPUs.
  • No Accuracy Loss: The optimizations in SALIENT++ do not negatively impact model accuracy.

Limitations and Future Work

  • Partitioning: The current work uses standard graph partitioning algorithms (like METIS). Future work could incorporate VIP analysis directly into the partitioning objective to further reduce communication.
  • Graph Structure Distribution: The paper focuses on distributing vertex features. Distributing the graph structure itself is a more complex challenge that could lead to handling even larger graphs.
  • Network Bandwidth: While SALIENT++ is efficient, performance can still be impacted by very slow network conditions, requiring higher replication factors.
  • Dataset Preparation: The current dataset partitioning workflow is not optimized and can be time-consuming. Future work could leverage more scalable partitioning tools.

Summary updated

Abstract

Training and inference with graph neural networks (GNNs) on massive graphs has been actively studied since the inception of GNNs, owing to the widespread use and success of GNNs in applications such as recommendation systems and financial forensics. This paper is concerned with minibatch training and inference with GNNs that employ node-wise sampling in distributed settings, where the necessary partitioning of vertex features across distributed storage causes feature communication to become a major bottleneck that hampers scalability. To significantly reduce the communication volume without compromising prediction accuracy, we propose a policy for caching data associated with frequently accessed vertices in remote partitions. The proposed policy is based on an analysis of vertex-wise inclusion probabilities (VIP) during multi-hop neighborhood sampling, which may expand the neighborhood far beyond the partition boundaries of the graph. VIP analysis not only enables the elimination of the communication bottleneck, but it also offers a means to organize in-memory data by prioritizing GPU storage for the most frequently accessed vertex features. We present SALIENT++, which extends the prior state-of-the-art SALIENT system to work with partitioned feature data and leverages the VIP-driven caching policy. SALIENT++ retains the local training efficiency and scalability of SALIENT by using a deep pipeline and drastically reducing communication volume while consuming only a fraction of the storage required by SALIENT. We provide experimental results with the Open Graph Benchmark data sets and demonstrate that training a 3-layer GraphSAGE model with SALIENT++ on 8 single-GPU machines is 7.1 faster than with SALIENT on 1 single-GPU machine, and 12.7 faster than with DistDGL on 8 single-GPU machines.
BibTeX
@inproceedings{kaler2023communication,
  author = {Tim Kaler and Alexandros-Stavros Iliopoulos and Philip Murzynowski and Tao B. Schardl and Charles E. Leiserson and Jie Chen},
  title = {{Communication-Efficient Graph Neural Networks with Probabilistic Neighborhood Expansion Analysis and Caching}},
  booktitle = {MLSys},
  year = {2023},
}

Loading related content...

Figure