Optimal Decentralized Distributed Algorithms for Stochastic Convex Optimization

Eduard Gorbunov, Darina Dvinskikh, Alexander Gasnikov

Introduction

In this paper, we are interested in the convex optimization problem

where ξ\xi is a random variable. Problems of this type play a central role in a bunch of applications of machine learning and mathematical statistics . Typically xx represents the feature vector defining the model, only samples of ξ\xi are available and the distribution of ξ\xi is unknown. One possible way to minimize generalization error (2) is to solve empirical risk minimization or finite-sum minimization problem instead, i.e. solve (1) with the objective

where mm should be sufficiently large to approximate the initial problem. Indeed, if f(x,ξ)f(x,\xi) is convex and MM-Lipschitz continuous for all ξ\xi, QQ has finite diameter DD and x^=arg⁡ ⁣min⁡x∈Qf^(x)\hat{x}=\mathop{\arg\!\min}_{x\in Q}\hat{f}(x), then (see ) with probability at least 1−β1-\beta

and if additionally f(x,ξ)f(x,\xi) is μ\mu-strongly convex for all ξ\xi, then (see ) with probability at least 1−β1-\beta

In other words, to solve (1)+(2) with ε\varepsilon functional accuracy via minimization of empirical risk (3) it is needed to have m=Ω~(\nicefracM2D2nε2)m=\widetilde{\Omega}\left(\nicefrac{{M^{2}D^{2}n}}{{\varepsilon^{2}}}\right) in the convex case and m=Ω~(max⁡{\nicefracM2D2με,\nicefracM2D2ε2})m=\widetilde{\Omega}\left(\max\left\{\nicefrac{{M^{2}D^{2}}}{{\mu\varepsilon}},\nicefrac{{M^{2}D^{2}}}{{\varepsilon^{2}}}\right\}\right) in the μ\mu-strongly convex case where Ω~(⋅)\widetilde{\Omega}(\cdot) hides a constant factor, a logarithmic factor of \nicefrac1β\nicefrac{{1}}{{\beta}} and a polylogarithmic factor of \nicefrac1ε\nicefrac{{1}}{{\varepsilon}}.

Stochastic first-order methods such as Stochastic Gradient Descent (SGD) or its accelerated variants like AC-SA or Similar Triangles Method (STM) are very popular choice to solve either (1)+(2) or (1)+(3). In contrast with their cheap iterations in terms of computational cost, these methods converge only to the neighbourhood of the solution, i.e. to the ball centered at the optimality and radius proportional to the standard deviation of the stochastic estimator. For the particular case of finite-sum minimization problem one can solve this issue via variance-reduction trick and its accelerated variants . Unfortunately, this technique is not applicable in general for the problems of type (1)+(2). Another possible way to reduce the variance is mini-batching. When the objective function is LL-smooth one can accelerate the computations of batches using parallelization , and it is one of the examples where centralized distributed optimization appears naturally .

In other words, in some situations, e.g. when the number of samples mm is too big, it is preferable in practice to split the data into qq blocks, assign each block to the separate worker, e.g. processor, and organize computation of the gradient or stochastic gradient in the parallel or distributed manner. Moreover, in view of (4)-(5) sometimes to solve an expectation minimization problem it is needed to have such a big number of samples that corresponding information (e.g. some objects like images, videos and etc.) cannot be stored on 11 machine because of the memory limitations (see Section 8 for the detailed example of such a situation). Then, we can rewrite the objective function in the following form

Here fif_{i} corresponds to the loss on the ii-th data block and could be also represented as an expectation or a finite sum. So, the general idea for parallel optimization is to compute gradients or stochastic gradients by each worker, then aggregate the results by the master node and broadcast new iterate or needed information to obtain the new iterate back to the workers.

The visual simplicity of the parallel scheme hides synchronization drawback and high requirement to master node . The big line of works is aimed to solve this issue via periodical synchronization , error-compensation , quantization or combination of these techniques .

However, in this paper we mainly focus on another approach to deal with aforementioned drawbacks — decentralized distributed optimization . It is based on two basic principles: every node communicates only with its neighbours and communications are performed simultaneously. Moreover, this architecture is more robust, e.g. it can be applied to time-varying (wireless) communication networks .

One can consider this paper as a continuation of work where authors mentioned the key ideas that form a basis of this work. However, in this paper we provide formal proofs of some results announced in together with couple of new results that were not mentioned. Our contributions include:

Accelerated primal-dual method with biased stochastic dual oracle for convex and smooth dual problem. We extent the result from the recent work to the case when we have an access to the biased stochastic gradients. We emphasize that our analysis works for the minimization on whole space and we do not assume that the sequence generated by the method is bounded. It creates extra difficulties in the analysis, but we handle it via advanced technique for estimating recurrences (see also ).

Two accelerated methods with stochastic dual oracle for strongly convex and smooth dual problem. For the case when the dual function is strongly convex with Lipschitz continuous gradient we analyze two methods: one is R-RRMA-AC-SA2 and another is SSTM_sc. The first one was described in , but in this paper we formally state the method and prove high probability bounds for its convergence rate. The second method is also well-known, but to the best of our knowledge there were no convergence results for it in such generality that we handle. That is, we consider SSTM_sc with biased stochastic oracle applied to the unconstrained smooth and strongly convex minimization problem and prove high probability bounds for its convergence rate together with the bound for the noise level. As for the convex case, we also do not assume that the sequence generated by the method is bounded. Then we show how it can be applied to solve stochastic optimization problem with affine constraints using dual oracle.

Analysis of STM applied to convex smooth minimization problem with smooth convex composite term and inexact proximal step for unconstrained minimization. Surprisingly, but before this paper there were no analysis for STM in this case. The closest work to ours in this topic is , but in authors considered optimization problems on bounded sets.

2 Outline of the Paper

In Section 2, we introduce the notation and main definitions used in the paper. Then, we discuss optimal bounds for stochastic convex optimization in Section 3. In Section 4, we present the stochastic optimization problems with affine constraints and the state-of-the-art methods that solve the specific penalized unconstrained problem instead of the original one together with the novel approach which we call STP_IPS that aims to solve convex smooth unconstrained minimization problems with the smooth convex composite term and inexact proximal step. Next, we consider the same type of problems but using a dual approach and develop three different accelerated methods for this case together with the convergence analysis for each of them (Section 5). The first one is Stochastic Primal-Dual STM (SPDSTM), and it uses a biased stochastic dual oracle to solve primal and dual problems simultaneously for the case when the primal problem is μ\mu-strongly convex and Lipschitz continuous on some ball centered at zero. The next two methods are R-RRMA-AC-SA2 and SSTM_sc, and they solve the same problem when the primal functional is additionally LL-smooth using a stochastic dual oracle. The difference between them is that R-RRMA-AC-SA2 uses special restarts technique and works with unbiased stochastic oracle, while SSTM_sc is directly accelerated and able to work with biased stochastic gradients. Then we show how to apply the results of the previous sections to the decentralized distributed optimization problems and derive the bounds for the proposed methods in Section 6. Finally, in Section 7, we compare bounds for the convergence rate in parallel and decentralized optimization, discuss the optimality of the obtained results, and present possible directions for future work. To illustrate how our theory works, we consider the problem of calculation of population Wasserstein barycenter in Section 8. We leave long proofs, auxiliary and technical results, and the whole section about STP_IPS in the appendix.

Notation and Definitions

Below we list some classical definitions for optimization (see, for example, for the details).

If μ>0\mu>0 then there exists unique minimizer of ff on QQ which we denote by x∗x^{*}, except the situations when we explicitly specify x∗x^{*} in a different way. In the case when μ=0\mu=0, i.e. ff is convex, we assume that there exists at least one minimizer x∗x^{*} of ff on QQ and in the case when the set of minimizers of ff on the set QQ is not a singleton we choose x∗x^{*} to be either arbitrary or closest to the starting point of a method. When we consider some optimization method with a starting point x0x^{0} we use RR or R0R_{0} to denote the Euclidean distance between x0x^{0} and x∗x^{*}.

Optimal Bounds for Stochastic Convex Optimization

In this section our goal is to present the overview of the optimal methods and their convergence rates for the stochastic convex optimization problem (1)+(2) in the case when the gradient of the objective function is available only through (possibly biased) stochastic estimators with “light tails” or, equivalently, with σ2\sigma^{2}-sub-Gaussian variance. That is, we are interested in the situation when for an arbitrary x∈Qx\in Q one can get such stochastic gradient ∇f(x,ξ)\nabla f(x,\xi) that

In this paper we are mainly focus on smooth optimization problems and use different modifications of Similar Triangles Method (STM) since it gives optimal rates in this case and it is easy enough to analyze at least in the deterministic case. For convenience, we state the method in this section as Algorithm 1.

Interestingly, if we run STM with μ>0\mu>0 to solve (1) with μ\mu-strongly convex and LL-smooth objective, it will return xNx^{N} such that f(xN)−f(x∗)≤εf(x^{N})-f(x^{*})\leq\varepsilon after N=O(\nicefracLμln⁡(\nicefracLR2ε))N=O\left(\sqrt{\nicefrac{{L}}{{\mu}}}\ln\left(\nicefrac{{LR^{2}}}{{\varepsilon}}\right)\right) iterations which is not optimal, seeIn some places we put references not to the first work where this bound was shown but to the works where this complexity bound was shown for either more convenient or more relevant to our work method. Table 1. To match the optimal bound in this case one should use classical restart of STM which is run with μ=0\mu=0 .

We notice that another highly widespread in machine learning applications type of problems is regularized or composite optimization problem

where hh is a convex proximable function. For this case STM can be generalized via modifying the update rule in the following way :

We address such problems with LhL_{h}-smooth composite term in the Appendix, see Section E for the details.

Next, we go back to the problem (1)+(2) and consider more general case when δ=0\delta=0 and σ2>0\sigma^{2}>0. In this case one can construct unbiased estimator

where ξ1,…,ξr\xi_{1},\ldots,\xi_{r} are i.i.d. samples and ∇f(x,{ξi}i=1r)\nabla f(x,\{\xi_{i}\}_{i=1}^{r}) has rr times smaller variance than ∇f(x,ξi)\nabla f(x,\xi_{i}):

Then in order to get such a point xNx^{N} that f(xN)−f(x∗)≤εf(x^{N})-f(x^{*})\leq\varepsilon with probability at least 1−β1-\beta where β∈(0,1)\beta\in(0,1) and ff is μ\mu-strongly convex (μ≥0\mu\geq 0) and LL-smooth one can run STM for

which is optimal up to logarithmic factors. We call this modification Stochastic STM (SSTM). As for the deterministic case we summarize the state-of-the-art results for this case in Table 2.

Stochastic Convex Optimization with Affine Constraints: Primal Approach

Now, we are going to make a step towards decentralized distributed optimization and consider convex optimization problem with affine constraints:

where A⪰0A\succeq 0 and KerA≠{0}\text{Ker}A\neq\{0\}. Up to a sign we can define the dual problem in the following way

However, in this section we are interested only in primal approaches to solve (17) and, in particular, the main goal of this section is to present first-order methods that are optimal both in terms of ∇f(x)\nabla f(x) and A⊤AxA^{\top}Ax calculations. Before we start our analysis let us notice that typically in decentralized optimization matrix AA from (17) is chosen as a square root of Laplacian matrix WW of communication network (see Section 6 for the details). In asynchronous case the square root W\sqrt{W} is replaced by incidence matrix MM (W=M⊤MW=M^{\top}M). Then in asynchronous case instead of accelerated methods for (18) one should use accelerated block-coordinate descent methods .

To solve problem (17) we use the following trick : instead of (17) we consider penalized problem

where ε>0\varepsilon>0 is the desired accuracy of the solution in terms of f(x)f(x) that we want to achieve. The motivation behind this trick is revealed in the following theorem.

We start with the analysis of the case when ff is LL-smooth and convex.

to produce point xNx^{N} such that (22) holds.

That is, number of A⊤AxA^{\top}Ax calculations matches the optimal bound for deterministic convex and LL-smooth problems of type (1) multiplied by χ(A⊤A)\sqrt{\chi(A^{\top}A)} up to logarithmic factors (see Table 1).

We conjecture that the same technique in the case when ff is μ\mu-strongly convex and LL-smooth gives the method that requires such number of A⊤AxA^{\top}Ax calculations that matches the second rows of Tables 1 and 2 in the corresponding cases with additional factor χ(A⊤A)\sqrt{\chi(A^{\top}A)} and logarithmic factors. Recently such bounds were shown in for the distributed version of Multistage Accelerated Stochastic Gradient method from . However, this bounds were shown for the case when the stochastic gradient is unbiased.

Next, we assume that QQ is closed and convex and ff is μ\mu-strongly convex, but possibly non-smooth function with bounded gradients: ∥∇f(x)∥2≤M\|\nabla f(x)\|_{2}\leq M for all x∈Qx\in Q. Let us start with the case μ=0\mu=0. Then, to achieve (22) one can run Sliding method from considering f(x)f(x) as a composite term. In this case Sliding requires

In the case when QQ is a compact set and ∇f(x)\nabla f(x) is not available and unbiased stochastic gradient ∇f(x,ξ)\nabla f(x,\xi) is used instead (see inequalities (10)-(11) with δ=0\delta=0) one can show that Stochastic Sliding (S-Sliding) method can achieve (22) with probability at least 1−β1-\beta, β∈(0,1)\beta\in(0,1), and it requires the same number of calculations of A⊤AxA^{\top}Ax as in (26) up to logarithmic factors and

When μ>0\mu>0 one can apply restarts technique on top of S-Sliding (RS-Sliding) and get that to guarantee (22) with probability at least 1−β1-\beta, β∈(0,1)\beta\in(0,1) RS-Sliding requires

We notice that bounds presented above for the non-smooth case are proved only for the case when QQ is bounded. For the case of unbounded QQ the convergence results with such rates were proved only in expectation. Moreover, it would be interesting to study S-Sliding and RS-Sliding in the case when δ>0\delta>0, i.e. stochastic gradient is biased, but we leave these questions for future works.

Stochastic Convex Optimization with Affine Constraints: Dual Approach

We notice that in this section we do not assume that AA is symmetric or positive semidefinite.

Assume additionally that x(y,ξ)x(y,\xi) satisfies so-called “light-tails” inequality:

The size of the batch rkr_{k} could always be restored from the context, so, we do not specify it here. Note that the batch version satisfies

Below we present the main convergence result of this section.

with probability at least 1−4β1-4\beta. What is more, to guarantee (40) with probability at least 1−4β1-4\beta Algorithm 2 requires

2 Strongly Convex Dual Functions and Restarts Technique

In this section we assume that primal functional ff is additionally LL-smooth. It implies that the dual function ψ\psi in (18) is additionally μψ\mu_{\psi}-strongly convex in y0+(KerA⊤)⊥y^{0}+(\text{Ker}A^{\top})^{\perp} where μψ=\nicefracλmin⁡+(A⊤A)L\mu_{\psi}=\nicefrac{{\lambda_{\min}^{+}(A^{\top}A)}}{{L}} and λmin⁡+(A⊤A)\lambda_{\min}^{+}(A^{\top}A) is the minimal positive eigenvalue of A⊤AA^{\top}A.

From weak duality −f(x∗)≤ψ(y∗)-f(x^{*})\leq\psi(y^{*}) and (20) we get the key relation of this section (see also )

This inequality implies the following theorem.

Consider function ff and its dual function ψ\psi defined in (20) such that problems (17) and (18) have solutions. Assume that yNy^{N} is such that ∥∇ψ(yN)∥2≤\nicefracεRy\|\nabla\psi(y^{N})\|_{2}\leq\nicefrac{{\varepsilon}}{{R_{y}}} and yN≤2Ryy^{N}\leq 2R_{y}, where ε>0\varepsilon>0 is some positive number and Ry=∥y∗∥2R_{y}=\|y^{*}\|_{2} where y∗y^{*} is any minimizer of ψ\psi. Then for xN=x(A⊤yN)x^{N}=x(A^{\top}y^{N}) following relations hold:

Applying Cauchy-Schwarz inequality to (42) we get

The second part (43) immediately follows from ∥∇ψ(yN)∥2≤\nicefracεRy\|\nabla\psi(y^{N})\|_{2}\leq\nicefrac{{\varepsilon}}{{R_{y}}} and Demyanov-Danskin theorem which implies ∇ψ(yN)=AxN\nabla\psi(y^{N})=Ax^{N}. ∎

That is why, in this section we mainly focus on the methods that provides optimal convergence rates for the gradient norm. In particular, we consider Recursive Regularization Meta-Algorithm from (see Algorithm 3) with AC-SA2 (see Algorithm 5) as a subroutine (i.e. RRMA-AC-SA2) which is based on AC-SA algorithm (see Algorithm 4) from . We notice that RRMA-AC-SA2 is applied for a regularized dual function

In this section we consider the same oracle as in Section 5, but we additionally assume that δ=0\delta=0, i.e. stochastic first-order oracle is unbiased. To define batched version of the stochastic gradient we will use the following notation:

As before in the cases when the batch-size rtr_{t} can be restored from the context, we will use simplified notation ∇Ψ(y,ξt)\nabla\Psi(y,\boldsymbol{\xi}^{t}) and x(y,ξt)x(y,\boldsymbol{\xi}^{t}).

In the AC-SA algorithm we use batched stochastic gradients of functions ψk\psi_{k} which are defined as follows:

The following theorem states the main result for RRMA-AC-SA2 that we need in the section.

Let ψ\psi be LψL_{\psi}-smooth and μψ\mu_{\psi}-strongly convex function and λ=Θ(\nicefrac(Lψln⁡2N)N2)\lambda=\Theta\left(\nicefrac{{(L_{\psi}\ln^{2}N)}}{{N^{2}}}\right) for some N>1N>1. If the Algorithm 3 performs NN iterations in totalThe overall number of performed iterations during the calls of AC-SA2 equals NN. with batch size rr for all iterations, then it will provide such a point y^\hat{y} that

where C>0C>0 is some positive constant and y∗y^{*} is a solution of the dual problem (18).

Let us show that w.l.o.g. we can assume in this section that function ψ\psi defined in (20) is μψ\mu_{\psi}-strongly convex everywhere with μψ=\nicefracλmin⁡+(A⊤A)L\mu_{\psi}=\nicefrac{{\lambda_{\min}^{+}(A^{\top}A)}}{{L}}. In fact, from LL-smoothness of ff we have only that ψ\psi is μψ\mu_{\psi}-strongly convex in y0+(Ker(A⊤))⊥y^{0}+\left(\text{Ker}(A^{\top})\right)^{\perp} (see for the details). However, the structure of the considered here methods is such that all points generated by the RRMA-AC-SA2 and, in particular, AC-SA lie in y0+(Ker(A⊤))⊥y^{0}+\left(\text{Ker}(A^{\top})\right)^{\perp}.

We prove the statement of the theorem by induction. For t=0t=0 the statement is trivial, since ymd0=yag0=z0∈y0+(Ker(A⊤))⊥y^{0}_{md}=y^{0}_{ag}=z^{0}\in y_{0}+\left(\text{Ker}(A^{\top})\right)^{\perp}. Assume that ymdt,zt,yagt∈y0+(Ker(A⊤))⊥y_{md}^{t},z^{t},y_{ag}^{t}\in y^{0}+\left(\text{Ker}(A^{\top})\right)^{\perp} for some t≥0t\geq 0 and prove it for t+1t+1. Since y0+(Ker(A⊤))⊥y_{0}+\left(\text{Ker}(A^{\top})\right)^{\perp} is a convex set and ymdt+1y^{t+1}_{md} is a convex combination of yagty^{t}_{ag} and ztz^{t} we have ymdt+1∈y0+(Ker(A⊤))⊥y^{t+1}_{md}\in y^{0}+\left(\text{Ker}(A^{\top})\right)^{\perp}. Next, the point αtλλ+γtymdt+1+(1−αt)λ+γtλ+γtzt\frac{\alpha_{t}\lambda}{\lambda+\gamma_{t}}y^{t+1}_{md}+\frac{(1-\alpha_{t})\lambda+\gamma_{t}}{\lambda+\gamma_{t}}z^{t} also lies in y0+(Ker(A⊤))⊥y^{0}+\left(\text{Ker}(A^{\top})\right)^{\perp} since it is convex combination of the points lying in this set. Due to (44), (45) and (46) we have that ∇Ψk(ymdt+1,ξt)=Ax(A⊤ymdt+1,ξt)+λ(ymdt+1−y0)+λ∑l=1k2l(ymdt+1−y^l)\nabla\Psi_{k}(y_{md}^{t+1},\boldsymbol{\xi}^{t})=Ax(A^{\top}y_{md}^{t+1},\boldsymbol{\xi}^{t})+\lambda(y_{md}^{t+1}-y^{0})+\lambda\sum_{l=1}^{k}2^{l}(y_{md}^{t+1}-\hat{y}^{l}). The first term lies in (Ker(A⊤))⊥\left(\text{Ker}(A^{\top})\right)^{\perp} since Im(A)=(Ker(A⊤))⊥\text{Im}(A)=\left(\text{Ker}(A^{\top})\right)^{\perp} and the second and the third terms also lie in (Ker(A⊤))⊥\left(\text{Ker}(A^{\top})\right)^{\perp} since ymdt+1,y0,y^1,…,y^k∈y0+(Ker(A⊤))⊥y_{md}^{t+1},y^{0},\hat{y}^{1},\ldots,\hat{y}^{k}\in y^{0}+\left(\text{Ker}(A^{\top})\right)^{\perp}. Putting all together we get zt+1∈y0+(Ker(A⊤))⊥z^{t+1}\in y^{0}+\left(\text{Ker}(A^{\top})\right)^{\perp}. Finally, yagt+1y_{ag}^{t+1} lies in y0+(Ker(A⊤))⊥y^{0}+\left(\text{Ker}(A^{\top})\right)^{\perp} as a convex combination of points from this set. ∎

We prove this result by induction. For t=0t=0 the statement is trivial since y^0=y0\hat{y}^{0}=y^{0}. Next, assume that y^0,y^1,…,y^k∈y0+(Ker(A⊤))⊥\hat{y}^{0},\hat{y}^{1},\ldots,\hat{y}^{k}\in y^{0}+\left(\text{Ker}(A^{\top})\right)^{\perp} and prove that y^k+1∈y0+(Ker(A⊤))⊥\hat{y}^{k+1}\in y^{0}+\left(\text{Ker}(A^{\top})\right)^{\perp}. Our assumption implies that the assumptions from Theorem 5.4 and applying the result of the theorem we get that y1y^{1} and y2y^{2} from the method AC-SA2 applied to the ψk\psi_{k} also lie in y0+(Ker(A⊤))⊥y^{0}+\left(\text{Ker}(A^{\top})\right)^{\perp}. That is, the output of AC-SA2 applied for ψk\psi_{k} lies in y0+(Ker(A⊤))⊥y^{0}+\left(\text{Ker}(A^{\top})\right)^{\perp}. ∎

Now we are ready to present our approach which was sketched in of constructing an accelerated method for the strongly convex dual problem using restarts of RRMA-AC-SA2. To explain the main idea we start with the simplest case: σψ2=0\sigma_{\psi}^{2}=0, r=0r=0. It means that there is no stochasticity in the method and the bound (47) can be rewritten in the following form:

In the case when σψ2≠0\sigma_{\psi}^{2}\neq 0 we need to modify this approach. The first ingredient to handle the stochasticity is large enough batch size for the ll-th restart: rlr_{l} should be Ω(\nicefracσψ2(Nˉ∥∇ψ(yˉl−1)∥22))\Omega\left(\nicefrac{{\sigma_{\psi}^{2}}}{{(\bar{N}\|\nabla\psi(\bar{y}^{l-1})\|_{2}^{2})}}\right). However, in the stochastic case we do not have an access to the ∇ψ(yˉl−1)\nabla\psi(\bar{y}^{l-1}), so, such batch size is impractical. One possible way to fix this issue is to independently sample large enough number r^l∼\nicefracRy2ε2\hat{r}_{l}\sim\nicefrac{{R_{y}^{2}}}{{\varepsilon^{2}}} of stochastic gradients additionally, which is the second ingredient of our approach, in order to get good enough approximation ∇Ψ(yˉl−1,ξl−1,r^l)\nabla\Psi(\bar{y}^{l-1},\boldsymbol{\xi}^{l-1},\hat{r}_{l}) of ∇ψ(yˉl−1)\nabla\psi(\bar{y}^{l-1}) and use the norm of such an approximation which is close to the norm of the true gradient with big enough probability in order to estimate needed batch size rlr^{l} for the optimization procedure. Using this, we can get the bound of the following form:

The third ingredient is the amplification trick: we run pl=Ω(ln⁡(\nicefrac1β))p_{l}=\Omega(\ln(\nicefrac{{1}}{{\beta}})) independent trajectories of RRMA-AC-SA2, get points yˉl,1,…,yˉl,pl\bar{y}^{l,1},\ldots,\bar{y}^{l,p_{l}} and choose such yˉl,p(l)\bar{y}^{l,p(l)} among of them that ∥∇ψ(yˉl,p(l))∥2\|\nabla\psi(\bar{y}^{l,p(l)})\|_{2} is close enough to min⁡p=1,…,pl∥∇ψ(yˉl,p)∥2\min\limits_{p=1,\ldots,p_{l}}\|\nabla\psi(\bar{y}^{l,p})\|_{2} with high probability, i.e. ∥∇ψ(yˉl,p(l))∥22≤2min⁡p=1,…,pl∥∇ψ(yˉl,p)∥22+\nicefracε28Ry2\|\nabla\psi(\bar{y}^{l,p(l)})\|_{2}^{2}\leq 2\min\limits_{p=1,\ldots,p_{l}}\|\nabla\psi(\bar{y}^{l,p})\|_{2}^{2}+\nicefrac{{\varepsilon^{2}}}{{8R_{y}^{2}}} with probability at least 1−β1-\beta for fixed ∇Ψ(yˉl−1,ξl−1,r^l)\nabla\Psi(\bar{y}^{l-1},\boldsymbol{\xi}^{l-1},\hat{r}_{l}). We achieve it due to additional sampling of rˉl∼\nicefracRy2ε2\bar{r}_{l}\sim\nicefrac{{R_{y}^{2}}}{{\varepsilon^{2}}} stochastic gradients at yˉl,p\bar{y}^{l,p} for each trajectory and choosing such p(l)p(l) corresponding to the smallest norm of the obtained batched stochastic gradient. By Markov’s inequality for all p=1,…,plp=1,\ldots,p_{l}

That is, for pl=log⁡2(\nicefrac1β)p_{l}=\log_{2}(\nicefrac{{1}}{{\beta}}) we have that with probability at least 1−2β1-2\beta

for fixed ∇Ψ(yˉl−1,ξl−1,r^l)\nabla\Psi(\bar{y}^{l-1},\boldsymbol{\xi}^{l-1},\hat{r}_{l}) which means that

with probability at least 1−3β1-3\beta. Therefore, after l=log⁡2(\nicefrac2Ry2∥∇ψ(y0)∥22ε2)l=\log_{2}(\nicefrac{{2R_{y}^{2}\|\nabla\psi(y^{0})\|_{2}^{2}}}{{\varepsilon^{2}}}) of such restarts our method provide the point yˉl,p(l)\bar{y}^{l,p(l)} such that with probability at least 1−3lβ1-3l\beta

The approach informally described above is stated as Algorithm 6.

Assume that ψ\psi is μψ\mu_{\psi}-strongly convex and LψL_{\psi}-smooth. If Algorithm 6 is run with

for all k=1,…,lk=1,\ldots,l where Nˉ>1\bar{N}>1 is such that CLψ2ln⁡4Nˉμψ2Nˉ4≤132\frac{CL_{\psi}^{2}\ln^{4}\bar{N}}{\mu_{\psi}^{2}\bar{N}^{4}}\leq\frac{1}{32}, β∈(0,\nicefrac13)\beta\in(0,\nicefrac{{1}}{{3}}) and ε>0\varepsilon>0, then with probability at least 1−3β1-3\beta

and the total number of the oracle calls equals

Under assumptions of Theorem 5.6 we get that with probability at least 1−3β1-3\beta

where β∈(0,\nicefrac13)\beta\in(0,\nicefrac{{1}}{{3}}) the total number of the oracle calls is defined in (51).

Inequalities (50) and μψ∥y−y∗∥2≤∥∇ψ(y)∥2\mu_{\psi}\|y-y^{*}\|_{2}\leq\|\nabla\psi(y)\|_{2} which follows from μψ\mu_{\psi}-strong convexity of ψ\psi imply that

Now we are ready to present convergence guarantees for the primal function and variables.

Let the assumptions of Theorem 5.6 hold. Assume that ff is LfL_{f}-Lipschitz continuous on BRf(0)B_{R_{f}}(0) where

and Rx=∥x(A⊤y∗)∥2R_{x}=\|x(A^{\top}y^{*})\|_{2}. Then, with probability at least 1−4β1-4\beta

where β∈(0,\nicefrac14)\beta\in(0,\nicefrac{{1}}{{4}}), ε∈(0,μψRy2)\varepsilon\in(0,\mu_{\psi}R_{y}^{2}) xl=defx(A⊤yˉl,p(l),ξl,p(l),rˉl)x^{l}\stackrel{{\scriptstyle\text{def}}}{{=}}x(A^{\top}\bar{y}^{l,p(l)},\boldsymbol{\xi}^{l,p(l)},\bar{r}_{l}) and to achieve it we need the total number of oracle calls equals

3 Direct Acceleration for Strongly Convex Dual Function

We consider first the following minimization problem:

We use Stochastic Similar Triangles Method which is stated in this section as Algorithm 7 to solve problem (55). To define the iterate zk+1z^{k+1} we use the following sequence of functions:

Assume that Algorithm 7 is run to solve problem (55) with ψ(y)\psi(y) being μψ\mu_{\psi}-strongly convex and LψL_{\psi}-smooth. Then, for all k≥0k\geq 0 we have

for all l=1,…,Nl=1,\ldots,N, where h,δ,uh,\delta,u and cc are some non-negative constants and Ak+1=Ak+αk+1A_{k+1}=A_{k}+\alpha_{k+1}, αk+1≤DAk\alpha_{k+1}\leq DA_{k} for some D≥1D\geq 1, A0=α0>0A_{0}=\alpha_{0}>0. Assume that for each k≥1k\geq 1 vector aka^{k} is a function of η0,…,ηk−1\eta^{0},\ldots,\eta^{k-1}, a0a^{0} is a deterministic vector, u≥1u\geq 1, sequence of random vectors {ηk}k≥0\{\eta^{k}\}_{k\geq 0} satisfy

hold for all l=1,…,Nl=1,\ldots,N simultaneously, where C1C_{1} is some positive constant, g(N)=ln⁡(Nβ)+ln⁡ln⁡(Bb)(1+3ln⁡(Nβ))2g(N)=\frac{\ln\left(\frac{N}{\beta}\right)+\ln\ln\left(\frac{B}{b}\right)}{\left(1+\sqrt{3\ln\left(\frac{N}{\beta}\right)}\right)^{2}},

b=2σ02α12R02b=2\sigma_{0}^{2}\alpha_{1}^{2}R_{0}^{2} and

Assume that the function ψ\psi is μψ\mu_{\psi}-strongly convex and LψL_{\psi}-smooth,

i.e. rk≥1Cmax⁡{1,(μψLψ)\nicefrac32N2σψ2(1+3ln⁡Nβ)2ε}r_{k}\geq\frac{1}{C}\max\left\{1,\left(\frac{\mu_{\psi}}{L_{\psi}}\right)^{\nicefrac{{3}}{{2}}}\frac{N^{2}\sigma_{\psi}^{2}\left(1+\sqrt{3\ln\frac{N}{\beta}}\right)^{2}}{\varepsilon}\right\} with positive constants C>0C>0, ε>0\varepsilon>0 and N≥1N\geq 1. If additionally δ≤GR0NAN\delta\leq\frac{GR_{0}}{N\sqrt{A_{N}}} and ε≤HR02AN\varepsilon\leq\frac{HR_{0}^{2}}{A_{N}} where R0=∥y∗−y0∥2R_{0}=\|y^{*}-y^{0}\|_{2} and Algorithm 7 is run for NN iterations, then with probability at least 1−3β1-3\beta

and C1C_{1} is some positive constant. In other words, to achieve ∥yN−y∗∥22≤ε\|y^{N}-y^{*}\|_{2}^{2}\leq\varepsilon with probability at least 1−3β1-3\beta Algorithm 7 needs N=O~(Lψμψ)N=\widetilde{O}\left(\sqrt{\frac{L_{\psi}}{\mu_{\psi}}}\right) iterations and O~(max⁡{Lψμψ,σψ2ε})\widetilde{O}\left(\max\left\{\sqrt{\frac{L_{\psi}}{\mu_{\psi}}},\frac{\sigma_{\psi}^{2}}{\varepsilon}\right\}\right) oracle calls where O~(⋅)\widetilde{O}(\cdot) hides polylogarithmic factors depending on Lψ,μψ,R0,εL_{\psi},\mu_{\psi},R_{0},\varepsilon and β\beta.

Next, we apply the SSTM_sc for the problem (18) when the objective of the primal problem (17) is LL-smooth, μ\mu-strongly convex and LfL_{f}-Lipschitz continuous on some ball which will be specified next, i.e. we consider the same setup as in Section 5 but we additionally assume that the primal functional ff has LL-Lipschitz continuous gradient. As in Section 5 we also consider the case when the gradient of the dual functional is known only through biased stochastic estimators, see (32)–(39) and the paragraphs containing these formulas.

This theorem makes it possible to apply the result from Theorem 5.11 for SSTM_sc which is run on the problem (18).

Under assumptions of Theorem 5.11 we get that after N=O~(Lψμψln⁡1ε)N=\widetilde{O}\left(\sqrt{\frac{L_{\psi}}{\mu_{\psi}}}\ln\frac{1}{\varepsilon}\right) iterations of Algorithm 7 which is run on the problem (18) with probability at least 1−3β1-3\beta

where β∈(0,\nicefrac13)\beta\in\left(0,\nicefrac{{1}}{{3}}\right) and the total number of oracles calls equals

If additionally ε≤μψRy2\varepsilon\leq\mu_{\psi}R_{y}^{2}, then with probability at least 1−3β1-3\beta

Theorem 5.11 implies that with probability at least 1−3β1-3\beta we have

Using this and LψL_{\psi}-smoothness of ψ\psi we get that with probability ≥1−3β\geq 1-3\beta

Since A\overset{\eqref{eq:A_k_lower_bound_str_cvx}}{\geq}\frac{1}{L_{\psi}}\left(1+\frac{1}{2}\sqrt{\frac{\mu_{\psi}}{L_{\psi}}}\right)^{2k}, it implies that after N=O~(Lψμψln⁡1ε)N=\widetilde{O}\left(\sqrt{\frac{L_{\psi}}{\mu_{\psi}}}\ln\frac{1}{\varepsilon}\right) iterations of SSTM_sc we will get (65) with probability at least 1−3β1-3\beta and the number of oracle calls will be

Next, from μψ\mu_{\psi}-strong convexity of ψ(y)\psi(y) we have that with probability at least 1−3β1-3\beta

and from this we obtain that with probability at least 1−3β1-3\beta

Let the assumptions of Theorem 5.11 hold. Assume that ff is LfL_{f}-Lipschitz continuous on BRf(0)B_{R_{f}}(0) where

Rx=∥x(A⊤y∗)∥2R_{x}=\|x(A^{\top}y^{*})\|_{2}, ε≤μψRy2\varepsilon\leq\mu_{\psi}R_{y}^{2} and δy≤G1εNRy\delta_{y}\leq\frac{G_{1}\varepsilon}{NR_{y}} for some positive constant G1G_{1}. Assume additionally that the last batch-size rNr_{N} is slightly bigger than other batch-sizes, i.e.

Then, with probability at least 1−4β1-4\beta

Applications to Decentralized Distributed Optimization

In this section we apply our results to the decentralized optimization problems. But let us consider first the centralized or parallel architecture. As we mentioned in the introduction, when the objective function is LL-smooth one can compute batches in parallel in order to accelerate the work of the method and (14)-(16) imply that

number of workers in such a parallel scheme gives the method with working time proportional to the number of iterations defined in (14). However, number of workers defined in (73) could be too big in order to use such an approach in practice. But still computing the batches in parallel even with much smaller number of workers could reduce the working time of the method if the communication is fast enough and it follows from (16).

Besides the computation of batches in parallel for the general type of problem (1)+(2), parallel optimization is often applied to the finite-sum minimization problems (1)+(3) or (1)+(6) that we rewrite here in the following form:

We notice that in this section mm is a number of workers and fk(x)f_{k}(x) is known only for the kk-th worker. Consider the situation when workers are connected in a network and one can construct a spanning tree for this network. Assume that the diameter of the obtained graph equals dd, i.e. the height of the tree — maximal distance (in terms of connections) between the root and a leaf . If we run STM on such a spanning tree then we will get that the number of communication rounds will be dd times larger than number of iterations defined in (14).

For simplicity, we also call WW as a Laplacian matrix and it does not lead to misunderstanding since everywhere below we use WW instead of W‾\overline{W}. The key observation here that computation of WxWx requires one round of communications when the kk-th worker sends xkx_{k} to all its neighbours and receives xjx_{j} for all jj such that (k,j)∈E(k,j)\in E, i.e. kk-th worker gets vectors from all its neighbours. Note, that WW is symmetric and positive semidefinite and, as a consequence, W\sqrt{W} exists. Moreover, we can replace WW by W\sqrt{W} in (77) and get the equivalent statement:

Using this we can rewrite the problem (74) in the following way:

with σf2=O(\nicefracσ2m)\sigma_{f}^{2}=O\left(\nicefrac{{\sigma^{2}}}{{m}}\right).

Now it should become clear why in Section 4 we paid most of our attention on number of A⊤AxA^{\top}A\mathbf{x} calculations. In this particular scenario A⊤Ax=W⊤Wx=WxA^{\top}A\mathbf{x}=\sqrt{W}^{\top}\sqrt{W}x=Wx which can be computed via one round of communications of each node with its neighbours as it was mentioned earlier in this section. That is, for the primal approach we can simply use the results discussed in Section 4. For convenience, we summarize them in Tables 3 and 4 which are obtained via plugging the parameters that we obtained above in the bounds from Section 4. Note that the results presented in this match the lower bounds obtained in in terms of the number of communication rounds up to logarithmic factors and and there is a conjecture that these bounds are also optimal in terms of number of oracle calls per node for the class of methods that require optimal number of communication rounds. Recently, the very similar result about the optimal balance between number of oracle calls per node and number of communication round was proved for the case when the primal functional is convex and LL-smooth and deterministic first-order oracle is available .

where [Wx]k[\sqrt{W}\mathbf{x}]_{k} is the kk-th nn-dimensional block of Wx\sqrt{W}x. Note that

Consider the stochastic function fk(xk,ξk)f_{k}(x_{k},\xi_{k}) which is defined implicitly as follows:

it is natural to define the stochastic gradient ∇Φ(y,ξ)\nabla\Phi(\mathbf{y},\xi) as follows:

with δΦ=mδφ\delta_{\Phi}=m\delta_{\varphi} and σΦ2=O(mσ2)\sigma_{\Phi}^{2}=O\left(m\sigma^{2}\right). Using this, we define the stochastic gradient of Ψ(y)\Psi(\mathbf{y}) as ∇Ψ(y,ξ)=defW∇Φ(Wy,ξ)=Wx(Wy,ξ)\nabla\Psi(\mathbf{y},\xi)\stackrel{{\scriptstyle\text{def}}}{{=}}\sqrt{W}\nabla\Phi(\sqrt{W}\mathbf{y},\xi)=\sqrt{W}\mathbf{x}(\sqrt{W}\mathbf{y},\xi) and, as a consequence, we get

with δΨ=λmax⁡(W)δΦ\delta_{\Psi}=\sqrt{\lambda_{\max}(W)}\delta_{\Phi} and σΨ=λmax⁡(W)σΦ\sigma_{\Psi}=\sqrt{\lambda_{\max}(W)}\sigma_{\Phi}.

Taking all of this into account we conclude that problem (82) is a special case of (18) with A=WA=\sqrt{W}. To make the algorithms from Section 5 distributed we should change the variables in those methods via multiplying them by W\sqrt{W} from the left , e.g. for the iterates of SPDSTM we will get

which means that it is needed to multiply lines 4-6 of Algorithm 2 by W\sqrt{W} from the left. After such a change of variables all methods from Section 5 become suitable to run them in the distributed fashion. Besides that, it does not spoil the ability of recovering the primal variables since before the change of variables all of the methods mentioned in Section 5 used x(Wy)\mathbf{x}(\sqrt{W}\mathbf{y}) or x(Wy,ξ)\mathbf{x}(\sqrt{W}\mathbf{y},\xi) where points yy were some dual iterates of those methods, so, after the change of variables we should use x(y)\mathbf{x}(\mathbf{y}) or x(y,ξ)\mathbf{x}(\mathbf{y},\xi) respectively. Moreover, it is also possible to compute ∥Wx∥22=⟨x,Wx⟩\|\sqrt{W}x\|_{2}^{2}=\langle\mathbf{x},W\mathbf{x}\rangle in the distributed fashion using consensus type algorithms: one communication step is needed to compute WxW\mathbf{x}, then each worker computes ⟨xk,[Wx]k⟩\langle x_{k},[W\mathbf{x}]_{k}\rangle locally and after that it is needed to run consensus algorithm. We summarize the results for this case in Tables 5 and 6. Note that the proposed bounds are optimal in terms of the number of communication rounds up to polylogarithmic factors . Note that the lower bounds from are presented for the convolution of two criteria: number of oracle calls per node and communication rounds. One can obtain lower bounds for the number of communication rounds itself using additional assumption that time needed for one communication is big enough and the term which corresponds to the number of oracle calls can be neglected. Regarding the number of oracle calls there is a conjecture that the bounds that we present in this paper are also optimal up to polylogarithmic factors for the class of methods that require optimal number of communication rounds.

Discussion

In this section we want to discuss some aspects of the proposed results that were not covered in the main part of this paper. First of all, we should say that in the smooth case for the primal approach our bounds for the number of communication steps coincides with the optimal bounds for the number of communication steps for parallel optimization if we substitute the diameter dd of the spanning tree in the bounds for parallel optimization by O~(χ(W))\widetilde{O}(\sqrt{\chi(W)}).

However, we want to discuss another interesting difference between parallel and decentralized optimization in terms of the complexity results which was noticed in . From the line of works it is known that for the problem (1)+(6) (here we use mm instead of qq and iterator kk instead of ii for consistency) with LL-smooth and μ\mu-strongly convex fkf_{k} for all k=1,…,mk=1,\ldots,m the optimal number of oracle calls, i.e. calculations of of the stochastic gradients of fkf_{k} with σ2\sigma^{2}-subgaussian variance is

The bad news is that (88) does not work with full parallelization trick and the best possible way to parallelize it is described in . However, standard accelerated scheme using mini-batched versions of the stochastic gradients without variance-reduction technique and incremental oracles which gives the bound

for the number of oracle calls and it admits full parallelization. It means that in the parallel optimization setup when we have computational network with mm nodes and the spanning tree for it with diameter dd the number of oracle calls per node is

However, for the decentralized setup the second row of Table 4 states that the number of communication rounds is the same as in (91) up to substitution of dd by χ(W)\sqrt{\chi(W)} and the number of oracle calls per node is

which has mm times bigger statistical term under the maximum than in (90). What is more, recently it was shown that there exists such a decentralized distributed method that requires

stochastic gradient oracle calls per node , but it is not optimal in terms of the number of communications. Moreover, there is a hypothesis that in the smooth case the bounds from Tables 3 and 4 (rows 2 and 3) are optimal in terms of the number of oracle calls per node for the class of methods that require optimal number of communication rounds up to polylogarithmic factors.

The same claim but for Table 5 was also presented in as a hypothesis and in this paper we propose the same hypothesis for the result stated Table 6 up to polylogarithmic and additionally we hypothesise that the noise level that we obtained is also unimprovable up to polylogarithmic factors.

As it was mentioned in Section 4, the recurrence technique that we use in Sections E and 5 can be very useful in the generalization of the results for STM from Section 4 for the case when instead of ∇f(x)\nabla f(x) only stochastic gradient ∇f(x,ξ)\nabla f(x,\xi) (see inequalities (10)-(11)) is available, ff is LL-smooth and proximal step is computed in an inexact manner. It would be nice also to compare proposed methods for the case when δ\delta with the results from . For the convex but non-strongly convex case one can also try to combine Nesterov’s smoothing technique with D-MASG from .

We emphasize that in our results we assume that each fif_{i} from (79) is LL-smooth and μ\mu-strongly convex. When each fif_{i} is LiL_{i}-smooth and μi\mu_{i}-strongly convex, it means that in order to satisfy the assumption we use in our paper we need to choose L=max⁡1≤i≤mLiL=\max_{1\leq i\leq m}L_{i} and μ=min⁡1≤i≤mμi\mu=\min_{1\leq i\leq m}\mu_{i}. This choice can lead to a very slow rate in some situations, e.g. the worst-case LL can be mm times larger than LL for ff as for the case when m=dm=d and f(x)=\nicefrac∥x∥222m=\nicefrac1m∑i=1mfi(x),f(x)=\nicefrac{{\|x\|_{2}^{2}}}{{2m}}=\nicefrac{{1}}{{m}}\sum_{i=1}^{m}f_{i}(x), fi(x)=\nicefracxi22f_{i}(x)=\nicefrac{{x_{i}^{2}}}{{2}} where Li=1L_{i}=1 for all ii but ff is \nicefrac1d\nicefrac{{1}}{{d}}-smooth . It was shown that instead of worst-case μ\mu and LL one can use μˉ=\nicefrac1m∑i=1mμi\bar{\mu}=\nicefrac{{1}}{{m}}\sum_{i=1}^{m}\mu_{i} and L^\hat{L} to be some weighted average of LiL_{i}, but such techniques can spoil number of communication rounds needed to achieve desired accuracy.

It would be also interesting to generalize the proposed results for the case of more general stochastic gradients .

Application for Population Wasserstein Barycenter Calculation

In this section we consider the problem of calculation of population Wasserstein barycenter since this example hides different interesting details connected with the theory discussed in this paper. In our presentation of this example we rely mostly on the recent work .

Next, we consider the entropic OT problem (see )

For a given set of samples q1,…,qmq^{1},\ldots,q^{m} we introduce empirical barycenter as

We consider the problem (95) of finding population barycenter with some accuracy and discuss possible approaches to solve this problem in the following subsections.

However, before that, we need to mention some useful properties of Wμ(p,q){\cal W}_{\mu}(p,q). First of all, one can write explicitly the dual function of Wμ(p,q)W_{\mu}(p,q) for a fixed q∈Sn(1)q\in S_{n}(1) (see ):

Using this representation one can deduce the following theorem.

We will also use another useful relation (see ):

where the gradient ∇Wμ(p,q)\nabla{\cal W}_{\mu}(p,q) is taken w.r.t. the first argument.

2 SA Approach

Assume that one can obtain and use fresh samples q1,q2,…q^{1},q^{2},\ldots in online regime. This approach is called Stochastic Approximation (SA). It implies that at each iteration one can draw a fresh sample qkq^{k} and compute the gradient w.r.t. pp of function Wμ(p,qk){\cal W}_{\mu}(p,q^{k}) which is μ\mu-strongly convex and MM-Lipschitz continuous with M=O~(n∥C∥∞)M=\widetilde{O}(\sqrt{n}\|C\|_{\infty}). Optimal methods for this case are based on iterations of the following form

for some δ≥0\delta\geq 0 and for all p,q∈Sn(1)p,q\in S_{n}(1) after NN calls of this oracle produces such a point pNp^{N} that with probability at least 1−β1-\beta the following inequalities hold:

and, as a consequence of μ\mu-strong convexity of Wμ(p,q){\cal W}_{\mu}(p,q) for all qq,

with probability at least 1−β1-\beta, R-SGD requires

under additional assumption that δ=O(με2)\delta=O(\mu\varepsilon^{2}).

3 SAA Approach

Now let us assume that large enough collection of samples q1,…,qmq^{1},\ldots,q^{m} is available. Our goal is to find such p∈Sn(1)p\in S_{n}(1) that ∥p^−pμ∗∥2≤ε\|\hat{p}-p_{\mu}^{*}\|_{2}\leq\varepsilon with high probability, i.e. ε\varepsilon-approximation of the population barycenter, via solving empirical barycenter problem (96). This approach is called Stochastic Average Approximation (SAA). Since Wμ(p,qi){\cal W}_{\mu}(p,q^{i}) is μ\mu-strongly convex and MM-Lipschitz in pp with M=O~(n∥C∥∞)M=\widetilde{O}(\sqrt{n}\|C\|_{\infty}) for all i=1,…,mi=1,\ldots,m we can conclude that with probability ≥1−β\geq 1-\beta

where we use that the diameter of Sn(1)S_{n}(1) is O(1)O(1). Moreover, in it was shown that one can guarantee that with probability ≥1−β\geq 1-\beta

Taking advantages of both inequalities we get that if

then with probability at least 1−β21-\frac{\beta}{2}

Assuming that we have such p^∈Sn(1)\hat{p}\in S_{n}(1) that with probability at least 1−β21-\frac{\beta}{2} the inequality

holds, we apply the union bound and get that with probability ≥1−β\geq 1-\beta

It remains to describe the approach that finds such p^∈Sn(1)\hat{p}\in S_{n}(1) that satisfies (111) with probability at least 1−β1-\beta. Recall that in this subsection we consider the following problem

For each summand Wμ(p,qi){\cal W}_{\mu}(p,q^{i}) in the sum above we have the explicit formula (98) for the dual function Wqi,μ∗(λ){\cal W}_{q^{i},\mu}^{*}(\lambda). Note that one can compute the gradient of Wqi,μ∗(λ){\cal W}_{q^{i},\mu}^{*}(\lambda) via O(n2)O(n^{2}) arithmetical operations. What is more, Wqi,μ∗(λ){\cal W}_{q^{i},\mu}^{*}(\lambda) has a finite-sum structure, so, one can sample jj-th component of qiq^{i} with probability qjiq_{j}^{i} and get stochastic gradient

which requires O(n)O(n) arithmetical operations to be computed.

where W=W‾⊗InW=\overline{W}\otimes I_{n}, this approach requires O~(n∥C∥∞2με^χ(W))\widetilde{O}\left(\sqrt{\frac{n\|C\|_{\infty}^{2}}{\mu\hat{\varepsilon}}\chi(W)}\right) communication rounds and O~(n2.5∥C∥∞2με^χ(W))\widetilde{O}\left(n^{2.5}\sqrt{\frac{\|C\|_{\infty}^{2}}{\mu\hat{\varepsilon}}\chi(W)}\right) arithmetical operations per node to find gradients ∇Wqi,μ∗(λ)\nabla{\cal W}_{q^{i},\mu}^{*}(\lambda). If instead of full gradients workers use stochastic gradients ∇Wqi,μ∗(λ,j)\nabla{\cal W}_{q^{i},\mu}^{*}(\lambda,j) defined in (113) and these stochastic gradients have light-tailed distribution, i.e. satisfy the condition (86) with parameter σ>0\sigma>0, then to guarantee (114) with probability ≥1−β2\geq 1-\frac{\beta}{2} the aforementioned approach needs the same number of communications rounds and O~(nmax⁡{n∥C∥∞2με^χ(W),mσ2n∥C∥∞2ε^2χ(W)})\widetilde{O}\left(n\max\left\{\sqrt{\frac{n\|C\|_{\infty}^{2}}{\mu\hat{\varepsilon}}\chi(W)},\frac{m\sigma^{2}n\|C\|_{\infty}^{2}}{\hat{\varepsilon}^{2}}\chi(W)\right\}\right) arithmetical operations per node to find gradients ∇Wqi,μ∗(λ,j)\nabla{\cal W}_{q^{i},\mu}^{*}(\lambda,j). Using μ\mu-strong convexity of Wμ(p,qi){\cal W}_{\mu}(p,q^{i}) for all i=1,…,mi=1,\ldots,m and taking ε^=με28\hat{\varepsilon}=\frac{\mu\varepsilon^{2}}{8} we get that our approach finds such a point p^\hat{p} that satisfies (110) with probability at least 1−β21-\frac{\beta}{2} using

arithmetical operations per node to find gradients in the deterministic case and

arithmetical operations per node to find stochastic gradients in the stochastic case. However, the state-of-the-art theory of learning states (see (108)) that mm should so large that in the stochastic case the second term in the bound for arithmetical operations typically dominates the first term and the dimensional dependence reduction from n2.5n^{2.5} in the deterministic case to n1.5n^{1.5} in the stochastic case is typically negligible in comparison with how much mσ2n∥C∥∞2μ2ε4χ(W)\frac{m\sigma^{2}\sqrt{n}\|C\|_{\infty}^{2}}{\mu^{2}\varepsilon^{4}}\chi(W) is larger than ∥C∥∞μεχ(W)\frac{\|C\|_{\infty}}{\mu\varepsilon}\sqrt{\chi(W)}. That is, our theory says that it is better to use full gradients in the particular example considered in this section (see also Section 7). Therefore, further in the section we will assume that σ2=0\sigma^{2}=0, i.e. workers use full gradients of dual functions Wqi,μ∗(λ){\cal W}_{q^{i},\mu}^{*}(\lambda).

However, bounds (115)-(116) were obtained under very restrictive at the first sight assumption that we have mm workers and each worker stores only one measure which is unrealistic. One can relax this assumption in the following way. Assume that we have l^<m\hat{l}<m machines connected in a network with Laplacian matrix W^\hat{W} and jj-th machine stores m^j≥1\hat{m}_{j}\geq 1 measures for j=1,…,l^j=1,\ldots,\hat{l} and ∑j=1l^m^j=m\sum_{j=1}^{\hat{l}}\hat{m}_{j}=m. Next, for jj-th machine we introduce m^j\hat{m}_{j} virtual workers also connected in some network that jj-th machine can emulate along with communication between virtual workers and for every virtual worker we arrange one measure, e.g. it can be implemented as an array-like data structure with some formal rules for exchanging the data between cells that emulates communications. We also assume that inside the machine we can set the preferable network for the virtual nodes in such a way that each machine emulates communication between virtual nodes and computations inside them fast enough. Let us denote the Laplacian matrix of the obtained network of mm virtual nodes as W‾\overline{W}. Then, our approach finds such a point p^\hat{p} that satisfies (110) with probability at least 1−β21-\frac{\beta}{2} using

time for arithmetical operations per machine to find gradients where Tcm,jT_{\text{cm},j} is time needed for jj-th machine to emulate communication between corresponding virtual nodes at each iteration and Tcp,jT_{\text{cp},j} is time required by jj-th machine to perform 11 arithmetical operation for all corresponding virtual nodes in the gradients computation process at each iteration. For example, if we have only one machine and network of virtual nodes forms a complete graph than χ(W)=1\chi(W)=1, but Tcm,max⁡T_{\text{cm},\max} and Tcp,max⁡T_{\text{cp},\max} can be large and to reduce the running time one should use more powerful machine. In contrast, if we have mm machines connected in a star-graph than Tcm,max⁡T_{\text{cm},\max} and Tcp,max⁡T_{\text{cp},\max} will be much smaller, but χ(W)\chi(W) will be of order mm which is large. Therefore, it is very important to choose balanced architecture of the network at least for virtual nodes per machine if it is possible. This question requires a separate thorough study and lies out of scope of this paper.

4 SA vs SAA comparison

Recall that in SA approach we assume that it is possible to sample new measures in online regime which means that the computational process is performed on one machine, whereas in SAA approach we assume that large enough collection of measures is distributed among the network of machines that form some computational network. In practice measures from Sn(1)S_{n}(1) correspond to some images. As one can see from the complexity bounds, both SA and SAA approaches require large number of samples to learn the population barycenter defined in (95). If these samples are images, then they typically cannot be stored in RAM of one computer. Therefore, it is natural to use distributed systems to store the data.

Now let us compare complexity bounds for SA and SAA. We summarize them in Table 7.

When the communication is fast enough and μ\mu is small we typically have that SAA approach significantly outperforms SA approach in terms of the complexity as well even for communication architectures with big χ(W)\chi(W). Therefore, for balanced architecture one can expect that SAA approach will outperform SA even more.

To conclude, we state that population barycenter computation is a natural example when it is typically much more preferable to use distributed algorithms with dual oracle instead of SA approach in terms of memory and complexity bounds.

Acknowledgments

We would like to thank F. Bach, P. Dvurechensky, M. Gürbüzbalaban, D. Kovalev, A. Nemirovski, A. Olshevsky, N. Srebro, A. Taylor and C. Uribe for useful discussions. The work of E. Gorbunov was supported by RFBR, project number 19-31-51001. The work of D. Dvinskikh was supported by Russian Science Foundation (project 18-71-10108). The work of A. Gasnikov was supported by RFBR, project number 19-31-51001.

Appendix A Basic Facts

In this section we enumerate for convenience basic facts that we use many times in our proofs.

Squared norm of the sum.

Appendix B Useful Facts about Duality

This section contains several useful results that we apply in our analysis.

Consider the function f(x)f(x) defined on a closed convex set Q⊆RnQ\subseteq R^{n} and linear operator AA such that KerA≠{0}\text{Ker}A\neq\{0\} and its dual function ψ(y)\psi(y) defined as ψ(y)=max⁡x∈Q{⟨y,Ax⟩−f(x)}\psi(y)=\max_{x\in Q}\left\{\langle y,Ax\rangle-f(x)\right\}. Then

From Demyanov–Danskin theorem we have that ∇ψ(y)=Ax(A⊤y)\nabla\psi(y)=Ax(A^{\top}y) which implies

Appendix C Auxiliary Results

In this section, we present the results from other papers that we rely on in our proofs.

where σk2\sigma_{k}^{2} belongs to the filtration σ(ξ1,…,ξk−1)\sigma(\xi_{1},\ldots,\xi_{k-1}) for all k=1,…,Nk=1,\ldots,N. Let SN=∑k=1NξkS_{N}=\sum\limits_{k=1}^{N}\xi_{k}. Then there exists an absolute constant C1C_{1} such that for any fixed β>0\beta>0 and B>b>0B>b>0 with probability at least 1−β1-\beta:

and let SN=∑k=1NξkS_{N}=\sum\limits_{k=1}^{N}\xi_{k}. Assume that the sequence {ξk}k=1N\{\xi_{k}\}_{k=1}^{N} satisfy “light-tail” assumption:

where σ1,…,σN\sigma_{1},\ldots,\sigma_{N} are some positive numbers. Then for all γ≥0\gamma\geq 0

Appendix D Technical Results

For the sequence αk+1≥0\alpha_{k+1}\geq 0 such that

Moreover, Ak=Ω(N2L)A_{k}=\Omega\left(\frac{N^{2}}{L}\right).

We prove (125) by induction. For k=0k=0 equation (124) gives us α1=2Lα12⟺α1=12L\alpha_{1}=2L\alpha_{1}^{2}\Longleftrightarrow\alpha_{1}=\frac{1}{2L}. Next we assume that (125) holds for all k≤l−1k\leq l-1 and prove it for k=lk=l:

This quadratic inequality implies that αk+1≤1+4k2+12k+14L≤1+(2k+3)24L≤2k+44L=k+22L\alpha_{k+1}\leq\frac{1+\sqrt{4k^{2}+12k+1}}{4L}\leq\frac{1+\sqrt{(2k+3)^{2}}}{4L}\leq\frac{2k+4}{4L}=\frac{k+2}{2L}.

Finally, the relation Ak=Ω(N2L)A_{k}=\Omega\left(\frac{N^{2}}{L}\right) is proved in Lemma 1 from (see also ). ∎

For the sequence αk+1≥0\alpha_{k+1}\geq 0 such that

If we solve quadratic equation Ak+1(1+Akμ)=Lαk+12A_{k+1}(1+A_{k}\mu)=L\alpha_{k+1}^{2}, Ak+1=Ak+αk+1A_{k+1}=A_{k}+\alpha_{k+1} with respect to αk+1\alpha_{k+1}, we will get (127). Inequality (128) was established in Lemma 3 from and Lemma 4 from . It remains to prove (129). Since a2+b2≤a+b\sqrt{a^{2}+b^{2}}\leq a+b for all a,b≥0a,b\geq 0 and Ak≥A0=1LA_{k}\geq A_{0}=\frac{1}{L} we have

Let A,B,D,r0,r1,…,rNA,B,D,r_{0},r_{1},\ldots,r_{N}, where N≥1N\geq 1, be non-negative numbers such that

where CC is such positive number that C2≥max⁡{2A+2(B+D)C,1}C^{2}\geq\max\{2A+2(B+D)C,1\}, i.e. one can choose C=max⁡{B+D+(B+D)2+2A,1}C=\max\{B+D+\sqrt{(B+D)^{2}+2A},1\}.

We prove (131) by induction. For l=0l=0 the inequality rl≤Cr0r_{l}\leq Cr_{0} trivially follows since C≥1C\geq 1. Next we assume that (131) holds for some l<Nl<N and prove it for l+1l+1:

Let C,r0,r1,…,rNC,r_{0},r_{1},\ldots,r_{N}, where N≥1N\geq 1, be non-negative numbers such that

and C∈(0,\nicefrac14)C\in(0,\nicefrac{{1}}{{4}}). Then for all l=0,…,Nl=0,\ldots,N we have

We prove (133) by induction. For l=0l=0 the inequality rl≤2r0r_{l}\leq 2r_{0} trivially follows. Next we assume that (133) holds for some l≤N−1l\leq N-1 and prove it for l+1l+1. From (132), C<\nicefrac14C<\nicefrac{{1}}{{4}}, N≥1N\geq 1 and l≤N−1l\leq N-1 we have

and r0≤Cr0A0r_{0}\leq\frac{Cr_{0}}{\sqrt{A_{0}}} where CC is such positive number that

i.e. one can choose C=max⁡{A0,3BD+9B2D2+4A2}C=\max\left\{\sqrt{A_{0}},\frac{3BD+\sqrt{9B^{2}D^{2}+4A}}{2}\right\}.

since C≥A0C\geq\sqrt{A_{0}} and C≥A+BCD≥A+BDA0C\geq\sqrt{A+BCD}\geq\sqrt{A+BD\sqrt{A_{0}}}. Note that we also have r0≤Cr0A0r_{0}\leq\frac{Cr_{0}}{\sqrt{A_{0}}}. Next we assume that (135) holds for some l≤N−1l\leq N-1 and prove it for l+1l+1:

That is, we proved the statement of the lemma for

w.r.t. CC one can show that the choice C=max⁡{A0,3BD+9B2D2+4A2}C=\max\left\{\sqrt{A_{0}},\frac{3BD+\sqrt{9B^{2}D^{2}+4A}}{2}\right\} satisfies the assumption of the lemma on CC.

Appendix E Similar Triangles Method with Inexact Proximal Step

In this section we focus on the composite optimization problem. i.e. problems of the type

where f(x)f(x) is convex and LL-smooth and h(x)h(x) is convex and LhL_{h}-smooth. Before we present our method, let us introduce new notation.

Note that δ\delta-solution could be non-unique, but for our purposes in such cases it is enough to use any point from the set of δ\delta-solutions. In the analysis we will need the following result.

Next, using this, Cauchy-Schwarz inequality and definition of x^\hat{x} we get

The main method of this section is stated as Algorithm 8.

In the STM_IPS we use functions gk+1(z)g_{k+1}(z) which are defined for all k=0,1,…k=0,1,\ldots as follows:

We start our analysis with the following lemma.

Assume that f(x)f(x) is convex and LL-smooth, h(x)h(x) is convex and LhL_{h}-smooth and δ<12\delta<\frac{1}{2}. Then after N≥1N\geq 1 iterations of Algorithm 8 we have

where x∗x^{*} is the solution of (136) closest to the starting point z0z^{0}, Rk+1=def∥x∗−zk+1∥2R_{k+1}\stackrel{{\scriptstyle\text{def}}}{{=}}\|x^{*}-z^{k+1}\|_{2}, R~0=defR0=def∥x∗−z0∥2\widetilde{R}_{0}\stackrel{{\scriptstyle\text{def}}}{{=}}R_{0}\stackrel{{\scriptstyle\text{def}}}{{=}}\|x^{*}-z^{0}\|_{2}, R~k+1=defmax⁡{R~k,Rk+1}\widetilde{R}_{k+1}\stackrel{{\scriptstyle\text{def}}}{{=}}\max\{\widetilde{R}_{k},R_{k+1}\} for k=0,1,…,N−1k=0,1,\ldots,N-1 and δ^=def(Lh+2L)δ(1−2δ)2L\hat{\delta}\stackrel{{\scriptstyle\text{def}}}{{=}}\sqrt{\frac{\left(L_{h}+2L\right)\delta}{(1-\sqrt{2\delta})^{2}L}}.

From 11-strong convexity of gk+1(z)g_{k+1}(z) we have

Together with triangle inequality it implies that

Applying inequality above and (125) for the r.h.s. of (140) we obtain

and δ^=def2(Lh+2L)δ(1−2δ)2L\hat{\delta}\stackrel{{\scriptstyle\text{def}}}{{=}}2\sqrt{\frac{\left(L_{h}+2L\right)\delta}{(1-\sqrt{2\delta})^{2}L}}. Using this we get

One can check via direct calculations that

Combining previous three inequalities we obtain

Together with the previous inequality and Ak+1=2Lαk+12A_{k+1}=2L\alpha_{k+1}^{2}, it implies

Rearranging the terms and using Ak+1=Ak+αk+1A_{k+1}=A_{k}+\alpha_{k+1}, we obtain

where we used that A0=0A_{0}=0. Finally, convexity of hh and definition of xk+1x^{k+1}, i.e. xk+1=\nicefrac(Akxk+αk+1zk+1)Ak+1x^{k+1}=\nicefrac{{(A_{k}x^{k}+\alpha_{k+1}z^{k+1})}}{{A_{k+1}}}, implies

Applying this inequality for AN−1h(xN−1),AN−2h(xN−2),…,A1h(x1)A_{N-1}h(x^{N-1}),A_{N-2}h(x^{N-2}),\ldots,A_{1}h(x^{1}) in a sequence we get

Below we state our main result of this section.

Let f(x)f(x) be convex and LL-smooth, h(x)h(x) be convex and LhL_{h}-smooth and δ≤14\delta\leq\frac{1}{4}. Assume that for a given number of iterations N≥1N\geq 1 the number δ^=def2(Lh+2L)δ(1−2δ)2L\hat{\delta}\stackrel{{\scriptstyle\text{def}}}{{=}}2\sqrt{\frac{\left(L_{h}+2L\right)\delta}{(1-\sqrt{2\delta})^{2}L}} satisfies δ^≤C(N+1)\nicefrac32\hat{\delta}\leq\frac{C}{(N+1)^{\nicefrac{{3}}{{2}}}} with some positive constant C∈(0,\nicefrac14)C\in(0,\nicefrac{{1}}{{4}}). Then after NN iteration of Algorithm 8 we have

for l=1,2,…,Nl=1,2,\ldots,N. Since F(xl)≥F(x∗)F(x^{l})\geq F(x^{*}) for each ll and δ^≤C(N+1)\nicefrac32\hat{\delta}\leq\frac{C}{(N+1)^{\nicefrac{{3}}{{2}}}} we get the recurrence

Note that the r.h.s. of the previous inequality is non-decreasing function of ll. Let us define l^\hat{l} as the largest integer such that l^≤l\hat{l}\leq l and R~l^=Rl^\widetilde{R}_{\hat{l}}=R_{\hat{l}}. Then Rl^=R~l^=R~l^+1=…=R~lR_{\hat{l}}=\widetilde{R}_{\hat{l}}=\widetilde{R}_{\hat{l}+1}=\ldots=\widetilde{R}_{l} and, as a consequence,

Using Lemma D.4 we get that R~l≤2R02\widetilde{R}_{l}\leq 2R_{0}^{2} for all l=1,…,Nl=1,\ldots,N. We plug this inequality together with δ≤C(N+1)\nicefrac32≤14(N+1)\nicefrac32\delta\leq\frac{C}{(N+1)^{\nicefrac{{3}}{{2}}}}\leq\frac{1}{4(N+1)^{\nicefrac{{3}}{{2}}}} and RN2≥0R_{N}^{2}\geq 0 in (147) and get

Under assumptions of Theorem E.4 we get that for an arbitrary ε>0\varepsilon>0 after

iterations of Algorithm 8 we have F(xN)−F(x∗)≤εF(x^{N})-F(x^{*})\leq\varepsilon. Moreover, we get that δ\delta should satisfy

The first part of the corollary follows from (146) and Lemma D.1. Relation (150) follows from the definition of δ^\hat{\delta} and δ^≤C(N+1)\nicefrac32\hat{\delta}\leq\frac{C}{(N+1)^{\nicefrac{{3}}{{2}}}}. Indeed, since δ^=def2(Lh+2L)δ(1−2δ)2L\hat{\delta}\stackrel{{\scriptstyle\text{def}}}{{=}}2\sqrt{\frac{\left(L_{h}+2L\right)\delta}{(1-\sqrt{2\delta})^{2}L}} and C≤14C\leq\frac{1}{4} we get that

Finally, we notice that one can set δk+1\delta_{k+1} in Algorithm 8 in a different way in order to get the same convergence guarantees, e.g. one can use δk+1=δR~k+12\delta_{k+1}=\delta\widetilde{R}_{k+1}^{2} and the order of δ\delta given by (150) will be the same. In this case inequalities (140) and (142) transform to

respectively, where δ^=def2(Lh+2L)δL\hat{\delta}\stackrel{{\scriptstyle\text{def}}}{{=}}2\sqrt{\frac{\left(L_{h}+2L\right)\delta}{L}}. Then the remaining part of the proof remains the same and gives the same result up to small changes in the numerical constants.

Appendix F Missing Proofs from Section 4

where x∗x^{*} is an arbitrary solution of (17). Taking inequality ∥AxN∥22≥0\|Ax^{N}\|_{2}^{2}\geq 0 into account we get the first part of (23). From Cauchy-Schwarz inequality we obtain

Together with (151) it gives us quadratic inequality on Ry∥AxN∥2R_{y}\|Ax^{N}\|_{2}:

Therefore, Ry∥AxN∥2R_{y}\|Ax^{N}\|_{2} should be less then the greatest root of the corresponding quadratic equation, i.e. Ry∥AxN∥2≤1+52ε<2εR_{y}\|Ax^{N}\|_{2}\leq\frac{1+\sqrt{5}}{2}\varepsilon<2\varepsilon.

F.2 Proof of Theorem 4.2

and using the similar steps as in the proof of inequality (141) we get

Combining previous two inequalities we conclude that

Appendix G Missing Lemmas and Proofs from Section 5.1

which proves the inequality (153). Applying LL-smoothness of ψ(x)\psi(x) we get

Combining these two inequalities we get (154). ∎

For each iteration of Algorithm 2 we have

The proof of this lemma follows a similar way as in the proof of Theorem 1 from . We can rewrite the update rule for zkz^{k} in the equivalent way:

One can check via direct calculations that

Combining previous two inequalities we obtain

Together with previous inequality, it implies

Rearranging the terms and using Ak+1=Ak+αk+1A_{k+1}=A_{k}+\alpha_{k+1}, we obtain

and after summing these inequalities for k=0,…,N−1k=0,\ldots,N-1 we get

The following lemma plays the central role in our analysis and it serves as the key to prove that the iterates of SPDSTM lie in the ball of radius RyR_{y} up to some polylogarithmic factor of NN.

Let the sequences of non-negative numbers {αk}k≥0\{\alpha_{k}\}_{k\geq 0}, random non-negative variables {Rk}k≥0\{R_{k}\}_{k\geq 0} and random vectors {ηk}k≥0\{\eta^{k}\}_{k\geq 0}, {ak}k≥0\{a^{k}\}_{k\geq 0} satisfy inequality

for all l=1,…,Nl=1,\ldots,N, where h,δ,uh,\delta,u and cc are some non-negative constants. Assume that for each k≥1k\geq 1 vector aka^{k} is a function of η0,…,ηk−1\eta^{0},\ldots,\eta^{k-1}, a0a^{0} is a deterministic vector, u≥1u\geq 1, sequence of random vectors {ηk}k≥0\{\eta^{k}\}_{k\geq 0} satisfy ∀k≥0\forall k\geq 0

αk+1≤α~k+1=D(k+2)\alpha_{k+1}\leq\widetilde{\alpha}_{k+1}=D(k+2), σk2≤Cεα~k+1ln⁡(Nβ)\sigma_{k}^{2}\leq\frac{C\varepsilon}{\widetilde{\alpha}_{k+1}\ln\left(\frac{N}{\beta}\right)} for some D,C>0D,C>0, ε>0\varepsilon>0, β∈(0,1)\beta\in(0,1) and sequence of random variables {R~k}k≥0\{\widetilde{R}_{k}\}_{k\geq 0} is such that ∥ak∥2≤dR~k\|a^{k}\|_{2}\leq d\widetilde{R}_{k} with some positive deterministic constant d≥1d\geq 1 and R~k=max⁡{R~k−1,Rk}\widetilde{R}_{k}=\max\{\widetilde{R}_{k-1},R_{k}\} for all k≥1k\geq 1, R~0=R0\widetilde{R}_{0}=R_{0}, R~k\widetilde{R}_{k} depends only on η0,…,ηk\eta_{0},\ldots,\eta^{k} and also assume that ln⁡(Nβ)≥3\ln\left(\frac{N}{\beta}\right)\geq 3. If additionally ε≤HR02N2\varepsilon\leq\frac{HR_{0}^{2}}{N^{2}} and δ≤GR0(N+1)2\delta\leq\frac{GR_{0}}{(N+1)^{2}}, then with probability at least 1−2β1-2\beta the inequalities

hold for all l=1,…,Nl=1,\ldots,N simultaneously, where C1C_{1} is some positive constant, g(N)=ln⁡(Nβ)+ln⁡ln⁡(Bb)ln⁡(Nβ)g(N)=\frac{\ln\left(\frac{N}{\beta}\right)+\ln\ln\left(\frac{B}{b}\right)}{\ln\left(\frac{N}{\beta}\right)},

b=σ02α~12d2R~02b=\sigma_{0}^{2}\widetilde{\alpha}_{1}^{2}d^{2}\widetilde{R}_{0}^{2} and

We start with applying Cauchy-Schwarz inequality to the second and the third terms in the right-hand side of (160):

The idea of the proof is as following: estimate RN2R_{N}^{2} roughly, then apply Lemma C.2 in order to estimate second term in the last row of (160) and after that use the obtained recurrence to estimate right-hand side of (160).

Using Lemma C.3 we get that with probability at least 1−βN1-\frac{\beta}{N}

where in the last inequality we use ln⁡Nβ≥3\ln\frac{N}{\beta}\geq 3. Using union bound and αk+1≤α~k+1=D(k+2)\alpha_{k+1}\leq\widetilde{\alpha}_{k+1}=D(k+2) we get that with probability ≥1−β\geq 1-\beta the inequality

holds for all l=1,…,Nl=1,\ldots,N simultaneously. Note that the last row in the previous inequality is non-decreasing function of ll. If we define l^\hat{l} as the largest integer such that l^≤l\hat{l}\leq l and R~l^=Rl^\widetilde{R}_{\hat{l}}=R_{\hat{l}}, we will get that Rl^=R~l^=R~l^+1=…=R~lR_{\hat{l}}=\widetilde{R}_{\hat{l}}=\widetilde{R}_{\hat{l}+1}=\ldots=\widetilde{R}_{l} and, as a consequence, with probability ≥1−β\geq 1-\beta

Therefore, we have that with probability ≥1−β\geq 1-\beta

for all l=1,…,Nl=1,\ldots,N. Unrolling the recurrence we get that with probability ≥1−β\geq 1-\beta

for all l=1,…,Nl=1,\ldots,N. We emphasize that it is very rough estimate, but we show next that such a bound does not spoil the final result too much. It implies that with probability ≥1−β\geq 1-\beta

due to Cauchy-Schwarz inequality and assumptions of the lemma. If we denote σ^k2=σk2α~k+12d2R~k2\hat{\sigma}_{k}^{2}=\sigma_{k}^{2}\widetilde{\alpha}_{k+1}^{2}d^{2}\widetilde{R}_{k}^{2} and apply Lemma C.2 with

and b=σ^02b=\hat{\sigma}_{0}^{2}, we get that for all l=1,…,Nl=1,\ldots,N with probability ≥1−βN\geq 1-\frac{\beta}{N}

with some constant C1>0C_{1}>0 which does not depend on BB or bb. Using union bound we obtain that with probability ≥1−β\geq 1-\beta

and it holds for all l=1,…,Nl=1,\ldots,N simultaneously. Note that with probability at least 1−β1-\beta

for all l=1,…,Nl=1,\ldots,N simultaneously. Using union bound again we get that with probability ≥1−2β\geq 1-2\beta the inequality

holds for all l=1,…,Nl=1,\ldots,N simultaneously.

Note that we also proved that (165) is in the same event together with (167) and holds with probability ≥1−2β\geq 1-2\beta. Putting all together in (160), we get that with probability at least 1−2β1-2\beta the inequality

holds for all l=1,…,Nl=1,\ldots,N simultaneously. For brevity, we introduce new notation: g(N)=ln⁡(Nβ)+ln⁡ln⁡(Bb)ln⁡(Nβ)≈1g(N)=\frac{\ln\left(\frac{N}{\beta}\right)+\ln\ln\left(\frac{B}{b}\right)}{\ln\left(\frac{N}{\beta}\right)}\approx 1 (neglecting constant factor). Using our assumption σk2≤Cεα~k+1ln⁡(Nβ)\sigma_{k}^{2}\leq\frac{C\varepsilon}{\widetilde{\alpha}_{k+1}\ln\left(\frac{N}{\beta}\right)} and definition σ^k2=σk2α~k+12d2R~k2\hat{\sigma}_{k}^{2}=\sigma_{k}^{2}\widetilde{\alpha}_{k+1}^{2}d^{2}\widetilde{R}_{k}^{2} we obtain that with probability at least 1−2β1-2\beta the inequality

holds for all l=1,…,Nl=1,\ldots,N simultaneously. Next we apply Lemma D.3 with A=AR02+24cCDHA=\frac{A}{R_{0}^{2}}+24cCDH, B=udC1CDHg(N)B=udC_{1}\sqrt{CDHg(N)}, D=hGDD=hGD, rk=R~kr_{k}=\widetilde{R}_{k} and get that with probability at least 1−2β1-2\beta inequality

holds for all l=1,…,Nl=1,\ldots,N simultaneously with

It implies that with probability at least 1−2β1-2\beta the inequality

holds for all l=1,…,Nl=1,\ldots,N simultaneously. ∎

G.2 Proof of Theorem 5.1

For the convenience we put here the extended statement of the theorem.

Assume that ff is μ\mu-strongly convex and ∥∇f(x∗)∥2=Mf\|\nabla f(x^{*})\|_{2}=M_{f}. Let ε>0\varepsilon>0 be a desired accuracy. Next, assume that ff is LfL_{f}-Lipschitz continuous on the ball BRf(0)B_{R_{f}}(0) with

where β∈(0,\nicefrac14)\beta\in\left(0,\nicefrac{{1}}{{4}}\right) is such that 1+ln⁡1βln⁡Nβ≤2\frac{1+\sqrt{\ln\frac{1}{\beta}}}{\sqrt{\ln\frac{N}{\beta}}}\leq 2, C2,C,C1C_{2},C,C_{1} are some positive numeric constants, g(N)=ln⁡(Nβ)+ln⁡ln⁡(Bb)ln⁡(Nβ)g(N)=\frac{\ln\left(\frac{N}{\beta}\right)+\ln\ln\left(\frac{B}{b}\right)}{\ln\left(\frac{N}{\beta}\right)},

b=σ02α~12R02b=\sigma_{0}^{2}\widetilde{\alpha}_{1}^{2}R_{0}^{2} and

with probability at least 1−4β1-4\beta. What is more, to guarantee (170) with probability at least 1−4β1-4\beta Algorithm 2 requires

Next, we introduce the sequences {Rk}k≥0\{R_{k}\}_{k\geq 0} and {R~k}k≥0\{\widetilde{R}_{k}\}_{k\geq 0} as

Using new notation we can rewrite (175) as

Using this and Lemma 2 from (see Lemma C.1 in the Section C) we get that

Putting all together in (179) and using (173) and line 2 from Algorithm 2 we get

Next we apply Lemma C.3 to the right-hand side of the previous inequality and get

In the above inequality we used the fact that Ry=R0R_{y}=R_{0}. Putting all together and using union bound we get that with probability at least 1−3β1-3\beta

Secondly, using the same trick as in the proof of Theorem 1 from we get that for arbitrary point yy

Using these relations in (184) we obtain that with probability at least 1−3β1-3\beta

In order to bound the second term in the right-hand side of the previous inequality we use the definition of the norm we have

where we used equality (31). Putting all together we obtain that with probability at least 1−3β1-3\beta

Lemma C.3 implies that for all γ>0\gamma>0

Using this inequality with γ=3ln⁡1β\gamma=\sqrt{3\ln\frac{1}{\beta}} and rk≥σψ2αkln⁡NβC2εr_{k}\geq\frac{\sigma_{\psi}^{2}\alpha_{k}\ln\frac{N}{\beta}}{C_{2}\varepsilon} we get that with probability at least 1−β1-\beta

It implies that with probability at least 1−β1-\beta

and due to triangle inequality with probability ≥1−β\geq 1-\beta

The next step is in applying Lipschitz continuity of ff on BRf(0)B_{R_{f}}(0). Recall that

and due to Demyanov-Danskin theorem x(y)=∇φ(y)x(y)=\nabla\varphi(y). Together with LφL_{\varphi}-smoothness of φ\varphi it implies that

From this and (177) we get that with probability at least 1−2β1-2\beta the inequality

We notice that the last inequality lies in the same probability event when (177) holds.

lies in the event EE. From this we can obtain a lower bound for RfR_{f}:

also lie in the event EE. It remains to use inequalities (189) and (194) to bound first and second terms in the right hand side of inequality (186) and obtain that with probability at least 1−4β1-4\beta

Using this and weak duality −f(x∗)≤ψ(y∗)-f(x^{*})\leq\psi(y^{*}), we obtain

holds together with (196) with probability at least 1−4β1-4\beta. The total number of stochastic gradient oracle calls is ∑k=1Nrk\sum\limits_{k=1}^{N}r_{k}, which gives the bound in the problem statement since ∑k=1Nαk+1=AN\sum\limits_{k=1}^{N}\alpha_{k+1}=A_{N}. ∎

Appendix H Missing Proofs from Section 5.2

For simplicity we analyse only the first restart since the analysis of the later restarts is the same. We apply Theorem 5.3 with N=NˉN=\bar{N} such that

together with simple inequality ∥∇ψ(y0)∥2≥μψ∥y0−y∗∥2\|\nabla\psi(y^{0})\|_{2}\geq\mu_{\psi}\|y^{0}-y^{*}\|_{2} and get for all p=1,…,p1p=1,\ldots,p_{1}

By Markov’s inequality we have for each p=1,…,p1p=1,\ldots,p_{1} that for fixed ∇Ψ(y0,ξ0,r^1)\nabla\Psi(y^{0},\boldsymbol{\xi}^{0},\hat{r}_{1}) with probability at most \nicefrac12\nicefrac{{1}}{{2}}

Then, with probability at least 1−\nicefrac12p1≥1−\nicefracβl1-\nicefrac{{1}}{{2^{p_{1}}}}\geq 1-\nicefrac{{\beta}}{{l}}

where p^1\hat{p}_{1} is such that ∥∇ψ(yˉ1,p^1)∥22=min⁡p=1,…,p1∥∇ψ(yˉ1,p)∥22\|\nabla\psi(\bar{y}^{1,\hat{p}_{1}})\|_{2}^{2}=\min_{p=1,\ldots,p_{1}}\|\nabla\psi(\bar{y}^{1,p})\|_{2}^{2}. From Lemma C.3 we have for all p=1,…,p1p=1,\ldots,p_{1}

Since rˉ1=max⁡{1,128σψ2(1+3ln⁡lp1β)2Ry2ε2}\bar{r}_{1}=\max\left\{1,\frac{128\sigma_{\psi}^{2}\left(1+\sqrt{3\ln\frac{lp_{1}}{\beta}}\right)^{2}R_{y}^{2}}{\varepsilon^{2}}\right\} we can take γ=3ln⁡lp1β\gamma=\sqrt{3\ln\frac{lp_{1}}{\beta}} in the previous inequality and get that for all p=1,…,p1p=1,\ldots,p_{1} and fixed points yˉ1,p\bar{y}^{1,p} with probability at least 1−\nicefracβ(lp1)1-\nicefrac{{\beta}}{{(lp_{1})}}

Using union bound we get that with probability at least 1−\nicefracβl1-\nicefrac{{\beta}}{{l}} inequality

holds for all p=1,…,p1p=1,\ldots,p_{1} simultaneously with fixed points yˉ1,p\bar{y}^{1,p}. Using union bound again we get that with probability at least 1−\nicefrac2βl1-\nicefrac{{2\beta}}{{l}} for fixed ∇Ψ(y0,ξ0,r^1)\nabla\Psi(y^{0},\boldsymbol{\xi}^{0},\hat{r}_{1})

Using Lemma C.3 with γ=3ln⁡lβ\gamma=\sqrt{3\ln\frac{l}{\beta}} and r^1=max⁡{1,4σψ2(1+3ln⁡lβ)2Ry2ε2}\hat{r}_{1}=\max\left\{1,\frac{4\sigma_{\psi}^{2}\left(1+\sqrt{3\ln\frac{l}{\beta}}\right)^{2}R_{y}^{2}}{\varepsilon^{2}}\right\} we get that with probability at least 1−\nicefracβl1-\nicefrac{{\beta}}{{l}}

Applying union bound again we get that with probability at least 1−\nicefrac3βl1-\nicefrac{{3\beta}}{{l}} the following inequality holds:

Similarly, for all k=1,…,lk=1,\ldots,l with probability at least 1−\nicefrac3βl1-\nicefrac{{3\beta}}{{l}}

Using union bound we get that with probability at least 1−3β1-3\beta the inequality

holds for all k=1,…,lk=1,\ldots,l simultaneously. Finally, unrolling the recurrence an using our choice of l=max⁡{1,log⁡2(\nicefrac2Ry2∥∇ψ(y0)∥22ε2)}l=\max\left\{1,\log_{2}\left(\nicefrac{{2R_{y}^{2}\|\nabla\psi(y^{0})\|_{2}^{2}}}{{\varepsilon^{2}}}\right)\right\} we obtain that with probability at least 1−3β1-3\beta

which concludes the proof. To get (51) we need to estimate ∑k=1l(r^k+Nˉpkrk+pkrˉk)\sum\limits_{k=1}^{l}(\hat{r}_{k}+\bar{N}p_{k}r_{k}+p_{k}\bar{r}_{k}) using our choice of parameters stated in (49).

H.2 Proof of Corollary 5.8

Theorem 5.6, Corollary 5.7 and inequality ε≤μψRy2\varepsilon\leq\mu_{\psi}R_{y}^{2} imply that with probability at least 1−3β1-3\beta

Applying Theorem 5.2 we get that with probability 1−3β1-3\beta we also have

where x^l=defx(A⊤yˉl,p(l))\hat{x}^{l}\stackrel{{\scriptstyle\text{def}}}{{=}}x(A^{\top}\bar{y}^{l,p(l)}). Next, we show that points x^l,p=x(A⊤yˉl,p)\hat{x}^{l,p}=x(A^{\top}\bar{y}^{l,p}) and xl,p=defx(A⊤yˉl,p,ξl,,rˉl)x^{l,p}\stackrel{{\scriptstyle\text{def}}}{{=}}x(A^{\top}\bar{y}^{l,p},\boldsymbol{\xi}^{l,},\bar{r}_{l}) are close to each other with high probability for all p=1,…,plp=1,\ldots,p_{l} and both lie in BRf(0)B_{R_{f}}(0) with high probability. Lemma C.3 states that

Taking γ=3ln⁡plβ\gamma=\sqrt{3\ln\frac{p_{l}}{\beta}} and using rˉl=max⁡{1,128σψ2(1+3ln⁡lplβ)Ry2ε2}\bar{r}_{l}=\max\left\{1,\frac{128\sigma_{\psi}^{2}\left(1+\sqrt{3\ln\frac{lp_{l}}{\beta}}\right)R_{y}^{2}}{\varepsilon^{2}}\right\} we get that for all p=1,…,plp=1,\ldots,p_{l} with probability at least 1−\nicefracβpl1-\nicefrac{{\beta}}{{p_{l}}}

where we use σψ=λmax⁡(A⊤A)σx\sigma_{\psi}=\sqrt{\lambda_{\max}(A^{\top}A)}\sigma_{x}. Using union bound we get that with probability at least 1−β1-\beta the inequality

holds for all p=1,…,p(l)p=1,\ldots,p(l) simultaneously and, in particular, we get that with probability at least 1−β1-\beta

It implies that with probability at least 1−β1-\beta

and due to triangle inequality with probability ≥1−β\geq 1-\beta

Applying Demyanov-Danskin’s theorem, LφL_{\varphi}-smoothness of φ\varphi with Lφ=\nicefrac1μL_{\varphi}=\nicefrac{{1}}{{\mu}} and ε≤μψRy2\varepsilon\leq\mu_{\psi}R_{y}^{2} we obtain that with probability at least 1−β1-\beta

That is, we proved that with probability at least 1−β1-\beta points x^l\hat{x}^{l} and xlx^{l} lie in the ball BRf(0)B_{R_{f}}(0). In this ball function ff is LfL_{f}-Lipschitz continuous, therefore, with probability at least 1−β1-\beta

Combining inequalities (206), (209) and (212) and using union bound we get that with probability at least 1−4β1-4\beta

Finally, in order to get the bound for the total number of oracle calls from (54) we use (51) together with σψ2=σx2λmax⁡(A⊤A)\sigma_{\psi}^{2}=\sigma_{x}^{2}\lambda_{\max}(A^{\top}A) and (121).

Appendix I Missing Proofs from Section 5.3

Applying μψ\mu_{\psi}-strong convexity of ψ\psi and the relation

From LψL_{\psi}-smoothness of ψ\psi we have

Next, Fenchel-Young inequality (see inequality (119)) implies that

Putting all together and rearranging the terms we get

I.2 Proof of Lemma 5.10

The idea behind the proof of this lemma is exactly the same as for Lemma G.3. We start with applying Cauchy-Schwarz inequality to the second and the third terms, i.e.

Using Lemma C.3 we get that with probability at least 1−βN1-\frac{\beta}{N}

Using union bound and αk+1≤DAk\alpha_{k+1}\leq DA_{k} we get that with probability ≥1−β\geq 1-\beta inequalities

hold for all l=1,…,Nl=1,\ldots,N simultaneously. Therefore, with probability ≥1−β\geq 1-\beta the inequality

holds for all l=1,…,Nl=1,\ldots,N simultaneously. Unrolling the recurrence we get that with probability ≥1−β\geq 1-\beta

for all l=1,…,Nl=1,\ldots,N. We emphasize that it is very rough estimate, but as for the convex case we show next that such a bound does not spoil the final result too much. It implies that with probability ≥1−β\geq 1-\beta

for all l=1,…,Nl=1,\ldots,N simultaneously. Moreover, since (217) holds we have in the same probability event that inequalities

due to Cauchy-Schwarz inequality and assumptions of the lemma. If we denote σ^k2=2σk2αk+12(Rk2+R~k2)\hat{\sigma}_{k}^{2}=2\sigma_{k}^{2}\alpha_{k+1}^{2}(R_{k}^{2}+\widetilde{R}_{k}^{2}) and apply Lemma C.2 with

and b=σ^02b=\hat{\sigma}_{0}^{2}, we get that for all l=1,…,Nl=1,\ldots,N with probability ≥1−βN\geq 1-\frac{\beta}{N}

with some constant C1>0C_{1}>0 which does not depend on BB or bb. Using union bound we obtain that with probability ≥1−β\geq 1-\beta

and it holds for all l=1,…,Nl=1,\ldots,N simultaneously. Note that αk+1≤Ak+1\alpha_{k+1}\leq A_{k+1}, ε≤HR02AN\varepsilon\leq\frac{HR_{0}^{2}}{A_{N}}, δ≤GR0NAN\delta\leq\frac{GR_{0}}{N\sqrt{A_{N}}} and with probability at least 1−β1-\beta

for all l=1,…,Nl=1,\ldots,N simultaneously. Using union bound again we get that with probability ≥1−2β\geq 1-2\beta the inequality

holds for all l=1,…,Nl=1,\ldots,N simultaneously.

Note that we also proved that (216) is in the same event together with (220) and holds with probability ≥1−2β\geq 1-2\beta. Putting all together in (59), we get that with probability at least 1−2β1-2\beta the inequality

holds for all l=1,…,Nl=1,\ldots,N simultaneously. For brevity, we introduce new notation: g(N)=ln⁡(Nβ)+ln⁡ln⁡(Bb)(1+3ln⁡(Nβ))2≈1g(N)=\frac{\ln\left(\frac{N}{\beta}\right)+\ln\ln\left(\frac{B}{b}\right)}{\left(1+\sqrt{3\ln\left(\frac{N}{\beta}\right)}\right)^{2}}\approx 1 (neglecting constant factor). Using our assumptions σk2≤CεN2(1+3ln⁡(Nβ))2\sigma_{k}^{2}\leq\frac{C\varepsilon}{N^{2}\left(1+\sqrt{3\ln\left(\frac{N}{\beta}\right)}\right)^{2}}, ε≤HR02AN\varepsilon\leq\frac{HR_{0}^{2}}{A_{N}}, δ≤GR0NAN\delta\leq\frac{GR_{0}}{N\sqrt{A_{N}}} and definition σ^k2=2σk2αk+12(Rk2+R~k2)\hat{\sigma}_{k}^{2}=2\sigma_{k}^{2}\alpha_{k+1}^{2}(R_{k}^{2}+\widetilde{R}_{k}^{2}) we obtain that with probability at least 1−2β1-2\beta the inequality

hold for all l=1,…,Nl=1,\ldots,N simultaneously with

It implies that with probability at least 1−2β1-2\beta the inequality

holds for all l=1,…,Nl=1,\ldots,N simultaneously.

I.3 Proof of Theorem 5.11

for all k≥0k\geq 0. By definition of zkz^{k} we get that

for all l≥0l\geq 0. Next, we introduce new notation

Taking γ=3ln⁡1β\gamma=\sqrt{3\ln\frac{1}{\beta}} and using r0≥(μψLψ)\nicefrac32N2σψ2(1+3ln⁡Nβ)2Cεr_{0}\geq\left(\frac{\mu_{\psi}}{L_{\psi}}\right)^{\nicefrac{{3}}{{2}}}\frac{N^{2}\sigma_{\psi}^{2}\left(1+\sqrt{3\ln\frac{N}{\beta}}\right)^{2}}{C\varepsilon}, ε≤HR02AN\varepsilon\leq\frac{HR_{0}^{2}}{A_{N}} we get that with probability at least 1−β1-\beta

From this and δ≤GR0NAN\delta\leq\frac{GR_{0}}{N\sqrt{A_{N}}} we obtain that with probability ≥1−β\geq 1-\beta

Using union bound we get that with probability at least 1−3β1-3\beta

oracle calls where O~(⋅)\widetilde{O}(\cdot) hides polylogarithmic factors depending on Lψ,μψ,R0,εL_{\psi},\mu_{\psi},R_{0},\varepsilon and β\beta.

I.4 Proof of Corollary 5.14

Corollary 5.13 implies that with probability at least 1−3β1-3\beta

and the total number of oracle calls to get this is of order (72). Together with Theorem 5.2 it gives us that with probability at least 1−3β1-3\beta

Taking γ=3ln⁡1β\gamma=\sqrt{3\ln\frac{1}{\beta}} and using rN≥1Cσψ2Ry2(1+3ln⁡1β)2ε2r_{N}\geq\frac{1}{C}\frac{\sigma_{\psi}^{2}R_{y}^{2}\left(1+\sqrt{3\ln\frac{1}{\beta}}\right)^{2}}{\varepsilon^{2}} we get that with probability at least 1−β1-\beta

It implies that with probability at least 1−β1-\beta

and due to triangle inequality with probability ≥1−β\geq 1-\beta

Applying Demyanov-Danskin theorem and LφL_{\varphi}-smoothness of φ\varphi with Lφ=\nicefrac1μL_{\varphi}=\nicefrac{{1}}{{\mu}} we obtain that with probability at least 1−β1-\beta

Combining inequalities (232), (235) and (238) and using union bound we get that with probability at least 1−4β1-4\beta

Finally, in order to get the bound for the total number of oracle calls from (72) we use (66) together with σψ2=σx2λmax⁡(A⊤A)\sigma_{\psi}^{2}=\sigma_{x}^{2}\lambda_{\max}(A^{\top}A) and (121).