A Generic, High-Performance, Compression-Aware Framework for Data Parallel DNN Training
- 11 April 2023
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Parallel and Distributed Systems
- Vol. 36 (8) , 1695-1712
Abstract
Gradient compression is a promising approach to alleviating the communication bottleneck in data parallel deep neural network (DNN) training by significantly reducing the data volume of gradients for synchronization. While gradient compression is being actively adopted by the industry (e.g., Facebook and AWS), our study reveals that there are two critical but often overlooked challenges: 1) inefficient coordination between compression and communication during gradient synchronization incurs substantial overheads, and 2) developing, optimizing, and integrating gradient compression algorithms into DNN systems imposes heavy burdens on DNN practitioners, and ad-hoc compression implementations often yield surprisingly poor system performance. In this paper, we propose a compression-aware gradient synchronization architecture, CaSync, which relies on flexible composition of basic computing and communication primitives. It is general and compatible with any gradient compression algorithms and gradient synchronization strategies and enables high-performance computation-communication pipelining. We further introduce a gradient compression toolkit, CompLL, to enable efficient development and automated integration of on-GPU compression algorithms into DNN systems with little programming burden. Lastly, we build a compression-aware DNN training framework HiPress with CaSync and CompLL. HiPress is open-sourced and runs on mainstream DNN systems such as MXNet, TensorFlow, and PyTorch. Evaluation via a 16-node cluster with 128 NVIDIA V100 GPUs and a 100 Gbps network shows that HiPress improves the training speed over current compression-enabled systems (e.g., BytePS-onebit, Ring-DGC and PyTorch-PowerSGD) by 9.8%–69.5% across six popular DNN models.Keywords
Funding Information
- National Natural Science Foundation of China (61802358, 61772486)
- National Science Foundation (CAREER-2048044, IIS-1838024, CCF-1756013)
This publication has 32 references indexed in Scilit:
- GRACE: A Compressed Communication Framework for Distributed Machine Learning2021
- Communication-Efficient Distributed Deep Learning with Merged Gradient Sparsification on GPUs2020
- Topology-aware Sparse Allreduce for Large-scale Deep Learning2019
- A Distributed Synchronous SGD Algorithm with Global Top-k Sparsification for Low Bandwidth Networks2019
- Deep Residual Learning for Image Recognition2016
- Managed communication and consistency for fast data-parallel iterative analytics2015
- Petuum2015
- ImageNet Large Scale Visual Recognition ChallengeInternational Journal of Computer Vision, 2015
- On optimizing machine learning workloads via kernel fusionACM SIGPLAN Notices, 2015
- Bandwidth optimal all-reduce algorithms for clusters of workstationsJournal of Parallel and Distributed Computing, 2009