Sancus: Staleness-Aware Communication-Avoiding Full-Graph Decentralized Training in Large-Scale Graph Neural Networks (Extended Abstract)

Jingshu Peng, Zhao Chen, Yingxia Shao, Yanyan Shen, Lei Chen, Jiannong Cao

Abstract

Distributed Graph Neural Network (GNN) training faces significant bottlenecks due to the massive communication overhead required for fetching neighbor data across GPUs. We present SANCUS, a decentralized system that mitigates this overhead by caching historical embeddings and employing a "skip-broadcast" mechanism based on bounded staleness. SANCUS reduces communication by up to 74% and improves throughput by 1.86x while maintaining model accuracy.

Introduction

Graph Neural Networks (GNNs) have become essential for modeling complex relational data. However, scaling them to massive real-world graphs necessitates distributed training across multiple workers. In such environments, the high interconnectivity of nodes leads to irregular neighbor fetching, where updating a single node requires data from neighbors residing on different GPUs.

This cross-device movement often accounts for over 80% of total training time, creating a severe communication bottleneck. Existing centralized or synchronized decentralized architectures often suffer from bandwidth limits or idle time due to straggler workers. SANCUS aims to fundamentally reduce this bottleneck in a decentralized setup.

System Design and Methodology

SANCUS addresses the communication bottleneck through a staleness-aware, decentralized approach. Instead of continuous synchronization, it allows workers to utilize slightly outdated (stale) data within mathematically guaranteed bounds.

Matrix Blocking and Broadcast

To move away from inefficient node-by-node fetching, SANCUS treats GNN processing as a sequence of dense matrix multiplications. It partitions adjacency and embedding matrices into blocks, broadcasting these sub-matrices to all GPUs in a structured manner.

Matrix blocking and broadcast order for GNN processing.

Staleness-Aware Skip-Broadcast

The core innovation of SANCUS is the "Skip-Broadcast" primitive. Each GPU maintains a cache of historical embeddings from previous epochs. Before broadcasting its latest results, a worker performs a local staleness check. If the embeddings have not changed significantly—measured by metrics like Epoch-Adaptive Variation-Gap—the broadcast is skipped. Other workers then reuse the cached historical embeddings.

The SANCUS decentralized training workflow across multiple processes.

This mechanism ensures that communication only occurs when updates are substantial. To maintain convergence, SANCUS uses local metrics to bound the approximation errors, ensuring they remain within acceptable limits.

Experimental Evaluation

The authors evaluated SANCUS on five large-scale benchmarks: Flickr, Reddit, Amazon, ogbn-products, and ogbn-papers100M.

Key Results

  • Communication Efficiency: SANCUS avoids 35% to 74% of communication overhead compared to state-of-the-art baselines like CAGNET and SkipG.
  • Throughput Gains: The system achieves an average throughput increase of 1.86x. On the Reddit dataset, SANCUS processed 10.3 epochs per second on four V100 GPUs, vastly outpacing CPU-based systems.
  • Accuracy Preservation: Despite the use of stale embeddings, accuracy loss remains strictly bounded, typically staying within 0.01 of the baseline.
  • Scalability: SANCUS demonstrates excellent scaling properties; as the number of GPUs increases, the percentage of avoided communication also grows, highlighting its effectiveness for large-scale deployments.

Conclusion

SANCUS demonstrates that by leveraging the stability of intermediate node embeddings, distributed GNN training can significantly reduce its reliance on frequent communication. By replacing synchronized broadcasts with a staleness-aware decentralized protocol, SANCUS achieves substantial speedups without compromising model quality, offering a scalable path for training GNNs on massive graphs.

Summary updated

BibTeX
@inproceedings{peng2023sancus,
  author = {Jingshu Peng and Zhao Chen and Yingxia Shao and Yanyan Shen and Lei Chen and Jiannong Cao},
  title = {{Sancus: Staleness-Aware Communication-Avoiding Full-Graph Decentralized Training in Large-Scale Graph Neural Networks (Extended Abstract)}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.24963/ijcai.2023/724},
}
Figure