On Stochastic Subgradient Mirror-Descent Algorithm with Weighted Averaging

Angelia Nedich, Soomin Lee

Introduction

The work in this paper is motivated by several recent papers showing that using averaging is beneficial when constructing fast (sub)gradient algorithms for solving convex optimization problems. Specifically, for problems where the objective function has Lipschitz continuous gradients, Tseng has recently proposed an accelerated gradient method that uses averaging to construct a generic algorithm with the convergence rate of 1k2\frac{1}{k^{2}}. This convergence rate is known to be the best in the class of convex functions with Lipshitz gradients , for which the first fast algorithm is originally constructed by Nesterov for unconstrained problems, and recently extended in to a larger class of problems. Averaging has also recently been used by Ghadimi and Lan in to develop an algorithm that has the rate 1k2\frac{1}{k^{2}} if the objective function has Lipschitz continuous gradients, and the rate 1k\frac{1}{k} if the objective function is strongly convex (even if stochastic subgradient is used). Some interesting results have been shown by Juditsky et al. for mirror-descent algorithm with averaging as employed to construct aggregate estimators with the best achievable learning rate.

Recently, Lan has considered averaging technique for the mirror-descent algorithm for stochastic composite problems (involving the sum of a smooth objective and a nonsmooth objective function), where the accelerated stepsizes akin to those considered by Tseng have also been proposed. The algorithms proposed by Tseng in , and by Ghadimi and Lan in , rely on a construction of three sequences, some of which use a form of averaging. A different form of averaging has been considered by Nesterov in , where the averaging is used in both primal and dual spaces to construct a subgradient method with the rate 1k\frac{1}{\sqrt{k}}, which is known to be the best convergence rate of any first-order method for convex functions in general . A much simpler iterate averaging scheme dates back to Nemirovski and Yudin for convex-concave saddle-point problems. Such a scheme has also been considered by Polyak and Juditsky for stochastic (gradient) approximations, and by Polyak for convex feasibility problems. A somewhat different approach has been considered by Juditsky et al. , where a variant of the mirror-descent algorithm with averaging has been proposed for the classification problem. More recently, the simple iterate averaging has been considered by Nemirovski et al. to show the best achievable rate in the context of stochastic subgradients. Recently, Juditsky and Nesterov have further investigated some special extensions of the primal-dual averaging method for a more general class of uniformly convex functions, while Rakhlin et al. have investigated a form of “truncated averaging” of the iterates for a stochastic subgradient method in order to achieve the best known rate for strongly convex functions.

In this paper, we further explore the benefits of averaging by providing a somewhat different analytical approach to the stochastic subgradient mirror-descent methods. In particular, we consider a stochastic subgradient mirror-descent method combined with a simple averaging of the iterates. The averaging process is motivated by that of Nemirovski and Yudin , which was also used later on by Polyak and Juditsky and by Polyak . In this averaging process, the averaged iterates are not used in the construction of the algorithms, but rather occur as byproducts of the algorithms, where the averaging weights are specified in terms of the stepsizes that the algorithm is using. The novel part of this work is in the choice of the stepsize (and averaging weights), which are motivated by those proposed by Tseng and include the Nesterov stepsize . The development relies on a new choice of “a Lyapunov function” that is used to measure the progress of an algorithm, which combined with a relatively simple analysis allows us to recover the known rate results and also develop some new almost sure convergence results.

Specifically, we consider two cases namely, the case when the objective function is strongly convex while the constraint set is just convex and closed, and the case when the objective function is just convex (not necessarily differentiable) while the constraint set is convex and compact. In both cases, our algorithm achieves the best known convergence rates. For strongly convex functions, we show that the algorithm with averaging achieves the best convergence rate of 1k\frac{1}{k} per iteration kk. This result is the same as that of Juditsky et al. , Ghadimi and Lan in , and Rakhlin et al. . However, we show that this optimal rate is attained with a simpler algorithm than the algorithms in , , and with an averaging that is different from the one used in . For a compact constraint set, our algorithm achieves the best known rate of 1k\frac{1}{\sqrt{k}} at iteration kk by using the stepsize of the form 1k\frac{1}{\sqrt{k}}. The rate 1k\frac{1}{\sqrt{k}} is achievable by a time-varying stepsize sequence with an averaging over all iterates that are generated up to a given time, which is different from the window-based averaging proposed in . The novel part of the work is in the establishment of the almost sure sub-sequential convergence for the averaging sequence obtained by the method with a non-summable stepsize αk=1k\alpha_{k}=\frac{1}{\sqrt{k}} (as given in Theorem 4). To the best of our knowledge, this is the first almost sure convergence result for a non-summable stepsize. The existing convergence results for the stochastic mirror-descent (hence, for the stochastic subgradient method) that uses a non-summable stepsize show the convergence of the function values in the expectation only , . Our result is new even for the mirror-descent method (hence, also for the subgradient method) without stochastic errors, as it also shows the sub-sequential convergence of the average sequence to an optimal solution.

The paper is organized as follows. In Section 2, we formalize the problem, describe the basic stochastic subgradient mirror-descent method and discuss our assumptions. In Section 3, we present the results for the algorithm with iterate averaging for strongly convex functions. In Section 4, we analyze the convergence properties of the algorithm for the case when the constraint set is compact. We report some simulation results in Section 5 and provide concluding remarks in Section 6.

Stochastic Subgradient Mirror-Descent Algorithm

Consider the problem of minimizing a convex but not necessarily differentiable function ff over a constraint set XX:

We will use f∗f^{*} to denote the optimal value of the problem and X∗X^{*} to denote the solution set of the problem,

The set XX is assumed to be convex and closed, while the function ff is assumed to be convex and continuous at all points x∈Xx\in X. In addition, a subgradient g(x)g(x) is assumed to exists at every point x∈Xx\in X, i.e., for every x∈Xx\in X, there is a vector g(x)g(x) such that

Strongly convex non-differentiable optimization problems arise most prominently in machine learning as regularized stochastic learning problems , (also for example, see and the detailed literature overview therein). These problems are of the following generic form:

where λ>0\lambda>0 is a regularization parameter (also a strong convexity constant for the objective function). The second term in the objective function is the empirical estimate of the expected loss based on MM random observations of input-output data pairs. The optimal solution to this problem is known as the maximum-margin separating hyperplane .

The Bregman distance function induced by w(⋅)w(\cdot) is denoted by DwD_{w} and given by

From the definition it can be seen that the Bregman distance function has the following properties

where relation (4) follows by the strong convexity of the function ww. Furthermore, Dw(x,z)D_{w}(x,z) is differentiable with respect to zz. Letting ∇zDw(⋅,⋅)\nabla_{z}D_{w}(\cdot,\cdot) denote the partial derivative of Dw(x,z)D_{w}(x,z) with respect to the zz variable, we have

A subgradient mirror-descent method generates iterates, starting with an initial point x0∈Xx_{0}\in X, according to the following update rule:

where αk>0\alpha_{k}>0 is a stepsize and gkg_{k} is a subgradient of f(x)f(x) evaluated at x=xkx=x_{k}. The algorithm works under the premise that the set XX has a structure admitting efficient computation of xk+1x_{k+1}, such as for example when a closed form of xk+1x_{k+1} is available.

The standard stochastic subgradient method is a special case of method (6), when w(x)=12∥x∥2,w(x)=\frac{1}{2}\|x\|_{2}, where ∥⋅∥2\|\cdot\|_{2} is the Euclidean distance. In this case, the Bregman distance function reduces to

and the stochastic mirror-descent method becomes the standard stochastic subgradient-projection method:

In addition to the iterate sequence {xk}\{x_{k}\} generated by the stochastic mirror-descent algorithm, we will also consider a sequence {x^k}\{\hat{x}_{k}\} of weighted-averages of the iterates, with x^k\hat{x}_{k} defined by

where β0,β1,…,βk\beta_{0},\beta_{1},\ldots,\beta_{k} are non-negative scalars with the sum equal to 1. These convex weights will be appropriately defined in terms of the stepsize values α0,α1,…,αk.\alpha_{0},\alpha_{1},\ldots,\alpha_{k}. The weight selection (and the forthcoming analysis) are motivated by an alternative re-scaled version of the mirror-descent algorithm:

where the scalar 1αk\frac{1}{\alpha_{k}} is interpreted as a penalty value at points z∈Xz\in X that are far from xkx_{k} in terms of the Bregman distance. Intuitively, as the method progresses and we have a higher confidence in the quality of the iterate xkx_{k}, it makes sense to increase the penalty 1αk\frac{1}{\alpha_{k}} for deviating from xkx_{k} too far, which is done by decreasing the stepsize αk\alpha_{k} to 0. However, the decrease rate of the stepsize αk\alpha_{k} is crucial for the convergence rate of the algorithm, and this rate has to be adjusted depending on the properties of the objective function ff.

The alternative description (7) of the stochastic mirror-descent algorithm suggests that we may use the weighted (expected) Bregman distance function 1αkE ⁣[Dw(xk,y)]\frac{1}{\alpha_{k}}\mathsf{E}\!\left[D_{w}(x_{k},y)\right], with y∈Xy\in X, as a Lyapunov function to measure the progress of the method, which may provide us with some additional insights about the convergence of the method. This point of view motivates our choice of the weighted iterate-averages and the overall development in the rest of the paper.

In what follows, we assume that the stochastic subgradients are well behaved in the sense of the following assumption.

Now, we define the σ\sigma-field generated by the history of the algorithm:

with F0=σ{x0}\mathcal{F}_{0}=\sigma\{x_{0}\}. Using this σ\sigma-field, under Assumption 1, we have the following basic property of the iterates {xk}\{x_{k}\} generated by the stochastic mirror-descent algorithm.

Let Assumption 1 hold. Then, for method (6) we have almost surely for all z∈Xz\in X and k≥0k\geq 0,

Proof. By the first-order optimality condition for the point xk+1x_{k+1}, we have

where ∇zDw(⋅,⋅)\nabla_{z}D_{w}(\cdot,\cdot) denotes the partial derivative of the Bregman distance function with respect to the second variable. Using ∇zDw(x,z)=∇w(z)−∇w(x)\nabla_{z}D_{w}(x,z)=\nabla w(z)-\nabla w(x) (cf. Eq. (5)), we have

From relation (3), with x=xkx=x_{k}, y=xk+1y=x_{k+1} and an arbitrary z∈Xz\in X, we obtain

Substituting the preceding equality in Eq. (8), we see that for all z∈Xz\in X,

By the strong convexity of w(x)w(x), we have Dw(xk,xk+1)≥μw2 ∥xk−xk+1∥2D_{w}(x_{k},x_{k+1})\geq\frac{\mu_{w}}{2}\,\|x_{k}-x_{k+1}\|^{2} (cf. Eq. (4)) implying that

where the last relation follows from Fenchel’s inequality, i.e., ∣⟨p,q⟩∣≤12∥p∥2+12∥q∥∗2|\langle p,q\rangle|\leq\frac{1}{2}\|p\|^{2}+\frac{1}{2}\|q\|_{*}^{2}, and ∥⋅∥∗\|\cdot\|_{*} is the conjugate norm for ∥⋅∥\|\cdot\|. Upon substituting (10) in relation (9), re-arranging the terms, and noting that the terms involving ∥xk+1−xk∥2\|x_{k+1}-x_{k}\|^{2} get cancelled, we obtain

By taking the expectation conditioned on Fk\mathcal{F}_{k} and using Assumption 1, we have

With Lemma 1 we are ready to explore the properties of stochastic mirror-descent algorithm and its weighted-average iterates. In the following two sections, we will consider two special instances of problem (1), namely the case when ff is strongly convex but no additional assumptions are made on XX, and the case when XX is bounded (in addition to being convex and closed) but no additional assumptions are made on ff aside from convexity, as given in Section 2.

Strongly Convex Objective Function

In this section, we restrict our attention to problem (1) with a strongly convex objective function ff. Specifically, we assume that ff is strongly convex with a constant μf>0\mu_{f}>0 over the set XX with respect to the underlying norm,

For such a function, we consider the stochastic subgradient mirror-descent method with the stepsize αkμf\frac{\alpha_{k}}{\mu_{f}}. Specifically, the algorithm assumes the following form:

The stepsize αk\alpha_{k} is assumed to be such that

where α0=1\alpha_{0}=1. The above stepsize choice have been proposed by Tseng as a generalization of the stepsize selection due to Nesterov who had developed it in the construction of the optimal algorithm for minimizing a convex function with Lipschitz gradients (see also a recent paper by Beck and Teboulle ).

The following result for the stepsize will be useful in the analysis of the method.

Let the stepsize αk\alpha_{k} satisfy relation (15). We then have

Proof. For k=0k=0, the result holds since α0=1\alpha_{0}=1. From relation (15) it follows that

which upon summing over t=0,1,…,k−1,t=0,1,\ldots,k-1, yields

This and the fact α0=1\alpha_{0}=1 imply the desired relation.

We next investigate the behavior of the iterates generated by the stochastic mirror-descent algorithm with a stepsize αk\alpha_{k} satisfying (15). Our subsequent results rely on an additional property of the Bregman distance function Dw(x,z)D_{w}(x,z) requiring that

This relation holds for example when the Bregman distance generating function ww has Lipschitz gradients over XX with a constant L=12L=\frac{1}{2}, i.e.,

To see this, note that by the preceding Lipschitz gradient property of ww, we have for any x,z∈Xx,z\in X,

Note that, when ff is strongly convex, the minimization problem in (1) has a unique minimizer (see Theorem 2.2.6 in , or Proposition 2.1.2 in ), which we denote by x∗x^{*}. In the following lemma we provide a relation for the iterates xkx_{k} and the solution x∗x^{*}.

Let ff be strongly convex over XX with a constant μf>0\mu_{f}>0, and let Assumption 1 hold. Also, let the Bregman distance function DwD_{w} be such that (16) holds. Consider the method (14) with the stepsize sequence {αk}\{\alpha_{k}\} satisfying the conditions in (15). Then, for the iterate sequence {xk}\{x_{k}\} generated by the method and the solution x∗x^{*} of problem (1), we have

Proof. Under Assumption 1, by Lemma 1 (where αk\alpha_{k} is replaced with αkμf\frac{\alpha_{k}}{\mu_{f}}) for method (14) we have almost surely for z=x∗z=x^{*} and all k≥0k\geq 0,

By using the strong convexity of ff (cf. relation (13)), we obtain

where the last inequality follows by the assumed property of DwD_{w} in Eq. (16). Combining the preceding two relations and taking the total expectation, we further obtain for all k≥0k\geq 0,

Multiplying both sides of this relation by 1/αk21/\alpha^{2}_{k} and using 1−αkαk2≤1αk−12\frac{1-\alpha_{k}}{\alpha_{k}^{2}}\leq\frac{1}{\alpha_{k-1}^{2}} (cf. Eq. (15)), we have for all k≥1k\geq 1,

Summing these inequalities over k,k−1,…,1,k,k-1,\ldots,1, and using α0=1\alpha_{0}=1, we obtain

We estimate E ⁣[Dw(x1,x∗)]\mathsf{E}\!\left[D_{w}(x_{1},x^{*})\right] by using relation (17) with k=1k=1 and the fact that α0=1\alpha_{0}=1. Thus, we have for all k≥1k\geq 1,

From relations (19) and (18) we see that for all k≥0k\geq 0,

from which the desired relation follows by multiplying with αk2\alpha_{k}^{2} and using the relation αk2≥1∑t=0k1αt\alpha_{k}^{2}\geq\frac{1}{\sum_{t=0}^{k}\frac{1}{\alpha_{t}}}, which holds for all k≥0k\geq 0 by virtue of Lemma 2.

Lemma 3 indicates that we can state some special result for a weighted-average points of the method, defined as follows:

Note that x^k∈X\hat{x}_{k}\in X for all kk, as each x^k\hat{x}_{k} is a convex combination of points in the set XX. From Lemma 3 we see that

To make this estimate more meaningful, we turn our attention to the stepsize choices that satisfy the conditions in (15). From (15) we obtain

starting with α0=1\alpha_{0}=1. We will consider two specific choices, namely

The stepsize in (21) has been proposed by Tseng . Setting αk+1=1tk+1\alpha_{k+1}=\frac{1}{t_{k+1}} in (22) will yield the Nesterov sequence tk+1t_{k+1} used in the construction of the fastest first-order algorithm for convex functions with Lipschitz gradients, i.e.,

with t0=1t_{0}=1 (see Nesterov , also Beck and Teboulle ). By induction, it can be seen that tk≥k+22t_{k}\geq\frac{k+2}{2} for all kk, implying that the stepsize in (22) satisfies

Thus, both stepsize choices in (21) and (22) satisfy relation (23). Note that these stepsize choices do not have any tunable parameters.

Now, we provide the convergence result for algorithm (14) with the aforementioned stepsize choices.

Let ff be strongly convex over XX with a constant μf>0\mu_{f}>0, and let Assumption 1 hold. Also, let the Bregman distance function DwD_{w} be such that (16) holds. Consider the method (14) with the stepsize sequence {αk}\{\alpha_{k}\} chosen according to either (21) or (22). Then, for the iterate sequence {xk}\{x_{k}\} generated by the method, we have

while for the weighted-average sequence {x^k}\{\hat{x}_{k}\}, with x^k\hat{x}_{k} defined in (20), we have

where x∗x^{*} is the solution of problem (1).

Proof. By Lemma 3 we have for all k≥0k\geq 0,

The stepsize sequence {αk}\{\alpha_{k}\} chosen according to either (21) or (22) satisfies αk≤2k+1\alpha_{k}\leq\frac{2}{k+1} for all kk (cf. Eq. (23)). Thus, for all k≥0k\geq 0,

By using the convexity of the function ff and the definition of the weighted-average x^k\hat{x}_{k} in Eq. (20), we conclude that

while by the strong convexity of ff, we have f(x^k)−f(x∗)≥μf2∥x^k−x∗∥2f(\hat{x}_{k})-f(x^{*})\geq\frac{\mu_{f}}{2}\|\hat{x}_{k}-x^{*}\|^{2} which yields

Furthermore, from relation (24) we obtain

which by the strong convexity of ww (Eq. (4)) yields

Theorem 1 gives the rate of convergence of the order 1k\frac{1}{k} for the expected distance of the averages x^k\hat{x}_{k} to the solution x∗x^{*}. This rate is known to be the optimal rate achievable by a stochastic subgradient methods for strongly convex functions, as shown in and . Specifically, in , the optimal rate is attained by a more involved method (utilizing averages in a different way), while in the rate is attained by suitably sliding the window of indices over which the iterates are averaged. We note, however, that Theorem 1 is not as general as the results obtained in , which can simultaneously handle the case when the function ff may have Lipschitz gradients.

The method (14) is simple for implementation, as it requires storing xkx_{k}, the weighted average x^k−1\hat{x}_{k-1} (initialized with x^0=x0\hat{x}_{0}=x_{0}) and the stepsize-related sum Sk=∑t=0k1αtS_{k}=\sum_{t=0}^{k}\frac{1}{\alpha_{t}} at each iteration. At iteration k+1k+1, the weighted average x^k−1\hat{x}_{k-1} gets updated. This can be done recursively by computing Sk+1=Sk+1αkS_{k+1}=S_{k}+\frac{1}{\alpha_{k}}, starting with S0=0S_{0}=0, and by setting

Theorem 1 provides the convergence rate for the expected distances E ⁣[∥xk−x∗∥2]\mathsf{E}\!\left[\|x_{k}-x^{*}\|^{2}\right] for the iterates of the algorithm, but not for their expected function values, while for the averaged iterates x^k\hat{x}_{k}, it provides both estimates for the expected distances and the expected function values. Furthermore, observe that for the expected distances, the estimate for E ⁣[∥xk−x∗∥2]\mathsf{E}\!\left[\|x_{k}-x^{*}\|^{2}\right] scales proportionally to μw−2\mu_{w}^{-2} while the estimate for E ⁣[∥x^k−x∗∥2]\mathsf{E}\!\left[\|\hat{x}_{k}-x^{*}\|^{2}\right] scales proportionally to μw−1\mu_{w}^{-1}. When μw=1\mu_{w}=1, such as in the case of the Euclidean norm and Dw(x,z)=12∥x−z∥22D_{w}(x,z)=\frac{1}{2}\|x-z\|_{2}^{2}, then both of these expected distance estimates are the same, whereas the estimate for E ⁣[∥x^k−x∗∥2]\mathsf{E}\!\left[\|\hat{x}_{k}-x^{*}\|^{2}\right] is better when μw∈(0,1)\mu_{w}\in(0,1).

while for the weighted-average sequence {x^k}\{\hat{x}_{k}\} we have

Note that Theorem 1 does not say anything about the convergence of x^k\hat{x}_{k} to the solution x∗x^{*}. However, this can be established using an analysis similar to that of stochastic approximation methods . Our convergence analysis is based on a result of Lemma 10, pages 49–50, in , which is stated below.

Let {vk}\{v_{k}\} be a sequence of non-negative random variables with E ⁣[v0]<∞\mathsf{E}\!\left[v_{0}\right]<\infty and such that the following holds almost surely

where {αk}\{\alpha_{k}\} and {βk}\{\beta_{k}\} are deterministic non-negative scalar sequences satisfying 0≤αk≤10\leq\alpha_{k}\leq 1 for all kk and

Then lim⁡k→∞vk=0\lim_{k\to\infty}v_{k}=0 almost surely.

Using Lemma 4, we establish the almost sure convergence of the iterates and their averages in the following.

Under the assumptions of Theorem 1, the iterates xkx_{k} and their weighted averages x^k\hat{x}_{k}, as defined in (20), converge to the optimal point x∗x^{*} almost surely.

Proof. We start with relation (17), as shown in the proof of Lemma 3:

Both stepsize choices (21) and (22) are such that ∑k=0∞αk=∞\sum_{k=0}^{\infty}\alpha_{k}=\infty and ∑k=0∞αk2<∞\sum_{k=0}^{\infty}\alpha_{k}^{2}<\infty. Thus, we can apply Lemma 4 (where βk=αk2\beta_{k}=\alpha_{k}^{2}) to conclude that xk→x∗x_{k}\to x^{*} almost surely. Furthermore, since x^k\hat{x}_{k} is a convex combination of x0,…,xkx_{0},\ldots,x_{k} for each kk, the vectors x^k\hat{x}_{k} must also converge to x∗x^{*} almost surely.

The convergence of the stochastic gradient method has been known for strongly convex functions with Lipschitz gradients (see Theorem 2, pages 52–53, in ). Theorem 2 extends this result to a more general class of stochastic subgradient methods and strongly convex functions that are not necessarily differentiable.

Compact Constraint Set

We now consider the stochastic subgradient mirror-descent method of (6) for the case when the function ff is convex while the set XX is bounded in addition to being closed and convex. Under our blanket assumptions of Section 2, the compactness of XX need not imply the uniform boundedness of the subgradients of ff for x∈Xx\in X, since we did not impose any suitable condition on the domain of ff to ensure this property. Thus, we will impose this condition explicitly.

Let XX be compact and assume there exists a scalar C>0C>0 such that

In addition, we assume the following for the stochastic subgradient errors.

Let the stochastic subgradient errors be such that

Under these two assumptions, we can see that for all x∈Xx\in X,

In parallel with the mirror-descent iterates, we consider the weighted averages x^k\hat{x}_{k} of the iterates x0,x1,…,xkx_{0},x_{1},\ldots,x_{k}, as given in (20). We have the following basic relation for the weighted iterate-averages.

Let Assumptions 2 and 3 hold. Also, assume that the stepsize αk\alpha_{k} is non-increasing, i.e., αk≤αk−1\alpha_{k}\leq\alpha_{k-1} for all k≥1k\geq 1. Then, for the weighted averages x^k\hat{x}_{k} of the iterates generated by algorithm (6) there holds for all z∈Xz\in X and k≥0k\geq 0,

where dw2=max⁡x,y∈XDw(x,y)d^{2}_{w}=\max_{x,y\in X}D_{w}(x,y).

Dividing the whole inequality with αk2\alpha_{k}^{2} and re-arranging the terms, we obtain

We now re-write the term 1αk2 Dw(xk,z)\frac{1}{\alpha_{k}^{2}}\,D_{w}(x_{k},z) for k≥1k\geq 1, as follows

where we use αk≤αk−1\alpha_{k}\leq\alpha_{k-1} and dw2=max⁡x,y∈XDw(x,y)d^{2}_{w}=\max_{x,y\in X}D_{w}(x,y), which is finite since XX is compact and DwD_{w} is continuous over XX. By combining the preceding two relations, after re-arranging the terms, we obtain almost surely for all z∈Xz\in X and all k≥1k\geq 1,

By using the subgradient property (cf. (13) with μ=0\mu=0) and by taking the total expectation, we obtain for all z∈Xz\in X and for all k≥1k\geq 1,

Summing the inequalities in (28) over k,k−1,…,1,k,k-1,\ldots,1, and using α0=1\alpha_{0}=1, we obtain for all z∈Xz\in X and k≥1k\geq 1,

We next estimate E ⁣[Dw(x1,z)]\mathsf{E}\!\left[D_{w}(x_{1},z)\right] by using relation (26) with k=0k=0 and the fact α0=1\alpha_{0}=1. Upon using the convexity of ff and by taking the total expectation, from (26) (for k=0k=0) we obtain

Since Dw(x0,z)≤dw2D_{w}(x_{0},z)\leq d_{w}^{2}, it follows that E ⁣[Dw(x0,z)]≤dw2\mathsf{E}\!\left[D_{w}(x_{0},z)\right]\leq d_{w}^{2}, thus implying that for all z∈Xz\in X,

Using the preceding estimate in Eq. (29), we see that for all z∈Xz\in X and all k≥0k\geq 0,

The desired relation follows upon dividing the preceding inequality with ∑t=0k1αt\sum_{t=0}^{k}\frac{1}{\alpha_{t}}, using the convexity of ff and dropping the first term on the left-hand side.

From Lemma 5 we see that the upper bound on E ⁣[f(x^k)]−f(z)\mathsf{E}\!\left[f(\hat{x}_{k})\right]-f(z) will converge to zero provided that

In what follows, we will investigate the stepsize selection that makes the preceding convergence to zero as fast as possible. It is known that the best achievable rate for the standard subgradient method, with or without stochastic errors, is of the order 1k\frac{1}{\sqrt{k}} when ff is just a convex function (see the discussion following Theorem 3.2.2 in for the subgradient method, and for the stochastic subgradient method). The aforementioned work shows the estimate and the optimal stepsize selection, under the premise that a number of iterations is fixed a priori. This rate is shown to be achievable per iteration by the primal-dual averaging subgradient method recently proposed by Nesterov .

We consider a different stepsize choice that will achieve the same rate of 1k\frac{1}{\sqrt{k}}. In particular, let

where a>0a>0 is a parameter, which we will select later. In this case, the sum ∑t=0k1αt\sum_{t=0}^{k}\frac{1}{\alpha_{t}} can be bounded from below as given in the following lemma.

For the stepsize αk\alpha_{k} in (30), we have ∑t=0k1αt≥23a(k+1)3/2\sum_{t=0}^{k}\frac{1}{\alpha_{t}}\geq\frac{2}{3a}(k+1)^{3/2} for all k≥0k\geq 0.

Proof. Viewing the sum as an upper-estimate of the integral of the function t↦t+1t\mapsto\sqrt{t+1}, we see that for any k≥0k\geq 0,

We claim that (k+2)3/2−1≥(k+1)3/2(k+2)^{3/2}-1\geq(k+1)^{3/2} for all k≥0k\geq 0. To show this, we let s=k+1s=k+1 and consider the scalar function ϕ(s)=(s+1)3/2−1−s3/2\phi(s)=(s+1)^{3/2}-1-s^{3/2} for s≥1s\geq 1. Thus, to prove the claim, it suffices to show that ϕ(s)≥0\phi(s)\geq 0 for all s≥1s\geq 1. We note that ϕ(0)=0\phi(0)=0. Furthermore, for the derivative of ϕ\phi we have

Thus, ϕ(s)\phi(s) is increasing over the interval [0+∞)[0+\infty), and since ϕ(1)=0\phi(1)=0, it follows that ϕ(s)≥0\phi(s)\geq 0 for all s≥1s\geq 1.

When XX is compact, due to our basic assumption that ff is continuous over XX, by Weierestrass theorem the solution set X∗X^{*} for problem (1) is not empty. For the algorithm (6) with stepsize (30), we have the following result as immediate consequence of Lemmas 5 and 6.

Let Assumptions 2 and 3 hold. Consider algorithm (6) with stepsize αk=ak+1\alpha_{k}=\frac{a}{\sqrt{k+1}}. Then, for the weighted averages x^k\hat{x}_{k} of the iterates produced by the algorithm we have for all x∗∈X∗x^{*}\in X^{*} and k≥0k\geq 0,

where dw2=max⁡x,y∈XDw(x,y)d^{2}_{w}=\max_{x,y\in X}D_{w}(x,y).

Proof. Since αk\alpha_{k} is non-increasing, by Lemma 5 (with z=x∗z=x^{*}), we find that for any x∗∈X∗x^{*}\in X^{*} and all k≥0k\geq 0,

By letting αk=a/k+1\alpha_{k}=a/\sqrt{k+1} and using Lemma 6, we obtain

Theorem 3 shows that the expected function value evaluated at the weighted average x^k\hat{x}_{k} achieves the rate of 1k\frac{1}{\sqrt{k}}, which is known to be the best for a class of convex functions (not necessarily differentiable). This rate is also achieved by a stochastic primal-dual averaging method of Nesterov, as shown in , as well as with a stochastic subgradient mirror-descent with a different form of averaging . Let us note that Theorem 3 assumes that the set XX is compact. This requirement is needed when a time-varying stepsize is used; see also the window-based averaging with time-varying stepsize in . Intuitively, the boundedness of XX is needed to ensure the boundedness of the iterate sequence {xk}\{x_{k}\}, as the stepsize αk=1k\alpha_{k}=\frac{1}{\sqrt{k}} is “too large” to ensure that {xk}\{x_{k}\} is bounded (almost surely) even when the subgradients and their noise variance are bounded. However, when the number NN of iterations is fixed a priori and the constant optimal stepsize is employed, the compactness of XX is not needed as the finite sequence {xk, 0≤k≤N}\{x_{k},\,0\leq k\leq N\} is evidently always bounded.

Next, we focus on the best selection of the parameter a>0a>0. When estimates for the subgradient-norm bound CC, the diameter dwd_{w} of the set XX, and the bound ν\nu of the expected error norm are available, we can select the parameter aa optimally by minimizing the term dw2a+aC2+ν2μw\frac{d_{w}^{2}}{a}+a\frac{C^{2}+\nu^{2}}{\mu_{w}} as a function of aa, over a>0a>0. By doing so, we find that the minimum of the function a↦dw2a+aC2+ν2μwa\mapsto\frac{d_{w}^{2}}{a}+a\frac{C^{2}+\nu^{2}}{\mu_{w}} over a>0a>0 is attained at a∗=dwC2+ν2μw,a^{*}=\frac{d_{w}}{\sqrt{\frac{C^{2}+\nu^{2}}{\mu_{w}}}}, with the minimum value of dwC2+ν2μwd_{w}\sqrt{\frac{C^{2}+\nu^{2}}{\mu_{w}}}. Thus, when aa in (30) is selected optimally, the result of Theorem 3 reduces to

Furthermore, every accumulation point of {x^k}\{\hat{x}_{k}\} is a solution to problem (1). Moreover, when the parameter aa is selected so as to minimize the right-hand side of the preceding relation, then the optimal choice is a∗=dw2μwCa^{*}=\frac{d_{w}\sqrt{2\mu_{w}}}{C} and the corresponding error estimate is given by

Proof. The given estimates follow from Theorem 3 and relation (31), respectively, by letting ν=0\nu=0. The statement about the accumulation points of {x^k}\{\hat{x}_{k}\} follows from the boundedness of {x^k}\{\hat{x}_{k}\} (due to XX being compact) and our basic underlying assumption on continuity of ff at all points x∈Xx\in X.

An interesting insight from Corollary 2 is that, while we have no guarantees that the accumulation points of the iterate sequence {xk}\{x_{k}\} are related to the solutions of problem (1) or not, all the accumulation points of the weighed averages x^k\hat{x}_{k} are solutions of the problem. Specifically, our stepsize αk=ak+1\alpha_{k}=\frac{a}{\sqrt{k+1}} does not satisfy the standard conditions that ensure the convergence of {xk}\{x_{k}\} to solution set, namely, ∑k=0∞αk=∞\sum_{k=0}^{\infty}\alpha_{k}=\infty and ∑k=0∞αk2<∞\sum_{k=0}^{\infty}\alpha_{k}^{2}<\infty. Thus, we do not have a basis to assert that the accumulation points of {xk}\{x_{k}\} lie in the solution set X∗X^{*}. However, Corollary 2 shows that the accumulation points of the averaged sequence {x^k}\{\hat{x}_{k}\} belong to the solution set.

Corollary 2 shows that the optimal error rate can be achieved with a subgradient mirror-descent method augmented with an outside weighted averaging of the iterates. It is an alternative optimal method in addition to the primal-dual averaging subgradient method of Nesterov .

Now, we extend the convergence result for x^k\hat{x}_{k} stated in Theorem 3. As noted earlier, the stepsize in (30) does not satisfy the standard condition ∑kαk2<∞\sum_{k}\alpha_{k}^{2}<\infty that is typically used to establish the almost sure convergence of {xk}\{x_{k}\} to the solution set. Thus, Theorem 3 does not provide us with such information. However, Theorem 3 can be used as a starting point, which leads to the following result.

Under the assumptions of Theorem 3, for the weighted-average sequence {x^k}\{\hat{x}_{k}\} of the iterates generated by method (6), we have almost surely

Proof. By Theorem 3 we have lim⁡k→∞(E ⁣[f(x^k)]−f∗)=0,\lim_{k\to\infty}\left(\mathsf{E}\!\left[f(\hat{x}_{k})\right]-f^{*}\right)=0, which by Fatou’s lemma and f(x^k)−f∗≥0f(\hat{x}_{k})-f^{*}\geq 0 for all kk yields

Moreover, as {x^k}\{\hat{x}_{k}\} is bounded and ff is assumed to be continuous at all points x∈Xx\in X, it follows that one of the (random) accumulation points of {x^k}\{\hat{x}_{k}\} must be a solution of problem (1) almost surely. Moreover, from this relation, by the continuity of ff and the boundedness of XX, it follows that lim inf⁡k→∞dist(x^k,X∗)=0\liminf_{k\to\infty}{\rm dist}(\hat{x}_{k},X^{*})=0 almost surely.

Now, since x^k\hat{x}_{k} is a weighted average of the iterates x0,…,xkx_{0},\ldots,x_{k} we have for all k≥0,k\geq 0,

Then, by letting k→∞k\to\infty and using Theorem 3 we see that

Since min⁡0≤t≤kf(xt)−f∗≥0\min_{0\leq t\leq k}f(x_{t})-f^{*}\geq 0 for all kk, by Fatou’s lemma we obtain almost surely

The sequence min⁡0≤t≤kf(xt)\min_{0\leq t\leq k}f(x_{t}) is non-increasing and bounded below so it has a limit, implying that

Again, by the continuity of ff and the compactness of XX, the preceding relation implies that almost surely

The results of Theorem 4 are new. As a direct consequence of Theorem 4, for an error-free subgradient mirror-descent method (6), with αk=ak+1\alpha_{k}=\frac{a}{\sqrt{k+1}}, we have that

Thus, either there is some k0k_{0} such that xk0∈X∗x_{k_{0}}\in X^{*} or there is a subsequence {xki}\{x_{k_{i}}\} converging to some optimal point. Moreover, by relation (32) and Corollary 2 we have the following error estimate for the iterate sequence {xk}\{x_{k}\}:

For the optimal choice of the parameter aa, the corresponding error estimate is given by

The preceding decrease rate for min⁡0≤t≤kf(xt)−f∗\min_{0\leq t\leq k}f(x_{t})-f^{*} of the order 1/k1/\sqrt{k} for the error-free subgradient mirror-descent method has been known, as shown in Theorem 4.2 of , where a different averaging has been used.

Numerical Results

In our experiment, we consider the following stochastic utility model :

where cjc_{j} and djd_{j} for j=1,…,mj=1,\ldots,m are given scalars. In the experiments, we used 10 breakpoints (m=10m=10) which are all located in $,asshowninFigure1.For, as shown in Figure 1. For\lambda>0inproblem(33),thefunctionin problem (33), the functionf(x)isstronglyconvexand,therefore,theproblemhasauniqueoptimalsolutionis strongly convex and, therefore, the problem has a unique optimal solutionx^{*}.With. With\lambda=0,theproblemhasanonemptyoptimalsolutionset, the problem has a nonempty optimal solution setX^{*}duetothecompactnessoftheconstraintsetdue to the compactness of the constraint setXandthecontinuityofand the continuity off$.

The experiments were conducted for two instances which have the same dimension n=100n=100 and the same parameter u=10u=10, but the instances differ in the values for the parameter RR. Thus, we have four test instances, which are labeled by Test 1, Test 2, Test 3 and Test 4. Table 1 includes the detailed description of these instances together with their corresponding initial points x0∈Xx_{0}\in X.

In what follows, we refer to the stochastic subgradient mirror-descent algorithm briefly as SSMD algorithm. We carried out 100 independent Monte-Carlo runs to evaluate the performance of the SSMD and all the other algorithms that were used for comparison.

To consider a strongly convex case, we set λ=100\lambda=100 and z=[0.5, 0, …, 0]′z=[0.5,~{}0,~{}\ldots,~{}0]^{\prime} for the objective function in (33). We use w(x)=12∥x∥22w(x)=\frac{1}{2}\|x\|_{2}^{2} for defining the Bregman distance function, in which case the SSMD method corresponds to the standard stochastic subgradient-projection method:

For comparison, we use the accelerated stochastic approximation (AC-SA) algorithm by Ghadimi et al. , and we set the parameters as specified in Proposition 9 therein. We use xkagx_{k}^{ag} to denote the iterates obtained by AC-SA algorithm, and x^k\hat{x}_{k} for a weighted-average point of the SSMD method, as defined in (20). The SSMD method is simulated for the two stepsize choices, as defined in (21) and (22), which we refer to step-1 and step-2, respectively. Figure 2 depicts the average (over 100 Monte-Carlo runs) of the objective values f(x^k)f(\hat{x}_{k}) (for SSMD) and f(xkag)f(x_{k}^{ag}) (for AC-SA) for the instances listed in Table 1 over 100 iterations.

As seen from Figure 2, the algorithms show almost the same performance after about 20 iterations. We note that the SSMD method with step-2 (cf. (22)) is somewhat slower within the initial 20 iterations when the initial points are not set to zero.

2 Compact Constraint Set

For comparison, in addition to the AC-SA algorithm, we also use the Nesterov primal-dual (PD) subgradient method . For the AC-SA algorithm, we use the parameters specified in Proposition 8 of , while in the PD method, we use the simple dual averaging. In this case, the algorithms are simulated for 1000 iterations since the convergence of the methods is slower in the absence of strong convexity.

In Figure 3, we show the performance of the algorithms in terms of the average (over 100 Monte-Carlo runs) of the objective function. Specifically, we plot f(x^k)f(\hat{x}_{k}) for SSMD and PD (note that x^k\hat{x}_{k} has a different definition for PD) and f(xkag)f(x_{k}^{ag}) for AC-SA. The algorithms are tested for the four instances listed in Table 1.

The PD method has no tunable stepsize parameters. The SSMD and AC-SA methods have a single tunable parameter for the stepsize. In particular, the SSMD method with αk=1k+1\alpha_{k}=\frac{1}{\sqrt{k+1}} has a parameter aa, while the AC-SA has a parameter rr with a similar role. Both of these methods are sensitive to the choices for their respective stepsize parameters aa and rr. We tried several different choices of aa and rr in the order of tens and we plot their best results.

Overall, the performances of the three algorithms are similar and we see no reasons to prefer one to the other. The SSMD and AC-SA methods have a very similar behavior. The SSMD algorithm performs the best for the instances Test 1 and Test 2 whose initial points are very close the optimal set. However, in Test 4 the AC-SA has a better performance than the SSMD. The PD performs better than SSMD and AC-SA for the Test 4 instance whose feasible reagon is actually not a simplex (the inequality constraint defining the set XX is not active in this case). Another interesting observation is that the PD method is not very sensitive to the initial points and problem instances.

Conclusion

We have considered optimality properties of the stochastic subgradient mirror-descent method by using the weighted averages of the iterates generated by the method. The novel part of the work is in the choice of weights that are used in the construction of the iterate averages. Through the use of proposed weights, we can recover the best known rates for strongly convex functions and just convex functions. We also show some new convergence properties of the stochastic subgradient mirror-descent method using the stepsize proportional to 1/k+11/\sqrt{k+1}. In addition, we have simulation results showing that the proposed algorithms have behavior similar to that of accelerated stochastic subgradient method and the primal-dual averaging method of Nestrov .

References