Skip to main content
QUICK REVIEW

[Paper Review] Taming Momentum in a Distributed Asynchronous Environment

Ido Hakimi, Saar Barkai|arXiv (Cornell University)|Jul 26, 2019
Stochastic Gradient Optimization TechniquesComputer Science67 references13 citations
TL;DR

This paper proposes DANA, a novel asynchronous SGD method that mitigates gradient staleness in distributed training by computing gradients on an estimated future parameter position, enabling full momentum integration without sacrificing accuracy. DANA achieves near-perfect linear scaling up to 64 workers with a total batch size of 16K, outperforming existing methods in both convergence speed and final test accuracy on CIFAR-10 and ImageNet.

ABSTRACT

Although distributed computing can significantly reduce the training time of deep neural networks, scaling the training process while maintaining high efficiency and final accuracy is challenging. Distributed asynchronous training enjoys near-linear speedup, but asynchrony causes gradient staleness - the main difficulty in scaling stochastic gradient descent to large clusters. Momentum, which is often used to accelerate convergence and escape local minima, exacerbates the gradient staleness, thereby hindering convergence. We propose DANA: a novel technique for asynchronous distributed SGD with momentum that mitigates gradient staleness by computing the gradient on an estimated future position of the model's parameters. Thereby, we show for the first time that momentum can be fully incorporated in asynchronous training with almost no ramifications to final accuracy. Our evaluation on the CIFAR and ImageNet datasets shows that DANA outperforms existing methods, in both final accuracy and convergence speed while scaling up to a total batch size of 16K on 64 asynchronous workers.

Motivation & Objective

  • To address the challenge of gradient staleness in asynchronous distributed SGD, which degrades convergence and final accuracy.
  • To enable the full use of momentum in asynchronous training, where momentum traditionally exacerbates staleness and causes divergence.
  • To achieve near-linear scalability in distributed training while maintaining high final model accuracy.
  • To demonstrate that momentum can be effectively used in large-scale asynchronous environments without compromising performance.

Proposed method

  • DANA adapts Nesterov's accelerated gradient method to asynchronous distributed training by estimating the future parameter position for gradient computation.
  • It computes gradients at a predicted future state of the model parameters, reducing the impact of stale gradients.
  • The method uses a momentum-based update rule that incorporates the estimated future position to counteract staleness.
  • DANA is compatible with existing parameter server architectures and can be combined with other optimization techniques like DC-ASGD and EASGD.
  • The algorithm maintains a moving average of gradients with momentum coefficient γ, but adjusts the gradient computation point to reduce lag effects.
  • DANA-Slim is a lightweight variant that retains performance while reducing communication overhead.

Experimental results

Research questions

  • RQ1Can momentum be effectively used in asynchronous distributed SGD without degrading final accuracy?
  • RQ2How can gradient staleness be mitigated in large-scale asynchronous training with high momentum?
  • RQ3Can DANA achieve linear scaling in convergence speed and accuracy across 64 asynchronous workers?
  • RQ4Does computing gradients at a predicted future parameter position improve training stability and performance?
  • RQ5How does DANA compare to existing methods like SSGD, Multi-ASGD, and YellowFin in terms of final accuracy and convergence speed?

Key findings

  • DANA achieves near-perfect linear scaling on up to 64 asynchronous workers with a total batch size of 16K, maintaining high final accuracy.
  • On CIFAR-10 with ResNet-20, DANA-Slim trains 25% faster than SSGD while achieving similar final test error.
  • DANA-Slim surpasses SSGD in final accuracy at large batch sizes, unlike Multi-ASGD which degrades sharply.
  • On Google Cloud, DANA-Slim scales effectively to 20 workers with less than 1% higher test error than the baseline.
  • DANA outperforms Multi-ASGD, SSGD, and YellowFin in both convergence speed and final test error across all evaluated settings.
  • DANA enables the use of high momentum (γ) in asynchronous training without divergence, demonstrating that momentum can be fully incorporated in such settings.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.