CGX: Adaptive System Support for Communication-Efficient Deep Learning

Ilia Markov, Hamidreza Ramezanikebrya, Dan Alistarh
11/16/2021
cs.DCcs.LG

Official code: IST-DASLab/torch_cgx (17 stars, C++, AGPL-3.0, last commit 2025-03-24).

Abstract

The ability to scale out training workloads has been one of the key performance enablers of deep learning. The main scaling approach is data-parallel GPU-based training, which has been boosted by hardware and software support for highly efficient point-to-point communication, and in particular via hardware bandwidth overprovisioning.

Show full abstract

Overprovisioning comes at a cost: there is an order of magnitude price difference between "cloud-grade" servers with such support, relative to their popular "consumer-grade" counterparts, although single server-grade and consumer-grade GPUs can have similar computational envelopes. In this paper, we show that the costly hardware overprovisioning approach can be supplanted via algorithmic and system design, and propose a framework called CGX, which provides efficient software support for compressed communication in ML applications, for both multi-GPU single-node training, as well as larger-scale multi-node training. CGX is based on two technical advances: \emph{At the system level}, it relies on a re-developed communication stack for ML frameworks, which provides flexible, highly-efficient support for compressed communication. \emph{At the application level}, it provides \emph{seamless, parameter-free} integration with popular frameworks, so that end-users do not have to modify training recipes, nor significant training code. This is complemented by a \emph{layer-wise adaptive compression} technique which dynamically balances compression gains with accuracy preservation. CGX integrates with popular ML frameworks, providing up to 3X speedups for multi-GPU nodes based on commodity hardware, and order-of-magnitude improvements in the multi-node setting, with negligible impact on accuracy.

View on arXivView PDF

Code Implementations(1)

AGPL-3.0

Pytorch distributed backend extension with compression support

170C++, CudaNov 23, 20211 years agoAGPL-3.0

Similar Papers

Cite this paper

@article{markov2021cgx,
  title  = {CGX: Adaptive System Support for Communication-Efficient Deep Learning},
  author = {Ilia Markov and Hamidreza Ramezanikebrya and Dan Alistarh},
  year   = {2021},
  eprint = {2111.08617},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2111.08617}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2111.08617.svg)](https://codeofpaper.com/paper/2111.08617)

Discussion