Manuscript Offprint

arXiv:2609.17483

Bridging the Gap Between Homogeneous and Heterogeneous Asynchronous Optimization Is Surprisingly Difficult

Alexander Tyurin

ABSTRACT

Modern large-scale machine learning tasks often require multiple workers, devices, CPUs, or GPUs to compute stochastic gradients in parallel and asynchronously to train model weights. Theoretical results typically distinguish between two settings: (i) the homogeneous setting, where all workers have access to the same data distribution, and (ii) the heterogeneous setting, where each worker operates on different data distributions. Known optimal time complexities in these settings reveal a significant gap, with far more pessimistic guarantees in the heterogeneous case. In this work, we investigate whether these pessimistic optimal time complexities can be overcome under different assumptions. Surprisingly, we show that improvement is provably impossible under widely used first- and second-order similarity assumptions for any randomized algorithm. We then turn to the interpolation regime and demonstrate that the weak interpolation assumption alone is also insufficient. Finally, we introduce a minimal combination of irreducible assumptions, strong interpolation and the local Polyak-Lojasiewicz condition, to derive a new time complexity bound that matches the dependence on worker computation times in the best-known result in the homogeneous setting, without requiring identical data distributions.

1 INTRODUCTION

We consider optimization problems described by

min⁡x∈Rd{f(x):=1n∑i=1nEξi∼Di[fi(x;ξi)]},(1)\min_{x\in\mathbb{R}^{d}}\Big\{f(x):=\frac{1}{n}\sum_{i=1}^{n}\mathbb{E}_{\xi_{i}\sim\mathcal{D}_{i}}\left[f_{i}(x;\xi_{i})\right]\Big\}, \tag{1}

where fi:Rd×Sξi→Rf_i : \mathbb{R}^d \times \mathbb{S}_{\xi_i} \to \mathbb{R} and ξi\xi_i is a random variable with distribution Di\mathcal{D}_i on Sξi\mathbb{S}_{\xi_i} for all i∈[n]i \in [n]. Let us denote fi(x):=Eξi∼Di[fi(x;ξi)]f_i(x) := \mathbb{E}_{\xi_i \sim \mathcal{D}_i} [f_i(x; \xi_i)]. In our setup, we have nn workers/clients/CPUs/GPUs working in parallel and asynchronously, and each worker ii has access only to the stochastic gradient ∇fi(x;ξi)\nabla f_i(x; \xi_i) of the function fif_i for all x∈Rdx \in \mathbb{R}^d. We concentrate on the standard convergence metric and want to find a (possibly random) point xˉ\bar{x} such that E[∥xˉ−x∗∥2]≤ε\mathbb{E}[\|\bar{x} - x_*\|^2] \leq \varepsilon, where x∗x_* is a solution of (1). Such a problem arises in many machine learning (ML), deep learning, federated learning (FL), and data science problems (Konečný et al., 2016; McMahan et al., 2017; Goodfellow et al., 2016). In general, we use the following standard assumptions from convex stochastic optimization, but each result states which assumptions it requires.

Assumption 1.1 (Global smoothness). The function ff is differentiable and LL-smooth, i.e., ∥∇f(x)−∇f(y)∥≤L∥x−y∥\|\nabla f(x) - \nabla f(y)\| \leq L \|x - y\| for all x,y∈Rdx, y \in \mathbb{R}^d.

Assumption 1.2 (Local smoothness). The functions fif_i are differentiable and LiL_i-smooth. We also define Lmax⁡:=max⁡i∈[n]LiL_{\max} := \max_{i \in [n]} L_i. Note that L≤Lmax⁡L \leq L_{\max} (This is why we distinguish Assum. 1.1 and 1.2).

Assumption 1.3 (Convexity). The functions fif_i are convex for all i∈[n]i \in [n]. The function ff attains a minimum at a (non-unique) point x∗∈Rdx_* \in \mathbb{R}^d.

Assumption 1.4 (Unbiased and σ2\sigma^2-variance-bounded noise). For all x∈Rdx \in \mathbb{R}^d, stochastic gradients ∇fi(x;ξ)\nabla f_i(x; \xi) are unbiased and σ2\sigma^2-variance-bounded, i.e., Eξi[∇fi(x;ξi)]=∇fi(x)\mathbb{E}_{\xi_i}[\nabla f_i(x; \xi_i)] = \nabla f_i(x) and Eξi[∥∇fi(x;ξi)−∇fi(x)∥2]≤σ2\mathbb{E}_{\xi_i}[\|\nabla f_i(x; \xi_i) - \nabla f_i(x)\|^2] \leq \sigma^2 for all i∈[n]i \in [n], where σ2≥0\sigma^2 \geq 0.

We also consider the case where f satisfies the PL-condition, which is a much weaker assumption than μ\mu-strong convexity (Karimi et al., 2016):

Assumption 1.5 (Global Polyak-Lojasiewicz condition). There exists μ>0\mu > 0 such that ∥∇f(x)∥2≥2μ(f(x)−f∗)\|\nabla f(x)\|^2 \geq 2\mu (f(x) - f^*) for all x∈Rdx \in \mathbb{R}^d, where f∗f^* is the finite optimal function value of ff.

We focus on the modern setup where many workers work together in a distributed environment, where the workers can have arbitrarily computation behaviors due to hardware delays or network connectivity problems. Most previous works typically assume that the workers have the same performance that does not change over time. In contrast, our focus is on the setting where the computation times are heterogeneous and non-constant.

In the literature, the optimization problem (1) in the asynchronous environment is considered in two regimes: i) heterogeneous setting, where the functions fif_i can be arbitrarily different; in the context of ML and FL, it means the workers have access to different datasets. ii) homogeneous setting, where the functions fif_i are equal; in the context of ML and FL, it means the workers have access to the same dataset (Koloskova et al., 2022; Mishchenko et al., 2022; Feyzmahdavian & Johansson, 2023).

Notations. [n]:={1,…,n}[n] := \{1, \ldots, n\}; N0:={0,1,2,…}\mathbb{N}_0 := \{0, 1, 2, \ldots\}; ∥⋅∥\|\cdot\| is the standard Euclidean norm; ⟨⋅,⋅⟩\langle \cdot, \cdot \rangle is the standard dot product; g=O(f)g = \mathcal{O}(f) : exist C>0C > 0 such that g(z)≤C×f(z)g(z) \leq C \times f(z) for all z∈Zz \in \mathcal{Z}; g=Ω(f)g = \Omega(f) : exist C>0C > 0 such that g(z)≥C×f(z)g(z) \geq C \times f(z) for all z∈Zz \in \mathcal{Z}; g=Θ(f)g = \Theta(f) : g=O(f)g = \mathcal{O}(f) and g=Ω(f)g = \Omega(f); g=Θ~(f)g = \widetilde{\Theta}(f) : the same as g=Θ(f)g = \Theta(f) but up to logarithmic factors.

References (69)

  • Communication complexity of distributed convex learning and optimization
  • A tight convergence analysis for stochastic gradient descent with delayed updates
  • Lower bounds for non-convex stochastic optimization
  • Lower bounds for finding stationary points i
  • Asynchronous stochastic optimization robust to arbitrary delays
  • Better mini-batch algorithms via accelerated gradient methods
  • Slow and stale gradients can win the race: Error-runtime trade-offs in distributed SGD. In International Conference on Artificial Intelligence and Statistics, pp. 803–812
  • Asynchronous iterations in optimization: New sequence results and sharper algorithmic guarantees
  • An asynchronous mini-batch algorithm for regularized stochastic optimization
  • Deep learning, volume 1
  • SGD: General analysis and improved rates
  • Accurate, large minibatch SGD: Training imagenet in 1 hour (opens arXiv in a new tab)
  • Deep residual learning for image recognition
  • Lower bounds and nearly optimal algorithms in distributed learning with communication compression
  • AsGrad: A sharp unified analysis of asynchronous-SGD algorithms
  • Linear convergence of gradient and proximal-gradient methods under the polyak-Łojasiewicz condition
  • Sharper convergence guarantees for asynchronous SGD for distributed and federated learning
  • Federated Learning: Strategies for Improving Communication Efficiency
  • Technical report, University of Toronto, Toronto, 2009
  • Asynchronous parallel stochastic gradient for nonconvex optimization
  • Optimal complexity in decentralized training
  • Ringleader asgd: The first asynchronous sgd with optimal time complexity under data heterogeneity
  • Ringmaster ASGD: The first asynchronous SGD with optimal time complexity
  • Communication-efficient learning of deep networks from decentralized data
  • Asynchronous SGD beats minibatch SGD under arbitrary delays
  • Problem complexity and method efficiency in optimization
  • Optimal algorithms for smooth and strongly convex distributed optimization in networks
  • Fast convergence of stochastic gradient descent under a strong growth condition (opens arXiv in a new tab)
  • Adadelay: Delay adaptive distributed stochastic optimization
  • The error-feedback framework: SGD with delayed gradients
  • Permutation compressors for provably faster distributed nonconvex optimization
  • Optimal time complexities of parallel stochastic optimization methods under a fixed computation model
  • Freya PAGE: First optimal time complexity for large-scale nonconvex finite-sum optimization with heterogeneous asynchronous computations
  • Painless stochastic gradient: Interpolation, line-search, and convergence rates
  • Tight complexity bounds for optimizing composite objectives
  • Graph oracle models, lower bounds, and gaps for parallel stochastic optimization
  • Delay-adaptive step-sizes for asynchronous learning (opens arXiv in a new tab)
  • Understanding deep learning (still) requires rethinking generalization
  • Staleness-aware async-sgd for distributed deep learning (opens arXiv in a new tab)
  • An improved analysis of training over-parameterized deep neural networks
  • # of stoch. grad. in}[t_{0},t_{1}]
  • Using the universal computation model, we can prove the theorem:
  • However, Tyurin (2025) requires the equality of the functions $\{f_i\}$
  • Since $\frac{1}{n}\sum_{i=1}^{n}w_{i}^{k}B_{i}^{k}=1$, using Jensen's inequality, we get
  • The method waits the moment when $\sum_{i=1}^{n} B_i^k > S$ in each iteration
  • Using the same reasoning, we can recursively define
  • Therefore, all the information obtained from worker $i$ about $\varphi_i$ consists of at most $N_i(t)$ independent observations from $\mathcal{N}(\varphi_i, \frac{\sigma^2}{\beta^2})$
  • Using the classical statistical result (e.g., Example 15.4 from (Wainwright, 2019)), for a universal constant $c_2 > 0$
  • The average function is
  • The function $f$ is smooth with parameter $\mu \leq L_{\max}$ and satisfies the global PL condition with constant $\mu$
  • The second inequality follows from $N_i(t) \leq t/\tau_i$ and $a_i^2 = R^2\tau_i/S_\tau$, which imply
  • The third inequality follows from $\varepsilon < 0.01$, $R > 10$, and the condition on $t$
  • Since $\frac{1}{n} \sum_{i=1}^n a_i = \mu$
  • Let $N_i(t) := \lfloor t/\tau_i \rfloor$ be an upper bound on the number of stochastic gradients computed by worker $i$ by time $t$
  • Let $f : \mathbb{R}^d \to \mathbb{R}$ be a convex function, which satisfies PL condition with a parameter $\mu$ (Assumption 1.5)
  • Here, we resolve the last piece, the heterogeneous convex setting
  • Let us take any set $Q$, and consider the following class of convex functions
  • Moreover, $x^k \in Q$ for all $k \ge 0$
  • The oracles $O_{\tau_i}^{\nabla f_i}$ are defined in (16)
  • We refer the reader to (Tyurin & Richtárik, 2023) for additional details about the time complexities formalization
  • The quantities $c_1$, and $c$ are universal constants
  • It is left to multiply this time by $\mathcal{O}\left(\frac{L}{\mu}\log\frac{R^2}{\varepsilon}\right)$
  • Due the variance decomposition equality, we get
  • These are standard quadratic optimization and computer vision problems, the design of which we explain in Section I. We developed a library that simulates the behavior of n = 100 workers
  • The plots concur with the theory from Section 3, where we explain that it is essential to have interpolation to break the time complexity of Malenia SGD. Rennala SGD has biased gradient estimators and does not converge to a minimum of the quadratic optimization problem in Figure 1
  • As expected, according to Section 3.2, Rennala SGD outperforms Malenia SGD in all experiments
  • To conduct the experiments from Section H.2 in the interpolation regime, we take the matrices $\mathbf{A}_1, \cdots, \mathbf{A}_n$, vectors $b_1, \cdots, b_n$ returned by Algorithm 3
  • 2: for $i = 1, \ldots, n$ do 3: Generate random noises $\eta_i^s = 1 + s\zeta_i^s$ and $\eta_i^b = s\zeta_i^b$, i.i.d
  • We conduct the experiments using PyTorch and implement both Rennala SGD and Malenia SGD optimizers