On the convergence properties of a $K$-step averaging stochastic gradient descent algorithm for nonconvex optimization
Fan Zhou, Guojing Cong
TL;DR
The paper analyzes a synchronous K-step averaging SGD (K-AVG) for nonconvex optimization, showing that delayed synchronization can outperform traditional parallel SGD and ASGD. It provides rigorous convergence bounds for fixed and diminishing step sizes, demonstrates that larger delays can be advantageous, and proves better scalability with the number of processors. Empirical results on CIFAR-10 with up to 128 GPUs confirm faster training and improved accuracy over ASGD variants, while revealing a data- and architecture-dependent optimal delay K. The work offers practical guidelines for balancing communication and computation in large-scale distributed training and shows that K-AVG can enable larger step sizes without sacrificing convergence.
Abstract
Despite their popularity, the practical performance of asynchronous stochastic gradient descent methods (ASGD) for solving large scale machine learning problems are not as good as theoretical results indicate. We adopt and analyze a synchronous K-step averaging stochastic gradient descent algorithm which we call K-AVG. We establish the convergence results of K-AVG for nonconvex objectives and explain why the K-step delay is necessary and leads to better performance than traditional parallel stochastic gradient descent which is a special case of K-AVG with $K=1$. We also show that K-AVG scales better than ASGD. Another advantage of K-AVG over ASGD is that it allows larger stepsizes. On a cluster of $128$ GPUs, K-AVG is faster than ASGD implementations and achieves better accuracies and faster convergence for \cifar dataset.
