TernGrad: Ternary Gradients to Reduce Communication in Distributed Deep Learning

By Wujie Wen, Cong Xu, Feng Yan, Chunpeng Wu, Yandan Wang, Yiran Chen, Hai Helen Li. 2017

1,084 citations recorded by the source corpus.

High network communication cost for synchronizing gradients and parameters is the well-known bottleneck of distributed training. In this work, we propose TernGrad that uses ternary gradients to accelerate distributed deep learning in data parallelism. Our approach requires only three numerical levels {-1,0,1}, which can aggressively reduce the communication time. We mathematically prove the convergence of TernGrad under the assumption of a bound on gradients. Guided by the bound, we propose layer-wise ternarizing and gradient clipping to improve its convergence. Our experiments show that applying TernGrad on AlexNet does not incur any accuracy loss and can even improve accuracy. The accuracy loss of GoogLeNet induced by TernGrad is less than 2% on average. Finally, a performance model is proposed to study the scalability of TernGrad. Experiments show significant speed gains for various deep neural networks. Our source code is available.

Subfields: Artificial Intelligence, Control and Systems Engineering, Electrical and Electronic Engineering, Optimization & Training

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Peter Richtárik
  2. Martin Jaggi
  3. Sebastian U. Stich
  4. Sai Praneeth Karimireddy
  5. Jakub Konecný
  6. Ahmed Khaled
  7. Nicolas Loizou
  8. Ji Liu

In Control and Systems Engineering

  1. Peter Richtárik
  2. Peter L. Bartlett
  3. Mehrdad Mahdavi
  4. Farzin Haddadpour
  5. Sebastian U. Stich
  6. Aryan Mokhtari
  7. Jianyu Wang
  8. Gauri Joshi

In Electrical and Electronic Engineering

  1. Medhi Bennis
  2. Merouane Debbah
  3. Jihong Park
  4. Sumudu Samarakoon
  5. Walid Saad
  6. Sebastian U. Stich
  7. Khaled Ben Letaief
  8. Peter Richtárik

In Optimization & Training

  1. Peter Richtárik
  2. Sebastian U. Stich
  3. Martin Jaggi
  4. Nicolas Loizou
  5. Ahmed Khaled
  6. Jianyu Wang
  7. Jakub Konecný
  8. Sai Praneeth Karimireddy

Citations in the corpus