Auto-Precision Scaling for Distributed Deep Learning

Ruobing Han, James Demmel, Yang You
11/20/2019
cs.DCcs.LG

Official code: drcut/CPD (12 stars, Python, Apache-2.0, last commit 2020-12-10).

Abstract

It has been reported that the communication cost for synchronizing gradients can be a bottleneck, which limits the scalability of distributed deep learning. Using low-precision gradients is a promising technique for reducing the bandwidth requirement.

Show full abstract

In this work, we propose Auto Precision Scaling (APS), an algorithm that can improve the accuracy when we communicate gradients by low-precision floating-point values. APS can improve the accuracy for all precisions with a trivial communication cost. Our experimental results show that for many applications, APS can train state-of-the-art models by 8-bit gradients with no or only a tiny accuracy loss (<0.05%). Furthermore, we can avoid any accuracy loss by designing a hybrid-precision technique. Finally, we propose a performance model to evaluate the proposed method. Our experimental results show that APS can get a significant speedup over state-of-the-art methods. To make it available to researchers and developers, we design and implement CPD (Customized-Precision Deep Learning) system, which can simulate the training process using an arbitrary low-precision customized floating-point format. We integrate CPD into PyTorch and make it open-source.

View on arXivView PDF

Code Implementations(1)

drcut/CPDOfficial100%
Apache-2.0

a high performance system for customized-precision distributed deep learning

121Python, CudaOct 8, 20195 years agoApache-2.0

Similar Papers

Cite this paper

@article{han2019autoprecision,
  title  = {Auto-Precision Scaling for Distributed Deep Learning},
  author = {Ruobing Han and James Demmel and Yang You},
  year   = {2019},
  eprint = {1911.08907},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1911.08907}
}

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/1911.08907.svg)](https://codeofpaper.com/paper/1911.08907)

Discussion