On Stochastic Gradient and Subgradient Methods with Adaptive Steplength Sequences
Farzad Yousefian, Angelia Nedić, Uday V. Shanbhag
I Introduction
The use of stochastic gradient and subgradient schemes for the solution of stochastic convex optimization problems has a long tradition, beginning with an iterative scheme, first proposed by Robbins and Monro , that relied primarily on noisy gradient observations. Research by Ermoliev and his coauthors focused largely on quasigradient (subgradient) methods and considered a host of stochastic programming problems, amongst them being two-period recourse-based problems (see ). To accelerate the convergence of stochastic subgradient methods, ergodic sequences, arising from the averaging of iterates, have been employed in . Often gradient computations are either costly or unavailable; in such instances, a finite-difference approximation of the gradient can be constructed as first observed by Kiefer and Wolfowitz . While standard finite-difference techniques perturb one direction at a time to obtain gradient estimates, simultaneous perturbation stochastic approximation techniques simultaneously perturb all directions and general require fewer function evaluations . More recently, there has been a significant interest in the application of ODE-based methods for investigating the stability and convergence of the associated stochastic approximation schemes . An elegant exposition of these methods may be found in the monographs by Polyak , Kushner and Yin , and Borkar .
Sample-average approximation (SAA) techniques are often viewed as an alternative to stochastic approximation techniques and are particularly attractive when approximate solutions to the problem are desired in an offline manner. This approach relies on using a sample from the underlying distribution to construct a deterministic sample-average problem, which can be subsequently solved via standard nonlinear programming solvers, as seen in . In , the authors demonstrate that stochastic approximation schemes are shown to be competitive with SAA techniques. Importantly in , Nemirovski et al. develop a robust SA scheme that determines an optimal constant steplength for minimizing the theoretical error over a pre-specified number of steps. Mirror-descent generalizations of SA, that rely on a suitably defined prox-mapping, are also presented in (also see ), while validation analysis is provided in .
Stochastic gradient algorithms have also been found to be effective in solving large deterministic problems such as convex feasibility problems , feasibility problems arising in control and some specially structured large-scale convex problems in . Distributed consensus-based stochastic subgradient methods for minimizing a convex objective over a network have been recently developed and studied in . The success of gradient-based methods in solving monotone variational inequalities has prompted the study of similar techniques for contending with stochastic variational inequalities. In fact, Jiang and Xu develop precisely such a scheme for the solution of strongly monotone stochastic variational inequalities and regularized variants were presented in to allow for application to monotone stochastic variational inequalities. Finally, stochastic generalizations of the mirror-prox schemes were examined in and allowed for the solution of monotone variational inequalities.
While stochastic approximation schemes have proved successful, other avenues exist for addressing stochastic programs. For instance, an alternate approach lies in using sample-average approximation methods, that obtain estimators to the optimal value and solution of the problem through the solution of deterministic problem in which the expectation is replaced by a sample-average. Convergence theory for the obtained estimators is examined by Shapiro . Decomposition schemes, that leverage cutting-plane methods, have also been particularly successful in addressing two-period stochastic linear , convex and nonconvex programs while a scalable matrix-splitting decomposition scheme is presented in for two-period stochastic Nash games.
In this paper, we consider adaptive stochastic gradient and subgradient methods for solving constrained stochastic convex optimization problems. The novelty of our work can be categorized as follows: (1) the development and analysis of two adaptive stepsize rules; and (2) the development of a local function smoothing technique. Next, we provide some motivation and a more elaborate description of each.
In stochastic gradient methods (cf. ), the almost-sure convergence of such methods is guaranteed assuming that the stepsize is diminishing but not too rapidly, i.e., the stepsize is proportional to with . Typically, there is no guidance on the specific choice of the sequence and problem parameters play little role in refining this choice. In contrast, in this paper, we propose specific (adaptive) rules for the stepsize values that exploit the information about the objective function. Accordingly, our first goal lies in examining whether one can construct a convergent scheme under an adaptive stepsize rule that is more reflective of the problem setting. Through out this part of the paper, we assume that the integrand of the expectation is a random convex differentiable function. Under a Lipschitzian assumption on the gradient, we propose two different adaptive stepsize rules:
Recursive stepsize rule: In attempting to minimize the bound on the expected error, we develop a recursive scheme for specifying the stepsize that requires only the steplength at the previous parameter and some problem parameters. Global convergence and rate estimates for this scheme are developed.
Cascading stepsize rule: It is well-known that under suitable assumptions, fixed-stepsize schemes are guaranteed to converge to a compact region containing the solution set of the original problem. We consider a modified version of such a scheme where the trajectory moves to successively smaller compact regions containing the solution sets. Furthermore, as soon as the trajectory of iterates reaches within a bound of the solution set, the steplength is updated allowing the sequence to make further progress. Effectively, we consider a method in which the steplength sequence can be viewed as one where the stepsize is maintained constant with drops or cascades in stepsize occurring at particular epochs. While the scheme has intuitive appeal, we provide a theoretical support for the convergence of such an algorithmic framework.
When the random integrands arising in such stochastic problems are nonsmooth, direct application of known SA schemes is impossible. Contending with nonsmoothness in mathematical programming is often managed through avenues that rely on the solution of a sequence of smoothed problems (cf. ). In a stochastic regime, an approach for addressing such problems is through a technique of global smoothing, as considered in and more recently in .See for a scheme that develops an approximation method for addressing a class of separable piecewise-linear stochastic optimization problems with integer breakpoints. This involves modifying the original problem by adding a random variable with possibly unbounded support. However, such a technique is not feasible in when the objective is defined over a restricted domain. We present a local smoothing technique which leads to a globally differentiable approximation of the original function with Lipschitz continuous gradients. Furthermore, through such a smoothing, we derive a Lipschitz constant for the gradients and show that the constant grows at the rate of where is the dimensionality of the problem space. Importantly, this Lipschitzian property facilitates the construction of a stochastic approximation framework. Consequently, the second part of the paper focuses on computing solutions to approximations with smoothed integrands whose gradients are shown to be provably Lipschitz continuous.
The remainder of the paper is organized as follows. In Section II, we establish the almost-sure convergence of the classical stochastic approximation algorithm for a constrained problem with a differentiable convex function with Lipschitz gradients. In Sections III and IV, for a strongly convex function, we propose and analyze two different stepsize rules, each motivated by a minimization of an estimate on the expected error per iteration of the method. In Section V, we introduce a local randomized smoothing technique for nondifferentiable convex optimization, and derive its approximation properties as well as a bound on the Lipschitz constant of the gradients. In Section VI, we report some numerical results obtained by applying our proposed stepsize rules and the smoothing technique to three test problems and conclude with a discussion in Section VII.
Notation and basic terminology: We view vectors as columns, and write to denote the transpose of a vector . We use to denote the Euclidean vector norm, i.e., . We write to denote the Euclidean projection of a vector on a set . i.e., . For a convex function with domain , a vector is a subgradient of at if the following relation holdsFor a differentiable convex , the inequality holds with .:
The subdifferential set of at , denoted by , is the set of all subgradients of at . Finally, we write a.s. for “almost surely”, and use and to denote the probability of an event and the expectation of a random variable , respectively.
II Problem Formulation and Background
In this section, we begin by describing the problem and iterative scheme of interest (Section II-A). This is followed by Section II-B where we provide a short description on various adaptive schemes in the realm of stochastic approximation.
We consider the following stochastic optimization problem
The set is convex and closed. The function is convex on for every , and the expected value is finite for every .
Under Assumption 1, the function is convex over and the following relation holds
First, we will consider problem (1) where is a differentiable function with Lipschitz gradients. Later, we will allow the function to be nondifferentiable and we will consider a local smoothing technique yielding a differentiable function that approximates over . For this reason, we start our discussion by focusing on a differentiable problem (1) and the following iterative algorithm:
Here, is a random initial point, is a (deterministic) stepsize, and is the random vector given by the difference between the sampled gradient and its expectation evaluated at . Throughout the paper, we assume that .
We let denote the history of the method up to time , i.e., for and . By Assumption 1 and relation (2), it follows that for a differentiable , implying that has zero-mean, i.e.,
Next, we state some additional assumptions on the stochastic gradient error and the stepsize .
The stepsize is such that for all . Furthermore, the following hold:
and .
The stochastic errors satisfy almost surely.
Assumption 2(b) is satisfied, for example, when and the error is bounded almost surely, i.e., for all and some scalar almost surely.
We use the following Lemma in establishing the convergence of method (3) (see , page 50).
(Robbins-Siegmund) Let and be nonnegative random variables, and let the following relations hold almost surely:
We also make use of the following result, which can be found in (see Lemma 11 in page 50).
Let be a sequence of nonnegative random variables, where , and let and be deterministic scalar sequences such that:
Then, almost surely, , and for any ,
In Sections III and IV, we examine adaptive steplength schemes for a strongly convex function whose gradients are Lipschitz continuous over with constant . is defined as
II-B Adaptive Stochastic Approximation Schemes
Robbins and Monro proposed the first stochastic approximation algorithm in 1951 while Kiefer and Wolfowitz proposed a variant of this scheme in which finite differences were employed to estimate the gradient. Asymptotic distributions of the Robbins-Monro scheme were first examined by Chung , leading to an asymptotic normality result in the one-dimensional regime while generalizations were subsequently studied by Sacks .
A potential challenge in developing efficient implementations of stochastic approximation implementations lies in choosing an appropriate steplength sequence. Kesten , in 1957, suggested a technique where the steplength sequence adapts to the observed data, which was further extended by Kushner and Gavin to the multi-dimensional regime, while its accelerations were studied in . Sacks proved that, under suitable conditions, a choice of the form (where is the iterate index) is optimal from the standpoint of minimizing the asymptotic variance. Yet, the challenge lies in estimating the “optimal” . Subsequently, Ventner in what is possibly amongst the first adaptive steplength SA schemes, considered sequences of the form where is updated by leveraging past information. Notably, Chung also examined the asymptotic variance properties of SA when steplength choices of the form with are used. In related work on adaptive schemes, Lai and Robbins considered schemes of the form where is a strongly consistent estimator of in a stochastic root-finding problem. One choice for obtaining is through the use of least-squares estimators. Multivariate generalizations of this analysis were suggested by Wei in 1987 and again, it was observed that the Jacobian of the vector function assumes relevance in constructing efficient steplength sequences.
An alternative to using a single sample was suggested by Spall and relied on obtaining gradient estimates through a simultaneous perturbation of all the parameters. An adaptive generalization of this scheme, proposed by the same author , employed an additional recursion to the standard projected gradient step that attempted to estimate the Jacobian in root finding problems or the Hessian in optimization problems. Accordingly, the modified update rule is of the form
where is an estimate of the Hessian matrix of the objective. Clearly, this also falls under the regime of an adaptive steplength scheme. Related adaptive schemes may also be found in the work by Bhatnagar .
A final remark is in order regarding the key difference between our proposed schemes and past work. A majority of the adaptive schemes in the literature employ past information to update the steplength. One such avenue involves developing estimates of the Hessian which is subsequently used in scaling the gradient step appropriately. In the sections to appear, we consider two very different approaches that are linked by a crucial property: they rely on using algorithm and problem parameters, and not sample points, to develop adaptive steplength schemes.
II-C Smoothing Techniques
One of the goals of this paper is to address stochastic optimization problems with nonsmooth integrands. Here, we provide some background for accommodating nonsmoothness in optimization problems. In deterministic regimes, subgradient methods and their incremental variants have proved popular (see ), as have bundle methods , amongst others. One approach for managing nonsmoothness is through smoothing approaches. For instance, such avenues have allowed for the solution of variational inequalities and complementarity problems as well as mathematical programs with equilibrium constraints .
In this paper, we also adopt a smoothing technique which bears little similarity to such approaches. We adopt a framework that can be traced back to a class of averaged functions introduced by Steklov in 1907. A general definition of such an averaging over possibly discontinuous functions is provided next .
We pursue an alternative to solving a sequence of smoothed problems and obtain an approximate solution by solving a single smoothed problem with a fixed akin to that employed by Lakshmanan and Farias . However, since we intend to leverage stochastic approximation schemes of the form described earlier in this paper, Lipschitz constants associated with the gradients are a requiem. In , the authors obtain Lipschitz constants assuming that the averaging is achieved through a normal distribution that requires the function be defined everywhere. Instead of “globally smoothing” the function, we employ a uniform distribution, referred to as “local smoothing.”
III A recursive steplength stochastic approximation scheme
In this section, we introduce an adaptive stochastic approximation scheme that overcomes certain challenges associated with implementing standard diminishing steplength schemes and relies on the use of a recursive rule for prescribing steplengths. We begin by examining the standard stochastic gradient method for problem (1) in Section III-A. In general, the convergence of this scheme is guaranteed under the requirement that and A host of choices exists with one possible choice being Yet, the choice of the appropriate can have a significant impact on the performance of the algorithm. Motivated by the desire to minimize the “expected error,” we develop a recursive stochastic approximation algorithm (referred to as the RSA scheme) in which the steplength at a particular iteration is a function of the steplength at the previous iteration and some problem parameters. In Section III-B, we motivate and introduce such a scheme and proceed to develop the associated convergence theory in Section III-C.
We consider method (3) as applied to problem (1) where has Lipschitz gradients. The method generates a sequence of iterates that converge to an optimal solution almost-surely, as shown in the forthcoming proposition. This result is a straightforward extension of Theorem 1 in [16, Pg. 51] which pertains to an unconstrained problem.
Let Assumptions 1–2 hold, and let be differentiable over the set with Lipschitz gradients. Assume that the optimal set of problem (1) is nonempty. Then, the sequence generated by (3) converges almost surely to some random point in .
By definition of the method and the nonexpansive property of the projection operation, we obtain for any and ,
By the convexity of and the gradient inequality, we have
Taking the conditional expectation given , using (see Eq. (4)) and the Lipschitzian property of the gradient, we have
Under Assumption 2, the conditions of Lemma 1 are satisfied. Therefore, almost surely, the sequence is convergent for any and . The former relation implies that is bounded a.s., while the latter implies a.s. in view of the condition . Since the set is closed, all accumulation points of lie in . Furthermore, since along a subsequence a.s., by continuity of it follows that has a subsequence converging to some random point in a.s. Moreover, since is convergent for any a.s., the entire sequence converges to some random point in a.s. ∎
Under the Lipschitz continuity of the gradient and the strong convexity of the objective, an expected error bound may also be provided for the method. During the development of the error bound, the following intermediate result assumes relevance.
Let Assumption 1 hold, and let be differentiable over the set with Lipschitz gradients with constant . Also, assume that the optimal set of problem (1) is nonempty. Let the sequence be generated by algorithm (3) with any (deterministic) stepsize . Then, for any and any , the following holds almost surely:
By the first-order optimality conditions, a vector is optimal for the problem if and only if satisfies
By the definition of the method and the nonexpansive property of the projection operation, we obtain for all ,
Taking the expectation conditioned on the past, and using (cf. Eq. (4)), we have
The Lipschitz gradient property for a convex function is equivalent to co-coercivity of the gradient map with constant , (see [16, Pg. 24, Lemma 2]), i.e., for all ,
Therefore, for any and any ,
In what follows, we will often use a stronger version of Assumption 2(b), given as follows.
The errors are such that for some ,
Next, we provide an error bound for algorithm (3) under the assumption that is a strongly convex function with Lipschitz gradients. Note that requiring that is strongly convex over a set follows if is a strongly convex function for , where is a set of positive measure defined as
Less formally, we merely require that is a strongly convex function with positive, but arbitrarily small, probability to ensure that is strongly convex over (see ).
Let Assumptions 1–2 hold. Also, let be differentiable over the set with Lipschitz gradients with constant and strongly convex with constant . Then, the sequence generated by algorithm (3) converges almost surely to the unique optimal solution of problem (1). Furthermore, if the stepsize satisfies for all , we then have:
The following relation holds almost surely:
If Assumption 2(b) is replaced with Assumption 3, then the following relation holds almost surely:
Moreover, , and for every ,
The existence and uniqueness of the optimal solution of problem (1) is guaranteed by the strong convexity of . The convergence of the method follows by Proposition 1. To establish the relation in part (a) for the expected value , we use Lemma 3, which implies for the optimal and all ,
By the strong convexity of , we have for all , which when combined with the preceding relation implies for all ,
The relation in part (b), follows from inequality (6) by using Assumption 3 and by taking the total expectation. To show the other results in part (b), we apply Lemma 2. For this, we need to verify that all the conditions of Lemma 2 hold. Since , it follows . Also, in view of , we have . Obviously, for all . Since Assumption 2(a) holds, we have and . Furthermore, since , we have
Hence, the conditions of Lemma 2 hold and the stated results follow. ∎
Lemma 4 will be employed in developing our adaptive stepsize schemes. Before proceeding, we make the following comment regarding the lemma.
Remark 1: The result in part (a) of Lemma 4 is similar to a result in , which was derived by requiring only the strong convexity of the function . Here, we make the additional assumption that the gradients are Lipschitz continuous and this assumption gains relevance when we employ local random smoothing in Section V. Furthermore, our result depends on the expectation of gradient errors, , with defined in (3). Note that, in contrast, the result in depends on the expectation of the subgradient norms, , where .
III-B A recursive steplength scheme
A challenge associated with the implementation of diminishing steplength schemes lies in determining an appropriate sequence . The key result of this section is the motivation and introduction of a scheme that adaptively optimizes the steplength from iteration to iteration. Our adaptive scheme relies on the minimization of a suitably defined error function at each step. We start with the relation in part (b) of Lemma 4:
When the stepsize is further restricted so that , we have
Thus, for , inequality (7) yields
We now use relation (8) to develop an adaptive stepsize procedure. Loosely speaking for the moment, let us view the quantity as an error of the method arising from the use of the stepsize values . Also, consider the worst case error which is the case when (8) holds with equality. Thus, in the worst case, the error satisfies the following recursive relation:
Then, it seems natural to investigate if the stepsizes can be selected so as to minimize the error . It turns out that this can indeed be achieved and minimizing the error at the next iteration can also be done by selecting as a function of only the most recent stepsize . To formalize the above discussion, we define real-valued error functions as follows:
where is a positive scalar, is the strong convexity parameter and is the upper bound for the second moments of the error norms .
In what follows, we consider the sequence given by
We often abbreviate by whenever this is unambiguous. We show that the stepsizes , minimize the errors over an , where is the Lipschitz constant. In particular, we have the following result.
Let be defined as in (9), where is such that , with being the Lipschitz constant for the gradients of . Let the sequence be given by (10)–(11). Then, the following hold:
For each , the vector is the minimizer of the function over the set
(a) We use induction on to prove our result. Note that the result holds trivially for from (10). Next, assume that we have for some , and consider the case for . By the definition of the error in (9), we have
where the second equality follows by the inductive hypothesis. Hence,
where the last equality follows by the definition of in (11).
(b) We now show that minimizes the error for all . We again use mathematical induction on . By the definition of the error and the relation shown in part (a), we have
Using , we obtain
where the last equality follows from Thus, we have
Under the inductive hypothesis, we have . Using this, the relation of part (a) and the definition of , we obtain
Now, we proceed by induction on . For , we have
From the definition of in (9) we can see that
Finally, we consider the partial derivative of with respect to , for which we have
III-C Convergence theory
We next show that the proposed RSA approximation scheme discussed in Section III-B leads to a convergent algorithm. We prove this in a more general setting for a stepsize with a form similar to that seen in constructing the optimal choice. The following proposition holds for any stepsize of a form similar to the optimal scheme of (11).
Let Assumptions 1 and 3 hold. Let the function be differentiable over the set with Lipschitz gradients and the optimal solution set of problem (1) be nonempty. Assume that the stepsize sequence is generated by the following self-adaptive scheme:
where is a scalar and the initial stepsize is such that . Then, the sequence generated by algorithm (3) converges almost surely to a random point that belongs to the optimal set.
We employ Proposition 1. To apply this proposition, it suffices to verify that Assumption 2 holds. First we show that . From (14) we obtain
By dividing both sides by , it follows that
Since , from (14) it follows that is positive nonincreasing sequence. Therefore, the limit exists and it is less than . Thus, by taking the limit in (14), we obtain . Then, by taking limits in (15), we further obtain
To arrive at a contradiction suppose that . Then, there is an such that for sufficiently large, we have
Since for all , by letting , we obtain for all sufficiently large,
This, however, contradicts the fact Therefore, we conclude that .
Now we show that . From (14) we have
Summing the preceding relations, we obtain
By taking limits and recalling that , we obtain
Assumption 3 and relation yield . Hence, Assumption 2 holds. ∎
Note that Proposition 3 applies to algorithm (3) with the stepsize sequence generated by the recursive scheme (11). Thus, we immediately have the following corollary.
Let Assumptions 1 and 3 hold. Let the function be differentiable over the set with Lipschitz gradients with constant and strongly convex with parameter . Let the stepsize sequence be generated by the recursive scheme (11) with . If then the sequence generated by algorithm (3) converges almost surely to the unique optimal solution of problem (1).
The existence and uniqueness of the optimal solution follows by the strong convexity assumption. Almost sure convergence follows by Proposition 3. ∎
Note that when the set is bounded, in Proposition 1 we may use and the results will hold as long as
In the following, we discuss a recursive stepsize for algorithm (3) as applied to a nonsmooth but strongly convex function . Let be a subgradient vector of with respect to , i.e., . Assume that there is a positive number such that
We have the following convergence result, which obviously also holds for smooth problems.
Consider problem (1) and let Assumption 1 hold. Also, let the set be compact and the function be strongly convex over with constant . Assume that there is a scalar such that for all . Consider the following algorithm:
where is a random initial point independent of and is a (deterministic) stepsize. Consider the self-adaptive stepsize sequence defined by
where . Assuming that , we have
The proof is based on verifying that, for the algorithm in (16), Proposition 2 holds, where is replaced by and . Then, the rest of the proof is similar to that of Proposition 1. ∎
IV A cascading steplength stochastic approximation scheme
In Section III, we presented a stochastic approximation scheme in which the sequence of steplengths is determined via a recursion that relies on optimizing the error estimates. A key benefit of such a recursion is that the steplength choice is not left to the user. In this section, we introduce an alternate avenue for specifying steplengths that also considers a diminishing steplength framework but uses a markedly different approach for determining the steplength. In particular, the scheme relies on reducing the steplength at a set of epochs while the steplengths are maintained as constant between these epochs. The details of this stochastic approximation scheme (called the cascading steplength stochastic approximation (CSA) scheme) are presented in Section IV-A while convergence theory is provided in Section IV-B.
Our technique is based on the properties derived from problems possessing strongly convex objectives. Specifically, we obtain the following result from the inequality in Lemma 4 when the stepsize is maintained as constant.
Let Assumptions 1 and 3 hold. Also, let be differentiable over the set with Lipschitz gradients with constant and strongly convex with constant . Let the sequence be generated by (3) with constant stepsize for all , where . Then, we have
where and is the optimal solution of problem (1).
Follows from the inequality in part (b) of Lemma 4. ∎
From inequality (17), we obtain the following relation
where the expected distance is bounded by the sum of two error terms:
Transient error: The transient error, given by , decays to zero as In effect, the contractive nature of this error, as arising from , ensures that the transient error can be reduced to an arbitrarily small level.
Persistent error: The persistent error, given by , is invariant to increasing the number of iterations, denoted by . Its reduction, as we proceed to show, necessitates reducing
Our cascading steplength scheme basically requires specifying a rule for deciding at what iteration to decrease the steplength and to what extent it should be decreased. The iterations during which the stepsize is kept fixed is referred to as a constant steplength regime or just a regime. Given the two error terms, our scheme can be loosely represented as an infinite sequence of regimes of finite duration. In fact, we proceed to show that the duration of the regimes is an increasing function. Entering a new regime is marked by a reduction in the steplength. In fact, since a finite reduction in the steplength occurs between consecutive regimes, the steplength sequence would naturally converge to zero if there is an infinite number of the regimes. Suppose one is at the beginning of the th regime, where the steplength is and the current iteration number is . The steplength is maintained constant during regime . Furthermore, suppose that at the beginning of the th regime, the transient error is greater than the persistent error for , i.e., . Since , decreases when multiplied with for . The larger , the smaller , so there exists for which will drop and remain below the persistent error . We let be the index just before this drop takes place, i.e., is the largest for which the following inequality holds:
Therefore, specifies the duration of regime , during which the stepsize is fixed at .
The next question is how one should go about reducing the persistent error. We observe through the next result that by reducing , the persistent error does indeed reduce.
Consider the persistent error given by , where and . Then, this error is an increasing function of
By using , for the persistent error we obtain . Therefore, the derivative of the persistent error with respect to is given by for all . ∎
Therefore, when is reduced to , the persistent error does indeed reduce. This drop in steplength is referred to as the cascading step and marks the commencement of a new regime. As earlier, in this regime, the persistent error will be smaller than the transient error and the process of determining can be repeated. Therefore, we may view the scheme as a diminishing steplength scheme where the steplength is reduced at a sequence of time epochs and between these epochs, it is maintained constant.
We now proceed to describe the scheme more formally. It can be viewed as having two stages, of which the second stage repeats infinitely often in a consecutive fashion. The first of these is an initialization phase. We assume throughout that the constraint set is bounded, so that with . Next, we describe each of the stages in cascading scheme in some detail.
Cascading steplength stochastic approximation (CSA) scheme:
Finally, we exit this phase by defining , setting , and going to Phase IIt.
Constant steplength phase (Phase IIt): Define . For the iteration indices with , the stepsize is kept constant and equal to , i.e.,
Then, we increase by setting , reduce the stepsize by letting , compute and determine the integer as follows:
We then repeat phase IIt until the number of iterations (i.e., gradient steps) exceeds a pre-specified threshold, in case of which the algorithm terminates.
We provide a graphical representation of these phases in Figure 1 where the circles around represent thresholds beyond which the transient error is less than the persistent error. For instance, in Figure 1 (plot to the left), phase II0 requires steps to reach the first circle. Once, the steplength is reduced by a factor , the phase II1 commences and requires steps to reach an analogous error threshold where the transient error is equal to the persistent error; this is illustrated in Figure 1 (plot in the center). Finally, phase II2 requires to reach an even smaller level of persistent error, as depicted in Figure 1 (plot to the right). Note that whenever the steplength is reduced, the persistent error is immediately reduced (Lemma 5). Thus, the stepsize is essentially a piecewise constant decreasing function of the iteration index .
The next result establishes the correctness of the cascading scheme by showing that in Phase IIt is finite, so the scheme is well defined.
Let Assumptions 1 and 3 hold. Also, let be differentiable over the set with Lipschitz gradients with constant and strongly convex with constant . Assume that the set is compact and let . Then, is finite for all .
We use induction on to show that is well defined and for all ,
First note that, since and the steplength is non-increasing in , we have for all .
For , from Proposition 5 and the boundedness of the set we have
where we use the fact (see Phase IIt for ).
Now assume that is well defined and relation (22) holds for . We next show that is also well defined and relation (22) holds for . Note that the steplength is used for . From Proposition 5 where we replace with , by replacing by letting , we have for ,
By inductive hypothesis relation (22) holds, so it follows
Consequently, is defined as the largest positive integer for which term 1 is strictly greater than term 2, i.e.,
(see the definition of in (21)). Noting that (see Phase IIt) and for , from (24) with , we obtain
thus showing relation (22) for and completing the proof. ∎
The transient and persistent error trajectories are illustrated in in Figure 2 for a problem discussed later in Section VI-A1. In Figure 2a, the transient and persistent terms of the error are plotted. The persistent error, as expected, is a piecewise constant decreasing function of the iteration count with the jumps occurring whenever the steplengths are reduced. The transient error is a plot of with respect to . This function is a decreasing function when As soon as , in the transient error the factor is replaced with , leading to the increase in transient error at that juncture. The total error, which is the summation of two terms, is showed in Figure 2b.
Remark on choice of : Recall that specifies the rate at which the steplength is dropped over consecutive steps in the cascading scheme. It can be readily observed from the bounds derived on that if , then thus implying that the steplength is kept constant for a very short period. This is intuitive since a conservative drop in steplengths would imply that these drops have to occur more frequently to ensure that the sequence is driven to zero. Conversely, if , then can grow to be quite large.
IV-B Global convergence theory
In this section, we prove that algorithm (3) using the cascading steplength scheme is indeed convergent to the optimal solution of problem (1).
Let and let . Then, we have
Let . Note that the function is nonnegative for all since . Furthermore for . Thus, for . We next show that is bounded from above as stated. To show that the sequence is bounded, we employ the Taylor expansion of . First, we write
Noting that , we then use the fact for , and obtain
Using , we further obtain
The relation for the limit is obtained by applying L’Hôpital’s rule, as follows:
Let Assumptions 1 and 3 hold. Also, let be differentiable over the set with Lipschitz gradients with constant and strongly convex with constant , where . Assume that the set is compact and let . Let the sequence be generated by algorithm (3) and cascading steplength scheme with and . Then, converges almost surely to the unique optimal solution of problem (1).
The result will follow from Proposition 1 provided we verify that Assumption 2 holds, i.e., and . According to Phase IIt of the cascading scheme, we have for with and . Therefore
From the definition of in (21) we have
Relation (26) and the fact (see Phase IIt of the cascading scheme) yield
Therefore, by multiplying and dividing by , we obtain
Note that with and . Thus, by Lemma 6 we have , implying
Taking limits on both sides, we have that
The limit on the right can be simplified by substituting , leading to
implying that
It remains to show that From (25) and the fact for all , we have that
This allows for obtaining an upper bound on , given by
The desired result will follow by the Cauchy root test, if we show that
By noting that , it suffices to use the upper bound on in (27). We proceed to analyze this bound, for which by letting and recalling that we have
Noting that for all when , we have , implying
Since , the denominator can be expanded in Taylor series as follows:
Furthermore, since and with , we have for large enough, implying . Thus,
By combining (28) and (29), we obtain for large enough,
By recalling that and for any , it follows that
We next examine the limit on the right hand side. Letting and , we can write
Therefore, implying that
As a consequence, the Cauchy-root test is satisfied and ∎
V Addressing nondifferentiability through Local Randomized Smoothing
In this section, we develop a smoothing approach for solving stochastic optimization problem with nonsmooth integrands. In Section V-A, given a nondifferentiable function , we introduce a smooth approximation for , denoted by by using local random perturbations. In Section V-B, we derive Lipschitz constants for the gradients associated with this smooth approximation when the smoothing is introduced via a uniform distribution. Finally, in Section V-C, the convergence theory of stochastic approximation schemes is examined in this modified regime.
We let be nondifferentiable and consider its approximation , defined by
We discuss our local smoothing technique under the assumption that the function has uniformly bounded subgradients over the set , given as follows.
The subgradients of over are uniformly bounded, i.e., there is a scalar such that for all and .
Assumption 4 is satisfied, for example, when is bounded. In the sequel, we let denote the vector-valued integral of an element from the set of subdifferentials, which is given by
The following lemma presents properties of the randomized technique (30) with an arbitrary local random distribution over a ball. It states that, under the boundedness of the subgradients of , the set defined above is a singleton. In particular, the lemma shows that is convex and differentiable approximation of .
is convex and differentiable over , with gradient
where the vector is as defined in (31). Furthermore, for all .
for all .
(b) By definition of random vector , it has zero mean, i.e., , so that . Therefore, by Jensen’s inequality and the definition of , we have
To show relation , we use the subgradient inequality for , which in particular implies that, for every and , we have
Since , we have for some and with . Using this and the subgradient boundedness, from the preceding relation we obtain
Thus, by taking the expectation, we get for all ∎
V-B Smoothing via random variables with uniform distributions
In this subsection, we consider a local smoothing technique wherein is generated via a uniform distribution. Other distributions may also work such as normal, considered in . However, distributions with finite support seem more appropriate for capturing local behavior of a function, as well as to deal with the problems where the function itself has a restricted domain. Our choice to work with a uniform distribution is due to the uniform distribution lending itself readily for computation of resulting Lipschitz constant and for assessment of the growth of the Lipschitz constant with the size of the problem.
The key result of this section is an examination of the Lipschitz continuity of the gradients of the smooth approximation, particularly in terms of the rate that such a constant grows with problem size.
where , and is the gamma function given by
The following lemma shows that is convex and differentiable approximation of with Lipschitz gradients, where the Lipschitz constant for is related to the norm bound for the subgradients of .
where if is even, and otherwise .
From Lemma 7(a) and relation (31), for any , there is a vector such that a.s. and
where the last equality follows by letting . Therefore, for any ,
where the last inequality follows by using the boundedness of the subgradients of over .
Now, we let be arbitrary but fixed, and we estimate in (34). For this we consider the cases where and .
Case 1 (): For every with , we have , implying that , so that . Likewise, for every with , we have , implying
Since , it follows that
It can be further seen that for all , which combined with (37) and (34) yields the result.
Case 2 (): We decompose the integral in (34) over several regions, as follows:
where denotes the volume of the set .
Now we want to find an upper bound for in terms of . Let denote the volume of the spherical cap with the distance from the center of the sphere. Therefore,
The volume of the -dimensional spherical cap with distance from the center of the sphere can be calculated in terms of the volumes of -dimensional spheres, as follows:
with for . We have for ,
where and denote the first and the second derivative, respectively, with respect to . Hence, is convex over , and by the subgradient inequality we have
Since and , it follows
Noting that (since ), we can let in (40). By doing so and using (39), we obtain
Finally, substituting the preceding relation in (38), we have
Since , it can be seen that
with if is even, and otherwise . Thus, we have
By combining (42) with (34), we obtain the desired result. ∎
It can be seen that the Lipschitz constant established in Lemma 7 for the differentiable approximation grows at the rate of with the number of the variables, i.e.,
This growth rate is worse than the growth rate obtained in for the global smoothing approximation, which uses a normally distributed perturbation vector . However, it should be emphasized that the smoothing technique in requires the function to be defined over the entire space since is drawn from a normal distribution, which is a somewhat stringent requirement. Our proposed local smoothing technique removes such a requirement, but suffers from a worse growth rate.
V-C Convergence analysis of the algorithm with local smoothing
In this section, we apply the stochastic approximation scheme presented in Section II to the smooth approximation of a nondifferentiable function . First, we consider the case when is convex but deterministic and then, we consider the case when is given as the expectation of a convex function.
We apply the local smoothing technique to the minimization of a convex but not necessarily differentiable function . In particular, suppose we want to minimize such a function over some set . We may first approximate by a differentiable function and then minimize over . In this case, by taking the minimum over in the relation in Lemma 7(b), we see that . Thus, we may overestimate the optimal value of the original problem by at most , where is a bound on subgradient norms of . So we consider the following optimization problem
We may solve the problem by considering the method (3), which takes the following form
where is an i.i.d. sequence of random variables with uniform distribution over the -dimensional sphere centered at the origin and with the radius .
We show that the conditions of Proposition 1 are satisfied. In particular, under the given assumptions, the set is convex and closed (Corollary 9.1.2 in ). Furthermore, the function is convex and finite on some open set containing the set for any . Since is a random variable with uniform distribution on the sphere , we see that is finite for every . Thus, Assumption 1 is satisfied. Since has bounded subgradients on and , we have . By Lemma 7(a), the gradients over are also bounded uniformly by . Hence,
implying that . In view of this, and (Assumption 2(a)), it follows that , thus showing that Assumption 2(b) is satisfied. By Lemma 7, the function is differentiable with Lipschitz gradients over . Thus, the conditions of Proposition 1 are satisfied and the result follows. ∎
V-C2 Stochastic nondifferentiable optimization
In this section, we apply our local smoothing technique to a nondifferentiable stochastic problem of the form (1). Essentially, this amounts to putting the results of Sections II and V-C together. We thus consider the following problem:
is the function as described in section II, and is a smooth approximation of with having a uniform density as discussed in Section V. In view of Lemma 7(a), we know that is an upper bound for the difference between the optimal value and , under appropriate conditions to be stated shortly. Under these conditions, we are interested in solving the approximate problem in (45).
where the inner expectation is conditioned on and is with respect to while the outer expectation is with respect to . We note that the variables and are independent, and by exchanging the order of the expectations, we obtain:
Thus, the problem in (45) is equivalent to
In the following lemma, we provide some conditions ensuring the differentiability of with respect to , as well as some other properties of . The lemma can be viewed as an immediate extension of Lemma 7 to the collection of functions .
For every , the function is convex and differentiable with respect to at every , and the gradient is given by
Furthermore, for all and .
for all and .
for all and , where if is even, and otherwise .
Under the given assumptions, each of the functions for satisfies the conditions of Lemma 7. Thus, the results follow by applying the lemma to each of the functions for . ∎
In the light of Lemma 7, the optimal value of the approximate problem in (46) is an overestimate of the optimal value of the original problem (1) within the error . In particular, by taking the expectation with respect to in the relation of Lemma 7(b), we obtain
This motivates solving approximate problem (46). Since for every , the function is convex and differentiable over the set , the function is also convex and differentiable over the set (see ). Thus, the objective function in (46) is differentiable. To solve the problem, we consider the method in (3), which takes the following form:
We have the following convergence result for the method.
Let the assumptions of Lemma 9 hold, and let Assumption 2 hold. Then, the sequence generated by method (47) converges almost surely to some optimal solution of problem (46).
It suffices to show that the conditions of Proposition 1 are satisfied for the set , and the functions and . The result will then follow from Proposition 1.
We first verify that satisfies Assumption 1 and that has Lipschitz gradients over . Under the given assumptions, Lemma 9 holds. By Lemma 9(a)–(b), the function satisfies Assumption 1. Furthermore, by Lemma 9(a) and (c), the function is differentiable and with Lipschitz gradients for every . Hence, is also differentiable with the gradient given by (see ). To see that the gradients are Lipschitz continuous, we take the expectation in the relation of Lemma 9(c), and we obtain for all ,
where if is even, and otherwise . Using Jensen’s inequality, we further have for all ,
Since , it follows that is Lipschitz over the set . Thus, the objective function satisfies the conditions of Proposition 1.
We now show that Assumption 2(b) is satisfied. In view of the assumption that (Assumption 2(a)), it suffices to show that is uniformly bounded. By the definition of in (47), we have for all ,
where and for all . Thus, for all . By the assumptions of Lemma 9, the subdifferential set is uniformly bounded over , implying that
We next prove that the gradients are uniformly bounded over the set . Taking the expectation in the relation valid for any and (Lemma 9(a)), and using Jensen’s inequality, we obtain
Since , we see that for . This and relation (48) yields
thus showing that is uniformly bounded. ∎
VI Numerical results
In this section, we present computational results of applying our adaptive and smoothing schemes to three test problems. Sections VI-A1, VI-A2 and VI-A3 consider a stochastic utility problem (see ), a bilinear matrix game and a stochastic network utility maximization problem, respectively. In all of these examples, we compare the performance of the recursive steplength SA scheme (RSA) and the cascading steplength SA scheme (CSA) with a standard implementation of stochastic approximation. The standard SA scheme, where the steplength sequence is chosen to be a harmonic sequence is referred to as the HSA scheme and is employed as a benchmark. For each example, we provide this comparison for 9 problems of varying size and problem parameters apart from figures illustrating the difference between theoretical bounds and the obtained results. Notably, the first two problems are nonsmooth convex problems, prompting us to work with a regularized strongly convex form. In Section VI-B, we discuss the sensitivity of the schemes to changes in parameters. Throughout Section VI, we use and , to denote the no. of iterations, the problem dimension, the strong convexity parameter, and the size of the uniform distribution employed for smoothing, respectively.
Consider the following optimization problem,
where , are independent and normally distributed random variables with mean zero and variance one. The function is a piecewise linear convex function given by where and are constants between zero and one, and . To apply our schemes, we require strong convexity of function . Therefore, we regularize by adding the term to where is the strong convexity parameter. We now apply the randomized smoothing technique discussed in Section V-C. Smoothed regularized problem given by
Table I shows the results of parametric analysis of the simulation of our schemes on problem (50). The table is partitioned into three parts, each corresponding to a variation of parameters , , , respectively. In each part, one parameter has been assigned three increasing values while the other parameters are kept fixed, allowing us to ascertain the impact of each parameter on the performance of the schemes. We generated 50 trajectories of the RSA and CSA scheme for a given Over these realizations, we computed the means and 90 confidence intervals. The baseline parameters are chosen as , , , and as a reference for each group. Note that in Table I, the confidence intervals employ the logarithm of the error. Recall that we have a theoretical upper bound on the error , as given by (8) and (17) for the RSA and CSA schemes. Additionally, we obtain an empirical error bound based on using the scheme in practice. Insights: We observe that the confidence intervals of both the CSA and the RSA schemes are relatively invariant to changes in problem dimension. Furthermore, RSA appears to have provide slightly tighter intervals in comparison with CSA. Expectedly, increasing leads to significant improvement in these intervals while larger values of lead to less accurate solutions (with respect to the unregularized problem) but tighter bounds. Moreover, the CSA schemes in particular give better confidence bounds than RSA when is larger.
VI-A2 A bilinear matrix game problem
Problem (51) a saddle point problem. Solving saddle point problems by SA algorithm has been discussed extensively (cf. ). The gradient and its sampled variant to be employed in algorithm (3) are given by:
respectively where and are random integers between 1 and with probabilities
respectively for arbitrary vectors and . We generate these random variables through two independent random variables and which are uniformly distributed in $(x,y)\in X\times Y\min(0,x_{1},\ldots,x_{n})=\min(0,y_{1},\ldots,y_{n})=0\sum_{i=1}^{n}x_{i}=\sum_{j=1}^{n}y_{j}=1$, we have
implying that has zero-mean, i.e., for all To analyze the behavior of the upper bound of error arising from RSA and CSA, we need a strongly convex function. This is obtained by adding a regularization term to the function which makes it a strongly convex function with respect to and a strongly concave function with respect to . To apply the randomized technique in Section V, we consider an ()-dimensional ball with radius uniformly distributed. We use the following SA algorithm to find the solution to an approximate solution of (51):
From the structure of in (52), it is observed that the optimal solution of problem (51) is obtained for and . This result can also be obtained quite simply by using a linear programming reformulation. The regularized problem cannot be analyzed as easily and its solution can be obtained by using QP duality and SAA techniques.
Table II presents the results of simulations for RSA and CSA schemes. Similar to the Table I, there are three parts in the Table II for the parameters. For this problem, is very small and shows that the optimal solution of the approximate problem is very close to the optimal solution of problem (51). We set , , , and as the reference setting. Figure 3b shows the theoretical upper bounds and the mean of samples of simulation for RSA and CSA schemes.
Insights: Unlike in the stochastic utility problem, in this instance, the true optimal solution is obtained within the gradient steps for most of the test problems. However, it should be remarked that the CSA appears to find solutions faster than RSA, in at least three of the problems (P: 3, 5 and 7).
VI-A3 A stochastic network utility problem
In this example, we consider a spatial network and consider the associated network utility maximization problem (See ). Suppose that there are users and links. The overall network maximization problem is characterized by an objective that is a sum of user-specific concave utilities less a congestion cost, which is given by a function of aggregate flow over a link. Let denote the th user’s flow rate while denotes its utility function, defined by
where is an uncertain parameter. Suppose that denotes the adjacency matrix that captures the set of links traversed by the traffic. More precisely, for every link and user , we have if link carries flow of user and otherwise. The congestion cost is given by The total cost at the network level us then given by
We assume that the user traffic rates are restricted by a capacity constraint . Since the objective function is smooth, there is no requirement to introduce an additional smoothing.
Table III shows the results of simulations for HSA, RSA, and CSA scheme. Here, we assume that and is constrained to be nonnegative. We also assume that is drawn from uniform distribution for every user. The confidence intervals for the normed error between the terminating iterate and the optimal solution are reported for each problem.
Insights: We observe that both RSA and CSA schemes perform favorably in comparison with the HSA scheme. Importantly, neither scheme appears to deteriorate from a confidence interval standpoint when the problem size grows. Similar to the earlier examples, CSA appears to have slightly tighter confidence intervals in the empirical tests that we carried out.
VI-B Interpretation of numerical results
In this section, we interpret the numerical results obtained in the previous subsections, focusing on a comparison between the theoretical and empirical results and the sensitivity of the schemes to the algorithm parameters.
In Figures 3a, 3b and 3c, we provide schematics of the trajectories associated with the theoretically obtained upper bounds and the empirical means. Several observations can be immediately made. In the context of the stochastic utility problem and the network utility maximization problem, we observe that the RSA scheme displays uniformly better theoretical bounds, in comparison with CSA. It is also worth emphasizing that the “jumps” seen in the theoretical error bound trajectories of CSA correspond to junctures where the steplengths drop. In fact, the cascading nature is also apparent in the empirical trajectories of the network utility maximization game in Fig 3c, albeit in a less obvious fashion. We observe that the overall empirical behavior of both schemes is similar in terms of the final errors for the utility and network utility maximization problems while in the context of the bimatrix game, the CSA scheme performs significantly better for a subset of problems.
VI-B2 Sensitivity to algorithm parameters
Finally, in this section, we discuss the sensitivity of each scheme to algorithm parameters and provide a comparison with a standard stochastic approximation scheme where we assume that the stepsize is for and . In HSA, we intend to examine the effect of choosing different values of on the performance of the SA algorithm. In the RSA scheme, we have a choice of the first stepsize and also parameter in the inequality of Proposition 3. We set and examine the impact of changing . Finally, the CSA scheme performs differently with different choices of the cascading parameter . We consider three different values for each of , , and and present simulations for HSA, RSA and CSA in the case of the stochastic utility problem. The reference setting is specified by , , , and . Now suppose , , and are set as follows:
Figure 4 shows the simulations for the specified parameters. Note that “Th. UB” shows the corresponding theoretical upper bound of each scheme and ”Mean” shows the mean of error where .
Figure 4a shows the harmonic scheme with 1, 0.5, and 0.25 corresponding to labels 1, 2, and 3 in the legend. This shows that the performance of HSA is extremely sensitive to the choice of and HSA implementations with a larger performed better for the stochastic utility problem. Furthermore, the error on termination of HSA schemes can vary by nearly a factor of 10 for the problems that we tested. The update rules in the RSA schemes rely on and with being the sole user input. Yet, when examining the sensitivity of the RSA scheme to the choice of (see Figure 4b with 1, 0.5, and 0.25 corresponding to labels 1, 2, and 3), we observe that the performance is relatively insensitive to the choice of initial stepsize. In effect, the modeler can be relatively less concerned about such parameters when attempting to solve this class of problems. Importantly, both theoretical and numerical aspect of RSA have almost the same performance for three values of . Finally, a concern in the implementation of CSA schemes is the choice of , the cascading parameter where . Figure 4c shows the simulation of the cascading scheme with 0.75, 0.50, and 0.25 corresponding to labels 1, 2, and 3. Theoretically, we observe that smaller values of (more aggressive reductions in stepsize) lead to slightly superior theoretical bounds but not significantly so. However, the results are far more muted when conducting an empirical examination. In particular, we observe that the CSA scheme appears to be relatively insensitive to diversity in the choice of The relative robustness of the RSA and CSA schemes to the choice of parameters is seen as a crucial advantage of such schemes.
VII Concluding remarks
This paper is motivated by two shortcomings associated with standard stochastic approximation procedures for stochastic convex programs. First, standard implementations of such schemes provide little guidance in specifying parameters that may prove crucial in practical performance. Furthermore, direct extensions to nonsmooth regimes of such schemes is not immediate. Accordingly, this paper makes two sets of contributions. First, we develop two sets of adaptive steplength schemes and provide the associated global convergence theory. Of these, the former, a recursive steplength scheme (RSA), specifies the steplength at a particular iteration using the previous steplength and certain problem parameters. The second scheme, called a cascading steplength scheme (CSA), differs significantly and is essentially a sequence of constant steplength schemes in which the steplength is reduced at specific points in time. The second set of contributions extends these techniques to settings where the objective is not necessarily differentiable. Through the use of a local smoothing method that perturbs the problem through a uniformly distributed random variable, we propose a stochastic gradient scheme. Notably, Lipschitz bounds are obtained for the gradients and their growth with problem size is found to be modest. Locally smoothed variants of the RSA and CSA scheme were seen to perform well on two classes of nonsmooth stochastic optimization problems and implementations were seen to be relatively insensitive to problem parameters.