Proximally Guided Stochastic Subgradient Method for Nonsmooth, Nonconvex Problems
Damek Davis, Benjamin Grimmer
Introduction
where are IID and is an appropriate control sequence. For nonsmooth , sample subgradients are simply replaced by sample subgradients , where denotes the subdifferential in the sense of convex analysis .
The complexity of minimizing (1) is directly related to the regularity of . For example, for convex functions the stochastic subgradient method attains expected functional accuracy with after stochastic subgradient evaluations. For strongly convex losses, the number of stochastic subgradient evaluations drops to The interested reader may turn to the seminal work for an in-depth investigation of these methods and for information-theoretic lower bounds showing such rates are unimprovable without further assumptions.
For convex functions, complexity theory does not favor smooth losses over nonsmooth losses. For nonconvex problems, the situation is less clear. In the smooth case, the seminal work of Ghadimi, Lan, and Zhang develops a variant of the stochastic projected gradient method and establishes that the expected norm of the projected gradient
a natural measure of stationarity, tends to zero at a controlled rate. Namely, with stochastic gradient evaluations, the algorithm produces a point with expected projected gradient norm squared less than .
In contrast to subgradient-based methods, the “usual criteria” is meaningful for the proximal point method , which constructs a sequence of approximate minimizers through the recursion
The search for an appropriate class of functions for which each proximal subproblem may be (approximately) executed naturally leads us to the deceptively simple, yet surprisingly broad class of -weakly convex functions. This is the class of functions that become convex after adding the quadratic . For example, any function on a compact, convex set becomes convex after adding the quadratic , where is the minimal eigenvalue of its Hessian across all points in the set. In the nonsmooth setting, this class includes all convex composite losses
where is convex and -Lipschitz and is with -Lipschitz Jacobian; such functions are known to be -weakly convex [13, Lemma 4.2]. The additive composite class is another widely used, much studied class of weakly convex functions, formed from all sums
where is closed and convex and is with -Lipschitz gradient; such functions are known to be -weakly convex. For further examples of weakly convex functions, see [9, Section 2.1], which includes formulations of robust phase retrieval, covariance matrix estimation, blind deconvolution, sparse dictionary learning, robust principal component analysis, and conditional value at risk. We provide several further examples in Section 2.1. It is important to note that none of these applications are covered by the seminal work of Ghadimi, Lan, and Zhang , which assumes an additive composite objective form.
Contributions. In this paper, we develop the first known complexity guarantees for a subgradient-based method for a general class of nonsmooth nonconvex losses in stochastic optimization. The guarantees in this paper apply to -weakly convex losses . Our algorithm, called the Proximally Guided stochastic Subgradient Method (PGSG) (Algorithm 2), follows an inner-outer loop strategy that may be compactly and informally summarized
The outer loop of PGSG is governed by the approximate proximal point method applied to the population risk . Due to -weak convexity of , the inner loop subproblem is a strongly convex stochastic optimization problem. Thus, by classical complexity theory, approximate solutions to the inner loop subproblems may be quickly found. When both inner and outer loops are coupled together appropriately, we establish that this method produces a point that is -close in expectation to the set of -critical points after stochastic subgradient evaluations, meaning,
Having established expectation guarantees, we turn our attention to probabilistic guarantees. Namely, following (which considers the smooth case), we say a (random) point is an -solution if
Markov’s inequality shows that PGSG finds an -solution after
stochastic subgradient evaluations. To improve this complexity, we introduce a 2-phase algorithm, called 2PGSG, which produces an -solution after
stochastic subgradient evaluations, substantially reducing the variance of our solution estimate. The technique for achieving this improvement is somewhat different than what proposes in the smooth case. The challenge in establishing the result is that we no longer have unbiased estimates of subgradients at nearly stationary points. Indeed, the iterates produced by subgradient methods are only nearby nearly stationary points and are not nearly stationary themselves.
Finally, we turn our attention to a more practical variant of PGSG, which does not assume that the weak convexity constant is known. In this setting, a simple idea—letting the outer loop stepsize tend to infinity—results in a point , which satisfies (4) after stochastic subgradient evaluations, where is a user defined meta-parameter. We mention that the seminal work of Ghadimi, Lan, and Zhang also assumes knowledge of the weak convexity constant ; in their setting is simply the Lipschitz constant of the gradient.
We validate our results with some preliminary numerical experiments on the population objective of a robust real phase retrieval problem. We also discuss several more examples of Weakly convex functions in Section 2.1.
The convergence rates presented in match known rates for the stochastic gradient method in nonconvex optimization . There, the standard stochastic gradient method may be used without modification. Interestingly, recent work has developed methods, which converge at the improved rate of , showing a surprising gap between smooth and nonsmooth nonconvex optimization not present in the convex case.
Stochastic Proximal-Gradient Methods
Stochastic Methods for Convex Composite
Recently proposed a method for finding stationary points of the convex composite problem in which . The first method adapts the prox-linear algorithm to the stochastic setting: given , sample and form as the solution to the convex problem:
where . The second proposed method is a straightforward application of the stochastic projected subgradient method . Both methods are shown to almost surely converge to stationary points, but no rates of convergence are given.
We remark that the convergence proof presented in is complex, being based on the highly nontrivial theory of nonconvex differential inclusions. We believe there is a benefit to having a simple proof of convergence, albeit for a slightly different subgradient method, which is what we provide in this paper.
Inexact Proximal Point Methods in Nonconvex Optimization
The idea of using the inexact proximal point method to guide a nonconvex optimization algorithm to stationary points is not new. For example, Hare and Sagastizabal propose a method for computing inexact proximal points, which then enables the analysis of a nonconvex bundle method. The more recent work exploits linearly convergent algorithms for solving the proximal subproblems. In contrast for the subproblems considered in this work, there are no linearly convergent stochastic subgradient algorithms capable of minimizing the proximal point step.
Subgradient Methods for Weakly Convex Problems
This paper is not the first to consider subgradient methods under weak convexity. For example, the early work proves subsequential convergence of the (non projected) subgradient method for weakly convex deterministic problems. However, no rates were given in that work.
Almost Sure Convergence of Stochastic Subgradient Methods for Nonconvex Problems
Convergence to stationary points of stochastic subgradient methods in nonsmooth, nonconvex optimization has previously been attained under several different scenarios, some of which are more general than the scenario considered in Problem (1) . No rates of convergence were given in these works. In contrast, the novelty of the proposed approach lies in the attained rate of convergence, which matches the best known rates of convergence for smooth, nonconvex stochastic optimization .
Rates of Convergence in Stochastic Weakly Convex Optimization
Since the first draft of this paper appeared on arXiv in July 2017, several works appearing in 2018 have established convergence of the standard stochastic projected subgradient method under weak convexity . The obtained rates (in expectation) are essentially the same as those obtained in this paper, namely they are of the form presented in equation (4). The authors of do not provide any probabilistic guarantees.
2 Outline
Section 2 presents notation and several basic results used in this paper, as well as further examples of weakly convex functions. Section 3 presents our convergence analysis under the assumption that is known. Section 3.2 presents our probabilistic guarantees. Section 3.3 presents our convergence analysis when is unknown. Section 4 preliminary presents numerical results obtained on a robust phase retrieval problem.
Notation and Basic Results
For the class of weakly convex functions, all elements of the subdifferential generate quadratic underestimators of the function , as the following proposition shows. The equivalences are based on [8, Theorem 3.1].
is -weakly convex. That is, is convex.
As stated in the introduction, the class of weakly convex functions is broad. In the nonsmooth setting, this class includes all convex composite losses
where is convex and -Lipschitz and is with -Lipschitz Jacobian; such functions are known to be -weakly convex [13, Lemma 4.2]. Several popular weakly convex formulations are presented in [9, Section 2.1]. We now discuss several further examples.
The censored block model is a variant of the standard stochastic block model , which seeks to detect two communities in a partially observed graph. Mathematically, we encode such communities by forming the “community matrix” , where is a membership vector in which if node is in the first community, and otherwise. In the censored block model, we observe a randomly corrupted version of the matrix
Then our task is to recover given only . We may formulate this problem in the following form convex, composite form:
Notice that absolute value function encourages the matrix to agree with in most of its nonzero entries—the bulk of which are equal to —due to the sparsity promoting behavior of the nonsmooth absolute value function.
Notice that this nonsmooth objective is given in convex composite form, and therefore, it is weakly convex.
One can see that for fixed , the only objective values that contribute to the sum are those that are among the -minimal elements of the set . In the Appendix, we provide a short proof that this objective is weakly convex. Notice that it is in general nonconvex, despite each begin convex.
Proximally Guided Stochastic Subgradient Method
In this section, we formalize the proposed algorithm. First we slightly generalize the problem considered in the introduction, namely we assume that
strongly convex. Next we introduce a stochastic subgradient oracle and a basic assumption on .
It is possible to generate IID realizations from .
Assumption A is standard in the literature on stochastic subgradient methods. In particular, assumptions (A1) and (A2) are identical to assumptions (A1) and (A2) in , while assumption (A3) is identical to [29, Equation (2.5)]. A useful consequence of (A3) is that itself is Lipschitz.
Suppose that assumption (A3) holds. Then is -Lipschitz continuous on U.
Before introducing the Proximally Guided stochastic Subgradient (PGSG) method, we introduce two necessary algorithm parameters:
As stated in the introduction PGSG employs an inner-outer loop strategy, which is shown in Algorithm 2. The outer loop executes approximate proximal point steps, resulting in the iterates . The inner loop, shown in Algorithm 1, approximately solves the proximal point subproblem, which is now strongly convex, using a stochastic subgradient method for strongly convex optimization . Beyond its use in governing the outer loop dynamics of PGSG, the proximal point subproblems also lead to a natural measure of stationarity.
Note that exists and is unique by the -strong convexity of the proximal subproblem. We stress that this point, although in principle obtainable via convex optimization, is never computed. Instead it is only used to formulate convergence guarantees. To that end, the following Lemma shows that the gap is a natural measure of stationarity.
Based on this Lemma, the iterate is -close to an -stationary point in expectation whenever
Establishing this fact is the main technical goal of the following theorem.
In particular, given , and setting
The total number of stochastic oracle evaluations required to compute this point is bounded by .
As stated, the theorem indicates that is nearby a nearly stationary point. The proof of Lemma 10 shows that one can in principle obtain the nearly stationary point by solving the strongly convex stochastic optimization problem
Throughout the proof we will need the following bound on the proximal point step:
Let , , and suppose that
where Lipschitz continuity follows from Lemma 3.1. Divide both sides of the inequality by to get the result.
We now analyze one inner loop of Algorithm 2. This inner loop may be interpreted as a variant of the stochastic projected subgradient method applied to the strongly convex optimization problem,
We note that the following proof is similar in outline to , but the results of that work are not sufficient for our purposes.
On the other hand, if for all , but and are otherwise unconstrained, we have
To proceed further, we must bound . To that end, recall that is -strongly convex. Therefore, for any ,
where the first inequality follows from Jensen’s inequality, the second inequality uses (A3) twice and Lemma 3.6, and the third inequality follows from the strong convexity.
Multiplying by , we find that
By our choice of , we have . Therefore, summing the previous inequality, we have
Therefore, noting that and , and using the convexity of , we deduce
The first distance bound then follows as a direct consequence of the strong convexity of , while the second follows from the convexity of .
By the strong convexity of the proximal point subproblem, we have
Then by Proposition 3.8, we have the following bound:
as desired. To complete the proof, apply Lemma 3.2.
2 Probabilistic Guarantees
In the previous section, we developed expected complexity results, which describe the average behavior of the PGSG over multiple runs. We are also interested in the behavior of a single run of the PGSG algorithm. Thus, in this section we recall the notion of an -solution given in the introduction: a random variable is called an -solution if
Theorem 3.4 together with Markov’s inequality implies that , generated with
where , is an -solution after
stochastic oracle evaluations. In this section, we develop a two stage algorithm that significantly improves the dependence on in this bound.
Before we introduce the algorithm, let us define three parameters
where . The algorithm now follows.
Let be generated as in Algorithm 3. Then
By Proposition 3.8 and Theorem 3.4, the bound holds:
On the other hand, Proposition 3.8 and Theorem 3.4 imply that
which proves the second bound and completes the proof.
We now state the convergence guarantees for Algorithm.
Notice that by Markov’s inequality, independence, and Proposition 3.11, we have:
On the other hand, by Markov’s inequality, a union bound, and Proposition 3.11, we have
which shows that is an -solution.
When the second term in (15) is dominating, the obtained bound (15) is times smaller than the bound (13) obtained by the PGSG algorithm.
3 PGSG with Unknown Weak Convexity Constant
Algorithm 2 requires that the parameters , , and are known. In practice, computing and may be nontrivial. In this section we show that a simple strategy—letting tend to infinity and tend to zero—results in a sublinear convergence rate without knowledge of any problem parameters. We formalize this procedure in Algorithm 4 using the following parameters: fix a hyper-parameter , and define
In the following, we establish convergence guarantees for the parameter free variant of PGSG. The proof splits the analysis of PFPGSG into two parts. In the first part, . In this setting, the analysis of the previous section does not apply. Thus, we show that that the iterates do not wander very far. In the second part, , and an argument similar to the one presented in Theorem 3.4 applies. Combining these results then leads to the theorem. To that end, we address the first part now.
Let . Then
We now address the second part of the argument, and with it, deduce the following theorem. At first glance, the presented rate appears to be better than the rate obtained by Algorithm 2, which requires knowledge of . However, it is not because the factor is no longer a constant. Instead, the convergence rate of Algorithm 4 is on the order of in the worst case.
Suppose that and notice this ensures . Following an argument nearly identical to the proof of Theorem 3.4, we find that for all , we have
Therefore, , which leads to the claimed inequality: .
Using the lower bound (which follows because ), we thus find
We would like to extend the sum on the left hand side of the previous inequality to all between and . To that end, we bound the excess terms
Therefore, using the bounds and , we have,
as desired. To complete the proof, apply Lemma 3.2.
Experimental Results
where and are independent random variables satisfying the following assumptions
is a -random variable with ;
is a zero mean Laplace random variable with scale parameter .
In this setting, it is possible to show that the only minimizers of are [11, Lemma B.8]. In Lemma B.1, we show that this function is 2-weakly convex.
Implementation. Each step of PGSG and the stochastic subgradient method requires access to a subgradient of a random function of the form
It is a straightforward exercise to show that satisfies assumption A on any bounded set . For our purposes we choose to be a closed ball with a large radius, . In our experiments, we never had to explicitly enforce this constraint.
Experiment 1: Sensitivity to Stepsize. In the first experiment we compare the performance of PGSG to the stochastic subgradient method, which possessed no complexity guarantees at the time of writing this manuscript. In the stochastic subgradient method, we choose stepsizes of the form for varying and . For PGSG, we chose varying values of and then set by (9), , and . Figure 1 shows the result of running these two methods to solve robust real phase retrieval problems with .
Based on the results of Experiment 1, we set for the PGSG and 2-PGSG algorithms. We furthermore set by (9) and let . For both methods, we consider two different selections for the number of inner iterations . These choices determine the level of stationarity reached by the algorithm. For 2PGSG, we fix and . For PFPGSG, we set , (which differs from (16) by a factor of ten), as in (17), and as in (18).
Table 1 lists the mean and variance of the stationarity measures averaged over trials. Each sub column shows the performance of the target algorithm as the computational budget increases. We find that with , both PGSG and 2PGSG quickly converge to a region of stationarity and then do not improve. With , both of these methods reach a level of stationarity an order of magnitude smaller than with the choice . Under sufficiently large computational budget ( stochastic subgradient evaluations), the variance of the stationarity reported by 2PGSG is consistently lower than that of PGSG as expected from Theorem 3.13. Finally, we note that the performance of PFPGSG is similar to PGSG in most regimes.
Appendix A Trimmed Estimation
Appendix B Weak Convexity of Robust Phase Retrieval
The robust phase retrieval loss defined in (20) is -weakly convex.
Therefore, by Proposition 2.1, is -weakly convex.
Acknowledgments
We thank Dmitriy Drusvyatskiy, George Lan, and the two anonymous reviewers for helpful comments.