Distributed Stochastic Optimization with Large Delays

Zhengyuan Zhou, Panayotis Mertikopoulos, Nicholas Bambos, Peter Glynn, Yinyu Ye

TL;DR

This paper provides the first theoretical guarantee that Distributed Asynchronous Stochastic Gradient Descent (DASGD) can converge even when communication delays grow unbounded at a polynomial rate. By carefully tuning the algorithm's step-size, the authors prove that we can achieve global optimality in a broad class of non-convex problems, moving beyond the traditional requirement for bounded or "small" delays.

What Problem Does This Paper Address?

In large-scale machine learning, we often distribute work across thousands of "worker" nodes. To avoid the massive overhead of making every node wait for each other (synchronization), we use asynchronous methods. However, this creates a "stale gradient" problem: by the time a worker finishes calculating a gradient and sends it to the master, the global model has already moved on.

Most existing theories assume these delays are bounded (i.e., they never exceed a fixed number $D$). In reality—especially in "volunteer" computing grids like BOINC or heavily saturated data centers—delays can grow over time, sometimes even superlinearly. The core challenge is: Can an asynchronous algorithm still find the right answer if the information it receives becomes increasingly "stale" as the training progresses?

Methods

The authors analyze Distributed Asynchronous Stochastic Gradient Descent (DASGD). They unify two common architectures—master-worker and shared-memory multi-processor—into a single algorithmic framework.

The key technical innovations include:

  • Step-size Tuning: The authors show that by slowing down the learning rate ($\alpha_n$) in a specific way relative to the growth of delays, the algorithm can "average out" the staleness. For example, if delays grow polynomially, a step-size like $1/(n \log n \log \log n)$ is required.
  • Lazy Projection: For constrained problems, they use a "lazy" projection scheme (similar to dual averaging) that handles constraints without hindering almost-sure convergence.
  • Theoretical Framework: They bridge the gap between discrete-time updates and continuous-time dynamics using the theory of Asymptotic Pseudotrajectories (APTs) and Lyapunov (energy) functions. This allows them to prove that the algorithm's path stays "close" to a deterministic flow that leads to the optimum.

Datasets

As a theoretical optimization paper, it does not use standard image or text datasets. Instead, it evaluates the algorithm using a high-dimensional synthetic benchmark:

  • The Rosenbrock Function: A classic non-convex global optimization benchmark. The authors tested a version with $d = 1001$ degrees of freedom. This function is notoriously difficult because the minimum sits at the end of a very thin, flat, and curving parabolic valley.

Key Insights and Ideas

  • Robustness to Unboundedness: The most surprising finding is that "bounded delays" are not a mathematical necessity for convergence. As long as the step-size is conservative enough to "amortize" the error from stale gradients, the system remains stable.
  • Beyond Convexity: The paper focuses on "Variationally Coherent" problems. This is a class of functions broader than convex functions (including pseudo-convex and star-convex problems) where all local "steepest descent" directions eventually point toward the global optimum.
  • The Ergodic Average Trap: In convex optimization, researchers often look at the "average" of all past iterates. This paper shows that in non-convex landscapes (like the Rosenbrock function), this averaging can actually hurt performance because it fails to account for the "ridges" and "valleys" of the landscape. Tracking the actual current iterate is more robust.

Key Results

  • Four Delay Regimes: The authors prove convergence for four distinct scenarios:
  • Bounded delays: Standard $O(1)$ delays.
  • Sublinear growth: Delays growing as $O(n^p)$ for $p < 1$.
  • Linear growth: Delays growing as $O(n)$.
  • Polynomial growth: Delays growing as $O(n^q)$ for $q \geq 1$.
  • Mean Square Convergence: For general smooth non-convex functions, they prove the gradient vanishes in the limit (convergence to a critical point).
  • Almost Sure Global Convergence: For variationally coherent problems, they prove the algorithm reaches the global minimum with probability 1, even with polynomial delays.
  • Simulation Success: In the 1001-dimensional Rosenbrock test, DASGD successfully navigated the difficult "valley" to find the global minimum even with linearly growing delays, whereas simpler averaging methods struggled.

Limitations and Future Work

  • Conservative Step-sizes: To guarantee convergence under massive delays, the required step-sizes become extremely small (e.g., involving $\log \log n$). While theoretically sound, this could lead to very slow convergence in practical wall-clock time.
  • Strictly Coherent Landscapes: While "variationally coherent" is broader than convexity, it still excludes many complex non-convex landscapes found in deep learning (such as those with many disconnected local minima or "bad" saddle points).
  • Future Direction: A natural next step would be investigating whether these delay-robust step-size schedules can be combined with "acceleration" techniques (like Nesterov momentum) to speed up training without losing stability.

Summary updated

BibTeX
@inproceedings{zhou2023distributed,
  author = {Zhengyuan Zhou and Panayotis Mertikopoulos and Nicholas Bambos and Peter Glynn and Yinyu Ye},
  title = {{Distributed Stochastic Optimization with Large Delays}},
  booktitle = {Mathematics of Operations Research},
  year = {2023},
  url = {https://openreview.net/forum?id=UEeT5V9V54},
}
Figure