Skip to main content
QUICK REVIEW

[Paper Review] On the Computation and Communication Complexity of Parallel SGD with Dynamic Batch Sizes for Stochastic Non-Convex Optimization

Hao Yu, Rong Jin|arXiv (Cornell University)|May 10, 2019
Stochastic Gradient Optimization TechniquesComputer Science31 citations
TL;DR

This paper proposes dynamic batch size scheduling in parallel stochastic gradient descent (SGD) for non-convex optimization, achieving optimal computation complexity with drastically reduced communication rounds. It shows that exponential batch growth enables $O(1/(NT))$ convergence using only $O(\log T)$ communication rounds under the Polyak-Lojasiewicz (P-L) condition, while a Catalyst-like method achieves $O(1/\sqrt{NT})$ convergence with $O(\sqrt{NT}\log(T/N))$ rounds in general cases.

ABSTRACT

For SGD based distributed stochastic optimization, computation complexity, measured by the convergence rate in terms of the number of stochastic gradient calls, and communication complexity, measured by the number of inter-node communication rounds, are two most important performance metrics. The classical data-parallel implementation of SGD over $N$ workers can achieve linear speedup of its convergence rate but incurs an inter-node communication round at each batch. We study the benefit of using dynamically increasing batch sizes in parallel SGD for stochastic non-convex optimization by charactering the attained convergence rate and the required number of communication rounds. We show that for stochastic non-convex optimization under the P-L condition, the classical data-parallel SGD with exponentially increasing batch sizes can achieve the fastest known $O(1/(NT))$ convergence with linear speedup using only $\log(T)$ communication rounds. For general stochastic non-convex optimization, we propose a Catalyst-like algorithm to achieve the fastest known $O(1/\sqrt{NT})$ convergence with only $O(\sqrt{NT}\log(\frac{T}{N}))$ communication rounds.

Motivation & Objective

  • To reduce communication overhead in distributed non-convex optimization while preserving fast convergence rates.
  • To analyze the trade-off between computation complexity (number of SFO calls) and communication complexity (number of inter-node rounds) in parallel SGD.
  • To develop a dynamic batch size strategy that maintains linear speedup with minimal communication rounds.
  • To extend theoretical guarantees to general non-convex problems beyond the P-L condition using a Catalyst-like framework.

Proposed method

  • Introduces Algorithm 1, a parallel SGD variant with exponentially increasing batch sizes to reduce communication frequency.
  • Employs a dynamic batch size schedule where the batch size grows as $B_\tau = B_1 \rho^\tau$ to balance variance and convergence.
  • For general non-convex problems, proposes a Catalyst-like algorithm that applies variance reduction and dynamic batching to achieve improved communication efficiency.
  • Uses model averaging across $N$ workers at each communication round, with batch sizes growing over time to reduce gradient variance.
  • Analyzes convergence under smoothness and bounded variance assumptions, with the P-L condition enabling faster $O(1/(NT))$ rates.
  • Employs a communication skipping strategy in the Catalyst-like method, reducing rounds to $O(\sqrt{NT}\log(T/N))$.

Experimental results

Research questions

  • RQ1Can dynamic batch size scheduling in parallel SGD achieve optimal computation complexity with significantly reduced communication rounds?
  • RQ2What is the minimal number of communication rounds required to maintain $O(1/(NT))$ convergence under the P-L condition?
  • RQ3Can a Catalyst-like framework be adapted to non-convex optimization to reduce communication complexity without sacrificing convergence rate?
  • RQ4How does the proposed method compare to classical parallel SGD and local SGD in terms of communication efficiency and convergence speed?

Key findings

  • Under the P-L condition, the proposed dynamic batch size method achieves $O(1/(NT))$ convergence rate with only $O(\log T)$ communication rounds, matching the best-known computation complexity while minimizing communication.
  • For general non-convex problems, the Catalyst-like algorithm achieves $O(1/\sqrt{NT})$ convergence with $O(\sqrt{NT}\log(T/N))$ communication rounds, improving upon classical parallel SGD.
  • Numerical experiments on distributed logistic regression confirm that the proposed method matches the convergence of classical parallel SGD but uses significantly fewer communication rounds.
  • In deep learning experiments with ResNet20 on CIFAR-10, the method maintains comparable test accuracy to classical parallel SGD while reducing communication frequency.
  • The dynamic batch size strategy enables linear speedup with minimal coordination, making it suitable for large-scale distributed training.
  • Theoretical analysis confirms that the method maintains convergence guarantees under standard assumptions: smoothness, unbiased gradients, and bounded variance.

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.