Empowering Distributed Training with Sparsity-driven Data Synchronization
Zhuang Wang, Zhaozhuo Xu, Jingyi Xi, Yuke Wang, Anshumali Shrivastava, T. S. Eugene Ng
TL;DR
This work targets the gradient synchronization bottleneck in distributed deep learning by exploiting tensor sparsity. It first characterizes sparse gradients across popular models and formalizes a four-dimensional design space for sparse synchronization, proving that near-optimal schemes exist (Balanced Parallelism or Hierarchical Centralization). Leveraging these insights, it introduces Zen, a data-independent system employing a hierarchical hashing algorithm and a hash bitmap encoding to achieve load-balanced, low-overhead synchronization of sparse gradients. On diverse workloads, Zen delivers up to 5.09x reduction in communication time and up to 2.48x gains in training throughput, outperforming state-of-the-art sparse-synchronization methods. The approach promises practical impact for scalable distributed training of sparse models and large language models by tightly aligning synchronization strategy with observed sparsity patterns.
Abstract
Distributed training is the de facto standard to scale up the training of deep learning models with multiple GPUs. Its performance bottleneck lies in communications for gradient synchronization. Although high tensor sparsity is widely observed, the optimal communication scheme to fully leverage sparsity is still missing. This paper aims to bridge this gap. We first analyze the characteristics of sparse tensors in popular models to understand the fundamentals of sparsity. We then systematically explore the design space of communication schemes for sparse tensors and find the optimal ones. These findings give a new understanding and inspire us to develop a holistic gradient synchronization system called Zen for sparse tensors. We demonstrate that Zen can achieve up to 5.09x speedup in communication time and up to $2.48\times$ speedup in training throughput compared to the state-of-the-art methods.
