Algorithms of Robust Stochastic Optimization Based on Mirror Descent Method
Anatoli Juditsky, Alexander Nazin, Arkadi Nemirovsky, Alexandre Tsybakov
Introduction
In this paper, we consider the problem of convex composite stochastic optimization:
where is a compact convex subset of a finite-dimensional real vector space with norm , is a random variable on a probability space with distribution , function is convex and continuous, and function . Suppose that the expectation
is finite for all , and is a convex and differentiable function of . Under these assumptions, the problem (1) has a solution with optimal value .
Assume that there is an oracle, which for any input returns a stochastic gradient that is a vector satisfying
where is conjugate norm to , and is a constant. The aim of this paper is to construct -reliable approximate solutions of the problem (1), i.e., solutions , based on queries of the oracle and satisfying the condition
with as small as possible .
Note that stochastic optimization problems of the form (1) arise in the context of penalized risk minimization, where the confidence bounds (3) are directly converted into confidence bounds for the accuracy of the obtained estimators. In this paper, the bounds (3) are derived with of order . Such bounds are often called sub-Gaussian confidence bounds. Standard results on sub-Gaussian confidence bounds for stochastic optimization algorithms assume boundedness of exponential or subexponential moments of the stochastic noise of the oracle (cf. ). In the present paper, we propose robust stochastic algorithms that satisfy sub-Gaussian bounds of type (3) under a significantly less restrictive condition (2).
Recall that the notion of robustness of statistical decision procedures was introduced by J. Tukey and P. Huber in the ies, which led to the subsequent development of robust stochastic approximation algorithms. In particular, in the 1970ies–1980ies, algorithms that are robust for wide classes of noise distributions were proposed for problems of stochastic optimization and parametric identification. Their asymptotic properties when the sample size increases have been well studied, see, for example, and references therein. An important contribution to the development of the robust approach was made by Ya.Z. Tsypkin. Thus, a significant place in the monographs is devoted to the study of iterative robust identification algorithms.
The interest in robust estimation resumed in the 2010ies due to the need to develop statistical procedures that are resistant to noise with heavy tails in high-dimensional problems. Some recent work develops the method of median of means for constructing estimates that satisfy sub-Gaussian confidence bounds for noise with heavy tails. Thus, in the median of means approach was used to construct an -reliable version of stochastic approximation with averaging (“batch” algorithm) in a stochastic optimization setting similar to (1). Other original approaches were developed in , in particular, the geometric median techniques for robust estimation of signals and covariance matrices with sub-Gaussian guarantees . Also there was a renewal of interest in robust iterative algorithms. Thus, it was shown that robustness of stochastic approximation algorithms can be enhanced by using the geometric median of stochastic gradients . Another variant of the stochastic approximation procedure for calculating the geometric median was studied in , where a specific property of the problem (boundedness of the stochastic gradients) allowed the authors to construct -reliable bounds under a very weak assumption about the tails of the noise distribution.
This paper discusses an approach to the construction of robust stochastic algorithms based on truncation of the stochastic gradients. It is shown that this method satisfies sub-Gaussian confidence bounds. In Sections 2 and 3, we define the main components of the optimization problem under consideration. In Section 4, we define the robust stochastic mirror descent algorithm and establish confidence bounds for it. Section 5 is devoted to robust accuracy estimates for general stochastic algorithms. Finally, Section 6 establishes robust confidence bounds for problems, in which has a quadratic growth. The Appendix contains the proofs of the results of the paper.
Notation and Definitions
Let be a finite-dimensional real vector space with norm and let be the conjugate space to . Denote by the value of linear function at point and by the conjugate to norm on , i.e.,
we consider a continuous convex function with the following property:
where is a continuous in version of the subgradient of and denotes the subdifferential of function at point , i.e., the set of all subgradients at this point. In other words, function is strongly convex on with coefficient 1 with respect to the norm . We will call the normalized proxy function. Examples of such functions are:
\theta(x)=\mbox{\small\frac{1}{2}}\|x\|_{2}^{2} for ;
with for ;
with for , where is the space of symmetric matrices equipped with the nuclear norm and are eigenvalues of matrix .
Now, let be a convex compact subset in and let and be such that . We equip with a proxy function
Note that is strongly convex with coefficient 1 and
Let be the diameter of the set . Then .
In the following, we denote by and positive numerical constants, not necessarily the same in different cases.
Assumptions
Consider a convex composite stochastic optimisation problem (1) on a convex compact set . Assume in the following that the function
is convex on , differentiable at each point of the set and its gradient satisfies the Lipschitz condition
Assume also that function is convex and continuous. In what follows, we assume that we have at our disposal a stochastic oracle, which for any input , returns a random vector , satisfying the conditions (2). In addition, it is assumed that for any and an exact solution of the minimization problem
with a constant . This assumption is motivated as follows.
First, if we a priori know that the global minimum of function is attained at an interior point of the set (what is common in statistical applications of stochastic approximation), we have . Therefore, choosing , one can put and assumption (6) holds automatically with .
Second, in general, one can choose as any point of the set and as a geometric median of stochastic gradients , , over oracle queries. It follows from that if is of order with some sufficiently small , then
Thus, the confidence bounds obtained below will remain valid up to an -correction in the probability of deviations.
Accuracy bounds for Algorithm RSMD
In what follows, we consider that the assumptions of Section 3 are fulfilled. Introduce a composite proximal transform
For , define the algorithm of Robust Stochastic Mirror Descent (RSMD) by the recursion
Here , , and are tuning parameters that will be defined below, and are independent identically distributed (i.i.d.) realizations of a random variable , corresponding to the oracle queries at each step of the algorithm.
The approximate solution of problem (1) after iterations is defined as the weighted average
If the global minimum of function is attained at an interior point of the set and , then definition (12) is simplified. In this case, replacing by the upper bound and putting and in (12), we define the truncated stochastic gradient by the formula
The next result describes some useful properties of mirror descent recursion (9). Define
Let for all , and let be defined in (13), where are iterations (9) for any values , not necessarily given by (12). Then for any we have
where is a random vector with values in depending only on .
Using Proposition 1 we obtain the following bounds on the expected error of the approximate solution of problem (1) based on the RSMD algorithm. In what follows, we denote by the expectation with respect to the distribution of .
Set . Assume that and for all . Let be the approximate solution (13), where are the iterations of the RSMD algorithm defined by relations (9) and (12). Then
In particular, if for all , where
Moreover, in this case we have the following inequality with explicit constants:
This result shows that if the truncation threshold is large enough, then the expected error of the proposed algorithm is bounded similarly to the expected error of the standard mirror descent algorithm with averaging, i.e., the algorithm in which stochastic gradients are taken without truncation: .
The following theorem gives confidence bounds for the proposed algorithm.
Let for all , and let ,
Let be the approximate solution (13), where are the RSMD iterations defined by relations (9) and (12). Then there is a random event of probability at least such that for all the following inequalities hold:
In paticular, chosing as in formula (18) we have, for all ,
where and are numerical constants.
The values of the numerical constants and in (21) can be obtained from the proof of the theorem, cf. the bound in (51).
Confidence bound (21) in Theorem 1 contains two terms corresponding to the deterministic error and to the stochastic error. Unlike the case of noise with a “light tail” (see, for example, ) and the bound in expectation (19), the deterministic error depends on . Note also that Theorem 1 gives a sub-Gaussian confidence bound (the order of the stochastic error is ). However, the truncation threshold depends on the confidence level . This can be inconvenient for the implementation of the algorithms. Some simple but coarser confidence bounds can be obtained by using a universal threshold independent of , which is . In particular, we have the following result.
Let for all , and let . Set
Let , where are the iterations of the RSMD algorithm defined by relations (9) and (12). Then there is a random event of probability at least such that for all the following inequalities hold:
In particular, choosing as in formula (18) we have
The values of the numerical constants in Theorem 2 can be obtained from the proof, cf. the bound in (51).
Robust Confidence Bounds for Stochastic Optimization Methods
Consider an arbitrary algorithm for solving the problem (1) based on queries of the stochastic oracle. Assume that we have a sequence \big{(}x_{i},G(x_{i},\omega_{i+1})\big{)},\;i=0,...,N, where are the search points of some stochastic algorithm and are the corresponding observations of the stochastic gradient. It is assumed that depends only on . The approximate solution of the problem (1) is defined in the form:
Our goal is to construct a confidence interval with sub-Gaussian accuracy for . To do this, we use the following fact. Note that for any the value
is an upper bound on the accuracy of the approximate solution :
(see Lemma 1 in Appendix). This fact is true for any sequence of points in , regardless of how they are obtained. However, since the function is not known, the estimate (24) cannot be used in practice. Replacing the gradients in (23) with their truncated estimates defined in (12) we get an implementable analogue of :
Note that computing reduces to solving a problem of the form (4) with . Thus, it is computationally not more complex than, for example, one step of the RSMD algorithm. Replacing with introduces a random error. In order to get a reliable upper bound for , we need to compensate this error by slightly increasing . Specifically, we add to the value
Let \big{(}x_{i},G(x_{i},\omega_{i+1})\big{)}_{i=0}^{N} be the trajectory of a stochastic algorithm for which depends only on . Let and let be truncated stochastic gradients defined in (12), where the threshold is chosen in the form (20). Then for any the value
Since monotonically increases in it suffices to use this bound for when is known. Note that, although gives an upper bound for , Proposition 2 does not guarantee that is sufficiently close to . However, this property holds for the RSMD algorithm with a constant step, as follows from the next result.
Under the conditions of Proposition 2, let the vectors be given by the RSMD recursion (9)–(12), where , . Then
Moreover, if then
where and are numerical constants.
The values of the numerical constants and can be derived from the proof of this corollary.
Robust Confidence Bounds for Quadratic Growth Problems
In this section, it is assumed that is a function with quadratic growth on in the following sense (cf. ). Let be a continuous function on and let be the set of its minimizers on . Then is called a function with quadratic growth on if there is a constant such that for any there exists such that the following inequality holds:
The RSMD algorithm for quadratically growing functions will be defined in stages. At each stage, for specially selected and it solves an auxiliary problem
We initialize the algorithm by choosing arbitrary and . We set , . Let and be the numerical constants in the bound (21) of Theorem 1. For a given parameter , and we define the values
Here denotes the smallest integer greater than or equal to . Set
Now, let . At the -th stage of the algorithm, we solve the problem of minimization of on the ball , we find its approximate solution according to (9)–(13), where we replace by , by , by , by , and set
It is assumed that, at each stage of the algorithm, an exact solution of the minimization problem
is available for any and . At the output of the -th stage of the algorithm, we obtain .
Assume that , i.e. at least one stage of the algorithm described above is completed. Then there is a random event of probability at least such that for the approximate solution after stages of the algorithm satisfies the inequality
Theorem 3 shows that, for functions with quadratic growth, the deterministic error component can be significantly reduced – it becomes exponentially decreasing in . The stochastic error component is also significantly reduced. Note that the factor is of logarithmic order and has little effect on the probability of deviations. Indeed, it follows from (29) that . Neglecting this factor in the probability of deviations and considering the stochastic component of the error, we see that the confidence bound of Theorem 3 is approximately sub-exponential rather than sub-Gaussian.
Conclusion
We have considered algorithms of smooth stochastic optimization when the distribution of noise in observations has heavy tails. It is shown that by truncating the observed gradients with a suitable threshold one can construct confidence sets for the approximate solutions that are similar to those in the case of “light tails”. It should be noted that the order of the deterministic error in the obtained bounds is suboptimal — it is substantially greater than the optimal rates achieved by the accelerated algorithms , namely, in the case of convex objective function and in the strongly convex case. On the other hand, the proposed approach cannot be used to obtain robust versions of the accelerated algorithms since applying it to such algorithms leads to accumulation of the bias caused by the truncation of the gradients. The problem of constructing accelerated robust stochastic algorithms with optimal guarantees remains open.
A.1. Preliminary remarks. We start with the following known result.
Assume that and satisfy the assumptions of Section 3, and let be some points of the set . Define
Then for any the following inequality holds:
In addition, for we have
Proof Using the property V_{x}(z)\geq\mbox{\small\frac{1}{2}}\|x-z\|^{2}, the convexity of functions and and the Lipschitz condition on we get that, for any ,
Summing up over from 0 to and using the convexity of we obtain the second result of the lemma.
In what follows, we denote by the conditional expectation for fixed .
Let the assumptions of Section 3 be fulfilled and let and satisfy the RSMD recursion, cf. (9) and (12). Then
Proof Set . Note that by construction . We have
Moreover, since we have
The following lemma gives bounds for the deviations of the sums and .
Let the assumptions of Section 3 be fulfilled and let and satisfy the recursion of RSMD, cf. (9) and (12).
(i) If and then, for any ,
(ii) If and then, for any ,
Proof Set and , Using Lemma 2 it is easy to check that the following inequalities are fulfilled
In what follows, we apply several times the Bernstein inequality, and each time we will use the same notation , , for the values that are, respectively, the uniform upper bound of the expectation, the maximum absolute value, and the standard deviation of a random variable.
1o. We first prove the statement . We start with the case . It follows from (39) that in this case
Using (47) and Bernstein’s inequality for martingales (see, for example, ) we get
for all satisfying the condition . On the other hand, in the case under consideration, the following inequalities hold (cf. (43) and (47))
for . Applying again the Bernstein inequality, we get
for all satisfying the condition .
2o. Assume now that , so that and . Then
and applying again the Bernstein inequality we get
for all , satisfying the condition . Next, in this case
for . Applying once again the Bernstein inequality we get
for all satisfying the condition .
3o. Now, consider the case . Let , so that . We argue in the same way as in the proof of . By virtue of (39) we have
Hence, using the Bernstein inequality we get
Now, applying again the Bernstein inequality we get
Proofs of the bounds (34) and (35) in the case and follow the same lines.
A.2. Proof of Proposition 1. We first prove inequality (15). In view of (4), the optimality condition for (9) has the form
where the last equality follows from the following remarkable identity (see, for example, ): for any and
Since, by definition, we get
It follows from Lemma 1 and the condition that
Together with (48), this inequality implies
On the other hand, due to the strong convexity of we have
for all . Dividing (49) by and taking the sum over from to we obtain (15).
We now prove the bound (16). Applying Lemma 6.1 of with we get
where z_{i}={\rm arg\,min}_{z\in X}\big{\{}\mu_{i-1}\langle\xi_{i},z\rangle+V_{z_{i-1}}(z)\big{\}} depends only on . Further,
Combining this inequality with (15), we get (16).
A.3. Proof of Corollary 1. Note that (17) is an immediate consequence of (15) and of the bounds for the moments of given in Lemma 2. Indeed, (31)(b) implies that, under the conditions of Corollary 1,
Taking the expectation of both sides of (15) and using the last two inequalities we get (17). The bound (19) is proved in a similar way, with the only difference that instead of inequality (15) we use (16).
A.4. Proof of Theorem 1. By virtue of part (i) of Lemma 3, under the condition we have that, with probability of at least ,
Plugging these bounds in (16) we obtain that, with probability at least , the following holds:
Next, taking \bar{\beta}=\max\big{\{}2L,{\sigma\over R}\sqrt{N\over\Theta}\big{\}} we get
for . This implies (21).
A.5. Proof of Theorem 2. We act in the same way as in the proof of Theorem 1 with the only difference that instead of part (i) of Lemma 3 we use part (ii) of that lemma, which implies that if then with probability at least the following inequalities hold:
The proposition is a direct consequence of the following result.
Then, for and the following inequalities hold
Proof of Lemma . Let us prove the first inequality in (55). Recall that , . Due to the strong convexity of , for any and we have
Recalling that , we conclude that for all and all . Therefore, for we have
which proves the first inequality in (55). The proof of the second inequality in (55) is similar and therefore it is omitted.
A.7. Proof of Corollary 2. From the definition of we deduce that
and we get (26) by taking . On the other hand, one can check that for the following inequalities hold:
with the same probability. This implies (27).
1o. We first show that for each , the following is true.
Fact . There is a random event of probability at least such that for all the following inequalities hold:
The proof of Fact is carried out by induction. Note that (58)(a) holds with probability 1 for . Set . Assume that (58)(a) holds for some with probability at least , and let us show that then Fact is true.
Define and let be the set of all minimizers of function on . By Theorem 1 and the definition of (cf. (29)), there is an event of probability at least such that for after the -th stage of the algorithm we have
where is the projection of onto . Set . Then
In addition, due to the assumption of induction, on the set (and, therefore, on ) we have
i.e., the distance between and the set of global minimizers does not exceed . Therefore, the set has a non-empty intersection with . Thus, , the point is contained in and coincides with the optimal value of the initial problem. We conclude that
2o. We now prove the theorem in the case . This condition is equivalent to the fact that for all , since by construction. Assume that , so that (58) holds with . Since we have . In addition, . Using these remarks and the definition of we get
Thus, using the definition of (cf. (29)) we obtain
Two cases are possible: or . If , then
so that if then
If the following inequalities hold:
Therefore, in this case for we have
Let be the smallest integer such that . If it is not difficult to see that and therefore for we have
If we have the following chain of inequalities:
where the first inequality uses the fact that and the last inequality follows from the definition of . Based on this remark and on the fact that for we obtain
where the last inequality follows by noticing that . Hence, taking into account (58)(b) we get that, for ,
Combining this bound with (60), (61) and (63) we get (30).