Skip to main content
QUICK REVIEW

[Paper Review] STEM: A Stochastic Two-Sided Momentum Algorithm Achieving Near-Optimal Sample and Communication Complexities for Federated Learning

Prashant Khanduri, Pranay Sharma|arXiv (Cornell University)|Jun 19, 2021
Privacy-Preserving Technologies in DataComputer Science35 references20 citations
TL;DR

This paper proposes STEM, a stochastic two-sided momentum algorithm for federated learning that achieves near-optimal sample complexity of $\tilde{\mathcal{O}}(\epsilon^{-3/2})$ and communication complexity of $\tilde{\mathcal{O}}(\epsilon^{-1})$ for finding an $\epsilon$-stationary solution in non-convex settings. By jointly optimizing worker and server momentum-based updates with adaptive minibatch sizes and local update frequencies, STEM establishes a trade-off curve that maintains these complexities, outperforming FedAvg and prior methods.

ABSTRACT

Federated Learning (FL) refers to the paradigm where multiple worker nodes (WNs) build a joint model by using local data. Despite extensive research, for a generic non-convex FL problem, it is not clear, how to choose the WNs' and the server's update directions, the minibatch sizes, and the local update frequency, so that the WNs use the minimum number of samples and communication rounds to achieve the desired solution. This work addresses the above question and considers a class of stochastic algorithms where the WNs perform a few local updates before communication. We show that when both the WN's and the server's directions are chosen based on a stochastic momentum estimator, the algorithm requires $ ilde{\mathcal{O}}(ε^{-3/2})$ samples and $ ilde{\mathcal{O}}(ε^{-1})$ communication rounds to compute an $ε$-stationary solution. To the best of our knowledge, this is the first FL algorithm that achieves such {\it near-optimal} sample and communication complexities simultaneously. Further, we show that there is a trade-off curve between local update frequencies and local minibatch sizes, on which the above sample and communication complexities can be maintained. Finally, we show that for the classical FedAvg (a.k.a. Local SGD, which is a momentum-less special case of the STEM), a similar trade-off curve exists, albeit with worse sample and communication complexities. Our insights on this trade-off provides guidelines for choosing the four important design elements for FL algorithms, the update frequency, directions, and minibatch sizes to achieve the best performance.

Motivation & Objective

  • To address the open problem of jointly optimizing worker and server update directions, minibatch sizes, and local update frequencies in non-convex federated learning.
  • To minimize both sample and communication complexities simultaneously in a stochastic, decentralized setting with heterogeneous data.
  • To establish a theoretical trade-off between local update frequency and minibatch size that maintains near-optimal convergence rates.
  • To provide new insights into FedAvg (Local SGD) by showing its inherent trade-off and suboptimal complexity bounds.
  • To demonstrate that momentum-based updates on both workers and server enable optimal convergence under standard assumptions.

Proposed method

  • Proposes STEM, a stochastic two-sided momentum algorithm where both worker nodes and the server use momentum-estimated gradients for model updates.
  • Introduces a unified framework that jointly optimizes local update frequency $I$, minibatch size $b$, and momentum-based update directions.
  • Employs a stochastic gradient estimator with variance reduction via momentum to stabilize training and reduce gradient noise.
  • Derives convergence bounds using Lyapunov analysis and strong convexity-like inequalities under non-convex smoothness and bounded gradient assumptions.
  • Establishes a trade-off curve between $I$ and $b$ such that $\tilde{\mathcal{O}}(\epsilon^{-3/2})$ samples and $\tilde{\mathcal{O}}(\epsilon^{-1})$ communication rounds are achieved.
  • Analyzes FedAvg as a special case of STEM (without momentum) and derives its suboptimal complexity bounds for comparison.

Experimental results

Research questions

  • RQ1Can a federated learning algorithm achieve near-optimal sample and communication complexities simultaneously in non-convex settings?
  • RQ2What is the optimal trade-off between local update frequency and minibatch size in federated learning with stochastic gradients?
  • RQ3How does incorporating momentum on both worker and server sides affect convergence complexity in non-convex FL?
  • RQ4What are the theoretical sample and communication complexities of FedAvg (Local SGD) under the same assumptions as STEM?
  • RQ5Can a unified framework be developed to jointly optimize update direction, minibatch size, and local update frequency for minimal resource usage?

Key findings

  • STEM achieves $\tilde{\mathcal{O}}(\epsilon^{-3/2})$ sample complexity and $\tilde{\mathcal{O}}(\epsilon^{-1})$ communication complexity for finding an $\epsilon$-stationary solution in non-convex federated learning.
  • There exists a trade-off curve between minibatch size $b$ and local update frequency $I$ such that STEM maintains near-optimal complexity when $b$ and $I$ are chosen along this curve.
  • For FedAvg (a momentum-less variant of STEM), the sample complexity is $\mathcal{O}(\epsilon^{-2})$ and communication complexity is $\mathcal{O}(\epsilon^{-3/2})$, which are suboptimal compared to STEM.
  • When $b = \mathcal{O}(1)$ and $I = (T/b^3K^3)^{1/4}$, STEM maintains $\tilde{\mathcal{O}}(\epsilon^{-3/2})$ sample and $\tilde{\mathcal{O}}(\epsilon^{-1})$ communication complexity.
  • The analysis reveals that momentum on both worker and server sides is critical to achieving optimal convergence rates in stochastic federated learning.
  • The derived bounds are tight under standard assumptions, and STEM is the first algorithm to simultaneously achieve near-optimal sample and communication complexity in this setting.

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.