Skip to main content
QUICK REVIEW

[Paper Review] Is Local SGD Better than Minibatch SGD?

Blake Woodworth, Kumar Kshitij Patel|arXiv (Cornell University)|Feb 18, 2020
MRI in cancer diagnosisMedicine37 references45 citations
TL;DR

The paper analyzes local SGD (parallel/federated averaging) and shows that in quadratic objectives local SGD can strictly outperform minibatch SGD with accelerated variants being minimax optimal; for general convex objectives there are regimes where local SGD beats minibatch SGD, but there are also regimes where minibatch SGD outperforms local SGD, and local SGD is not universally optimal.

ABSTRACT

We study local SGD (also known as parallel SGD and federated averaging), a natural and frequently used stochastic distributed optimization method. Its theoretical foundations are currently lacking and we highlight how all existing error guarantees in the convex setting are dominated by a simple baseline, minibatch SGD. (1) For quadratic objectives we prove that local SGD strictly dominates minibatch SGD and that accelerated local SGD is minimax optimal for quadratics; (2) For general convex objectives we provide the first guarantee that at least sometimes improves over minibatch SGD; (3) We show that indeed local SGD does not dominate minibatch SGD by presenting a lower bound on the performance of local SGD that is worse than the minibatch SGD guarantee.

Motivation & Objective

  • Motivate the study of distributed first-order methods under the same computation/communication structure as Local SGD.
  • Characterize when Local SGD improves upon minibatch SGD for convex and quadratic objectives.
  • Identify regimes where minibatch SGD remains unbeatable or where Local SGD is inferior.
  • Provide upper and lower bounds that clarify the performance trade-offs of Local SGD.

Proposed method

  • Model Local SGD with M workers, K local steps per communication, and R rounds of communication.
  • Compare Local SGD to minibatch SGD implemented with a total batch size KM per round.
  • Analyze using a general convex/strongly convex stochastic optimization framework with H-smoothness and variance bound sigma^2.
  • Prove results for quadratic objectives showing Local SGD with averaging matches or beats minibatch SGD.
  • Derive first nontrivial upper bound for general convex objectives that can surpass minibatch SGD in certain regimes.
  • Construct a hard instance demonstrating Local SGD can be worse than minibatch SGD in some regimes.

Experimental results

Research questions

  • RQ1In quadratic settings, does Local SGD dominate minibatch SGD or is it at least as good?
  • RQ2For general convex objectives, can Local SGD outperform minibatch SGD, and under what conditions?
  • RQ3Are there fundamental lower bounds showing Local SGD can be worse than minibatch SGD in some regimes?
  • RQ4What are the precise upper and lower bounds that describe Local SGD performance under the same computation/communication constraints?

Key findings

  • For quadratic objectives, Local SGD strictly dominates minibatch SGD and accelerated Local SGD is minimax optimal.
  • For general convex objectives, there exists a regime (large M and K ≳ R) where Local SGD improves over minibatch SGD.
  • There exist a lower bound showing Local SGD can be worse than minibatch SGD in certain regimes, and empirical results (logistic regression) align with this behavior.
  • Overall, Local SGD is frequently better than minibatch SGD but not universally optimal; there are regimes where minibatch SGD or thumb-twiddling SGD outperform Local SGD.

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.